From af2ca537a50b729b9334394f27b2cc6e588f12b9 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 26 Jan 2025 21:58:25 +0100 Subject: [PATCH] enhanced ui --- lollms_core | 2 +- web/dist/assets/index-CMnOu-iP.css | 17 - .../{index-BVKy-umM.js => index-epr3uZW5.js} | 352 +++++++++--------- web/dist/assets/index-mvOcyhgl.css | 17 + web/dist/index.html | 4 +- web/src/components/Message.vue | 73 ++-- web/src/components/Step.vue | 60 ++- web/src/views/DiscussionsView.vue | 4 +- zoos/personalities_zoo | 2 +- 9 files changed, 297 insertions(+), 234 deletions(-) delete mode 100644 web/dist/assets/index-CMnOu-iP.css rename web/dist/assets/{index-BVKy-umM.js => index-epr3uZW5.js} (97%) create mode 100644 web/dist/assets/index-mvOcyhgl.css diff --git a/lollms_core b/lollms_core index 243ab392..8f8188d5 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 243ab392acae79bcc7c30e2536a60b1a2f18e006 +Subproject commit 8f8188d5c530192d6c52dd68b87fb2e0c5fa83ac diff --git a/web/dist/assets/index-CMnOu-iP.css b/web/dist/assets/index-CMnOu-iP.css deleted file mode 100644 index d4f1c84d..00000000 --- a/web/dist/assets/index-CMnOu-iP.css +++ /dev/null @@ -1,17 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&family=Outfit:wght@400;500;600;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}/*! - 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}.spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.execute-button{display:flex;align-items:center;gap:.5rem}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! - Theme: GitHub - Description: Light theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-light - Current colors taken from GitHub's CSS -*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.prose{color:inherit}.prose h1{margin-bottom:1rem;margin-top:1.5rem;font-size:1.5rem;line-height:2rem;font-weight:700}.prose h2{margin-bottom:.75rem;margin-top:1.25rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}.prose h3{margin-bottom:.5rem;margin-top:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700}.prose p{margin-bottom:1rem}.prose ul{margin-bottom:1rem;list-style-type:disc;padding-left:1.25rem}.prose ol{margin-bottom:1rem;list-style-type:decimal;padding-left:1.25rem}.prose code{border-radius:.25rem;background-color:rgb(229 231 235 / var(--tw-bg-opacity));--tw-bg-opacity: .1;padding:.125rem .25rem;font-family:JetBrains Mono,Consolas,monospace;font-size:.875rem;line-height:1.25rem}.prose pre{margin-bottom:1rem;overflow-x:auto;border-radius:.5rem;padding:1rem}.prose pre code{background-color:transparent;padding:0}.prose blockquote{margin-top:1rem;margin-bottom:1rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding-left:1rem;font-style:italic}.prose a{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));text-decoration-line:underline}.prose a:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.prose::-webkit-scrollbar{width:.5rem}.prose::-webkit-scrollbar-track{background-color:transparent}.prose::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.prose::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.prose{scroll-behavior:smooth}.math{display:inline-block}.mathjax_block{display:block}.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-a223fde0]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-a223fde0]{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-a223fde0]{transform:translateY(-100%)}.topbar-content[data-v-a223fde0]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-a223fde0]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-a223fde0]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-a223fde0]{transform:scale(1.2)}.placeholder[data-v-a223fde0]{height:10px}.topbar-container[data-v-a223fde0]{position:relative;width:100%}.hover-zone[data-v-a223fde0]{opacity:0}.error[data-v-a223fde0]{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}.toggle-checkbox[data-v-70bac901]{position:relative;height:1.25rem;width:2.25rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.toggle-checkbox[data-v-70bac901]:checked{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.toggle-checkbox[data-v-70bac901]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.toggle-checkbox[data-v-70bac901]:before{content:"";position:absolute;left:.125rem;top:.125rem;height:1rem;width:1rem;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-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.toggle-checkbox[data-v-70bac901]:checked:before{--tw-translate-x: 1rem;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))}.input-field[data-v-70bac901]{width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.5rem .75rem;--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);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.input-field[data-v-70bac901]:focus{border-color:transparent;--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-field[data-v-70bac901]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.heartbeat-text[data-v-70bac901]{font-size:24px;animation:pulsate-70bac901 1.5s infinite}@keyframes pulsate-70bac901{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-70bac901],.list-enter-active[data-v-70bac901],.list-leave-active[data-v-70bac901]{transition:all .5s ease}.list-enter-from[data-v-70bac901]{transform:translatey(-30px)}.list-leave-to[data-v-70bac901]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-70bac901]{position:absolute}.bounce-enter-active[data-v-70bac901]{animation:bounce-in-70bac901 .5s}.bounce-leave-active[data-v-70bac901]{animation:bounce-in-70bac901 .5s reverse}@keyframes bounce-in-70bac901{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-70bac901]{background-color:#0ff}.hover[data-v-70bac901]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-70bac901]{font-weight:700}.control-buttons[data-v-2b3580ce]{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-2b3580ce]{transform:translate(0)}.control-buttons-inner[data-v-2b3580ce]{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}.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-c3280f2d]{position:relative;padding-top:10px}.custom-scrollbar[data-v-c3280f2d]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-c3280f2d]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-c3280f2d]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-c3280f2d]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.list-move[data-v-c3280f2d],.list-enter-active[data-v-c3280f2d],.list-leave-active[data-v-c3280f2d]{transition:all .5s ease}.list-enter-from[data-v-c3280f2d]{transform:translatey(-30px)}.list-leave-to[data-v-c3280f2d]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-c3280f2d]{position:absolute}@keyframes rolling-ball-d9375d3e{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-d9375d3e{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-d9375d3e{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-d9375d3e]{animation:rolling-ball-d9375d3e 4s infinite ease-in-out,bounce-d9375d3e 1s infinite ease-in-out}.animate-fade-in-up[data-v-d9375d3e]{animation:fade-in-up-d9375d3e 1.5s ease-out}.floating-button-container[data-v-d9375d3e]{position:fixed;bottom:30px;right:30px;z-index:9999}.floating-button[data-v-d9375d3e]{position:fixed;bottom:30px;right:30px;width:100px;height:100px;border-radius:50%;background-color:#ff4500e6;display:flex;justify-content:center;align-items:center;box-shadow:0 0 30px #ff4500cc;animation:pulse-d9375d3e 1.5s infinite,glow-d9375d3e 2s infinite,wobble-d9375d3e 3s infinite;overflow:hidden;z-index:9999;transition:all .3s ease}.floating-button[data-v-d9375d3e]:hover{transform:scale(1.2) rotate(5deg);background-color:#ff4500}.tooltip[data-v-d9375d3e]{position:absolute;background-color:#000c;color:#fff;padding:8px 12px;border-radius:8px;font-size:16px;font-weight:700;white-space:nowrap;opacity:0;transition:opacity .3s ease,transform .3s ease;pointer-events:none;top:-50px;left:50%;transform:translate(-50%) scale(.9)}.floating-button:hover .tooltip[data-v-d9375d3e]{opacity:1;transform:translate(-50%) scale(1)}@keyframes pulse-d9375d3e{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes glow-d9375d3e{0%{box-shadow:0 0 30px #ff4500cc}50%{box-shadow:0 0 60px #ff4500,0 0 90px #ff450099}to{box-shadow:0 0 30px #ff4500cc}}@keyframes wobble-d9375d3e{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}.hidden[data-v-d9375d3e]{display:none}.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}.glow-effect[data-v-85f3dede]{box-shadow:0 0 5px 2px #00ffffb3;animation:glow-85f3dede 1.5s ease-in-out infinite alternate}@keyframes glow-85f3dede{0%{box-shadow:0 0 5px 2px #00ffffb3}to{box-shadow:0 0 20px 2px #00ffffb3}}.personalities-container[data-v-533fa73a]{position:relative}.skills-lib-icon[data-v-533fa73a]{position:absolute;top:-2px;right:-2px;z-index:10;font-size:5px;width:2px;height:2px}.skills-lib-icon i[data-v-533fa73a]{width:2px;height:2px}@keyframes giggle-533fa73a{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-533fa73a]{animation:giggle-533fa73a 1.5s infinite ease-in-out}.custom-scrollbar[data-v-533fa73a]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-533fa73a]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-533fa73a]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-533fa73a]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-533fa73a{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-533fa73a]{animation:custom-pulse-533fa73a 2s infinite}.slide-right-enter-active[data-v-533fa73a],.slide-right-leave-active[data-v-533fa73a]{transition:transform .3s ease}.slide-right-enter[data-v-533fa73a],.slide-right-leave-to[data-v-533fa73a]{transform:translate(-100%)}.slide-left-enter-active[data-v-533fa73a],.slide-left-leave-active[data-v-533fa73a]{transition:transform .3s ease}.slide-left-enter[data-v-533fa73a],.slide-left-leave-to[data-v-533fa73a]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-533fa73a]{animation:fade-and-fly-enter-533fa73a .5s ease}.fade-and-fly-leave-active[data-v-533fa73a]{animation:fade-and-fly-leave-533fa73a .5s ease}@keyframes fade-and-fly-enter-533fa73a{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-533fa73a{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-533fa73a],.list-enter-active[data-v-533fa73a],.list-leave-active[data-v-533fa73a]{transition:all .5s ease}.list-enter-from[data-v-533fa73a]{transform:translatey(-30px)}.list-leave-to[data-v-533fa73a]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-533fa73a]{position:absolute}@keyframes float-533fa73a{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-533fa73a]{animation:float-533fa73a linear infinite}@keyframes star-move-533fa73a{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-533fa73a]{animation:star-move-533fa73a linear infinite}@keyframes fall-533fa73a{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-533fa73a]{animation:fall-533fa73a linear infinite}@keyframes glow-533fa73a{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-533fa73a]{animation:glow-533fa73a 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-533fa73a{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-533fa73a{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-533fa73a]{animation:roll-533fa73a 4s linear infinite}.toolbar[data-v-533fa73a]{position:relative;width:100%}.toolbar-container[data-v-533fa73a]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-533fa73a]{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-533fa73a]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-533fa73a]{position:relative}.expandable-menu[data-v-533fa73a]{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-533fa73a],.menu-visible[data-v-533fa73a]{display:flex}.menu-item[data-v-533fa73a]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-533fa73a]:hover{background-color:#f0f0f0}.dot[data-v-533fa73a]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-533fa73a]{background-color:green}.dot-red[data-v-533fa73a]{background-color:red}.animate-pulse[data-v-533fa73a]{animation:pulse-533fa73a 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-533fa73a{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-533fa73a]{position:relative;width:48px;height:48px}.logo-image[data-v-533fa73a]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-533fa73a{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-533fa73a]{animation:bounce-533fa73a 1s infinite}@keyframes roll-and-bounce-533fa73a{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-533fa73a{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:Inter,Outfit,PTSans,Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,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:JetBrains Mono,Consolas,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}.not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.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-1{top:-.25rem;right:-.25rem;bottom:-.25rem;left:-.25rem}.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-12{bottom:-3rem}.-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-0\.5{left:.125rem}.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-0\.5{top:.125rem}.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%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.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}.float-right{float:right}.float-left{float:left}.float-none{float:none}.clear-left{clear:left}.clear-right{clear:right}.clear-both{clear:both}.clear-none{clear:none}.-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-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-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-6{margin-left:1.5rem}.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}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.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!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.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-\[300px\]{height:300px}.h-\[400px\]{height:400px}.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-72{max-height:18rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[500px\]{max-height:500px}.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-\[200px\]{min-height:200px}.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-1\/3{width:33.333333%}.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-2\/3{width:66.666667%}.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-\[15rem\]{width:15rem}.w-\[16rem\]{width:16rem}.w-\[300px\]{width:300px}.w-\[500px\]{width:500px}.w-\[this-is\\\\\]{width:this-is\\}.w-\[this-is\]{width:this-is}.w-\[weird-and-invalid\]{width:weird-and-invalid}.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-96{min-width:24rem}.min-w-\[200px\]{min-width:200px}.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-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.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}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.border-separate{border-collapse:separate}.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-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))!important}.transform,.transform-cpu{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-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) 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}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-auto{touch-action:auto}.touch-none{touch-action:none}.touch-pan-x{--tw-pan-x: pan-x;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-left{--tw-pan-x: pan-left;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-right{--tw-pan-x: pan-right;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-up{--tw-pan-y: pan-up;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-down{--tw-pan-y: pan-down;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pinch-zoom{--tw-pinch-zoom: pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-proximity{--tw-scroll-snap-strictness: proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.snap-normal{scroll-snap-stop:normal}.snap-always{scroll-snap-stop:always}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.break-before-auto{-moz-column-break-before:auto;break-before:auto}.break-before-avoid{-moz-column-break-before:avoid;break-before:avoid}.break-before-all{-moz-column-break-before:all;break-before:all}.break-before-avoid-page{-moz-column-break-before:avoid;break-before:avoid-page}.break-before-page{-moz-column-break-before:page;break-before:page}.break-before-left{-moz-column-break-before:left;break-before:left}.break-before-right{-moz-column-break-before:right;break-before:right}.break-before-column{-moz-column-break-before:column;break-before:column}.break-inside-auto{-moz-column-break-inside:auto;break-inside:auto}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.break-inside-avoid-page{break-inside:avoid-page}.break-inside-avoid-column{-moz-column-break-inside:avoid;break-inside:avoid-column}.break-after-auto{-moz-column-break-after:auto;break-after:auto}.break-after-avoid{-moz-column-break-after:avoid;break-after:avoid}.break-after-all{-moz-column-break-after:all;break-after:all}.break-after-avoid-page{-moz-column-break-after:avoid;break-after:avoid-page}.break-after-page{-moz-column-break-after:page;break-after:page}.break-after-left{-moz-column-break-after:left;break-after:left}.break-after-right{-moz-column-break-after:right;break-after:right}.break-after-column{-moz-column-break-after:column;break-after:column}.grid-flow-row{grid-auto-flow:row}.grid-flow-col{grid-auto-flow:column}.grid-flow-dense{grid-auto-flow:dense}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-flow-col-dense{grid-auto-flow:column dense}.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-\[200px\,1fr\]{grid-template-columns:200px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.place-content-baseline{place-content:baseline}.place-content-stretch{place-content:stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-baseline{place-items:baseline}.place-items-stretch{place-items:stretch}.content-center{align-content:center}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.content-baseline{align-content:baseline}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.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))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 1}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.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-y-reverse>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 1}.divide-x-reverse>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 1}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-dashed>:not([hidden])~:not([hidden]){border-style:dashed}.divide-dotted>:not([hidden])~:not([hidden]){border-style:dotted}.divide-double>:not([hidden])~:not([hidden]){border-style:double}.divide-none>:not([hidden])~:not([hidden]){border-style:none}.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))}.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.self-baseline{align-self:baseline}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.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-x-clip{overflow-x:clip}.overflow-y-clip{overflow-y:clip}.overflow-x-visible{overflow-x:visible}.overflow-y-visible{overflow-y:visible}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-auto{overscroll-behavior:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-none{overscroll-behavior:none}.overscroll-y-auto{overscroll-behavior-y:auto}.overscroll-y-contain{overscroll-behavior-y:contain}.overscroll-y-none{overscroll-behavior-y:none}.overscroll-x-auto{overscroll-behavior-x:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.overscroll-x-none{overscroll-behavior-x:none}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.text-clip{text-overflow:clip}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-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{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.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}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x{border-left-width:1px;border-right-width:1px}.border-y{border-top-width:1px;border-bottom-width:1px}.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-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-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-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.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-200{--tw-border-opacity: 1;border-color:rgb(251 213 213 / 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-b-gray-900{--tw-border-opacity: 1;border-bottom-color:rgb(17 24 39 / var(--tw-border-opacity))}.bg-\[rgb\(255\,0\,0\)\]{--tw-bg-opacity: 1;background-color:rgb(255 0 0 / var(--tw-bg-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-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-50{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / 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-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-10{--tw-bg-opacity: .1}.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-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-500{--tw-gradient-to: #0E9F6E 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\/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%}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.bg-fixed{background-attachment:fixed}.bg-local{background-attachment:local}.bg-scroll{background-attachment:scroll}.bg-clip-border{background-clip:border-box}.bg-clip-padding{background-clip:padding-box}.bg-clip-content{background-clip:content-box}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-repeat{background-repeat:repeat}.bg-no-repeat{background-repeat:no-repeat}.bg-repeat-x{background-repeat:repeat-x}.bg-repeat-y{background-repeat:repeat-y}.bg-repeat-round{background-repeat:round}.bg-repeat-space{background-repeat:space}.bg-origin-border{background-origin:border-box}.bg-origin-padding{background-origin:padding-box}.bg-origin-content{background-origin:content-box}.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}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.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-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-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}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.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-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-top{vertical-align:text-top}.align-text-bottom{vertical-align:text-bottom}.align-sub{vertical-align:sub}.align-super{vertical-align:super}.font-mono{font-family:JetBrains Mono,Consolas,monospace}.font-sans{font-family:Inter,Outfit,PTSans,Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,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}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.normal-nums{font-variant-numeric:normal}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.slashed-zero{--tw-slashed-zero: slashed-zero;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.lining-nums{--tw-numeric-figure: lining-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.oldstyle-nums{--tw-numeric-figure: oldstyle-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.proportional-nums{--tw-numeric-spacing: proportional-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.diagonal-fractions{--tw-numeric-fraction: diagonal-fractions;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.stacked-fractions{--tw-numeric-fraction: stacked-fractions;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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-\[\#336699\]\/\[\.35\]{color:#33669959}.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-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}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.accent-blue-500{accent-color:#3F83F8}.accent-blue-600{accent-color:#1C64F2}.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}.bg-blend-normal{background-blend-mode:normal}.bg-blend-multiply{background-blend-mode:multiply}.bg-blend-screen{background-blend-mode:screen}.bg-blend-overlay{background-blend-mode:overlay}.bg-blend-darken{background-blend-mode:darken}.bg-blend-lighten{background-blend-mode:lighten}.bg-blend-color-dodge{background-blend-mode:color-dodge}.bg-blend-color-burn{background-blend-mode:color-burn}.bg-blend-hard-light{background-blend-mode:hard-light}.bg-blend-soft-light{background-blend-mode:soft-light}.bg-blend-difference{background-blend-mode:difference}.bg-blend-exclusion{background-blend-mode:exclusion}.bg-blend-hue{background-blend-mode:hue}.bg-blend-saturation{background-blend-mode:saturation}.bg-blend-color{background-blend-mode:color}.bg-blend-luminosity{background-blend-mode:luminosity}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.mix-blend-plus-lighter{mix-blend-mode:plus-lighter}.\!shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.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}.outline-dashed{outline-style:dashed}.outline-dotted{outline-style:dotted}.outline-double{outline-style:double}.ring{--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)}.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-inset{--tw-ring-inset: inset}.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{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px 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-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)}.invert{--tw-invert: invert(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)}.sepia{--tw-sepia: sepia(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)!important}.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)}.filter-none{filter:none}.backdrop-blur{--tw-backdrop-blur: blur(8px);-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-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-grayscale{--tw-backdrop-grayscale: grayscale(100%);-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-invert{--tw-backdrop-invert: invert(100%);-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-sepia{--tw-backdrop-sepia: sepia(100%);-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)}.backdrop-filter-none{-webkit-backdrop-filter:none;backdrop-filter:none}.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-700{transition-duration:.7s}.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)}.content-\[\'this-is-also-valid\]-weirdly-enough\'\]{--tw-content: "this-is-also-valid]-weirdly-enough";content:var(--tw-content)}.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-family:Inter,Outfit,PTSans,Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-size:1rem;line-height:1.5rem;line-height:1.625;letter-spacing:-.025em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}@media (min-width: 768px){p{font-size:1.125rem;line-height:1.75rem;line-height:2}}table{border-collapse:collapse;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}table:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}th,td{border-width:1px;--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));padding:.5rem}th:is(.dark *),td:is(.dark *){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}tr:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}tr:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}ul,ol{margin-top:1rem;margin-bottom:1rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:1.75rem}ul{margin-left:.5rem;list-style-type:disc}ul>: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))}li{position:relative;padding-left:.5rem}ol{margin-left:.5rem;list-style-type:decimal}ol>: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))}ul ul,ol ol,ul ol,ol ul{margin-top:.5rem;margin-bottom:0;margin-left:1.5rem}li::marker{color:#4b5563}: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))}.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:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.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}.animated-progressbar-bg{position:relative;height:2.5rem;width:100%;overflow:hidden;border-radius:.125rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #172554 var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 37 84 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #233876 var(--tw-gradient-to-position);--tw-shadow: 0 0 15px rgba(245,158,11,.2);--tw-shadow-colored: 0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.animated-progressbar-bg:is(.dark *){--tw-gradient-from: #000000 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);--tw-gradient-to: #172554 var(--tw-gradient-to-position)}.animated-progressbar-fg{position:absolute;top:0;left:0;height:100%;background-image:linear-gradient(to right,var(--tw-gradient-stops));--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);--tw-gradient-to: #76A9FA var(--tw-gradient-to-position);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.animated-progressbar-fg:is(.dark *){--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);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.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))}.discussion-toolbox{display:flex;--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));align-items:center;gap:.5rem;border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.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);transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.group:hover .discussion-toolbox{--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))}.discussion-toolbox:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.lollms-title-style{text-shadow:2px 2px 4px rgba(0,0,0,.2),2px 2px 0px white,-2px -2px 0px white,2px -2px 0px white,-2px 2px 0px white;background:linear-gradient(45deg,#f59e0b,#fbbf24);-webkit-background-clip:text;background-clip:text}.chat-bar{position:relative;display:flex;flex-grow:1;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:.5rem;--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));padding:.25rem;--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity));--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)}.chat-bar: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)}.chat-bar:is(.dark *){--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.chat-bar{height:50px;transition:all .3s ease}.chat-bar:hover{box-shadow:0 4px 6px -1px #00ff001a,0 2px 4px -1px #00ff000f}.svg-button{border-radius:9999px;padding:.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.svg-button: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));--tw-ring-offset-width: 2px}.svg-button:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.svg-button:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.svg-button:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.svg-button:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.svg-button:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.nav-button{border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nav-button:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.nav-button:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.nav-button:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.nav-button-active{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.nav-button-active:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.nav-button-active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.nav-button-active:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-on{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.btn-on:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.btn-off{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.btn-off:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.interesting-facts{margin-top:1.5rem;margin-bottom:1.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));border-radius:.5rem;background-color:#fffc;padding:1rem;--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)}.interesting-facts: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))}.interesting-facts:is(.dark *){background-color:#1f2937cc}.toolbar-button{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:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.context-menu{position:absolute;background-color:#fff;border:1px solid #e0e0e0;box-shadow:0 2px 10px #0000001a;border-radius:4px;padding:8px 0;min-width:150px;z-index:1000}.context-menu-item{padding:8px 16px;font-size:14px;color:#333;cursor:pointer;transition:background-color .2s ease}.context-menu-item:hover{background-color:#f5f5f5}.context-menu-separator{height:1px;background-color:#e0e0e0;margin:4px 0}.context-menu-item-disabled{color:#999;cursor:not-allowed}.context-menu-item-icon{margin-right:8px}.steps-container{margin-bottom:1rem;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.steps-header{display:flex;cursor:pointer;align-items:center;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:1rem}.steps-header:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.steps-title{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600}.step-item{margin-bottom:.5rem;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));padding-left:1rem}.steps-container{margin-bottom:1rem;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.steps-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.steps-header{display:flex;cursor:pointer;align-items:center;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));padding:1rem}.steps-header:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.steps-icon{margin-right:1rem}.steps-summary{flex-grow:1}.steps-title{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.steps-title:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.steps-status{margin:0;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.steps-status:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.toggle-icon{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.toggle-icon:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.steps-content{padding:1rem}.steps-list{margin:0;list-style-type:none;padding:0}.step-item{margin-bottom:.5rem;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding-left:1rem}.step-item:last-child{margin-bottom:0}.step-item:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.step-container{margin-bottom:1rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.step-wrapper{display:flex;align-items:flex-start;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.75rem}.step-wrapper:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.step-icon{margin-right:.75rem;height:1.5rem;width:1.5rem;flex-shrink:0}.icon-success{height:1.5rem;width:1.5rem;--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.icon-fail{height:1.5rem;width:1.5rem;--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.icon-spinner{height:1.5rem;width:1.5rem}@keyframes spin{to{transform:rotate(360deg)}}.icon-spinner{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));border-top-color:transparent}.icon-spinner:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.step-content{flex-grow:1}.step-text{font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.step-text:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.step-description{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.fade-enter-active,.fade-leave-active{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.fade-enter,.fade-leave-to{opacity:0}.status-icon{cursor:pointer;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.icon{height:1.5rem;width:1.5rem}.icon-success{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.icon-success:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.icon-fail{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.icon-fail:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.icon-text{font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.icon-text:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}.sm\:container{max-width:640px}@media (min-width: 768px){.sm\:container{max-width:768px}}@media (min-width: 1024px){.sm\:container{max-width:1024px}}@media (min-width: 1280px){.sm\:container{max-width:1280px}}@media (min-width: 1536px){.sm\:container{max-width:1536px}}}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[2px\]:after{content:var(--tw-content);left:2px}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-gray-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.last\:mb-0:last-child{margin-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.checked\:translate-x-6:checked{--tw-translate-x: 1.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))}.checked\:bg-blue-500:checked{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.checked\:bg-red-500:checked{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.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\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content);--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))}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.peer:focus~.peer-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.peer:focus~.peer-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)}.peer:focus~.peer-focus\:ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.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-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(63 131 248 / 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-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-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / 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-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-100:hover{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / 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-50:hover{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / 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-300:hover{--tw-bg-opacity: 1;background-color:rgb(250 202 21 / 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-green-500:hover{--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)}.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-green-600:hover{--tw-gradient-to: #057A55 var(--tw-gradient-to-position)}.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\:font-bold:hover{font-weight:700}.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-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / 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\:shadow-lg: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)}.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}.before\:hover\:text-center:hover:before{content:var(--tw-content);text-align:center}.hover\:before\:text-center:hover:before{content:var(--tw-content);text-align:center}.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-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / 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-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / 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}.focus\:hover\:text-center:hover:focus{text-align:center}.hover\:focus\:text-center:focus:hover{text-align:center}.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\: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-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(155 28 28 / 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-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-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\/20:is(.dark *){background-color:#771d1d33}.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-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-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-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)}.peer:focus~.dark\:peer-focus\:ring-blue-800:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.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-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / 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-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / 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))}.dark\:hover\:bg-yellow-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(194 120 3 / 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-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.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}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:mr-4{margin-right:1rem}.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\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}.sm\:underline{text-decoration-line:underline}}@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\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-2\/3{width:66.666667%}.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\:grid-cols-\[300px\,1fr\]{grid-template-columns:300px 1fr}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.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-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)))}.md\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * 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\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-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\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.dark\:lg\:hover\:\[paint-order\:markers\]:hover:is(.dark *){paint-order:markers}}@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-BVKy-umM.js b/web/dist/assets/index-epr3uZW5.js similarity index 97% rename from web/dist/assets/index-BVKy-umM.js rename to web/dist/assets/index-epr3uZW5.js index 3aebdab3..01983af8 100644 --- a/web/dist/assets/index-BVKy-umM.js +++ b/web/dist/assets/index-epr3uZW5.js @@ -3,7 +3,7 @@ var Iq=Object.defineProperty;var kq=(t,e,n)=>e in t?Iq(t,e,{enumerable:!0,config * @vue/shared v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Cv(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Rn={},Nl=[],Jo=()=>{},Pq=()=>!1,Id=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Av=t=>t.startsWith("onUpdate:"),or=Object.assign,wv=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Hq=Object.prototype.hasOwnProperty,Tn=(t,e)=>Hq.call(t,e),Lt=Array.isArray,Dl=t=>Mc(t)==="[object Map]",wc=t=>Mc(t)==="[object Set]",qE=t=>Mc(t)==="[object Date]",Vq=t=>Mc(t)==="[object RegExp]",kt=t=>typeof t=="function",qn=t=>typeof t=="string",os=t=>typeof t=="symbol",Cn=t=>t!==null&&typeof t=="object",Kk=t=>(Cn(t)||kt(t))&&kt(t.then)&&kt(t.catch),Zk=Object.prototype.toString,Mc=t=>Zk.call(t),Fq=t=>Mc(t).slice(8,-1),Xk=t=>Mc(t)==="[object Object]",Mv=t=>qn(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,M4=Cv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kd=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Bq=/-(\w)/g,to=kd(t=>t.replace(Bq,(e,n)=>n?n.toUpperCase():"")),$q=/\B([A-Z])/g,Xa=kd(t=>t.replace($q,"-$1").toLowerCase()),Pd=kd(t=>t.charAt(0).toUpperCase()+t.slice(1)),tu=kd(t=>t?`on${Pd(t)}`:""),ja=(t,e)=>!Object.is(t,e),Il=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},vu=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Uq=t=>{const e=qn(t)?Number(t):NaN;return isNaN(e)?t:e};let zE;const eP=()=>zE||(zE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bn(t){if(Lt(t)){const e={};for(let n=0;n{if(n){const r=n.split(qq);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function We(t){let e="";if(qn(t))e=t;else if(Lt(t))for(let n=0;nl2(n,e))}const nP=t=>!!(t&&t.__v_isRef===!0),ue=t=>qn(t)?t:t==null?"":Lt(t)||Cn(t)&&(t.toString===Zk||!kt(t.toString))?nP(t)?ue(t.value):JSON.stringify(t,rP,2):String(t),rP=(t,e)=>nP(e)?rP(t,e.value):Dl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[tf(r,o)+" =>"]=i,n),{})}:wc(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>tf(n))}:os(e)?tf(e):Cn(e)&&!Lt(e)&&!Xk(e)?String(e):e,tf=(t,e="")=>{var n;return os(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** +**//*! #__NO_SIDE_EFFECTS__ */function Cv(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Rn={},Nl=[],Jo=()=>{},Pq=()=>!1,Id=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Av=t=>t.startsWith("onUpdate:"),or=Object.assign,wv=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Hq=Object.prototype.hasOwnProperty,Tn=(t,e)=>Hq.call(t,e),Lt=Array.isArray,Dl=t=>Mc(t)==="[object Map]",wc=t=>Mc(t)==="[object Set]",qE=t=>Mc(t)==="[object Date]",Vq=t=>Mc(t)==="[object RegExp]",kt=t=>typeof t=="function",qn=t=>typeof t=="string",os=t=>typeof t=="symbol",Cn=t=>t!==null&&typeof t=="object",Kk=t=>(Cn(t)||kt(t))&&kt(t.then)&&kt(t.catch),Zk=Object.prototype.toString,Mc=t=>Zk.call(t),Fq=t=>Mc(t).slice(8,-1),Xk=t=>Mc(t)==="[object Object]",Mv=t=>qn(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,M4=Cv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kd=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Bq=/-(\w)/g,to=kd(t=>t.replace(Bq,(e,n)=>n?n.toUpperCase():"")),$q=/\B([A-Z])/g,Xa=kd(t=>t.replace($q,"-$1").toLowerCase()),Pd=kd(t=>t.charAt(0).toUpperCase()+t.slice(1)),tu=kd(t=>t?`on${Pd(t)}`:""),ja=(t,e)=>!Object.is(t,e),Il=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},vu=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Uq=t=>{const e=qn(t)?Number(t):NaN;return isNaN(e)?t:e};let zE;const eP=()=>zE||(zE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gn(t){if(Lt(t)){const e={};for(let n=0;n{if(n){const r=n.split(qq);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function We(t){let e="";if(qn(t))e=t;else if(Lt(t))for(let n=0;nl2(n,e))}const nP=t=>!!(t&&t.__v_isRef===!0),ue=t=>qn(t)?t:t==null?"":Lt(t)||Cn(t)&&(t.toString===Zk||!kt(t.toString))?nP(t)?ue(t.value):JSON.stringify(t,rP,2):String(t),rP=(t,e)=>nP(e)?rP(t,e.value):Dl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[tf(r,o)+" =>"]=i,n),{})}:wc(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>tf(n))}:os(e)?tf(e):Cn(e)&&!Lt(e)&&!Xk(e)?String(e):e,tf=(t,e="")=>{var n;return os(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** * @vue/reactivity v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -11,7 +11,7 @@ var Iq=Object.defineProperty;var kq=(t,e,n)=>e in t?Iq(t,e,{enumerable:!0,config * @vue/runtime-core v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function b0(t,e,n,r){try{return r?t(...r):t()}catch(i){Gd(i,e,n)}}function Eo(t,e,n,r){if(kt(t)){const i=b0(t,e,n,r);return i&&Kk(i)&&i.catch(o=>{Gd(o,e,n)}),i}if(Lt(t)){const i=[];for(let o=0;o>>1,i=Xr[r],o=Z4(i);o=Z4(n)?Xr.push(t):Xr.splice(Iz(e),0,t),t.flags|=1,AP()}}function AP(){!K4&&!F_&&(F_=!0,Hv=CP.then(MP))}function kz(t){Lt(t)?Pl.push(...t):Sa&&t.id===-1?Sa.splice(xl+1,0,t):t.flags&1||(Pl.push(t),t.flags|=1),AP()}function JE(t,e,n=K4?$o+1:0){for(;nZ4(n)-Z4(r));if(Pl.length=0,Sa){Sa.push(...e);return}for(Sa=e,xl=0;xlt.id==null?t.flags&2?-1:1/0:t.id;function MP(t){F_=!1,K4=!0;try{for($o=0;$o{r._d&&ux(-1);const o=xu(e);let s;try{s=t(...i)}finally{xu(o),r._d&&ux(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function te(t,e){if(_r===null)return t;const n=Zd(_r),r=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport,O4=t=>t&&(t.disabled||t.disabled===""),Pz=t=>t&&(t.defer||t.defer===""),ex=t=>typeof SVGElement<"u"&&t instanceof SVGElement,tx=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,B_=(t,e)=>{const n=t&&t.to;return qn(n)?e?e(n):null:n},Hz={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:f,querySelector:m,createText:T,createComment:Q}}=c,_=O4(e.props);let{shapeFlag:v,children:y,dynamicChildren:b}=e;if(t==null){const E=e.el=T(""),x=e.anchor=T("");f(E,n,r),f(x,n,r);const L=(C,A)=>{v&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),u(y,C,A,i,o,s,a,l))},M=()=>{const C=e.target=B_(e.props,m),A=DP(C,e,T,f);C&&(s!=="svg"&&ex(C)?s="svg":s!=="mathml"&&tx(C)&&(s="mathml"),_||(L(C,A),nu(e)))};_&&(L(n,x),nu(e)),Pz(e.props)?mr(M,o):M()}else{e.el=t.el,e.targetStart=t.targetStart;const E=e.anchor=t.anchor,x=e.target=t.target,L=e.targetAnchor=t.targetAnchor,M=O4(t.props),C=M?n:x,A=M?E:L;if(s==="svg"||ex(x)?s="svg":(s==="mathml"||tx(x))&&(s="mathml"),b?(h(t.dynamicChildren,b,C,i,o,s,a),Uv(t,e,!0)):l||d(t,e,C,A,i,o,s,a,!1),_)M?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):C6(e,n,E,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const I=e.target=B_(e.props,m);I&&C6(e,I,null,c,0)}else M&&C6(e,x,L,c,1);nu(e)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=t;if(d&&(i(c),i(u)),o&&i(l),s&16){const f=o||!O4(h);for(let m=0;m{t.isMounted=!0}),Oc(()=>{t.isUnmounting=!0}),t}const Hi=[Function,Array],kP={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hi,onEnter:Hi,onAfterEnter:Hi,onEnterCancelled:Hi,onBeforeLeave:Hi,onLeave:Hi,onAfterLeave:Hi,onLeaveCancelled:Hi,onBeforeAppear:Hi,onAppear:Hi,onAfterAppear:Hi,onAppearCancelled:Hi},PP=t=>{const e=t.subTree;return e.component?PP(e.component):e},Bz={name:"BaseTransition",props:kP,setup(t,{slots:e}){const n=qv(),r=IP();return()=>{const i=e.default&&Fv(e.default(),!0);if(!i||!i.length)return;const o=HP(i),s=un(t),{mode:a}=s;if(r.isLeaving)return sf(o);const l=nx(o);if(!l)return sf(o);let c=X4(l,s,r,n,h=>c=h);l.type!==Hr&&Wa(l,c);const u=n.subTree,d=u&&nx(u);if(d&&d.type!==Hr&&!Ia(l,d)&&PP(n).type!==Hr){const h=X4(d,s,r,n);if(Wa(d,h),a==="out-in"&&l.type!==Hr)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave},sf(o);a==="in-out"&&l.type!==Hr&&(h.delayLeave=(f,m,T)=>{const Q=VP(r,d);Q[String(d.key)]=d,f[La]=()=>{m(),f[La]=void 0,delete c.delayedLeave},c.delayedLeave=T})}return o}}};function HP(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Hr){e=n;break}}return e}const $z=Bz;function VP(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function X4(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:T,onBeforeAppear:Q,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=e,b=String(t.key),E=VP(n,t),x=(C,A)=>{C&&Eo(C,r,9,A)},L=(C,A)=>{const I=A[1];x(C,A),Lt(C)?C.every(N=>N.length<=1)&&I():C.length<=1&&I()},M={mode:s,persisted:a,beforeEnter(C){let A=l;if(!n.isMounted)if(o)A=Q||l;else return;C[La]&&C[La](!0);const I=E[b];I&&Ia(t,I)&&I.el[La]&&I.el[La](),x(A,[C])},enter(C){let A=c,I=u,N=d;if(!n.isMounted)if(o)A=_||c,I=v||u,N=y||d;else return;let V=!1;const R=C[A6]=B=>{V||(V=!0,B?x(N,[C]):x(I,[C]),M.delayedLeave&&M.delayedLeave(),C[A6]=void 0)};A?L(A,[C,R]):R()},leave(C,A){const I=String(t.key);if(C[A6]&&C[A6](!0),n.isUnmounting)return A();x(h,[C]);let N=!1;const V=C[La]=R=>{N||(N=!0,A(),R?x(T,[C]):x(m,[C]),C[La]=void 0,E[I]===t&&delete E[I])};E[I]=t,f?L(f,[C,V]):V()},clone(C){const A=X4(C,e,n,r,i);return i&&i(A),A}};return M}function sf(t){if(qd(t))return t=Xs(t),t.children=null,t}function nx(t){if(!qd(t))return NP(t.type)&&t.children?HP(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&kt(n.default))return n.default()}}function Wa(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Wa(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Fv(t,e=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o$_(m,e&&(Lt(e)?e[T]:e),n,r,i));return}if(J1(r)&&!i)return;const o=r.shapeFlag&4?Zd(r.component):r.el,s=i?null:o,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Rn?a.refs={}:a.refs,d=a.setupState,h=un(d),f=d===Rn?()=>!1:m=>Tn(h,m);if(c!=null&&c!==l&&(qn(c)?(u[c]=null,f(c)&&(d[c]=null)):ur(c)&&(c.value=null)),kt(l))b0(l,a,12,[s,u]);else{const m=qn(l),T=ur(l);if(m||T){const Q=()=>{if(t.f){const _=m?f(l)?d[l]:u[l]:l.value;i?Lt(_)&&wv(_,o):Lt(_)?_.includes(o)||_.push(o):m?(u[l]=[o],f(l)&&(d[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else m?(u[l]=s,f(l)&&(d[l]=s)):T&&(l.value=s,t.k&&(u[t.k]=s))};s?(Q.id=-1,mr(Q,n)):Q()}}}const J1=t=>!!t.type.__asyncLoader,qd=t=>t.type.__isKeepAlive,Uz={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=qv(),r=n.ctx;if(!r.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,h=d("div");r.activate=(v,y,b,E,x)=>{const L=v.component;c(v,y,b,0,a),l(L.vnode,v,y,b,L,a,E,v.slotScopeIds,x),mr(()=>{L.isDeactivated=!1,L.a&&Il(L.a);const M=v.props&&v.props.onVnodeMounted;M&&Bi(M,L.parent,v)},a)},r.deactivate=v=>{const y=v.component;Lu(y.m),Lu(y.a),c(v,h,null,1,a),mr(()=>{y.da&&Il(y.da);const b=v.props&&v.props.onVnodeUnmounted;b&&Bi(b,y.parent,v),y.isDeactivated=!0},a)};function f(v){af(v),u(v,n,a,!0)}function m(v){i.forEach((y,b)=>{const E=W_(y.type);E&&!v(E)&&T(b)})}function T(v){const y=i.get(v);y&&(!s||!Ia(y,s))?f(y):s&&af(s),i.delete(v),o.delete(v)}Lr(()=>[t.include,t.exclude],([v,y])=>{v&&m(b=>x4(v,b)),y&&m(b=>!x4(y,b))},{flush:"post",deep:!0});let Q=null;const _=()=>{Q!=null&&(Cu(n.subTree.type)?mr(()=>{i.set(Q,w6(n.subTree))},n.subTree.suspense):i.set(Q,w6(n.subTree)))};return ls(_),E0(_),Oc(()=>{i.forEach(v=>{const{subTree:y,suspense:b}=n,E=w6(y);if(v.type===E.type&&v.key===E.key){af(E);const x=E.component.da;x&&mr(x,b);return}f(v)})}),()=>{if(Q=null,!e.default)return s=null;const v=e.default(),y=v[0];if(v.length>1)return s=null,v;if(!zl(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return s=null,y;let b=w6(y);if(b.type===Hr)return s=null,b;const E=b.type,x=W_(J1(b)?b.type.__asyncResolved||{}:E),{include:L,exclude:M,max:C}=t;if(L&&(!x||!x4(L,x))||M&&x&&x4(M,x))return b.shapeFlag&=-257,s=b,y;const A=b.key==null?E:b.key,I=i.get(A);return b.el&&(b=Xs(b),y.shapeFlag&128&&(y.ssContent=b)),Q=A,I?(b.el=I.el,b.component=I.component,b.transition&&Wa(b,b.transition),b.shapeFlag|=512,o.delete(A),o.add(A)):(o.add(A),C&&o.size>parseInt(C,10)&&T(o.values().next().value)),b.shapeFlag|=256,s=b,Cu(y.type)?y:b}}},Gz=Uz;function x4(t,e){return Lt(t)?t.some(n=>x4(n,e)):qn(t)?t.split(",").includes(e):Vq(t)?(t.lastIndex=0,t.test(e)):!1}function qz(t,e){BP(t,"a",e)}function zz(t,e){BP(t,"da",e)}function BP(t,e,n=Sr){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(zd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)qd(i.parent.vnode)&&jz(r,e,n,i),i=i.parent}}function jz(t,e,n,r){const i=zd(e,t,r,!0);$P(()=>{wv(r[e],i)},n)}function af(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function w6(t){return t.shapeFlag&128?t.ssContent:t}function zd(t,e,n=Sr,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{Ja();const a=x0(n),l=Eo(e,n,t,s);return a(),e1(),l});return r?i.unshift(o):i.push(o),o}}const ta=t=>(e,n=Sr)=>{(!Kd||t==="sp")&&zd(t,(...r)=>e(...r),n)},Wz=ta("bm"),ls=ta("m"),Yz=ta("bu"),E0=ta("u"),Oc=ta("bum"),$P=ta("um"),Kz=ta("sp"),Zz=ta("rtg"),Xz=ta("rtc");function Jz(t,e=Sr){zd("ec",t,e)}const UP="components";function gt(t,e){return qP(UP,t,!0,e)||t}const GP=Symbol.for("v-ndc");function jd(t){return qn(t)?qP(UP,t,!1)||t:t||GP}function qP(t,e,n=!0,r=!1){const i=_r||Sr;if(i){const o=i.type;{const a=W_(o,!1);if(a&&(a===e||a===to(e)||a===Pd(to(e))))return o}const s=rx(i[t]||o[t],e)||rx(i.appContext[t],e);return!s&&r?o:s}}function rx(t,e){return t&&(t[e]||t[to(e)]||t[Pd(to(e))])}function lt(t,e,n,r){let i;const o=n,s=Lt(t);if(s||qn(t)){const a=s&&kl(t);let l=!1;a&&(l=!Zi(t),t=Vd(t)),i=new Array(t.length);for(let c=0,u=t.length;ce(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,c=a.length;lzl(e)?!(e.type===Hr||e.type===ze&&!zP(e.children)):!0)?t:null}function ej(t,e){const n={};for(const r in t)n[/[A-Z]/.test(r)?`on:${r}`:tu(r)]=t[r];return n}const U_=t=>t?dH(t)?Zd(t):U_(t.parent):null,R4=or(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>U_(t.parent),$root:t=>U_(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Bv(t),$forceUpdate:t=>t.f||(t.f=()=>{Vv(t.update)}),$nextTick:t=>t.n||(t.n=Ke.bind(t.proxy)),$watch:t=>yj.bind(t)}),lf=(t,e)=>t!==Rn&&!t.__isScriptSetup&&Tn(t,e),tj={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const f=s[e];if(f!==void 0)switch(f){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(lf(r,e))return s[e]=1,r[e];if(i!==Rn&&Tn(i,e))return s[e]=2,i[e];if((c=t.propsOptions[0])&&Tn(c,e))return s[e]=3,o[e];if(n!==Rn&&Tn(n,e))return s[e]=4,n[e];G_&&(s[e]=0)}}const u=R4[e];let d,h;if(u)return e==="$attrs"&&Fr(t.attrs,"get",""),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Rn&&Tn(n,e))return s[e]=4,n[e];if(h=l.config.globalProperties,Tn(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return lf(i,e)?(i[e]=n,!0):r!==Rn&&Tn(r,e)?(r[e]=n,!0):Tn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||t!==Rn&&Tn(t,s)||lf(e,s)||(a=o[0])&&Tn(a,s)||Tn(r,s)||Tn(R4,s)||Tn(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Tn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ix(t){return Lt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let G_=!0;function nj(t){const e=Bv(t),n=t.proxy,r=t.ctx;G_=!1,e.beforeCreate&&ox(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:f,updated:m,activated:T,deactivated:Q,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:E,renderTracked:x,renderTriggered:L,errorCaptured:M,serverPrefetch:C,expose:A,inheritAttrs:I,components:N,directives:V,filters:R}=e;if(c&&rj(c,r,null),s)for(const U in s){const G=s[U];kt(G)&&(r[U]=G.bind(n))}if(i){const U=i.call(n,n);Cn(U)&&(t.data=ni(U))}if(G_=!0,o)for(const U in o){const G=o[U],Z=kt(G)?G.bind(n,n):kt(G.get)?G.get.bind(n,n):Jo,Y=!kt(G)&&kt(G.set)?G.set.bind(n):Jo,ee=vt({get:Z,set:Y});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>ee.value,set:pe=>ee.value=pe})}if(a)for(const U in a)jP(a[U],r,n,U);if(l){const U=kt(l)?l.call(n):l;Reflect.ownKeys(U).forEach(G=>{Vl(G,U[G])})}u&&ox(u,t,"c");function F(U,G){Lt(G)?G.forEach(Z=>U(Z.bind(n))):G&&U(G.bind(n))}if(F(Wz,d),F(ls,h),F(Yz,f),F(E0,m),F(qz,T),F(zz,Q),F(Jz,M),F(Xz,x),F(Zz,L),F(Oc,v),F($P,b),F(Kz,C),Lt(A))if(A.length){const U=t.exposed||(t.exposed={});A.forEach(G=>{Object.defineProperty(U,G,{get:()=>n[G],set:Z=>n[G]=Z})})}else t.exposed||(t.exposed={});E&&t.render===Jo&&(t.render=E),I!=null&&(t.inheritAttrs=I),N&&(t.components=N),V&&(t.directives=V),C&&FP(t)}function rj(t,e,n=Jo){Lt(t)&&(t=q_(t));for(const r in t){const i=t[r];let o;Cn(i)?"default"in i?o=Xi(i.from||r,i.default,!0):o=Xi(i.from||r):o=Xi(i),ur(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function ox(t,e,n){Eo(Lt(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function jP(t,e,n,r){let i=r.includes(".")?sH(n,r):()=>n[r];if(qn(t)){const o=e[t];kt(o)&&Lr(i,o)}else if(kt(t))Lr(i,t.bind(n));else if(Cn(t))if(Lt(t))t.forEach(o=>jP(o,e,n,r));else{const o=kt(t.handler)?t.handler.bind(n):e[t.handler];kt(o)&&Lr(i,o,t)}}function Bv(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Su(l,c,s,!0)),Su(l,e,s)),Cn(e)&&o.set(e,l),l}function Su(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Su(t,o,n,!0),i&&i.forEach(s=>Su(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=ij[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const ij={data:sx,props:ax,emits:ax,methods:S4,computed:S4,beforeCreate:Yr,created:Yr,beforeMount:Yr,mounted:Yr,beforeUpdate:Yr,updated:Yr,beforeDestroy:Yr,beforeUnmount:Yr,destroyed:Yr,unmounted:Yr,activated:Yr,deactivated:Yr,errorCaptured:Yr,serverPrefetch:Yr,components:S4,directives:S4,watch:sj,provide:sx,inject:oj};function sx(t,e){return e?t?function(){return or(kt(t)?t.call(this,this):t,kt(e)?e.call(this,this):e)}:e:t}function oj(t,e){return S4(q_(t),q_(e))}function q_(t){if(Lt(t)){const e={};for(let n=0;n1)return n&&kt(e)?e.call(r&&r.proxy):e}}const YP={},KP=()=>Object.create(YP),ZP=t=>Object.getPrototypeOf(t)===YP;function cj(t,e,n,r=!1){const i={},o=KP();t.propsDefaults=Object.create(null),XP(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:bP(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function uj(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=un(i),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,f]=JP(d,e,!0);or(s,h),f&&a.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Cn(t)&&r.set(t,Nl),Nl;if(Lt(o))for(let u=0;ut[0]==="_"||t==="$stable",$v=t=>Lt(t)?t.map(Go):[Go(t)],fj=(t,e,n)=>{if(e._n)return e;const r=Be((...i)=>$v(e(...i)),n);return r._c=!1,r},tH=(t,e,n)=>{const r=t._ctx;for(const i in t){if(eH(i))continue;const o=t[i];if(kt(o))e[i]=fj(i,o,r);else if(o!=null){const s=$v(o);e[i]=()=>s}}},nH=(t,e)=>{const n=$v(e);t.slots.default=()=>n},rH=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},pj=(t,e,n)=>{const r=t.slots=KP();if(t.vnode.shapeFlag&32){const i=e._;i?(rH(r,e,n),n&&Jk(r,"_",i,!0)):tH(e,r)}else e&&nH(t,e)},hj=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=Rn;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:rH(i,e,n):(o=!e.$stable,tH(e,i)),s=e}else e&&(nH(t,e),s={default:1});if(o)for(const a in i)!eH(a)&&s[a]==null&&delete i[a]},mr=Aj;function Tj(t){return mj(t)}function mj(t,e){const n=eP();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:f=Jo,insertStaticContent:m}=t,T=(W,j,oe,_e=null,ye=null,le=null,De=void 0,Ce=null,Oe=!!j.dynamicChildren)=>{if(W===j)return;W&&!Ia(W,j)&&(_e=z(W),pe(W,ye,le,!0),W=null),j.patchFlag===-2&&(Oe=!1,j.dynamicChildren=null);const{type:He,ref:X,shapeFlag:q}=j;switch(He){case Yd:Q(W,j,oe,_e);break;case Hr:_(W,j,oe,_e);break;case ru:W==null&&v(j,oe,_e,De);break;case ze:N(W,j,oe,_e,ye,le,De,Ce,Oe);break;default:q&1?E(W,j,oe,_e,ye,le,De,Ce,Oe):q&6?V(W,j,oe,_e,ye,le,De,Ce,Oe):(q&64||q&128)&&He.process(W,j,oe,_e,ye,le,De,Ce,Oe,Se)}X!=null&&ye&&$_(X,W&&W.ref,le,j||W,!j)},Q=(W,j,oe,_e)=>{if(W==null)r(j.el=a(j.children),oe,_e);else{const ye=j.el=W.el;j.children!==W.children&&c(ye,j.children)}},_=(W,j,oe,_e)=>{W==null?r(j.el=l(j.children||""),oe,_e):j.el=W.el},v=(W,j,oe,_e)=>{[W.el,W.anchor]=m(W.children,j,oe,_e,W.el,W.anchor)},y=({el:W,anchor:j},oe,_e)=>{let ye;for(;W&&W!==j;)ye=h(W),r(W,oe,_e),W=ye;r(j,oe,_e)},b=({el:W,anchor:j})=>{let oe;for(;W&&W!==j;)oe=h(W),i(W),W=oe;i(j)},E=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{j.type==="svg"?De="svg":j.type==="math"&&(De="mathml"),W==null?x(j,oe,_e,ye,le,De,Ce,Oe):C(W,j,ye,le,De,Ce,Oe)},x=(W,j,oe,_e,ye,le,De,Ce)=>{let Oe,He;const{props:X,shapeFlag:q,transition:Te,dirs:fe}=W;if(Oe=W.el=s(W.type,le,X&&X.is,X),q&8?u(Oe,W.children):q&16&&M(W.children,Oe,null,_e,ye,cf(W,le),De,Ce),fe&&d1(W,null,_e,"created"),L(Oe,W,W.scopeId,De,_e),X){for(const Me in X)Me!=="value"&&!M4(Me)&&o(Oe,Me,null,X[Me],le,_e);"value"in X&&o(Oe,"value",null,X.value,le),(He=X.onVnodeBeforeMount)&&Bi(He,_e,W)}fe&&d1(W,null,_e,"beforeMount");const ve=gj(ye,Te);ve&&Te.beforeEnter(Oe),r(Oe,j,oe),((He=X&&X.onVnodeMounted)||ve||fe)&&mr(()=>{He&&Bi(He,_e,W),ve&&Te.enter(Oe),fe&&d1(W,null,_e,"mounted")},ye)},L=(W,j,oe,_e,ye)=>{if(oe&&f(W,oe),_e)for(let le=0;le<_e.length;le++)f(W,_e[le]);if(ye){let le=ye.subTree;if(j===le||Cu(le.type)&&(le.ssContent===j||le.ssFallback===j)){const De=ye.vnode;L(W,De,De.scopeId,De.slotScopeIds,ye.parent)}}},M=(W,j,oe,_e,ye,le,De,Ce,Oe=0)=>{for(let He=Oe;He{const Ce=j.el=W.el;let{patchFlag:Oe,dynamicChildren:He,dirs:X}=j;Oe|=W.patchFlag&16;const q=W.props||Rn,Te=j.props||Rn;let fe;if(oe&&f1(oe,!1),(fe=Te.onVnodeBeforeUpdate)&&Bi(fe,oe,j,W),X&&d1(j,W,oe,"beforeUpdate"),oe&&f1(oe,!0),(q.innerHTML&&Te.innerHTML==null||q.textContent&&Te.textContent==null)&&u(Ce,""),He?A(W.dynamicChildren,He,Ce,oe,_e,cf(j,ye),le):De||G(W,j,Ce,null,oe,_e,cf(j,ye),le,!1),Oe>0){if(Oe&16)I(Ce,q,Te,oe,ye);else if(Oe&2&&q.class!==Te.class&&o(Ce,"class",null,Te.class,ye),Oe&4&&o(Ce,"style",q.style,Te.style,ye),Oe&8){const ve=j.dynamicProps;for(let Me=0;Me{fe&&Bi(fe,oe,j,W),X&&d1(j,W,oe,"updated")},_e)},A=(W,j,oe,_e,ye,le,De)=>{for(let Ce=0;Ce{if(j!==oe){if(j!==Rn)for(const le in j)!M4(le)&&!(le in oe)&&o(W,le,j[le],null,ye,_e);for(const le in oe){if(M4(le))continue;const De=oe[le],Ce=j[le];De!==Ce&&le!=="value"&&o(W,le,Ce,De,ye,_e)}"value"in oe&&o(W,"value",j.value,oe.value,ye)}},N=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{const He=j.el=W?W.el:a(""),X=j.anchor=W?W.anchor:a("");let{patchFlag:q,dynamicChildren:Te,slotScopeIds:fe}=j;fe&&(Ce=Ce?Ce.concat(fe):fe),W==null?(r(He,oe,_e),r(X,oe,_e),M(j.children||[],oe,X,ye,le,De,Ce,Oe)):q>0&&q&64&&Te&&W.dynamicChildren?(A(W.dynamicChildren,Te,oe,ye,le,De,Ce),(j.key!=null||ye&&j===ye.subTree)&&Uv(W,j,!0)):G(W,j,oe,X,ye,le,De,Ce,Oe)},V=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{j.slotScopeIds=Ce,W==null?j.shapeFlag&512?ye.ctx.activate(j,oe,_e,De,Oe):R(j,oe,_e,ye,le,De,Oe):B(W,j,Oe)},R=(W,j,oe,_e,ye,le,De)=>{const Ce=W.component=Dj(W,_e,ye);if(qd(W)&&(Ce.ctx.renderer=Se),Ij(Ce,!1,De),Ce.asyncDep){if(ye&&ye.registerDep(Ce,F,De),!W.el){const Oe=Ce.subTree=ae(Hr);_(null,Oe,j,oe)}}else F(Ce,W,j,oe,ye,le,De)},B=(W,j,oe)=>{const _e=j.component=W.component;if(Lj(W,j,oe))if(_e.asyncDep&&!_e.asyncResolved){U(_e,j,oe);return}else _e.next=j,_e.update();else j.el=W.el,_e.vnode=j},F=(W,j,oe,_e,ye,le,De)=>{const Ce=()=>{if(W.isMounted){let{next:q,bu:Te,u:fe,parent:ve,vnode:Me}=W;{const it=iH(W);if(it){q&&(q.el=Me.el,U(W,q,De)),it.asyncDep.then(()=>{W.isUnmounted||Ce()});return}}let Ie=q,Fe;f1(W,!1),q?(q.el=Me.el,U(W,q,De)):q=Me,Te&&Il(Te),(Fe=q.props&&q.props.onVnodeBeforeUpdate)&&Bi(Fe,ve,q,Me),f1(W,!0);const qe=uf(W),ot=W.subTree;W.subTree=qe,T(ot,qe,d(ot.el),z(ot),W,ye,le),q.el=qe.el,Ie===null&&Cj(W,qe.el),fe&&mr(fe,ye),(Fe=q.props&&q.props.onVnodeUpdated)&&mr(()=>Bi(Fe,ve,q,Me),ye)}else{let q;const{el:Te,props:fe}=j,{bm:ve,m:Me,parent:Ie,root:Fe,type:qe}=W,ot=J1(j);if(f1(W,!1),ve&&Il(ve),!ot&&(q=fe&&fe.onVnodeBeforeMount)&&Bi(q,Ie,j),f1(W,!0),Te&&se){const it=()=>{W.subTree=uf(W),se(Te,W.subTree,W,ye,null)};ot&&qe.__asyncHydrate?qe.__asyncHydrate(Te,W,it):it()}else{Fe.ce&&Fe.ce._injectChildStyle(qe);const it=W.subTree=uf(W);T(null,it,oe,_e,W,ye,le),j.el=it.el}if(Me&&mr(Me,ye),!ot&&(q=fe&&fe.onVnodeMounted)){const it=j;mr(()=>Bi(q,Ie,it),ye)}(j.shapeFlag&256||Ie&&J1(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&W.a&&mr(W.a,ye),W.isMounted=!0,j=oe=_e=null}};W.scope.on();const Oe=W.effect=new sP(Ce);W.scope.off();const He=W.update=Oe.run.bind(Oe),X=W.job=Oe.runIfDirty.bind(Oe);X.i=W,X.id=W.uid,Oe.scheduler=()=>Vv(X),f1(W,!0),He()},U=(W,j,oe)=>{j.component=W;const _e=W.vnode.props;W.vnode=j,W.next=null,uj(W,j.props,_e,oe),hj(W,j.children,oe),Ja(),JE(W),e1()},G=(W,j,oe,_e,ye,le,De,Ce,Oe=!1)=>{const He=W&&W.children,X=W?W.shapeFlag:0,q=j.children,{patchFlag:Te,shapeFlag:fe}=j;if(Te>0){if(Te&128){Y(He,q,oe,_e,ye,le,De,Ce,Oe);return}else if(Te&256){Z(He,q,oe,_e,ye,le,De,Ce,Oe);return}}fe&8?(X&16&&Ee(He,ye,le),q!==He&&u(oe,q)):X&16?fe&16?Y(He,q,oe,_e,ye,le,De,Ce,Oe):Ee(He,ye,le,!0):(X&8&&u(oe,""),fe&16&&M(q,oe,_e,ye,le,De,Ce,Oe))},Z=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{W=W||Nl,j=j||Nl;const He=W.length,X=j.length,q=Math.min(He,X);let Te;for(Te=0;TeX?Ee(W,ye,le,!0,!1,q):M(j,oe,_e,ye,le,De,Ce,Oe,q)},Y=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{let He=0;const X=j.length;let q=W.length-1,Te=X-1;for(;He<=q&&He<=Te;){const fe=W[He],ve=j[He]=Oe?Ca(j[He]):Go(j[He]);if(Ia(fe,ve))T(fe,ve,oe,null,ye,le,De,Ce,Oe);else break;He++}for(;He<=q&&He<=Te;){const fe=W[q],ve=j[Te]=Oe?Ca(j[Te]):Go(j[Te]);if(Ia(fe,ve))T(fe,ve,oe,null,ye,le,De,Ce,Oe);else break;q--,Te--}if(He>q){if(He<=Te){const fe=Te+1,ve=feTe)for(;He<=q;)pe(W[He],ye,le,!0),He++;else{const fe=He,ve=He,Me=new Map;for(He=ve;He<=Te;He++){const pt=j[He]=Oe?Ca(j[He]):Go(j[He]);pt.key!=null&&Me.set(pt.key,He)}let Ie,Fe=0;const qe=Te-ve+1;let ot=!1,it=0;const $e=new Array(qe);for(He=0;He=qe){pe(pt,ye,le,!0);continue}let ht;if(pt.key!=null)ht=Me.get(pt.key);else for(Ie=ve;Ie<=Te;Ie++)if($e[Ie-ve]===0&&Ia(pt,j[Ie])){ht=Ie;break}ht===void 0?pe(pt,ye,le,!0):($e[ht-ve]=He+1,ht>=it?it=ht:ot=!0,T(pt,j[ht],oe,null,ye,le,De,Ce,Oe),Fe++)}const Ot=ot?_j($e):Nl;for(Ie=Ot.length-1,He=qe-1;He>=0;He--){const pt=ve+He,ht=j[pt],Tt=pt+1{const{el:le,type:De,transition:Ce,children:Oe,shapeFlag:He}=W;if(He&6){ee(W.component.subTree,j,oe,_e);return}if(He&128){W.suspense.move(j,oe,_e);return}if(He&64){De.move(W,j,oe,Se);return}if(De===ze){r(le,j,oe);for(let q=0;qCe.enter(le),ye);else{const{leave:q,delayLeave:Te,afterLeave:fe}=Ce,ve=()=>r(le,j,oe),Me=()=>{q(le,()=>{ve(),fe&&fe()})};Te?Te(le,ve,Me):Me()}else r(le,j,oe)},pe=(W,j,oe,_e=!1,ye=!1)=>{const{type:le,props:De,ref:Ce,children:Oe,dynamicChildren:He,shapeFlag:X,patchFlag:q,dirs:Te,cacheIndex:fe}=W;if(q===-2&&(ye=!1),Ce!=null&&$_(Ce,null,oe,W,!0),fe!=null&&(j.renderCache[fe]=void 0),X&256){j.ctx.deactivate(W);return}const ve=X&1&&Te,Me=!J1(W);let Ie;if(Me&&(Ie=De&&De.onVnodeBeforeUnmount)&&Bi(Ie,j,W),X&6)ce(W.component,oe,_e);else{if(X&128){W.suspense.unmount(oe,_e);return}ve&&d1(W,null,j,"beforeUnmount"),X&64?W.type.remove(W,j,oe,Se,_e):He&&!He.hasOnce&&(le!==ze||q>0&&q&64)?Ee(He,j,oe,!1,!0):(le===ze&&q&384||!ye&&X&16)&&Ee(Oe,j,oe),_e&&K(W)}(Me&&(Ie=De&&De.onVnodeUnmounted)||ve)&&mr(()=>{Ie&&Bi(Ie,j,W),ve&&d1(W,null,j,"unmounted")},oe)},K=W=>{const{type:j,el:oe,anchor:_e,transition:ye}=W;if(j===ze){$(oe,_e);return}if(j===ru){b(W);return}const le=()=>{i(oe),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(W.shapeFlag&1&&ye&&!ye.persisted){const{leave:De,delayLeave:Ce}=ye,Oe=()=>De(oe,le);Ce?Ce(W.el,le,Oe):Oe()}else le()},$=(W,j)=>{let oe;for(;W!==j;)oe=h(W),i(W),W=oe;i(j)},ce=(W,j,oe)=>{const{bum:_e,scope:ye,job:le,subTree:De,um:Ce,m:Oe,a:He}=W;Lu(Oe),Lu(He),_e&&Il(_e),ye.stop(),le&&(le.flags|=8,pe(De,W,j,oe)),Ce&&mr(Ce,j),mr(()=>{W.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},Ee=(W,j,oe,_e=!1,ye=!1,le=0)=>{for(let De=le;De{if(W.shapeFlag&6)return z(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const j=h(W.anchor||W.el),oe=j&&j[RP];return oe?h(oe):j};let re=!1;const he=(W,j,oe)=>{W==null?j._vnode&&pe(j._vnode,null,null,!0):T(j._vnode||null,W,j,null,null,null,oe),j._vnode=W,re||(re=!0,JE(),wP(),re=!1)},Se={p:T,um:pe,m:ee,r:K,mt:R,mc:M,pc:G,pbc:A,n:z,o:t};let we,se;return{render:he,hydrate:we,createApp:lj(he,we)}}function cf({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function f1({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function gj(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Uv(t,e,n=!1){const r=t.children,i=e.children;if(Lt(r)&&Lt(i))for(let o=0;o>1,t[n[a]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function iH(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:iH(e)}function Lu(t){if(t)for(let e=0;eXi(Qj);function Lr(t,e,n){return oH(t,e,n)}function oH(t,e,n=Rn){const{immediate:r,deep:i,flush:o,once:s}=n,a=or({},n);let l;if(Kd)if(o==="sync"){const h=vj();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!e||r)a.once=!0;else{const h=()=>{};return h.stop=Jo,h.resume=Jo,h.pause=Jo,h}const c=Sr;a.call=(h,f,m)=>Eo(h,c,f,m);let u=!1;o==="post"?a.scheduler=h=>{mr(h,c&&c.suspense)}:o!=="sync"&&(u=!0,a.scheduler=(h,f)=>{f?h():Vv(h)}),a.augmentJob=h=>{e&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Nz(t,e,a);return l&&l.push(d),d}function yj(t,e,n){const r=this.proxy,i=qn(t)?t.includes(".")?sH(r,t):()=>r[t]:t.bind(r,r);let o;kt(e)?o=e:(o=e.handler,n=e);const s=x0(this),a=oH(i,o.bind(r),n);return s(),a}function sH(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;ie==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${to(e)}Modifiers`]||t[`${Xa(e)}Modifiers`];function Ej(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Rn;let i=n;const o=e.startsWith("update:"),s=o&&bj(r,e.slice(7));s&&(s.trim&&(i=n.map(u=>qn(u)?u.trim():u)),s.number&&(i=n.map(vu)));let a,l=r[a=tu(e)]||r[a=tu(to(e))];!l&&o&&(l=r[a=tu(Xa(e))]),l&&Eo(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Eo(c,t,6,i)}}function aH(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!kt(t)){const l=c=>{const u=aH(c,e,!0);u&&(a=!0,or(s,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(Cn(t)&&r.set(t,null),null):(Lt(o)?o.forEach(l=>s[l]=null):or(s,o),Cn(t)&&r.set(t,s),s)}function Wd(t,e){return!t||!Id(e)?!1:(e=e.slice(2).replace(/Once$/,""),Tn(t,e[0].toLowerCase()+e.slice(1))||Tn(t,Xa(e))||Tn(t,e))}function uf(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:f,ctx:m,inheritAttrs:T}=t,Q=xu(t);let _,v;try{if(n.shapeFlag&4){const b=i||r,E=b;_=Go(c.call(E,b,u,d,f,h,m)),v=a}else{const b=e;_=Go(b.length>1?b(d,{attrs:a,slots:s,emit:l}):b(d,null)),v=e.props?a:xj(a)}}catch(b){N4.length=0,Gd(b,t,1),_=ae(Hr)}let y=_;if(v&&T!==!1){const b=Object.keys(v),{shapeFlag:E}=y;b.length&&E&7&&(o&&b.some(Av)&&(v=Sj(v,o)),y=Xs(y,v,!1,!0))}return n.dirs&&(y=Xs(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Wa(y,n.transition),_=y,xu(Q),_}const xj=t=>{let e;for(const n in t)(n==="class"||n==="style"||Id(n))&&((e||(e={}))[n]=t[n]);return e},Sj=(t,e)=>{const n={};for(const r in t)(!Av(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Lj(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?cx(r,s,c):!!s;if(l&8){const u=e.dynamicProps;for(let d=0;dt.__isSuspense;function Aj(t,e){e&&e.pendingBranch?Lt(t)?e.effects.push(...t):e.effects.push(t):kz(t)}const ze=Symbol.for("v-fgt"),Yd=Symbol.for("v-txt"),Hr=Symbol.for("v-cmt"),ru=Symbol.for("v-stc"),N4=[];let Ci=null;function k(t=!1){N4.push(Ci=t?null:[])}function wj(){N4.pop(),Ci=N4[N4.length-1]||null}let J4=1;function ux(t){J4+=t,t<0&&Ci&&(Ci.hasOnce=!0)}function lH(t){return t.dynamicChildren=J4>0?Ci||Nl:null,wj(),J4>0&&Ci&&Ci.push(t),t}function P(t,e,n,r,i,o){return lH(g(t,e,n,r,i,o,!0))}function wt(t,e,n,r,i){return lH(ae(t,e,n,r,i,!0))}function zl(t){return t?t.__v_isVNode===!0:!1}function Ia(t,e){return t.type===e.type&&t.key===e.key}const cH=({key:t})=>t??null,iu=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?qn(t)||ur(t)||kt(t)?{i:_r,r:t,k:e,f:!!n}:t:null);function g(t,e=null,n=null,r=0,i=null,o=t===ze?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&cH(e),ref:e&&iu(e),scopeId:OP,slotScopeIds:null,children:n,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_r};return a?(Gv(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=qn(n)?8:16),J4>0&&!s&&Ci&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ci.push(l),l}const ae=Mj;function Mj(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===GP)&&(t=Hr),zl(t)){const a=Xs(t,e,!0);return n&&Gv(a,n),J4>0&&!o&&Ci&&(a.shapeFlag&6?Ci[Ci.indexOf(t)]=a:Ci.push(a)),a.patchFlag=-2,a}if(Vj(t)&&(t=t.__vccOpts),e){e=Oj(e);let{class:a,style:l}=e;a&&!qn(a)&&(e.class=We(a)),Cn(l)&&(kv(l)&&!Lt(l)&&(l=or({},l)),e.style=bn(l))}const s=qn(t)?1:Cu(t)?128:NP(t)?64:Cn(t)?4:kt(t)?2:0;return g(t,e,n,r,i,s,o,!0)}function Oj(t){return t?kv(t)||ZP(t)?or({},t):t:null}function Xs(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=t,c=e?uH(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&cH(c),ref:e&&e.ref?n&&o?Lt(o)?o.concat(iu(e)):[o,iu(e)]:iu(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ze?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Xs(t.ssContent),ssFallback:t.ssFallback&&Xs(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Wa(u,l.clone(u)),u}function nt(t=" ",e=0){return ae(Yd,null,t,e)}function jl(t,e){const n=ae(ru,null,t);return n.staticCount=e,n}function ie(t="",e=!1){return e?(k(),wt(Hr,null,t)):ae(Hr,null,t)}function Go(t){return t==null||typeof t=="boolean"?ae(Hr):Lt(t)?ae(ze,null,t.slice()):zl(t)?Ca(t):ae(Yd,null,String(t))}function Ca(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Xs(t)}function Gv(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Lt(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Gv(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!ZP(e)?e._ctx=_r:i===3&&_r&&(_r.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else kt(e)?(e={default:e,_ctx:_r},n=32):(e=String(e),r&64?(n=16,e=[nt(e)]):n=8);t.children=e,t.shapeFlag|=n}function uH(...t){const e={};for(let n=0;nSr||_r;let Au,j_;{const t=eP(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Au=e("__VUE_INSTANCE_SETTERS__",n=>Sr=n),j_=e("__VUE_SSR_SETTERS__",n=>Kd=n)}const x0=t=>{const e=Sr;return Au(t),t.scope.on(),()=>{t.scope.off(),Au(e)}},dx=()=>{Sr&&Sr.scope.off(),Au(null)};function dH(t){return t.vnode.shapeFlag&4}let Kd=!1;function Ij(t,e=!1,n=!1){e&&j_(e);const{props:r,children:i}=t.vnode,o=dH(t);cj(t,r,o,e),pj(t,i,n);const s=o?kj(t,e):void 0;return e&&j_(!1),s}function kj(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,tj);const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?Hj(t):null,o=x0(t);Ja();const s=b0(r,t,0,[t.props,i]);if(e1(),o(),Kk(s)){if(J1(t)||FP(t),s.then(dx,dx),e)return s.then(a=>{fx(t,a,e)}).catch(a=>{Gd(a,t,0)});t.asyncDep=s}else fx(t,s,e)}else fH(t,e)}function fx(t,e,n){kt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Cn(e)&&(t.setupState=SP(e)),fH(t,n)}let px;function fH(t,e,n){const r=t.type;if(!t.render){if(!e&&px&&!r.render){const i=r.template||Bv(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=or(or({isCustomElement:o,delimiters:a},s),l);r.render=px(i,c)}}t.render=r.render||Jo}{const i=x0(t);Ja();try{nj(t)}finally{e1(),i()}}}const Pj={get(t,e){return Fr(t,"get",""),t[e]}};function Hj(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Pj),slots:t.slots,emit:t.emit,expose:e}}function Zd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(SP(Ud(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in R4)return R4[n](t)},has(e,n){return n in e||n in R4}})):t.proxy}function W_(t,e=!0){return kt(t)?t.displayName||t.name:t.name||e&&t.__name}function Vj(t){return kt(t)&&"__vccOpts"in t}const vt=(t,e)=>Oz(t,e,Kd);function zv(t,e,n){const r=arguments.length;return r===2?Cn(e)&&!Lt(e)?zl(e)?ae(t,null,[e]):ae(t,e):ae(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zl(n)&&(n=[n]),ae(t,e,n))}const Fj="3.5.10";/** +**/function b0(t,e,n,r){try{return r?t(...r):t()}catch(i){Gd(i,e,n)}}function Eo(t,e,n,r){if(kt(t)){const i=b0(t,e,n,r);return i&&Kk(i)&&i.catch(o=>{Gd(o,e,n)}),i}if(Lt(t)){const i=[];for(let o=0;o>>1,i=Xr[r],o=Z4(i);o=Z4(n)?Xr.push(t):Xr.splice(Iz(e),0,t),t.flags|=1,AP()}}function AP(){!K4&&!F_&&(F_=!0,Hv=CP.then(MP))}function kz(t){Lt(t)?Pl.push(...t):Sa&&t.id===-1?Sa.splice(xl+1,0,t):t.flags&1||(Pl.push(t),t.flags|=1),AP()}function JE(t,e,n=K4?$o+1:0){for(;nZ4(n)-Z4(r));if(Pl.length=0,Sa){Sa.push(...e);return}for(Sa=e,xl=0;xlt.id==null?t.flags&2?-1:1/0:t.id;function MP(t){F_=!1,K4=!0;try{for($o=0;$o{r._d&&ux(-1);const o=xu(e);let s;try{s=t(...i)}finally{xu(o),r._d&&ux(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function te(t,e){if(_r===null)return t;const n=Zd(_r),r=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport,O4=t=>t&&(t.disabled||t.disabled===""),Pz=t=>t&&(t.defer||t.defer===""),ex=t=>typeof SVGElement<"u"&&t instanceof SVGElement,tx=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,B_=(t,e)=>{const n=t&&t.to;return qn(n)?e?e(n):null:n},Hz={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:f,querySelector:m,createText:T,createComment:Q}}=c,_=O4(e.props);let{shapeFlag:v,children:y,dynamicChildren:b}=e;if(t==null){const E=e.el=T(""),x=e.anchor=T("");f(E,n,r),f(x,n,r);const L=(C,A)=>{v&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),u(y,C,A,i,o,s,a,l))},M=()=>{const C=e.target=B_(e.props,m),A=DP(C,e,T,f);C&&(s!=="svg"&&ex(C)?s="svg":s!=="mathml"&&tx(C)&&(s="mathml"),_||(L(C,A),nu(e)))};_&&(L(n,x),nu(e)),Pz(e.props)?mr(M,o):M()}else{e.el=t.el,e.targetStart=t.targetStart;const E=e.anchor=t.anchor,x=e.target=t.target,L=e.targetAnchor=t.targetAnchor,M=O4(t.props),C=M?n:x,A=M?E:L;if(s==="svg"||ex(x)?s="svg":(s==="mathml"||tx(x))&&(s="mathml"),b?(h(t.dynamicChildren,b,C,i,o,s,a),Uv(t,e,!0)):l||d(t,e,C,A,i,o,s,a,!1),_)M?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):C6(e,n,E,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const I=e.target=B_(e.props,m);I&&C6(e,I,null,c,0)}else M&&C6(e,x,L,c,1);nu(e)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=t;if(d&&(i(c),i(u)),o&&i(l),s&16){const f=o||!O4(h);for(let m=0;m{t.isMounted=!0}),Oc(()=>{t.isUnmounting=!0}),t}const Hi=[Function,Array],kP={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hi,onEnter:Hi,onAfterEnter:Hi,onEnterCancelled:Hi,onBeforeLeave:Hi,onLeave:Hi,onAfterLeave:Hi,onLeaveCancelled:Hi,onBeforeAppear:Hi,onAppear:Hi,onAfterAppear:Hi,onAppearCancelled:Hi},PP=t=>{const e=t.subTree;return e.component?PP(e.component):e},Bz={name:"BaseTransition",props:kP,setup(t,{slots:e}){const n=qv(),r=IP();return()=>{const i=e.default&&Fv(e.default(),!0);if(!i||!i.length)return;const o=HP(i),s=un(t),{mode:a}=s;if(r.isLeaving)return sf(o);const l=nx(o);if(!l)return sf(o);let c=X4(l,s,r,n,h=>c=h);l.type!==Hr&&Wa(l,c);const u=n.subTree,d=u&&nx(u);if(d&&d.type!==Hr&&!Ia(l,d)&&PP(n).type!==Hr){const h=X4(d,s,r,n);if(Wa(d,h),a==="out-in"&&l.type!==Hr)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave},sf(o);a==="in-out"&&l.type!==Hr&&(h.delayLeave=(f,m,T)=>{const Q=VP(r,d);Q[String(d.key)]=d,f[La]=()=>{m(),f[La]=void 0,delete c.delayedLeave},c.delayedLeave=T})}return o}}};function HP(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Hr){e=n;break}}return e}const $z=Bz;function VP(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function X4(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:T,onBeforeAppear:Q,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=e,b=String(t.key),E=VP(n,t),x=(C,A)=>{C&&Eo(C,r,9,A)},L=(C,A)=>{const I=A[1];x(C,A),Lt(C)?C.every(N=>N.length<=1)&&I():C.length<=1&&I()},M={mode:s,persisted:a,beforeEnter(C){let A=l;if(!n.isMounted)if(o)A=Q||l;else return;C[La]&&C[La](!0);const I=E[b];I&&Ia(t,I)&&I.el[La]&&I.el[La](),x(A,[C])},enter(C){let A=c,I=u,N=d;if(!n.isMounted)if(o)A=_||c,I=v||u,N=y||d;else return;let V=!1;const R=C[A6]=B=>{V||(V=!0,B?x(N,[C]):x(I,[C]),M.delayedLeave&&M.delayedLeave(),C[A6]=void 0)};A?L(A,[C,R]):R()},leave(C,A){const I=String(t.key);if(C[A6]&&C[A6](!0),n.isUnmounting)return A();x(h,[C]);let N=!1;const V=C[La]=R=>{N||(N=!0,A(),R?x(T,[C]):x(m,[C]),C[La]=void 0,E[I]===t&&delete E[I])};E[I]=t,f?L(f,[C,V]):V()},clone(C){const A=X4(C,e,n,r,i);return i&&i(A),A}};return M}function sf(t){if(qd(t))return t=Xs(t),t.children=null,t}function nx(t){if(!qd(t))return NP(t.type)&&t.children?HP(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&kt(n.default))return n.default()}}function Wa(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Wa(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Fv(t,e=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o$_(m,e&&(Lt(e)?e[T]:e),n,r,i));return}if(J1(r)&&!i)return;const o=r.shapeFlag&4?Zd(r.component):r.el,s=i?null:o,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Rn?a.refs={}:a.refs,d=a.setupState,h=un(d),f=d===Rn?()=>!1:m=>Tn(h,m);if(c!=null&&c!==l&&(qn(c)?(u[c]=null,f(c)&&(d[c]=null)):ur(c)&&(c.value=null)),kt(l))b0(l,a,12,[s,u]);else{const m=qn(l),T=ur(l);if(m||T){const Q=()=>{if(t.f){const _=m?f(l)?d[l]:u[l]:l.value;i?Lt(_)&&wv(_,o):Lt(_)?_.includes(o)||_.push(o):m?(u[l]=[o],f(l)&&(d[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else m?(u[l]=s,f(l)&&(d[l]=s)):T&&(l.value=s,t.k&&(u[t.k]=s))};s?(Q.id=-1,mr(Q,n)):Q()}}}const J1=t=>!!t.type.__asyncLoader,qd=t=>t.type.__isKeepAlive,Uz={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=qv(),r=n.ctx;if(!r.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,h=d("div");r.activate=(v,y,b,E,x)=>{const L=v.component;c(v,y,b,0,a),l(L.vnode,v,y,b,L,a,E,v.slotScopeIds,x),mr(()=>{L.isDeactivated=!1,L.a&&Il(L.a);const M=v.props&&v.props.onVnodeMounted;M&&Bi(M,L.parent,v)},a)},r.deactivate=v=>{const y=v.component;Lu(y.m),Lu(y.a),c(v,h,null,1,a),mr(()=>{y.da&&Il(y.da);const b=v.props&&v.props.onVnodeUnmounted;b&&Bi(b,y.parent,v),y.isDeactivated=!0},a)};function f(v){af(v),u(v,n,a,!0)}function m(v){i.forEach((y,b)=>{const E=W_(y.type);E&&!v(E)&&T(b)})}function T(v){const y=i.get(v);y&&(!s||!Ia(y,s))?f(y):s&&af(s),i.delete(v),o.delete(v)}Lr(()=>[t.include,t.exclude],([v,y])=>{v&&m(b=>x4(v,b)),y&&m(b=>!x4(y,b))},{flush:"post",deep:!0});let Q=null;const _=()=>{Q!=null&&(Cu(n.subTree.type)?mr(()=>{i.set(Q,w6(n.subTree))},n.subTree.suspense):i.set(Q,w6(n.subTree)))};return ls(_),E0(_),Oc(()=>{i.forEach(v=>{const{subTree:y,suspense:b}=n,E=w6(y);if(v.type===E.type&&v.key===E.key){af(E);const x=E.component.da;x&&mr(x,b);return}f(v)})}),()=>{if(Q=null,!e.default)return s=null;const v=e.default(),y=v[0];if(v.length>1)return s=null,v;if(!zl(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return s=null,y;let b=w6(y);if(b.type===Hr)return s=null,b;const E=b.type,x=W_(J1(b)?b.type.__asyncResolved||{}:E),{include:L,exclude:M,max:C}=t;if(L&&(!x||!x4(L,x))||M&&x&&x4(M,x))return b.shapeFlag&=-257,s=b,y;const A=b.key==null?E:b.key,I=i.get(A);return b.el&&(b=Xs(b),y.shapeFlag&128&&(y.ssContent=b)),Q=A,I?(b.el=I.el,b.component=I.component,b.transition&&Wa(b,b.transition),b.shapeFlag|=512,o.delete(A),o.add(A)):(o.add(A),C&&o.size>parseInt(C,10)&&T(o.values().next().value)),b.shapeFlag|=256,s=b,Cu(y.type)?y:b}}},Gz=Uz;function x4(t,e){return Lt(t)?t.some(n=>x4(n,e)):qn(t)?t.split(",").includes(e):Vq(t)?(t.lastIndex=0,t.test(e)):!1}function qz(t,e){BP(t,"a",e)}function zz(t,e){BP(t,"da",e)}function BP(t,e,n=Sr){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(zd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)qd(i.parent.vnode)&&jz(r,e,n,i),i=i.parent}}function jz(t,e,n,r){const i=zd(e,t,r,!0);$P(()=>{wv(r[e],i)},n)}function af(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function w6(t){return t.shapeFlag&128?t.ssContent:t}function zd(t,e,n=Sr,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{Ja();const a=x0(n),l=Eo(e,n,t,s);return a(),e1(),l});return r?i.unshift(o):i.push(o),o}}const ta=t=>(e,n=Sr)=>{(!Kd||t==="sp")&&zd(t,(...r)=>e(...r),n)},Wz=ta("bm"),ls=ta("m"),Yz=ta("bu"),E0=ta("u"),Oc=ta("bum"),$P=ta("um"),Kz=ta("sp"),Zz=ta("rtg"),Xz=ta("rtc");function Jz(t,e=Sr){zd("ec",t,e)}const UP="components";function gt(t,e){return qP(UP,t,!0,e)||t}const GP=Symbol.for("v-ndc");function jd(t){return qn(t)?qP(UP,t,!1)||t:t||GP}function qP(t,e,n=!0,r=!1){const i=_r||Sr;if(i){const o=i.type;{const a=W_(o,!1);if(a&&(a===e||a===to(e)||a===Pd(to(e))))return o}const s=rx(i[t]||o[t],e)||rx(i.appContext[t],e);return!s&&r?o:s}}function rx(t,e){return t&&(t[e]||t[to(e)]||t[Pd(to(e))])}function lt(t,e,n,r){let i;const o=n,s=Lt(t);if(s||qn(t)){const a=s&&kl(t);let l=!1;a&&(l=!Zi(t),t=Vd(t)),i=new Array(t.length);for(let c=0,u=t.length;ce(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,c=a.length;lzl(e)?!(e.type===Hr||e.type===ze&&!zP(e.children)):!0)?t:null}function ej(t,e){const n={};for(const r in t)n[/[A-Z]/.test(r)?`on:${r}`:tu(r)]=t[r];return n}const U_=t=>t?dH(t)?Zd(t):U_(t.parent):null,R4=or(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>U_(t.parent),$root:t=>U_(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Bv(t),$forceUpdate:t=>t.f||(t.f=()=>{Vv(t.update)}),$nextTick:t=>t.n||(t.n=Ke.bind(t.proxy)),$watch:t=>yj.bind(t)}),lf=(t,e)=>t!==Rn&&!t.__isScriptSetup&&Tn(t,e),tj={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const f=s[e];if(f!==void 0)switch(f){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(lf(r,e))return s[e]=1,r[e];if(i!==Rn&&Tn(i,e))return s[e]=2,i[e];if((c=t.propsOptions[0])&&Tn(c,e))return s[e]=3,o[e];if(n!==Rn&&Tn(n,e))return s[e]=4,n[e];G_&&(s[e]=0)}}const u=R4[e];let d,h;if(u)return e==="$attrs"&&Fr(t.attrs,"get",""),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Rn&&Tn(n,e))return s[e]=4,n[e];if(h=l.config.globalProperties,Tn(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return lf(i,e)?(i[e]=n,!0):r!==Rn&&Tn(r,e)?(r[e]=n,!0):Tn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||t!==Rn&&Tn(t,s)||lf(e,s)||(a=o[0])&&Tn(a,s)||Tn(r,s)||Tn(R4,s)||Tn(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Tn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ix(t){return Lt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let G_=!0;function nj(t){const e=Bv(t),n=t.proxy,r=t.ctx;G_=!1,e.beforeCreate&&ox(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:f,updated:m,activated:T,deactivated:Q,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:E,renderTracked:x,renderTriggered:L,errorCaptured:M,serverPrefetch:C,expose:A,inheritAttrs:I,components:N,directives:V,filters:R}=e;if(c&&rj(c,r,null),s)for(const U in s){const G=s[U];kt(G)&&(r[U]=G.bind(n))}if(i){const U=i.call(n,n);Cn(U)&&(t.data=ni(U))}if(G_=!0,o)for(const U in o){const G=o[U],Z=kt(G)?G.bind(n,n):kt(G.get)?G.get.bind(n,n):Jo,Y=!kt(G)&&kt(G.set)?G.set.bind(n):Jo,ee=vt({get:Z,set:Y});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>ee.value,set:pe=>ee.value=pe})}if(a)for(const U in a)jP(a[U],r,n,U);if(l){const U=kt(l)?l.call(n):l;Reflect.ownKeys(U).forEach(G=>{Vl(G,U[G])})}u&&ox(u,t,"c");function F(U,G){Lt(G)?G.forEach(Z=>U(Z.bind(n))):G&&U(G.bind(n))}if(F(Wz,d),F(ls,h),F(Yz,f),F(E0,m),F(qz,T),F(zz,Q),F(Jz,M),F(Xz,x),F(Zz,L),F(Oc,v),F($P,b),F(Kz,C),Lt(A))if(A.length){const U=t.exposed||(t.exposed={});A.forEach(G=>{Object.defineProperty(U,G,{get:()=>n[G],set:Z=>n[G]=Z})})}else t.exposed||(t.exposed={});E&&t.render===Jo&&(t.render=E),I!=null&&(t.inheritAttrs=I),N&&(t.components=N),V&&(t.directives=V),C&&FP(t)}function rj(t,e,n=Jo){Lt(t)&&(t=q_(t));for(const r in t){const i=t[r];let o;Cn(i)?"default"in i?o=Xi(i.from||r,i.default,!0):o=Xi(i.from||r):o=Xi(i),ur(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function ox(t,e,n){Eo(Lt(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function jP(t,e,n,r){let i=r.includes(".")?sH(n,r):()=>n[r];if(qn(t)){const o=e[t];kt(o)&&Lr(i,o)}else if(kt(t))Lr(i,t.bind(n));else if(Cn(t))if(Lt(t))t.forEach(o=>jP(o,e,n,r));else{const o=kt(t.handler)?t.handler.bind(n):e[t.handler];kt(o)&&Lr(i,o,t)}}function Bv(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Su(l,c,s,!0)),Su(l,e,s)),Cn(e)&&o.set(e,l),l}function Su(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Su(t,o,n,!0),i&&i.forEach(s=>Su(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=ij[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const ij={data:sx,props:ax,emits:ax,methods:S4,computed:S4,beforeCreate:Yr,created:Yr,beforeMount:Yr,mounted:Yr,beforeUpdate:Yr,updated:Yr,beforeDestroy:Yr,beforeUnmount:Yr,destroyed:Yr,unmounted:Yr,activated:Yr,deactivated:Yr,errorCaptured:Yr,serverPrefetch:Yr,components:S4,directives:S4,watch:sj,provide:sx,inject:oj};function sx(t,e){return e?t?function(){return or(kt(t)?t.call(this,this):t,kt(e)?e.call(this,this):e)}:e:t}function oj(t,e){return S4(q_(t),q_(e))}function q_(t){if(Lt(t)){const e={};for(let n=0;n1)return n&&kt(e)?e.call(r&&r.proxy):e}}const YP={},KP=()=>Object.create(YP),ZP=t=>Object.getPrototypeOf(t)===YP;function cj(t,e,n,r=!1){const i={},o=KP();t.propsDefaults=Object.create(null),XP(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:bP(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function uj(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=un(i),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,f]=JP(d,e,!0);or(s,h),f&&a.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Cn(t)&&r.set(t,Nl),Nl;if(Lt(o))for(let u=0;ut[0]==="_"||t==="$stable",$v=t=>Lt(t)?t.map(Go):[Go(t)],fj=(t,e,n)=>{if(e._n)return e;const r=Be((...i)=>$v(e(...i)),n);return r._c=!1,r},tH=(t,e,n)=>{const r=t._ctx;for(const i in t){if(eH(i))continue;const o=t[i];if(kt(o))e[i]=fj(i,o,r);else if(o!=null){const s=$v(o);e[i]=()=>s}}},nH=(t,e)=>{const n=$v(e);t.slots.default=()=>n},rH=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},pj=(t,e,n)=>{const r=t.slots=KP();if(t.vnode.shapeFlag&32){const i=e._;i?(rH(r,e,n),n&&Jk(r,"_",i,!0)):tH(e,r)}else e&&nH(t,e)},hj=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=Rn;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:rH(i,e,n):(o=!e.$stable,tH(e,i)),s=e}else e&&(nH(t,e),s={default:1});if(o)for(const a in i)!eH(a)&&s[a]==null&&delete i[a]},mr=Aj;function Tj(t){return mj(t)}function mj(t,e){const n=eP();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:f=Jo,insertStaticContent:m}=t,T=(W,j,oe,_e=null,ye=null,le=null,De=void 0,Ce=null,Oe=!!j.dynamicChildren)=>{if(W===j)return;W&&!Ia(W,j)&&(_e=z(W),pe(W,ye,le,!0),W=null),j.patchFlag===-2&&(Oe=!1,j.dynamicChildren=null);const{type:He,ref:X,shapeFlag:q}=j;switch(He){case Yd:Q(W,j,oe,_e);break;case Hr:_(W,j,oe,_e);break;case ru:W==null&&v(j,oe,_e,De);break;case ze:N(W,j,oe,_e,ye,le,De,Ce,Oe);break;default:q&1?E(W,j,oe,_e,ye,le,De,Ce,Oe):q&6?V(W,j,oe,_e,ye,le,De,Ce,Oe):(q&64||q&128)&&He.process(W,j,oe,_e,ye,le,De,Ce,Oe,Se)}X!=null&&ye&&$_(X,W&&W.ref,le,j||W,!j)},Q=(W,j,oe,_e)=>{if(W==null)r(j.el=a(j.children),oe,_e);else{const ye=j.el=W.el;j.children!==W.children&&c(ye,j.children)}},_=(W,j,oe,_e)=>{W==null?r(j.el=l(j.children||""),oe,_e):j.el=W.el},v=(W,j,oe,_e)=>{[W.el,W.anchor]=m(W.children,j,oe,_e,W.el,W.anchor)},y=({el:W,anchor:j},oe,_e)=>{let ye;for(;W&&W!==j;)ye=h(W),r(W,oe,_e),W=ye;r(j,oe,_e)},b=({el:W,anchor:j})=>{let oe;for(;W&&W!==j;)oe=h(W),i(W),W=oe;i(j)},E=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{j.type==="svg"?De="svg":j.type==="math"&&(De="mathml"),W==null?x(j,oe,_e,ye,le,De,Ce,Oe):C(W,j,ye,le,De,Ce,Oe)},x=(W,j,oe,_e,ye,le,De,Ce)=>{let Oe,He;const{props:X,shapeFlag:q,transition:Te,dirs:fe}=W;if(Oe=W.el=s(W.type,le,X&&X.is,X),q&8?u(Oe,W.children):q&16&&M(W.children,Oe,null,_e,ye,cf(W,le),De,Ce),fe&&d1(W,null,_e,"created"),L(Oe,W,W.scopeId,De,_e),X){for(const Me in X)Me!=="value"&&!M4(Me)&&o(Oe,Me,null,X[Me],le,_e);"value"in X&&o(Oe,"value",null,X.value,le),(He=X.onVnodeBeforeMount)&&Bi(He,_e,W)}fe&&d1(W,null,_e,"beforeMount");const ve=gj(ye,Te);ve&&Te.beforeEnter(Oe),r(Oe,j,oe),((He=X&&X.onVnodeMounted)||ve||fe)&&mr(()=>{He&&Bi(He,_e,W),ve&&Te.enter(Oe),fe&&d1(W,null,_e,"mounted")},ye)},L=(W,j,oe,_e,ye)=>{if(oe&&f(W,oe),_e)for(let le=0;le<_e.length;le++)f(W,_e[le]);if(ye){let le=ye.subTree;if(j===le||Cu(le.type)&&(le.ssContent===j||le.ssFallback===j)){const De=ye.vnode;L(W,De,De.scopeId,De.slotScopeIds,ye.parent)}}},M=(W,j,oe,_e,ye,le,De,Ce,Oe=0)=>{for(let He=Oe;He{const Ce=j.el=W.el;let{patchFlag:Oe,dynamicChildren:He,dirs:X}=j;Oe|=W.patchFlag&16;const q=W.props||Rn,Te=j.props||Rn;let fe;if(oe&&f1(oe,!1),(fe=Te.onVnodeBeforeUpdate)&&Bi(fe,oe,j,W),X&&d1(j,W,oe,"beforeUpdate"),oe&&f1(oe,!0),(q.innerHTML&&Te.innerHTML==null||q.textContent&&Te.textContent==null)&&u(Ce,""),He?A(W.dynamicChildren,He,Ce,oe,_e,cf(j,ye),le):De||G(W,j,Ce,null,oe,_e,cf(j,ye),le,!1),Oe>0){if(Oe&16)I(Ce,q,Te,oe,ye);else if(Oe&2&&q.class!==Te.class&&o(Ce,"class",null,Te.class,ye),Oe&4&&o(Ce,"style",q.style,Te.style,ye),Oe&8){const ve=j.dynamicProps;for(let Me=0;Me{fe&&Bi(fe,oe,j,W),X&&d1(j,W,oe,"updated")},_e)},A=(W,j,oe,_e,ye,le,De)=>{for(let Ce=0;Ce{if(j!==oe){if(j!==Rn)for(const le in j)!M4(le)&&!(le in oe)&&o(W,le,j[le],null,ye,_e);for(const le in oe){if(M4(le))continue;const De=oe[le],Ce=j[le];De!==Ce&&le!=="value"&&o(W,le,Ce,De,ye,_e)}"value"in oe&&o(W,"value",j.value,oe.value,ye)}},N=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{const He=j.el=W?W.el:a(""),X=j.anchor=W?W.anchor:a("");let{patchFlag:q,dynamicChildren:Te,slotScopeIds:fe}=j;fe&&(Ce=Ce?Ce.concat(fe):fe),W==null?(r(He,oe,_e),r(X,oe,_e),M(j.children||[],oe,X,ye,le,De,Ce,Oe)):q>0&&q&64&&Te&&W.dynamicChildren?(A(W.dynamicChildren,Te,oe,ye,le,De,Ce),(j.key!=null||ye&&j===ye.subTree)&&Uv(W,j,!0)):G(W,j,oe,X,ye,le,De,Ce,Oe)},V=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{j.slotScopeIds=Ce,W==null?j.shapeFlag&512?ye.ctx.activate(j,oe,_e,De,Oe):R(j,oe,_e,ye,le,De,Oe):B(W,j,Oe)},R=(W,j,oe,_e,ye,le,De)=>{const Ce=W.component=Dj(W,_e,ye);if(qd(W)&&(Ce.ctx.renderer=Se),Ij(Ce,!1,De),Ce.asyncDep){if(ye&&ye.registerDep(Ce,F,De),!W.el){const Oe=Ce.subTree=ae(Hr);_(null,Oe,j,oe)}}else F(Ce,W,j,oe,ye,le,De)},B=(W,j,oe)=>{const _e=j.component=W.component;if(Lj(W,j,oe))if(_e.asyncDep&&!_e.asyncResolved){U(_e,j,oe);return}else _e.next=j,_e.update();else j.el=W.el,_e.vnode=j},F=(W,j,oe,_e,ye,le,De)=>{const Ce=()=>{if(W.isMounted){let{next:q,bu:Te,u:fe,parent:ve,vnode:Me}=W;{const it=iH(W);if(it){q&&(q.el=Me.el,U(W,q,De)),it.asyncDep.then(()=>{W.isUnmounted||Ce()});return}}let Ie=q,Fe;f1(W,!1),q?(q.el=Me.el,U(W,q,De)):q=Me,Te&&Il(Te),(Fe=q.props&&q.props.onVnodeBeforeUpdate)&&Bi(Fe,ve,q,Me),f1(W,!0);const qe=uf(W),ot=W.subTree;W.subTree=qe,T(ot,qe,d(ot.el),z(ot),W,ye,le),q.el=qe.el,Ie===null&&Cj(W,qe.el),fe&&mr(fe,ye),(Fe=q.props&&q.props.onVnodeUpdated)&&mr(()=>Bi(Fe,ve,q,Me),ye)}else{let q;const{el:Te,props:fe}=j,{bm:ve,m:Me,parent:Ie,root:Fe,type:qe}=W,ot=J1(j);if(f1(W,!1),ve&&Il(ve),!ot&&(q=fe&&fe.onVnodeBeforeMount)&&Bi(q,Ie,j),f1(W,!0),Te&&se){const it=()=>{W.subTree=uf(W),se(Te,W.subTree,W,ye,null)};ot&&qe.__asyncHydrate?qe.__asyncHydrate(Te,W,it):it()}else{Fe.ce&&Fe.ce._injectChildStyle(qe);const it=W.subTree=uf(W);T(null,it,oe,_e,W,ye,le),j.el=it.el}if(Me&&mr(Me,ye),!ot&&(q=fe&&fe.onVnodeMounted)){const it=j;mr(()=>Bi(q,Ie,it),ye)}(j.shapeFlag&256||Ie&&J1(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&W.a&&mr(W.a,ye),W.isMounted=!0,j=oe=_e=null}};W.scope.on();const Oe=W.effect=new sP(Ce);W.scope.off();const He=W.update=Oe.run.bind(Oe),X=W.job=Oe.runIfDirty.bind(Oe);X.i=W,X.id=W.uid,Oe.scheduler=()=>Vv(X),f1(W,!0),He()},U=(W,j,oe)=>{j.component=W;const _e=W.vnode.props;W.vnode=j,W.next=null,uj(W,j.props,_e,oe),hj(W,j.children,oe),Ja(),JE(W),e1()},G=(W,j,oe,_e,ye,le,De,Ce,Oe=!1)=>{const He=W&&W.children,X=W?W.shapeFlag:0,q=j.children,{patchFlag:Te,shapeFlag:fe}=j;if(Te>0){if(Te&128){Y(He,q,oe,_e,ye,le,De,Ce,Oe);return}else if(Te&256){Z(He,q,oe,_e,ye,le,De,Ce,Oe);return}}fe&8?(X&16&&Ee(He,ye,le),q!==He&&u(oe,q)):X&16?fe&16?Y(He,q,oe,_e,ye,le,De,Ce,Oe):Ee(He,ye,le,!0):(X&8&&u(oe,""),fe&16&&M(q,oe,_e,ye,le,De,Ce,Oe))},Z=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{W=W||Nl,j=j||Nl;const He=W.length,X=j.length,q=Math.min(He,X);let Te;for(Te=0;TeX?Ee(W,ye,le,!0,!1,q):M(j,oe,_e,ye,le,De,Ce,Oe,q)},Y=(W,j,oe,_e,ye,le,De,Ce,Oe)=>{let He=0;const X=j.length;let q=W.length-1,Te=X-1;for(;He<=q&&He<=Te;){const fe=W[He],ve=j[He]=Oe?Ca(j[He]):Go(j[He]);if(Ia(fe,ve))T(fe,ve,oe,null,ye,le,De,Ce,Oe);else break;He++}for(;He<=q&&He<=Te;){const fe=W[q],ve=j[Te]=Oe?Ca(j[Te]):Go(j[Te]);if(Ia(fe,ve))T(fe,ve,oe,null,ye,le,De,Ce,Oe);else break;q--,Te--}if(He>q){if(He<=Te){const fe=Te+1,ve=feTe)for(;He<=q;)pe(W[He],ye,le,!0),He++;else{const fe=He,ve=He,Me=new Map;for(He=ve;He<=Te;He++){const pt=j[He]=Oe?Ca(j[He]):Go(j[He]);pt.key!=null&&Me.set(pt.key,He)}let Ie,Fe=0;const qe=Te-ve+1;let ot=!1,it=0;const $e=new Array(qe);for(He=0;He=qe){pe(pt,ye,le,!0);continue}let ht;if(pt.key!=null)ht=Me.get(pt.key);else for(Ie=ve;Ie<=Te;Ie++)if($e[Ie-ve]===0&&Ia(pt,j[Ie])){ht=Ie;break}ht===void 0?pe(pt,ye,le,!0):($e[ht-ve]=He+1,ht>=it?it=ht:ot=!0,T(pt,j[ht],oe,null,ye,le,De,Ce,Oe),Fe++)}const Ot=ot?_j($e):Nl;for(Ie=Ot.length-1,He=qe-1;He>=0;He--){const pt=ve+He,ht=j[pt],Tt=pt+1{const{el:le,type:De,transition:Ce,children:Oe,shapeFlag:He}=W;if(He&6){ee(W.component.subTree,j,oe,_e);return}if(He&128){W.suspense.move(j,oe,_e);return}if(He&64){De.move(W,j,oe,Se);return}if(De===ze){r(le,j,oe);for(let q=0;qCe.enter(le),ye);else{const{leave:q,delayLeave:Te,afterLeave:fe}=Ce,ve=()=>r(le,j,oe),Me=()=>{q(le,()=>{ve(),fe&&fe()})};Te?Te(le,ve,Me):Me()}else r(le,j,oe)},pe=(W,j,oe,_e=!1,ye=!1)=>{const{type:le,props:De,ref:Ce,children:Oe,dynamicChildren:He,shapeFlag:X,patchFlag:q,dirs:Te,cacheIndex:fe}=W;if(q===-2&&(ye=!1),Ce!=null&&$_(Ce,null,oe,W,!0),fe!=null&&(j.renderCache[fe]=void 0),X&256){j.ctx.deactivate(W);return}const ve=X&1&&Te,Me=!J1(W);let Ie;if(Me&&(Ie=De&&De.onVnodeBeforeUnmount)&&Bi(Ie,j,W),X&6)ce(W.component,oe,_e);else{if(X&128){W.suspense.unmount(oe,_e);return}ve&&d1(W,null,j,"beforeUnmount"),X&64?W.type.remove(W,j,oe,Se,_e):He&&!He.hasOnce&&(le!==ze||q>0&&q&64)?Ee(He,j,oe,!1,!0):(le===ze&&q&384||!ye&&X&16)&&Ee(Oe,j,oe),_e&&K(W)}(Me&&(Ie=De&&De.onVnodeUnmounted)||ve)&&mr(()=>{Ie&&Bi(Ie,j,W),ve&&d1(W,null,j,"unmounted")},oe)},K=W=>{const{type:j,el:oe,anchor:_e,transition:ye}=W;if(j===ze){$(oe,_e);return}if(j===ru){b(W);return}const le=()=>{i(oe),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(W.shapeFlag&1&&ye&&!ye.persisted){const{leave:De,delayLeave:Ce}=ye,Oe=()=>De(oe,le);Ce?Ce(W.el,le,Oe):Oe()}else le()},$=(W,j)=>{let oe;for(;W!==j;)oe=h(W),i(W),W=oe;i(j)},ce=(W,j,oe)=>{const{bum:_e,scope:ye,job:le,subTree:De,um:Ce,m:Oe,a:He}=W;Lu(Oe),Lu(He),_e&&Il(_e),ye.stop(),le&&(le.flags|=8,pe(De,W,j,oe)),Ce&&mr(Ce,j),mr(()=>{W.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},Ee=(W,j,oe,_e=!1,ye=!1,le=0)=>{for(let De=le;De{if(W.shapeFlag&6)return z(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const j=h(W.anchor||W.el),oe=j&&j[RP];return oe?h(oe):j};let re=!1;const he=(W,j,oe)=>{W==null?j._vnode&&pe(j._vnode,null,null,!0):T(j._vnode||null,W,j,null,null,null,oe),j._vnode=W,re||(re=!0,JE(),wP(),re=!1)},Se={p:T,um:pe,m:ee,r:K,mt:R,mc:M,pc:G,pbc:A,n:z,o:t};let we,se;return{render:he,hydrate:we,createApp:lj(he,we)}}function cf({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function f1({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function gj(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Uv(t,e,n=!1){const r=t.children,i=e.children;if(Lt(r)&&Lt(i))for(let o=0;o>1,t[n[a]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function iH(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:iH(e)}function Lu(t){if(t)for(let e=0;eXi(Qj);function Lr(t,e,n){return oH(t,e,n)}function oH(t,e,n=Rn){const{immediate:r,deep:i,flush:o,once:s}=n,a=or({},n);let l;if(Kd)if(o==="sync"){const h=vj();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!e||r)a.once=!0;else{const h=()=>{};return h.stop=Jo,h.resume=Jo,h.pause=Jo,h}const c=Sr;a.call=(h,f,m)=>Eo(h,c,f,m);let u=!1;o==="post"?a.scheduler=h=>{mr(h,c&&c.suspense)}:o!=="sync"&&(u=!0,a.scheduler=(h,f)=>{f?h():Vv(h)}),a.augmentJob=h=>{e&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Nz(t,e,a);return l&&l.push(d),d}function yj(t,e,n){const r=this.proxy,i=qn(t)?t.includes(".")?sH(r,t):()=>r[t]:t.bind(r,r);let o;kt(e)?o=e:(o=e.handler,n=e);const s=x0(this),a=oH(i,o.bind(r),n);return s(),a}function sH(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;ie==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${to(e)}Modifiers`]||t[`${Xa(e)}Modifiers`];function Ej(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Rn;let i=n;const o=e.startsWith("update:"),s=o&&bj(r,e.slice(7));s&&(s.trim&&(i=n.map(u=>qn(u)?u.trim():u)),s.number&&(i=n.map(vu)));let a,l=r[a=tu(e)]||r[a=tu(to(e))];!l&&o&&(l=r[a=tu(Xa(e))]),l&&Eo(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Eo(c,t,6,i)}}function aH(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!kt(t)){const l=c=>{const u=aH(c,e,!0);u&&(a=!0,or(s,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(Cn(t)&&r.set(t,null),null):(Lt(o)?o.forEach(l=>s[l]=null):or(s,o),Cn(t)&&r.set(t,s),s)}function Wd(t,e){return!t||!Id(e)?!1:(e=e.slice(2).replace(/Once$/,""),Tn(t,e[0].toLowerCase()+e.slice(1))||Tn(t,Xa(e))||Tn(t,e))}function uf(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:f,ctx:m,inheritAttrs:T}=t,Q=xu(t);let _,v;try{if(n.shapeFlag&4){const b=i||r,E=b;_=Go(c.call(E,b,u,d,f,h,m)),v=a}else{const b=e;_=Go(b.length>1?b(d,{attrs:a,slots:s,emit:l}):b(d,null)),v=e.props?a:xj(a)}}catch(b){N4.length=0,Gd(b,t,1),_=ae(Hr)}let y=_;if(v&&T!==!1){const b=Object.keys(v),{shapeFlag:E}=y;b.length&&E&7&&(o&&b.some(Av)&&(v=Sj(v,o)),y=Xs(y,v,!1,!0))}return n.dirs&&(y=Xs(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Wa(y,n.transition),_=y,xu(Q),_}const xj=t=>{let e;for(const n in t)(n==="class"||n==="style"||Id(n))&&((e||(e={}))[n]=t[n]);return e},Sj=(t,e)=>{const n={};for(const r in t)(!Av(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Lj(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?cx(r,s,c):!!s;if(l&8){const u=e.dynamicProps;for(let d=0;dt.__isSuspense;function Aj(t,e){e&&e.pendingBranch?Lt(t)?e.effects.push(...t):e.effects.push(t):kz(t)}const ze=Symbol.for("v-fgt"),Yd=Symbol.for("v-txt"),Hr=Symbol.for("v-cmt"),ru=Symbol.for("v-stc"),N4=[];let Ci=null;function k(t=!1){N4.push(Ci=t?null:[])}function wj(){N4.pop(),Ci=N4[N4.length-1]||null}let J4=1;function ux(t){J4+=t,t<0&&Ci&&(Ci.hasOnce=!0)}function lH(t){return t.dynamicChildren=J4>0?Ci||Nl:null,wj(),J4>0&&Ci&&Ci.push(t),t}function P(t,e,n,r,i,o){return lH(g(t,e,n,r,i,o,!0))}function wt(t,e,n,r,i){return lH(ae(t,e,n,r,i,!0))}function zl(t){return t?t.__v_isVNode===!0:!1}function Ia(t,e){return t.type===e.type&&t.key===e.key}const cH=({key:t})=>t??null,iu=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?qn(t)||ur(t)||kt(t)?{i:_r,r:t,k:e,f:!!n}:t:null);function g(t,e=null,n=null,r=0,i=null,o=t===ze?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&cH(e),ref:e&&iu(e),scopeId:OP,slotScopeIds:null,children:n,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_r};return a?(Gv(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=qn(n)?8:16),J4>0&&!s&&Ci&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ci.push(l),l}const ae=Mj;function Mj(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===GP)&&(t=Hr),zl(t)){const a=Xs(t,e,!0);return n&&Gv(a,n),J4>0&&!o&&Ci&&(a.shapeFlag&6?Ci[Ci.indexOf(t)]=a:Ci.push(a)),a.patchFlag=-2,a}if(Vj(t)&&(t=t.__vccOpts),e){e=Oj(e);let{class:a,style:l}=e;a&&!qn(a)&&(e.class=We(a)),Cn(l)&&(kv(l)&&!Lt(l)&&(l=or({},l)),e.style=gn(l))}const s=qn(t)?1:Cu(t)?128:NP(t)?64:Cn(t)?4:kt(t)?2:0;return g(t,e,n,r,i,s,o,!0)}function Oj(t){return t?kv(t)||ZP(t)?or({},t):t:null}function Xs(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=t,c=e?uH(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&cH(c),ref:e&&e.ref?n&&o?Lt(o)?o.concat(iu(e)):[o,iu(e)]:iu(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ze?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Xs(t.ssContent),ssFallback:t.ssFallback&&Xs(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Wa(u,l.clone(u)),u}function nt(t=" ",e=0){return ae(Yd,null,t,e)}function jl(t,e){const n=ae(ru,null,t);return n.staticCount=e,n}function ie(t="",e=!1){return e?(k(),wt(Hr,null,t)):ae(Hr,null,t)}function Go(t){return t==null||typeof t=="boolean"?ae(Hr):Lt(t)?ae(ze,null,t.slice()):zl(t)?Ca(t):ae(Yd,null,String(t))}function Ca(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Xs(t)}function Gv(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Lt(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Gv(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!ZP(e)?e._ctx=_r:i===3&&_r&&(_r.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else kt(e)?(e={default:e,_ctx:_r},n=32):(e=String(e),r&64?(n=16,e=[nt(e)]):n=8);t.children=e,t.shapeFlag|=n}function uH(...t){const e={};for(let n=0;nSr||_r;let Au,j_;{const t=eP(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Au=e("__VUE_INSTANCE_SETTERS__",n=>Sr=n),j_=e("__VUE_SSR_SETTERS__",n=>Kd=n)}const x0=t=>{const e=Sr;return Au(t),t.scope.on(),()=>{t.scope.off(),Au(e)}},dx=()=>{Sr&&Sr.scope.off(),Au(null)};function dH(t){return t.vnode.shapeFlag&4}let Kd=!1;function Ij(t,e=!1,n=!1){e&&j_(e);const{props:r,children:i}=t.vnode,o=dH(t);cj(t,r,o,e),pj(t,i,n);const s=o?kj(t,e):void 0;return e&&j_(!1),s}function kj(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,tj);const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?Hj(t):null,o=x0(t);Ja();const s=b0(r,t,0,[t.props,i]);if(e1(),o(),Kk(s)){if(J1(t)||FP(t),s.then(dx,dx),e)return s.then(a=>{fx(t,a,e)}).catch(a=>{Gd(a,t,0)});t.asyncDep=s}else fx(t,s,e)}else fH(t,e)}function fx(t,e,n){kt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Cn(e)&&(t.setupState=SP(e)),fH(t,n)}let px;function fH(t,e,n){const r=t.type;if(!t.render){if(!e&&px&&!r.render){const i=r.template||Bv(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=or(or({isCustomElement:o,delimiters:a},s),l);r.render=px(i,c)}}t.render=r.render||Jo}{const i=x0(t);Ja();try{nj(t)}finally{e1(),i()}}}const Pj={get(t,e){return Fr(t,"get",""),t[e]}};function Hj(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Pj),slots:t.slots,emit:t.emit,expose:e}}function Zd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(SP(Ud(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in R4)return R4[n](t)},has(e,n){return n in e||n in R4}})):t.proxy}function W_(t,e=!0){return kt(t)?t.displayName||t.name:t.name||e&&t.__name}function Vj(t){return kt(t)&&"__vccOpts"in t}const vt=(t,e)=>Oz(t,e,Kd);function zv(t,e,n){const r=arguments.length;return r===2?Cn(e)&&!Lt(e)?zl(e)?ae(t,null,[e]):ae(t,e):ae(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zl(n)&&(n=[n]),ae(t,e,n))}const Fj="3.5.10";/** * @vue/runtime-dom v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -28,7 +28,7 @@ var Iq=Object.defineProperty;var kq=(t,e,n)=>e in t?Iq(t,e,{enumerable:!0,config * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Sl=typeof document<"u";function iV(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function AK(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&iV(t.default)}const vn=Object.assign;function Qf(t,e){const n={};for(const r in e){const i=e[r];n[r]=xo(i)?i.map(t):t(i)}return n}const D4=()=>{},xo=Array.isArray,oV=/#/g,wK=/&/g,MK=/\//g,OK=/=/g,RK=/\?/g,sV=/\+/g,NK=/%5B/g,DK=/%5D/g,aV=/%5E/g,IK=/%60/g,lV=/%7B/g,kK=/%7C/g,cV=/%7D/g,PK=/%20/g;function ty(t){return encodeURI(""+t).replace(kK,"|").replace(NK,"[").replace(DK,"]")}function HK(t){return ty(t).replace(lV,"{").replace(cV,"}").replace(aV,"^")}function oQ(t){return ty(t).replace(sV,"%2B").replace(PK,"+").replace(oV,"%23").replace(wK,"%26").replace(IK,"`").replace(lV,"{").replace(cV,"}").replace(aV,"^")}function VK(t){return oQ(t).replace(OK,"%3D")}function FK(t){return ty(t).replace(oV,"%23").replace(RK,"%3F")}function BK(t){return t==null?"":FK(t).replace(MK,"%2F")}function t0(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const $K=/\/$/,UK=t=>t.replace($K,"");function vf(t,e,n="/"){let r,i={},o="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),o=e.slice(l+1,a>-1?a:e.length),i=t(o)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=jK(r??e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:t0(s)}}function GK(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Kx(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function qK(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Kl(e.matched[r],n.matched[i])&&uV(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Kl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function uV(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!zK(t[n],e[n]))return!1;return!0}function zK(t,e){return xo(t)?Zx(t,e):xo(e)?Zx(e,t):t===e}function Zx(t,e){return xo(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function jK(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,a;for(s=0;s1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}const fa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var n0;(function(t){t.pop="pop",t.push="push"})(n0||(n0={}));var I4;(function(t){t.back="back",t.forward="forward",t.unknown=""})(I4||(I4={}));function WK(t){if(!t)if(Sl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),UK(t)}const YK=/^[^#]+#/;function KK(t,e){return t.replace(YK,"#")+e}function ZK(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const i7=()=>({left:window.scrollX,top:window.scrollY});function XK(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=ZK(i,t)}else e=t;"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 Xx(t,e){return(history.state?history.state.position-e:-1)+t}const sQ=new Map;function JK(t,e){sQ.set(t,e)}function eZ(t){const e=sQ.get(t);return sQ.delete(t),e}let tZ=()=>location.protocol+"//"+location.host;function dV(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let a=i.includes(t.slice(o))?t.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Kx(l,"")}return Kx(n,t)+r+i}function nZ(t,e,n,r){let i=[],o=[],s=null;const a=({state:h})=>{const f=dV(t,location),m=n.value,T=e.value;let Q=0;if(h){if(n.value=f,e.value=h,s&&s===m){s=null;return}Q=T?h.position-T.position:0}else r(f);i.forEach(_=>{_(n.value,m,{delta:Q,type:n0.pop,direction:Q?Q>0?I4.forward:I4.back:I4.unknown})})};function l(){s=n.value}function c(h){i.push(h);const f=()=>{const m=i.indexOf(h);m>-1&&i.splice(m,1)};return o.push(f),f}function u(){const{history:h}=window;h.state&&h.replaceState(vn({},h.state,{scroll:i7()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Jx(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?i7():null}}function rZ(t){const{history:e,location:n}=window,r={value:dV(t,n)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=t.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:tZ()+t+l;try{e[u?"replaceState":"pushState"](c,"",h),i.value=c}catch(f){console.error(f),n[u?"replace":"assign"](h)}}function s(l,c){const u=vn({},e.state,Jx(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),r.value=l}function a(l,c){const u=vn({},i.value,e.state,{forward:l,scroll:i7()});o(u.current,u,!0);const d=vn({},Jx(r.value,l,null),{position:u.position+1},c);o(l,d,!1),r.value=l}return{location:r,state:i,push:a,replace:s}}function iZ(t){t=WK(t);const e=rZ(t),n=nZ(t,e.state,e.location,e.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=vn({location:"",base:t,go:r,createHref:KK.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function oZ(t){return typeof t=="string"||t&&typeof t=="object"}function fV(t){return typeof t=="string"||typeof t=="symbol"}const pV=Symbol("");var eS;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(eS||(eS={}));function Zl(t,e){return vn(new Error,{type:t,[pV]:!0},e)}function _s(t,e){return t instanceof Error&&pV in t&&(e==null||!!(t.type&e))}const tS="[^/]+?",sZ={sensitive:!1,strict:!1,start:!0,end:!0},aZ=/[.+*?^${}()[\]/\\]/g;function lZ(t,e){const n=vn({},sZ,e),r=[];let i=n.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function hV(t,e){let n=0;const r=t.score,i=e.score;for(;n0&&e[e.length-1]<0}const uZ={type:0,value:""},dZ=/[a-zA-Z0-9_]/;function fZ(t){if(!t)return[[]];if(t==="/")return[[uZ]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${n})/"${c}": ${f}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{s(y)}:D4}function s(d){if(fV(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function l(d){const h=gZ(d,n);n.splice(h,0,d),d.record.name&&!oS(d)&&r.set(d.record.name,d)}function c(d,h){let f,m={},T,Q;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Zl(1,{location:d});Q=f.record.name,m=vn(rS(h.params,f.keys.filter(y=>!y.optional).concat(f.parent?f.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&rS(d.params,f.keys.map(y=>y.name))),T=f.stringify(m)}else if(d.path!=null)T=d.path,f=n.find(y=>y.re.test(T)),f&&(m=f.parse(T),Q=f.record.name);else{if(f=h.name?r.get(h.name):n.find(y=>y.re.test(h.path)),!f)throw Zl(1,{location:d,currentLocation:h});Q=f.record.name,m=vn({},h.params,d.params),T=f.stringify(m)}const _=[];let v=f;for(;v;)_.unshift(v.record),v=v.parent;return{name:Q,path:T,params:m,matched:_,meta:mZ(_)}}t.forEach(d=>o(d));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function rS(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function iS(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:TZ(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function TZ(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function oS(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mZ(t){return t.reduce((e,n)=>vn(e,n.meta),{})}function sS(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function gZ(t,e){let n=0,r=e.length;for(;n!==r;){const o=n+r>>1;hV(t,e[o])<0?r=o:n=o+1}const i=_Z(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function _Z(t){let e=t;for(;e=e.parent;)if(TV(e)&&hV(t,e)===0)return e}function TV({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function QZ(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&oQ(o)):[r&&oQ(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function vZ(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=xo(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const yZ=Symbol(""),lS=Symbol(""),ny=Symbol(""),ry=Symbol(""),aQ=Symbol("");function p3(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Aa(t,e,n,r,i,o=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Zl(4,{from:n,to:e})):h instanceof Error?l(h):oZ(h)?l(Zl(2,{from:e,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),a())},u=o(()=>t.call(r&&r.instances[i],e,n,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function yf(t,e,n,r,i=o=>o()){const o=[];for(const s of t)for(const a in s.components){let l=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(iV(l)){const u=(l.__vccOpts||l)[e];u&&o.push(Aa(u,n,r,s,a,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=AK(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const f=(d.__vccOpts||d)[e];return f&&Aa(f,n,r,s,a,i)()}))}}return o}function cS(t){const e=Xi(ny),n=Xi(ry),r=vt(()=>{const l=Ft(t.to);return e.resolve(l)}),i=vt(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(Kl.bind(null,u));if(h>-1)return h;const f=uS(l[c-2]);return c>1&&uS(u)===f&&d[d.length-1].path!==f?d.findIndex(Kl.bind(null,l[c-2])):h}),o=vt(()=>i.value>-1&&xZ(n.params,r.value.params)),s=vt(()=>i.value>-1&&i.value===n.matched.length-1&&uV(n.params,r.value.params));function a(l={}){return EZ(l)?e[Ft(t.replace)?"replace":"push"](Ft(t.to)).catch(D4):Promise.resolve()}return{route:r,href:vt(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}const bZ=sr({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:cS,setup(t,{slots:e}){const n=ni(cS(t)),{options:r}=Xi(ny),i=vt(()=>({[dS(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[dS(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&e.default(n);return t.custom?o:zv("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Du=bZ;function EZ(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function xZ(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!xo(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function uS(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const dS=(t,e,n)=>t??e??n,SZ=sr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Xi(aQ),i=vt(()=>t.route||r.value),o=Xi(lS,0),s=vt(()=>{let c=Ft(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=vt(()=>i.value.matched[s.value]);Vl(lS,vt(()=>s.value+1)),Vl(yZ,a),Vl(aQ,i);const l=At();return Lr(()=>[l.value,a.value,t.name],([c,u,d],[h,f,m])=>{u&&(u.instances[d]=c,f&&f!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),c&&u&&(!f||!Kl(u,f)||!h)&&(u.enterCallbacks[d]||[]).forEach(T=>T(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,d=a.value,h=d&&d.components[u];if(!h)return fS(n.default,{Component:h,route:c});const f=d.props[u],m=f?f===!0?c.params:typeof f=="function"?f(c):f:null,Q=zv(h,vn({},m,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return fS(n.default,{Component:Q,route:c})||Q}}});function fS(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const mV=SZ;function LZ(t){const e=hZ(t.routes,t),n=t.parseQuery||QZ,r=t.stringifyQuery||aS,i=t.history,o=p3(),s=p3(),a=p3(),l=bz(fa);let c=fa;Sl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qf.bind(null,z=>""+z),d=Qf.bind(null,BK),h=Qf.bind(null,t0);function f(z,re){let he,Se;return fV(z)?(he=e.getRecordMatcher(z),Se=re):Se=z,e.addRoute(Se,he)}function m(z){const re=e.getRecordMatcher(z);re&&e.removeRoute(re)}function T(){return e.getRoutes().map(z=>z.record)}function Q(z){return!!e.getRecordMatcher(z)}function _(z,re){if(re=vn({},re||l.value),typeof z=="string"){const j=vf(n,z,re.path),oe=e.resolve({path:j.path},re),_e=i.createHref(j.fullPath);return vn(j,oe,{params:h(oe.params),hash:t0(j.hash),redirectedFrom:void 0,href:_e})}let he;if(z.path!=null)he=vn({},z,{path:vf(n,z.path,re.path).path});else{const j=vn({},z.params);for(const oe in j)j[oe]==null&&delete j[oe];he=vn({},z,{params:d(j)}),re.params=d(re.params)}const Se=e.resolve(he,re),we=z.hash||"";Se.params=u(h(Se.params));const se=GK(r,vn({},z,{hash:HK(we),path:Se.path})),W=i.createHref(se);return vn({fullPath:se,hash:we,query:r===aS?vZ(z.query):z.query||{}},Se,{redirectedFrom:void 0,href:W})}function v(z){return typeof z=="string"?vf(n,z,l.value.path):vn({},z)}function y(z,re){if(c!==z)return Zl(8,{from:re,to:z})}function b(z){return L(z)}function E(z){return b(vn(v(z),{replace:!0}))}function x(z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:he}=re;let Se=typeof he=="function"?he(z):he;return typeof Se=="string"&&(Se=Se.includes("?")||Se.includes("#")?Se=v(Se):{path:Se},Se.params={}),vn({query:z.query,hash:z.hash,params:Se.path!=null?{}:z.params},Se)}}function L(z,re){const he=c=_(z),Se=l.value,we=z.state,se=z.force,W=z.replace===!0,j=x(he);if(j)return L(vn(v(j),{state:typeof j=="object"?vn({},we,j.state):we,force:se,replace:W}),re||he);const oe=he;oe.redirectedFrom=re;let _e;return!se&&qK(r,Se,he)&&(_e=Zl(16,{to:oe,from:Se}),ee(Se,Se,!0,!1)),(_e?Promise.resolve(_e):A(oe,Se)).catch(ye=>_s(ye)?_s(ye,2)?ye:Y(ye):G(ye,oe,Se)).then(ye=>{if(ye){if(_s(ye,2))return L(vn({replace:W},v(ye.to),{state:typeof ye.to=="object"?vn({},we,ye.to.state):we,force:se}),re||oe)}else ye=N(oe,Se,!0,W,we);return I(oe,Se,ye),ye})}function M(z,re){const he=y(z,re);return he?Promise.reject(he):Promise.resolve()}function C(z){const re=$.values().next().value;return re&&typeof re.runWithContext=="function"?re.runWithContext(z):z()}function A(z,re){let he;const[Se,we,se]=CZ(z,re);he=yf(Se.reverse(),"beforeRouteLeave",z,re);for(const j of Se)j.leaveGuards.forEach(oe=>{he.push(Aa(oe,z,re))});const W=M.bind(null,z,re);return he.push(W),Ee(he).then(()=>{he=[];for(const j of o.list())he.push(Aa(j,z,re));return he.push(W),Ee(he)}).then(()=>{he=yf(we,"beforeRouteUpdate",z,re);for(const j of we)j.updateGuards.forEach(oe=>{he.push(Aa(oe,z,re))});return he.push(W),Ee(he)}).then(()=>{he=[];for(const j of se)if(j.beforeEnter)if(xo(j.beforeEnter))for(const oe of j.beforeEnter)he.push(Aa(oe,z,re));else he.push(Aa(j.beforeEnter,z,re));return he.push(W),Ee(he)}).then(()=>(z.matched.forEach(j=>j.enterCallbacks={}),he=yf(se,"beforeRouteEnter",z,re,C),he.push(W),Ee(he))).then(()=>{he=[];for(const j of s.list())he.push(Aa(j,z,re));return he.push(W),Ee(he)}).catch(j=>_s(j,8)?j:Promise.reject(j))}function I(z,re,he){a.list().forEach(Se=>C(()=>Se(z,re,he)))}function N(z,re,he,Se,we){const se=y(z,re);if(se)return se;const W=re===fa,j=Sl?history.state:{};he&&(Se||W?i.replace(z.fullPath,vn({scroll:W&&j&&j.scroll},we)):i.push(z.fullPath,we)),l.value=z,ee(z,re,he,W),Y()}let V;function R(){V||(V=i.listen((z,re,he)=>{if(!ce.listening)return;const Se=_(z),we=x(Se);if(we){L(vn(we,{replace:!0}),Se).catch(D4);return}c=Se;const se=l.value;Sl&&JK(Xx(se.fullPath,he.delta),i7()),A(Se,se).catch(W=>_s(W,12)?W:_s(W,2)?(L(W.to,Se).then(j=>{_s(j,20)&&!he.delta&&he.type===n0.pop&&i.go(-1,!1)}).catch(D4),Promise.reject()):(he.delta&&i.go(-he.delta,!1),G(W,Se,se))).then(W=>{W=W||N(Se,se,!1),W&&(he.delta&&!_s(W,8)?i.go(-he.delta,!1):he.type===n0.pop&&_s(W,20)&&i.go(-1,!1)),I(Se,se,W)}).catch(D4)}))}let B=p3(),F=p3(),U;function G(z,re,he){Y(z);const Se=F.list();return Se.length?Se.forEach(we=>we(z,re,he)):console.error(z),Promise.reject(z)}function Z(){return U&&l.value!==fa?Promise.resolve():new Promise((z,re)=>{B.add([z,re])})}function Y(z){return U||(U=!z,R(),B.list().forEach(([re,he])=>z?he(z):re()),B.reset()),z}function ee(z,re,he,Se){const{scrollBehavior:we}=t;if(!Sl||!we)return Promise.resolve();const se=!he&&eZ(Xx(z.fullPath,0))||(Se||!he)&&history.state&&history.state.scroll||null;return Ke().then(()=>we(z,re,se)).then(W=>W&&XK(W)).catch(W=>G(W,z,re))}const pe=z=>i.go(z);let K;const $=new Set,ce={currentRoute:l,listening:!0,addRoute:f,removeRoute:m,clearRoutes:e.clearRoutes,hasRoute:Q,getRoutes:T,resolve:_,options:t,push:b,replace:E,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:F.add,isReady:Z,install(z){const re=this;z.component("RouterLink",Du),z.component("RouterView",mV),z.config.globalProperties.$router=re,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Ft(l)}),Sl&&!K&&l.value===fa&&(K=!0,b(i.location).catch(we=>{}));const he={};for(const we in fa)Object.defineProperty(he,we,{get:()=>l.value[we],enumerable:!0});z.provide(ny,re),z.provide(ry,bP(he)),z.provide(aQ,l);const Se=z.unmount;$.add(z),z.unmount=function(){$.delete(z),$.size<1&&(c=fa,V&&V(),V=null,l.value=fa,K=!1,U=!1),Se()}}};function Ee(z){return z.reduce((re,he)=>re.then(()=>C(he)),Promise.resolve())}return ce}function CZ(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;sKl(c,a))?r.push(a):n.push(a));const l=t.matched[s];l&&(e.matched.find(c=>Kl(c,l))||i.push(l))}return[n,r,i]}function AZ(t){return Xi(ry)}const wZ="modulepreload",MZ=function(t){return"/"+t},pS={},bf=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=MZ(l),l in pS)return;pS[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":wZ,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},OZ={class:"sticky top-0 z-50 w-full bg-transparent"},RZ={class:"container mx-auto px-4"},NZ={class:"flex items-center justify-between h-16"},DZ={class:"hidden md:block"},IZ={class:"flex items-center space-x-4"},kZ={class:"flex items-center space-x-1"},PZ={key:0,class:"ml-1 text-xs","aria-hidden":"true"},HZ={class:"md:hidden"},VZ={class:"px-2 pt-2 pb-3 space-y-1"},FZ={class:"flex items-center justify-between"},BZ={key:0,class:"text-xs","aria-hidden":"true"},$Z={name:"Navigation"},UZ=Object.assign($Z,{setup(t){const e=AZ(),n=At(0),r=At([]),i=At(!1),o=[{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:()=>go.state.config.enable_sd_service||go.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>go.state.config.enable_comfyui_service||go.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>go.state.config.active_tts_service!=="None"&&go.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],s=vt(()=>go.state.ready?o.filter(u=>u.condition?u.condition():u.active):o.filter(u=>u.active));ls(()=>{a()}),Lr(()=>e.name,a);function a(){const u=s.value.findIndex(d=>d.route===e.name);u!==-1&&(n.value=u)}function l(u){return e.name===u}function c(u){n.value=u}return(u,d)=>(k(),P("div",OZ,[g("nav",RZ,[g("div",NZ,[g("div",DZ,[g("div",IZ,[(k(!0),P(ze,null,lt(s.value,(h,f)=>(k(),wt(Ft(Du),{key:f,to:{name:h.route},class:We(["nav-button",{"nav-button-active":l(h.route)}]),onClick:m=>c(f),ref_for:!0,ref_key:"menuItems",ref:r},{default:Be(()=>[g("div",kZ,[nt(ue(h.text)+" ",1),l(h.route)?(k(),P("span",PZ," ✨ ")):ie("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),g("div",HZ,[g("button",{onClick:d[0]||(d[0]=h=>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"},[(k(),P("svg",{class:We(["h-6 w-6",{hidden:i.value,block:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},d[1]||(d[1]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(k(),P("svg",{class:We(["h-6 w-6",{block:i.value,hidden:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},d[2]||(d[2]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),g("div",{class:We([{block:i.value,hidden:!i.value},"md:hidden"])},[g("div",VZ,[(k(!0),P(ze,null,lt(s.value,(h,f)=>(k(),wt(Ft(Du),{key:f,to:{name:h.route},class:We(["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(h.route)}]),onClick:m=>{c(f),i.value=!1}},{default:Be(()=>[g("div",FZ,[nt(ue(h.text)+" ",1),l(h.route)?(k(),P("span",BZ," ✨ ")):ie("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),Et=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},GZ={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(t){this.href==="#"&&(t.preventDefault(),this.$emit("click"))}}},qZ=["href","title"],zZ=["data-feather"];function jZ(t,e,n,r,i,o){return k(),P("a",{href:n.href,onClick:e[0]||(e[0]=(...s)=>o.onClick&&o.onClick(...s)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[g("i",{"data-feather":n.icon},null,8,zZ)],8,qZ)}const gV=Et(GZ,[["render",jZ]]),WZ={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},YZ=["href","title"],KZ=["data-feather"],ZZ={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},XZ={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function JZ(t,e,n,r,i,o){return k(),P("a",{href:n.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[n.icon!=="x"&&n.icon!=="discord"?(k(),P("i",{key:0,"data-feather":n.icon},null,8,KZ)):n.icon==="x"?(k(),P("svg",ZZ,e[0]||(e[0]=[g("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)]))):n.icon==="discord"?(k(),P("svg",XZ,e[1]||(e[1]=[g("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)]))):ie("",!0)],8,YZ)}const _V=Et(WZ,[["render",JZ]]);var S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ic(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function iy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var QV={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(typeof self<"u"?self:S,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var s=r[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(o,s,a){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},i.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=0)}({"./dist/icons.json":function(n){n.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(n,r,i){var o,s;/*! + */const Sl=typeof document<"u";function iV(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function AK(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&iV(t.default)}const yn=Object.assign;function Qf(t,e){const n={};for(const r in e){const i=e[r];n[r]=xo(i)?i.map(t):t(i)}return n}const D4=()=>{},xo=Array.isArray,oV=/#/g,wK=/&/g,MK=/\//g,OK=/=/g,RK=/\?/g,sV=/\+/g,NK=/%5B/g,DK=/%5D/g,aV=/%5E/g,IK=/%60/g,lV=/%7B/g,kK=/%7C/g,cV=/%7D/g,PK=/%20/g;function ty(t){return encodeURI(""+t).replace(kK,"|").replace(NK,"[").replace(DK,"]")}function HK(t){return ty(t).replace(lV,"{").replace(cV,"}").replace(aV,"^")}function oQ(t){return ty(t).replace(sV,"%2B").replace(PK,"+").replace(oV,"%23").replace(wK,"%26").replace(IK,"`").replace(lV,"{").replace(cV,"}").replace(aV,"^")}function VK(t){return oQ(t).replace(OK,"%3D")}function FK(t){return ty(t).replace(oV,"%23").replace(RK,"%3F")}function BK(t){return t==null?"":FK(t).replace(MK,"%2F")}function t0(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const $K=/\/$/,UK=t=>t.replace($K,"");function vf(t,e,n="/"){let r,i={},o="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),o=e.slice(l+1,a>-1?a:e.length),i=t(o)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=jK(r??e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:t0(s)}}function GK(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Kx(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function qK(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Kl(e.matched[r],n.matched[i])&&uV(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Kl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function uV(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!zK(t[n],e[n]))return!1;return!0}function zK(t,e){return xo(t)?Zx(t,e):xo(e)?Zx(e,t):t===e}function Zx(t,e){return xo(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function jK(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,a;for(s=0;s1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}const fa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var n0;(function(t){t.pop="pop",t.push="push"})(n0||(n0={}));var I4;(function(t){t.back="back",t.forward="forward",t.unknown=""})(I4||(I4={}));function WK(t){if(!t)if(Sl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),UK(t)}const YK=/^[^#]+#/;function KK(t,e){return t.replace(YK,"#")+e}function ZK(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const i7=()=>({left:window.scrollX,top:window.scrollY});function XK(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=ZK(i,t)}else e=t;"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 Xx(t,e){return(history.state?history.state.position-e:-1)+t}const sQ=new Map;function JK(t,e){sQ.set(t,e)}function eZ(t){const e=sQ.get(t);return sQ.delete(t),e}let tZ=()=>location.protocol+"//"+location.host;function dV(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let a=i.includes(t.slice(o))?t.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Kx(l,"")}return Kx(n,t)+r+i}function nZ(t,e,n,r){let i=[],o=[],s=null;const a=({state:h})=>{const f=dV(t,location),m=n.value,T=e.value;let Q=0;if(h){if(n.value=f,e.value=h,s&&s===m){s=null;return}Q=T?h.position-T.position:0}else r(f);i.forEach(_=>{_(n.value,m,{delta:Q,type:n0.pop,direction:Q?Q>0?I4.forward:I4.back:I4.unknown})})};function l(){s=n.value}function c(h){i.push(h);const f=()=>{const m=i.indexOf(h);m>-1&&i.splice(m,1)};return o.push(f),f}function u(){const{history:h}=window;h.state&&h.replaceState(yn({},h.state,{scroll:i7()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Jx(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?i7():null}}function rZ(t){const{history:e,location:n}=window,r={value:dV(t,n)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=t.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:tZ()+t+l;try{e[u?"replaceState":"pushState"](c,"",h),i.value=c}catch(f){console.error(f),n[u?"replace":"assign"](h)}}function s(l,c){const u=yn({},e.state,Jx(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),r.value=l}function a(l,c){const u=yn({},i.value,e.state,{forward:l,scroll:i7()});o(u.current,u,!0);const d=yn({},Jx(r.value,l,null),{position:u.position+1},c);o(l,d,!1),r.value=l}return{location:r,state:i,push:a,replace:s}}function iZ(t){t=WK(t);const e=rZ(t),n=nZ(t,e.state,e.location,e.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=yn({location:"",base:t,go:r,createHref:KK.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function oZ(t){return typeof t=="string"||t&&typeof t=="object"}function fV(t){return typeof t=="string"||typeof t=="symbol"}const pV=Symbol("");var eS;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(eS||(eS={}));function Zl(t,e){return yn(new Error,{type:t,[pV]:!0},e)}function _s(t,e){return t instanceof Error&&pV in t&&(e==null||!!(t.type&e))}const tS="[^/]+?",sZ={sensitive:!1,strict:!1,start:!0,end:!0},aZ=/[.+*?^${}()[\]/\\]/g;function lZ(t,e){const n=yn({},sZ,e),r=[];let i=n.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function hV(t,e){let n=0;const r=t.score,i=e.score;for(;n0&&e[e.length-1]<0}const uZ={type:0,value:""},dZ=/[a-zA-Z0-9_]/;function fZ(t){if(!t)return[[]];if(t==="/")return[[uZ]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${n})/"${c}": ${f}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{s(y)}:D4}function s(d){if(fV(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function l(d){const h=gZ(d,n);n.splice(h,0,d),d.record.name&&!oS(d)&&r.set(d.record.name,d)}function c(d,h){let f,m={},T,Q;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Zl(1,{location:d});Q=f.record.name,m=yn(rS(h.params,f.keys.filter(y=>!y.optional).concat(f.parent?f.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&rS(d.params,f.keys.map(y=>y.name))),T=f.stringify(m)}else if(d.path!=null)T=d.path,f=n.find(y=>y.re.test(T)),f&&(m=f.parse(T),Q=f.record.name);else{if(f=h.name?r.get(h.name):n.find(y=>y.re.test(h.path)),!f)throw Zl(1,{location:d,currentLocation:h});Q=f.record.name,m=yn({},h.params,d.params),T=f.stringify(m)}const _=[];let v=f;for(;v;)_.unshift(v.record),v=v.parent;return{name:Q,path:T,params:m,matched:_,meta:mZ(_)}}t.forEach(d=>o(d));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function rS(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function iS(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:TZ(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function TZ(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function oS(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mZ(t){return t.reduce((e,n)=>yn(e,n.meta),{})}function sS(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function gZ(t,e){let n=0,r=e.length;for(;n!==r;){const o=n+r>>1;hV(t,e[o])<0?r=o:n=o+1}const i=_Z(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function _Z(t){let e=t;for(;e=e.parent;)if(TV(e)&&hV(t,e)===0)return e}function TV({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function QZ(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&oQ(o)):[r&&oQ(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function vZ(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=xo(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const yZ=Symbol(""),lS=Symbol(""),ny=Symbol(""),ry=Symbol(""),aQ=Symbol("");function p3(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Aa(t,e,n,r,i,o=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Zl(4,{from:n,to:e})):h instanceof Error?l(h):oZ(h)?l(Zl(2,{from:e,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),a())},u=o(()=>t.call(r&&r.instances[i],e,n,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function yf(t,e,n,r,i=o=>o()){const o=[];for(const s of t)for(const a in s.components){let l=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(iV(l)){const u=(l.__vccOpts||l)[e];u&&o.push(Aa(u,n,r,s,a,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=AK(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const f=(d.__vccOpts||d)[e];return f&&Aa(f,n,r,s,a,i)()}))}}return o}function cS(t){const e=Xi(ny),n=Xi(ry),r=vt(()=>{const l=Ft(t.to);return e.resolve(l)}),i=vt(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(Kl.bind(null,u));if(h>-1)return h;const f=uS(l[c-2]);return c>1&&uS(u)===f&&d[d.length-1].path!==f?d.findIndex(Kl.bind(null,l[c-2])):h}),o=vt(()=>i.value>-1&&xZ(n.params,r.value.params)),s=vt(()=>i.value>-1&&i.value===n.matched.length-1&&uV(n.params,r.value.params));function a(l={}){return EZ(l)?e[Ft(t.replace)?"replace":"push"](Ft(t.to)).catch(D4):Promise.resolve()}return{route:r,href:vt(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}const bZ=sr({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:cS,setup(t,{slots:e}){const n=ni(cS(t)),{options:r}=Xi(ny),i=vt(()=>({[dS(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[dS(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&e.default(n);return t.custom?o:zv("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Du=bZ;function EZ(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function xZ(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!xo(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function uS(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const dS=(t,e,n)=>t??e??n,SZ=sr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Xi(aQ),i=vt(()=>t.route||r.value),o=Xi(lS,0),s=vt(()=>{let c=Ft(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=vt(()=>i.value.matched[s.value]);Vl(lS,vt(()=>s.value+1)),Vl(yZ,a),Vl(aQ,i);const l=At();return Lr(()=>[l.value,a.value,t.name],([c,u,d],[h,f,m])=>{u&&(u.instances[d]=c,f&&f!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),c&&u&&(!f||!Kl(u,f)||!h)&&(u.enterCallbacks[d]||[]).forEach(T=>T(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,d=a.value,h=d&&d.components[u];if(!h)return fS(n.default,{Component:h,route:c});const f=d.props[u],m=f?f===!0?c.params:typeof f=="function"?f(c):f:null,Q=zv(h,yn({},m,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return fS(n.default,{Component:Q,route:c})||Q}}});function fS(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const mV=SZ;function LZ(t){const e=hZ(t.routes,t),n=t.parseQuery||QZ,r=t.stringifyQuery||aS,i=t.history,o=p3(),s=p3(),a=p3(),l=bz(fa);let c=fa;Sl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qf.bind(null,z=>""+z),d=Qf.bind(null,BK),h=Qf.bind(null,t0);function f(z,re){let he,Se;return fV(z)?(he=e.getRecordMatcher(z),Se=re):Se=z,e.addRoute(Se,he)}function m(z){const re=e.getRecordMatcher(z);re&&e.removeRoute(re)}function T(){return e.getRoutes().map(z=>z.record)}function Q(z){return!!e.getRecordMatcher(z)}function _(z,re){if(re=yn({},re||l.value),typeof z=="string"){const j=vf(n,z,re.path),oe=e.resolve({path:j.path},re),_e=i.createHref(j.fullPath);return yn(j,oe,{params:h(oe.params),hash:t0(j.hash),redirectedFrom:void 0,href:_e})}let he;if(z.path!=null)he=yn({},z,{path:vf(n,z.path,re.path).path});else{const j=yn({},z.params);for(const oe in j)j[oe]==null&&delete j[oe];he=yn({},z,{params:d(j)}),re.params=d(re.params)}const Se=e.resolve(he,re),we=z.hash||"";Se.params=u(h(Se.params));const se=GK(r,yn({},z,{hash:HK(we),path:Se.path})),W=i.createHref(se);return yn({fullPath:se,hash:we,query:r===aS?vZ(z.query):z.query||{}},Se,{redirectedFrom:void 0,href:W})}function v(z){return typeof z=="string"?vf(n,z,l.value.path):yn({},z)}function y(z,re){if(c!==z)return Zl(8,{from:re,to:z})}function b(z){return L(z)}function E(z){return b(yn(v(z),{replace:!0}))}function x(z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:he}=re;let Se=typeof he=="function"?he(z):he;return typeof Se=="string"&&(Se=Se.includes("?")||Se.includes("#")?Se=v(Se):{path:Se},Se.params={}),yn({query:z.query,hash:z.hash,params:Se.path!=null?{}:z.params},Se)}}function L(z,re){const he=c=_(z),Se=l.value,we=z.state,se=z.force,W=z.replace===!0,j=x(he);if(j)return L(yn(v(j),{state:typeof j=="object"?yn({},we,j.state):we,force:se,replace:W}),re||he);const oe=he;oe.redirectedFrom=re;let _e;return!se&&qK(r,Se,he)&&(_e=Zl(16,{to:oe,from:Se}),ee(Se,Se,!0,!1)),(_e?Promise.resolve(_e):A(oe,Se)).catch(ye=>_s(ye)?_s(ye,2)?ye:Y(ye):G(ye,oe,Se)).then(ye=>{if(ye){if(_s(ye,2))return L(yn({replace:W},v(ye.to),{state:typeof ye.to=="object"?yn({},we,ye.to.state):we,force:se}),re||oe)}else ye=N(oe,Se,!0,W,we);return I(oe,Se,ye),ye})}function M(z,re){const he=y(z,re);return he?Promise.reject(he):Promise.resolve()}function C(z){const re=$.values().next().value;return re&&typeof re.runWithContext=="function"?re.runWithContext(z):z()}function A(z,re){let he;const[Se,we,se]=CZ(z,re);he=yf(Se.reverse(),"beforeRouteLeave",z,re);for(const j of Se)j.leaveGuards.forEach(oe=>{he.push(Aa(oe,z,re))});const W=M.bind(null,z,re);return he.push(W),Ee(he).then(()=>{he=[];for(const j of o.list())he.push(Aa(j,z,re));return he.push(W),Ee(he)}).then(()=>{he=yf(we,"beforeRouteUpdate",z,re);for(const j of we)j.updateGuards.forEach(oe=>{he.push(Aa(oe,z,re))});return he.push(W),Ee(he)}).then(()=>{he=[];for(const j of se)if(j.beforeEnter)if(xo(j.beforeEnter))for(const oe of j.beforeEnter)he.push(Aa(oe,z,re));else he.push(Aa(j.beforeEnter,z,re));return he.push(W),Ee(he)}).then(()=>(z.matched.forEach(j=>j.enterCallbacks={}),he=yf(se,"beforeRouteEnter",z,re,C),he.push(W),Ee(he))).then(()=>{he=[];for(const j of s.list())he.push(Aa(j,z,re));return he.push(W),Ee(he)}).catch(j=>_s(j,8)?j:Promise.reject(j))}function I(z,re,he){a.list().forEach(Se=>C(()=>Se(z,re,he)))}function N(z,re,he,Se,we){const se=y(z,re);if(se)return se;const W=re===fa,j=Sl?history.state:{};he&&(Se||W?i.replace(z.fullPath,yn({scroll:W&&j&&j.scroll},we)):i.push(z.fullPath,we)),l.value=z,ee(z,re,he,W),Y()}let V;function R(){V||(V=i.listen((z,re,he)=>{if(!ce.listening)return;const Se=_(z),we=x(Se);if(we){L(yn(we,{replace:!0}),Se).catch(D4);return}c=Se;const se=l.value;Sl&&JK(Xx(se.fullPath,he.delta),i7()),A(Se,se).catch(W=>_s(W,12)?W:_s(W,2)?(L(W.to,Se).then(j=>{_s(j,20)&&!he.delta&&he.type===n0.pop&&i.go(-1,!1)}).catch(D4),Promise.reject()):(he.delta&&i.go(-he.delta,!1),G(W,Se,se))).then(W=>{W=W||N(Se,se,!1),W&&(he.delta&&!_s(W,8)?i.go(-he.delta,!1):he.type===n0.pop&&_s(W,20)&&i.go(-1,!1)),I(Se,se,W)}).catch(D4)}))}let B=p3(),F=p3(),U;function G(z,re,he){Y(z);const Se=F.list();return Se.length?Se.forEach(we=>we(z,re,he)):console.error(z),Promise.reject(z)}function Z(){return U&&l.value!==fa?Promise.resolve():new Promise((z,re)=>{B.add([z,re])})}function Y(z){return U||(U=!z,R(),B.list().forEach(([re,he])=>z?he(z):re()),B.reset()),z}function ee(z,re,he,Se){const{scrollBehavior:we}=t;if(!Sl||!we)return Promise.resolve();const se=!he&&eZ(Xx(z.fullPath,0))||(Se||!he)&&history.state&&history.state.scroll||null;return Ke().then(()=>we(z,re,se)).then(W=>W&&XK(W)).catch(W=>G(W,z,re))}const pe=z=>i.go(z);let K;const $=new Set,ce={currentRoute:l,listening:!0,addRoute:f,removeRoute:m,clearRoutes:e.clearRoutes,hasRoute:Q,getRoutes:T,resolve:_,options:t,push:b,replace:E,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:F.add,isReady:Z,install(z){const re=this;z.component("RouterLink",Du),z.component("RouterView",mV),z.config.globalProperties.$router=re,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Ft(l)}),Sl&&!K&&l.value===fa&&(K=!0,b(i.location).catch(we=>{}));const he={};for(const we in fa)Object.defineProperty(he,we,{get:()=>l.value[we],enumerable:!0});z.provide(ny,re),z.provide(ry,bP(he)),z.provide(aQ,l);const Se=z.unmount;$.add(z),z.unmount=function(){$.delete(z),$.size<1&&(c=fa,V&&V(),V=null,l.value=fa,K=!1,U=!1),Se()}}};function Ee(z){return z.reduce((re,he)=>re.then(()=>C(he)),Promise.resolve())}return ce}function CZ(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;sKl(c,a))?r.push(a):n.push(a));const l=t.matched[s];l&&(e.matched.find(c=>Kl(c,l))||i.push(l))}return[n,r,i]}function AZ(t){return Xi(ry)}const wZ="modulepreload",MZ=function(t){return"/"+t},pS={},bf=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=MZ(l),l in pS)return;pS[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":wZ,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},OZ={class:"sticky top-0 z-50 w-full bg-transparent"},RZ={class:"container mx-auto px-4"},NZ={class:"flex items-center justify-between h-16"},DZ={class:"hidden md:block"},IZ={class:"flex items-center space-x-4"},kZ={class:"flex items-center space-x-1"},PZ={key:0,class:"ml-1 text-xs","aria-hidden":"true"},HZ={class:"md:hidden"},VZ={class:"px-2 pt-2 pb-3 space-y-1"},FZ={class:"flex items-center justify-between"},BZ={key:0,class:"text-xs","aria-hidden":"true"},$Z={name:"Navigation"},UZ=Object.assign($Z,{setup(t){const e=AZ(),n=At(0),r=At([]),i=At(!1),o=[{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:()=>go.state.config.enable_sd_service||go.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>go.state.config.enable_comfyui_service||go.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>go.state.config.active_tts_service!=="None"&&go.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],s=vt(()=>go.state.ready?o.filter(u=>u.condition?u.condition():u.active):o.filter(u=>u.active));ls(()=>{a()}),Lr(()=>e.name,a);function a(){const u=s.value.findIndex(d=>d.route===e.name);u!==-1&&(n.value=u)}function l(u){return e.name===u}function c(u){n.value=u}return(u,d)=>(k(),P("div",OZ,[g("nav",RZ,[g("div",NZ,[g("div",DZ,[g("div",IZ,[(k(!0),P(ze,null,lt(s.value,(h,f)=>(k(),wt(Ft(Du),{key:f,to:{name:h.route},class:We(["nav-button",{"nav-button-active":l(h.route)}]),onClick:m=>c(f),ref_for:!0,ref_key:"menuItems",ref:r},{default:Be(()=>[g("div",kZ,[nt(ue(h.text)+" ",1),l(h.route)?(k(),P("span",PZ," ✨ ")):ie("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),g("div",HZ,[g("button",{onClick:d[0]||(d[0]=h=>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"},[(k(),P("svg",{class:We(["h-6 w-6",{hidden:i.value,block:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},d[1]||(d[1]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(k(),P("svg",{class:We(["h-6 w-6",{block:i.value,hidden:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},d[2]||(d[2]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),g("div",{class:We([{block:i.value,hidden:!i.value},"md:hidden"])},[g("div",VZ,[(k(!0),P(ze,null,lt(s.value,(h,f)=>(k(),wt(Ft(Du),{key:f,to:{name:h.route},class:We(["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(h.route)}]),onClick:m=>{c(f),i.value=!1}},{default:Be(()=>[g("div",FZ,[nt(ue(h.text)+" ",1),l(h.route)?(k(),P("span",BZ," ✨ ")):ie("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),Et=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},GZ={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(t){this.href==="#"&&(t.preventDefault(),this.$emit("click"))}}},qZ=["href","title"],zZ=["data-feather"];function jZ(t,e,n,r,i,o){return k(),P("a",{href:n.href,onClick:e[0]||(e[0]=(...s)=>o.onClick&&o.onClick(...s)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[g("i",{"data-feather":n.icon},null,8,zZ)],8,qZ)}const gV=Et(GZ,[["render",jZ]]),WZ={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},YZ=["href","title"],KZ=["data-feather"],ZZ={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},XZ={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function JZ(t,e,n,r,i,o){return k(),P("a",{href:n.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[n.icon!=="x"&&n.icon!=="discord"?(k(),P("i",{key:0,"data-feather":n.icon},null,8,KZ)):n.icon==="x"?(k(),P("svg",ZZ,e[0]||(e[0]=[g("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)]))):n.icon==="discord"?(k(),P("svg",XZ,e[1]||(e[1]=[g("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)]))):ie("",!0)],8,YZ)}const _V=Et(WZ,[["render",JZ]]);var S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ic(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function iy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var QV={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(typeof self<"u"?self:S,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var s=r[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(o,s,a){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},i.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=0)}({"./dist/icons.json":function(n){n.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(n,r,i){var o,s;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -123,8 +123,8 @@ ${e} `}tablecell(e){const n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+` `}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:n,tokens:r}){const i=this.parser.parseInline(r),o=Hw(e);if(o===null)return i;e=o;let s='",s}image({href:e,title:n,text:r}){const i=Hw(e);if(i===null)return r;e=i;let o=`${r}{const c=a[l].flat(1/0);r=r.concat(this.walkTokens(c,n))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,n)))}}return r}use(...e){const n=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(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=n.renderers[o.name];s?n.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[o.level];s?s.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),i.extensions=n),r.renderer){const o=this.defaults.renderer||new Bu(this.defaults);for(const s in r.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const a=s,l=r.renderer[a],c=o[a];o[a]=(...u)=>{let d=l.apply(o,u);return d===!1&&(d=c.apply(o,u)),d||""}}i.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Vu(this.defaults);for(const s in r.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const a=s,l=r.tokenizer[a],c=o[a];o[a]=(...u)=>{let d=l.apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}i.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new H4;for(const s in r.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const a=s,l=r.hooks[a],c=o[a];H4.passThroughHooks.has(s)?o[a]=u=>{if(this.defaults.async)return Promise.resolve(l.call(o,u)).then(h=>c.call(o,h));const d=l.call(o,u);return c.call(o,d)}:o[a]=(...u)=>{let d=l.apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}i.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return Yi.lex(e,n??this.defaults)}parser(e,n){return Ki.parse(e,n??this.defaults)}parseMarkdown(e){return(r,i)=>{const o={...i},s={...this.defaults,...o},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&o.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"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const l=s.hooks?s.hooks.provideLexer():e?Yi.lex:Yi.lexInline,c=s.hooks?s.hooks.provideParser():e?Ki.parse:Ki.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(u=>l(u,s)).then(u=>s.hooks?s.hooks.processAllTokens(u):u).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>c(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(a);try{s.hooks&&(r=s.hooks.preprocess(r));let u=l(r,s);s.hooks&&(u=s.hooks.processAllTokens(u)),s.walkTokens&&this.walkTokens(u,s.walkTokens);let d=c(u,s);return s.hooks&&(d=s.hooks.postprocess(d)),d}catch(u){return a(u)}}}onError(e,n){return r=>{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const i="

An error occurred:

"+Li(r.message+"",!0)+"
";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const f2=new Z6t;function cn(t,e){return f2.parse(t,e)}cn.options=cn.setOptions=function(t){return f2.setOptions(t),cn.defaults=f2.defaults,nF(cn.defaults),cn};cn.getDefaults=Qy;cn.defaults=A2;cn.use=function(...t){return f2.use(...t),cn.defaults=f2.defaults,nF(cn.defaults),cn};cn.walkTokens=function(t,e){return f2.walkTokens(t,e)};cn.parseInline=f2.parseInline;cn.Parser=Ki;cn.parser=Ki.parse;cn.Renderer=Bu;cn.TextRenderer=Sy;cn.Lexer=Yi;cn.lexer=Yi.lex;cn.Tokenizer=Vu;cn.Hooks=H4;cn.parse=cn;cn.options;cn.setOptions;cn.use;cn.walkTokens;cn.parseInline;Ki.parse;Yi.lex;/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:fF,setPrototypeOf:$w,isFrozen:X6t,getPrototypeOf:J6t,getOwnPropertyDescriptor:e5t}=Object;let{freeze:ii,seal:ro,create:pF}=Object,{apply:hQ,construct:TQ}=typeof Reflect<"u"&&Reflect;ii||(ii=function(e){return e});ro||(ro=function(e){return e});hQ||(hQ=function(e,n,r){return e.apply(n,r)});TQ||(TQ=function(e,n){return new e(...n)});const I6=Ri(Array.prototype.forEach),Uw=Ri(Array.prototype.pop),m3=Ri(Array.prototype.push),lu=Ri(String.prototype.toLowerCase),hm=Ri(String.prototype.toString),Gw=Ri(String.prototype.match),g3=Ri(String.prototype.replace),t5t=Ri(String.prototype.indexOf),n5t=Ri(String.prototype.trim),To=Ri(Object.prototype.hasOwnProperty),qr=Ri(RegExp.prototype.test),_3=r5t(TypeError);function Ri(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:lu;$w&&$w(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(X6t(e)||(e[r]=o),i=o)}t[i]=!0}return t}function i5t(t){for(let e=0;e/gm),c5t=ro(/\${[\w\W]*}/gm),u5t=ro(/^data-[\-\w.\u00B7-\uFFFF]/),d5t=ro(/^aria-[\-\w]+$/),hF=ro(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),f5t=ro(/^(?:\w+script|data):/i),p5t=ro(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TF=ro(/^html$/i),h5t=ro(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yw=Object.freeze({__proto__:null,MUSTACHE_EXPR:a5t,ERB_EXPR:l5t,TMPLIT_EXPR:c5t,DATA_ATTR:u5t,ARIA_ATTR:d5t,IS_ALLOWED_URI:hF,IS_SCRIPT_OR_DATA:f5t,ATTR_WHITESPACE:p5t,DOCTYPE_NAME:TF,CUSTOM_ELEMENT:h5t});const v3={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},T5t=function(){return typeof window>"u"?null:window},m5t=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function mF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T5t();const e=me=>mF(me);if(e.version="3.1.7",e.removed=[],!t||!t.document||t.document.nodeType!==v3.document)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,m=l.prototype,T=Q3(m,"cloneNode"),Q=Q3(m,"remove"),_=Q3(m,"nextSibling"),v=Q3(m,"childNodes"),y=Q3(m,"parentNode");if(typeof s=="function"){const me=n.createElement("template");me.content&&me.content.ownerDocument&&(n=me.content.ownerDocument)}let b,E="";const{implementation:x,createNodeIterator:L,createDocumentFragment:M,getElementsByTagName:C}=n,{importNode:A}=r;let I={};e.isSupported=typeof fF=="function"&&typeof y=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:V,TMPLIT_EXPR:R,DATA_ATTR:B,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:Z}=Yw;let{IS_ALLOWED_URI:Y}=Yw,ee=null;const pe=Yt({},[...qw,...Tm,...mm,...gm,...zw]);let K=null;const $=Yt({},[...jw,..._m,...Ww,...k6]);let ce=Object.seal(pF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,z=null,re=!0,he=!0,Se=!1,we=!0,se=!1,W=!0,j=!1,oe=!1,_e=!1,ye=!1,le=!1,De=!1,Ce=!0,Oe=!1;const He="user-content-";let X=!0,q=!1,Te={},fe=null;const ve=Yt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Ie=Yt({},["audio","video","img","source","image","track"]);let Fe=null;const qe=Yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Ot=$e,pt=!1,ht=null;const Tt=Yt({},[ot,it,$e],hm);let rt=null;const ut=["application/xhtml+xml","text/html"],Qe="text/html";let Ue=null,Ge=null;const Ve=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},yt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===J)){if((!J||typeof J!="object")&&(J={}),J=B1(J),rt=ut.indexOf(J.PARSER_MEDIA_TYPE)===-1?Qe:J.PARSER_MEDIA_TYPE,Ue=rt==="application/xhtml+xml"?hm:lu,ee=To(J,"ALLOWED_TAGS")?Yt({},J.ALLOWED_TAGS,Ue):pe,K=To(J,"ALLOWED_ATTR")?Yt({},J.ALLOWED_ATTR,Ue):$,ht=To(J,"ALLOWED_NAMESPACES")?Yt({},J.ALLOWED_NAMESPACES,hm):Tt,Fe=To(J,"ADD_URI_SAFE_ATTR")?Yt(B1(qe),J.ADD_URI_SAFE_ATTR,Ue):qe,Me=To(J,"ADD_DATA_URI_TAGS")?Yt(B1(Ie),J.ADD_DATA_URI_TAGS,Ue):Ie,fe=To(J,"FORBID_CONTENTS")?Yt({},J.FORBID_CONTENTS,Ue):ve,Ee=To(J,"FORBID_TAGS")?Yt({},J.FORBID_TAGS,Ue):{},z=To(J,"FORBID_ATTR")?Yt({},J.FORBID_ATTR,Ue):{},Te=To(J,"USE_PROFILES")?J.USE_PROFILES:!1,re=J.ALLOW_ARIA_ATTR!==!1,he=J.ALLOW_DATA_ATTR!==!1,Se=J.ALLOW_UNKNOWN_PROTOCOLS||!1,we=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=J.SAFE_FOR_TEMPLATES||!1,W=J.SAFE_FOR_XML!==!1,j=J.WHOLE_DOCUMENT||!1,ye=J.RETURN_DOM||!1,le=J.RETURN_DOM_FRAGMENT||!1,De=J.RETURN_TRUSTED_TYPE||!1,_e=J.FORCE_BODY||!1,Ce=J.SANITIZE_DOM!==!1,Oe=J.SANITIZE_NAMED_PROPS||!1,X=J.KEEP_CONTENT!==!1,q=J.IN_PLACE||!1,Y=J.ALLOWED_URI_REGEXP||hF,Ot=J.NAMESPACE||$e,ce=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(he=!1),le&&(ye=!0),Te&&(ee=Yt({},zw),K=[],Te.html===!0&&(Yt(ee,qw),Yt(K,jw)),Te.svg===!0&&(Yt(ee,Tm),Yt(K,_m),Yt(K,k6)),Te.svgFilters===!0&&(Yt(ee,mm),Yt(K,_m),Yt(K,k6)),Te.mathMl===!0&&(Yt(ee,gm),Yt(K,Ww),Yt(K,k6))),J.ADD_TAGS&&(ee===pe&&(ee=B1(ee)),Yt(ee,J.ADD_TAGS,Ue)),J.ADD_ATTR&&(K===$&&(K=B1(K)),Yt(K,J.ADD_ATTR,Ue)),J.ADD_URI_SAFE_ATTR&&Yt(Fe,J.ADD_URI_SAFE_ATTR,Ue),J.FORBID_CONTENTS&&(fe===ve&&(fe=B1(fe)),Yt(fe,J.FORBID_CONTENTS,Ue)),X&&(ee["#text"]=!0),j&&Yt(ee,["html","head","body"]),ee.table&&(Yt(ee,["tbody"]),delete Ee.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw _3('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _3('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=J.TRUSTED_TYPES_POLICY,E=b.createHTML("")}else b===void 0&&(b=m5t(f,i)),b!==null&&typeof E=="string"&&(E=b.createHTML(""));ii&&ii(J),Ge=J}},Rt=Yt({},["mi","mo","mn","ms","mtext"]),wn=Yt({},["annotation-xml"]),Bn=Yt({},["title","style","font","a","script"]),Xt=Yt({},[...Tm,...mm,...o5t]),$n=Yt({},[...gm,...s5t]),hr=function(J){let de=y(J);(!de||!de.tagName)&&(de={namespaceURI:Ot,tagName:"template"});const Re=lu(J.tagName),ke=lu(de.tagName);return ht[J.namespaceURI]?J.namespaceURI===it?de.namespaceURI===$e?Re==="svg":de.namespaceURI===ot?Re==="svg"&&(ke==="annotation-xml"||Rt[ke]):!!Xt[Re]:J.namespaceURI===ot?de.namespaceURI===$e?Re==="math":de.namespaceURI===it?Re==="math"&&wn[ke]:!!$n[Re]:J.namespaceURI===$e?de.namespaceURI===it&&!wn[ke]||de.namespaceURI===ot&&!Rt[ke]?!1:!$n[Re]&&(Bn[Re]||!Xt[Re]):!!(rt==="application/xhtml+xml"&&ht[J.namespaceURI]):!1},lr=function(J){m3(e.removed,{element:J});try{y(J).removeChild(J)}catch{Q(J)}},$r=function(J,de){try{m3(e.removed,{attribute:de.getAttributeNode(J),from:de})}catch{m3(e.removed,{attribute:null,from:de})}if(de.removeAttribute(J),J==="is"&&!K[J])if(ye||le)try{lr(de)}catch{}else try{de.setAttribute(J,"")}catch{}},$t=function(J){let de=null,Re=null;if(_e)J=""+J;else{const je=Gw(J,/^[\r\n\t ]+/);Re=je&&je[0]}rt==="application/xhtml+xml"&&Ot===$e&&(J=''+J+"");const ke=b?b.createHTML(J):J;if(Ot===$e)try{de=new h().parseFromString(ke,rt)}catch{}if(!de||!de.documentElement){de=x.createDocument(Ot,"template",null);try{de.documentElement.innerHTML=pt?E:ke}catch{}}const H=de.body||de.documentElement;return J&&Re&&H.insertBefore(n.createTextNode(Re),H.childNodes[0]||null),Ot===$e?C.call(de,j?"html":"body")[0]:j?de.documentElement:H},oi=function(J){return L.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},zn=function(J){return J instanceof d&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof u)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},Mr=function(J){return typeof a=="function"&&J instanceof a},gn=function(J,de,Re){I[J]&&I6(I[J],ke=>{ke.call(e,de,Re,Ge)})},lo=function(J){let de=null;if(gn("beforeSanitizeElements",J,null),zn(J))return lr(J),!0;const Re=Ue(J.nodeName);if(gn("uponSanitizeElement",J,{tagName:Re,allowedTags:ee}),J.hasChildNodes()&&!Mr(J.firstElementChild)&&qr(/<[/\w]/g,J.innerHTML)&&qr(/<[/\w]/g,J.textContent)||J.nodeType===v3.progressingInstruction||W&&J.nodeType===v3.comment&&qr(/<[/\w]/g,J.data))return lr(J),!0;if(!ee[Re]||Ee[Re]){if(!Ee[Re]&&Io(Re)&&(ce.tagNameCheck instanceof RegExp&&qr(ce.tagNameCheck,Re)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Re)))return!1;if(X&&!fe[Re]){const ke=y(J)||J.parentNode,H=v(J)||J.childNodes;if(H&&ke){const je=H.length;for(let ft=je-1;ft>=0;--ft){const dt=T(H[ft],!0);dt.__removalCount=(J.__removalCount||0)+1,ke.insertBefore(dt,_(J))}}}return lr(J),!0}return J instanceof l&&!hr(J)||(Re==="noscript"||Re==="noembed"||Re==="noframes")&&qr(/<\/no(script|embed|frames)/i,J.innerHTML)?(lr(J),!0):(se&&J.nodeType===v3.text&&(de=J.textContent,I6([N,V,R],ke=>{de=g3(de,ke," ")}),J.textContent!==de&&(m3(e.removed,{element:J.cloneNode()}),J.textContent=de)),gn("afterSanitizeElements",J,null),!1)},co=function(J,de,Re){if(Ce&&(de==="id"||de==="name")&&(Re in n||Re in Ve))return!1;if(!(he&&!z[de]&&qr(B,de))){if(!(re&&qr(F,de))){if(!K[de]||z[de]){if(!(Io(J)&&(ce.tagNameCheck instanceof RegExp&&qr(ce.tagNameCheck,J)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(J))&&(ce.attributeNameCheck instanceof RegExp&&qr(ce.attributeNameCheck,de)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(de))||de==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&qr(ce.tagNameCheck,Re)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Re))))return!1}else if(!Fe[de]){if(!qr(Y,g3(Re,G,""))){if(!((de==="src"||de==="xlink:href"||de==="href")&&J!=="script"&&t5t(Re,"data:")===0&&Me[J])){if(!(Se&&!qr(U,g3(Re,G,"")))){if(Re)return!1}}}}}}return!0},Io=function(J){return J!=="annotation-xml"&&Gw(J,Z)},ne=function(J){gn("beforeSanitizeAttributes",J,null);const{attributes:de}=J;if(!de)return;const Re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};let ke=de.length;for(;ke--;){const H=de[ke],{name:je,namespaceURI:ft,value:dt}=H,mt=Ue(je);let bt=je==="value"?dt:n5t(dt);if(Re.attrName=mt,Re.attrValue=bt,Re.keepAttr=!0,Re.forceKeepAttr=void 0,gn("uponSanitizeAttribute",J,Re),bt=Re.attrValue,Re.forceKeepAttr||($r(je,J),!Re.keepAttr))continue;if(!we&&qr(/\/>/i,bt)){$r(je,J);continue}se&&I6([N,V,R],sn=>{bt=g3(bt,sn," ")});const qt=Ue(J.nodeName);if(co(qt,mt,bt)){if(Oe&&(mt==="id"||mt==="name")&&($r(je,J),bt=He+bt),W&&qr(/((--!?|])>)|<\/(style|title)/i,bt)){$r(je,J);continue}if(b&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!ft)switch(f.getAttributeType(qt,mt)){case"TrustedHTML":{bt=b.createHTML(bt);break}case"TrustedScriptURL":{bt=b.createScriptURL(bt);break}}try{ft?J.setAttributeNS(ft,je,bt):J.setAttribute(je,bt),zn(J)?lr(J):Uw(e.removed)}catch{}}}gn("afterSanitizeAttributes",J,null)},Ae=function me(J){let de=null;const Re=oi(J);for(gn("beforeSanitizeShadowDOM",J,null);de=Re.nextNode();)gn("uponSanitizeShadowNode",de,null),!lo(de)&&(de.content instanceof o&&me(de.content),ne(de));gn("afterSanitizeShadowDOM",J,null)};return e.sanitize=function(me){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=null,Re=null,ke=null,H=null;if(pt=!me,pt&&(me=""),typeof me!="string"&&!Mr(me))if(typeof me.toString=="function"){if(me=me.toString(),typeof me!="string")throw _3("dirty is not a string, aborting")}else throw _3("toString is not a function");if(!e.isSupported)return me;if(oe||yt(J),e.removed=[],typeof me=="string"&&(q=!1),q){if(me.nodeName){const dt=Ue(me.nodeName);if(!ee[dt]||Ee[dt])throw _3("root node is forbidden and cannot be sanitized in-place")}}else if(me instanceof a)de=$t(""),Re=de.ownerDocument.importNode(me,!0),Re.nodeType===v3.element&&Re.nodeName==="BODY"||Re.nodeName==="HTML"?de=Re:de.appendChild(Re);else{if(!ye&&!se&&!j&&me.indexOf("<")===-1)return b&&De?b.createHTML(me):me;if(de=$t(me),!de)return ye?null:De?E:""}de&&_e&&lr(de.firstChild);const je=oi(q?me:de);for(;ke=je.nextNode();)lo(ke)||(ke.content instanceof o&&Ae(ke.content),ne(ke));if(q)return me;if(ye){if(le)for(H=M.call(de.ownerDocument);de.firstChild;)H.appendChild(de.firstChild);else H=de;return(K.shadowroot||K.shadowrootmode)&&(H=A.call(r,H,!0)),H}let ft=j?de.outerHTML:de.innerHTML;return j&&ee["!doctype"]&&de.ownerDocument&&de.ownerDocument.doctype&&de.ownerDocument.doctype.name&&qr(TF,de.ownerDocument.doctype.name)&&(ft=" -`+ft),se&&I6([N,V,R],dt=>{ft=g3(ft,dt," ")}),b&&De?b.createHTML(ft):ft},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(me),oe=!0},e.clearConfig=function(){Ge=null,oe=!1},e.isValidAttribute=function(me,J,de){Ge||yt({});const Re=Ue(me),ke=Ue(J);return co(Re,ke,de)},e.addHook=function(me,J){typeof J=="function"&&(I[me]=I[me]||[],m3(I[me],J))},e.removeHook=function(me){if(I[me])return Uw(I[me])},e.removeHooks=function(me){I[me]&&(I[me]=[])},e.removeAllHooks=function(){I={}},e}var g5t=mF();cn.setOptions({highlight:function(t,e){return e&&es.getLanguage(e)?es.highlight(t,{language:e}).value:es.highlightAuto(t).value},breaks:!0,gfm:!0});const _5t={name:"ThinkingBlock",props:{content:{type:String,required:!0},isDone:{type:Boolean,required:!0,default:!1}},data(){return{isOpen:!1}},computed:{isThinking(){return!this.isDone},renderedContent(){return g5t.sanitize(cn.parse(this.content))}},watch:{content:{handler(){this.$nextTick(()=>{this.scrollToBottom()})},immediate:!0}},methods:{toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.$nextTick(()=>{this.scrollToBottom()})},scrollToBottom(){if(this.$refs.contentContainer){const t=this.$refs.contentContainer;t.scrollTop=t.scrollHeight}},downloadMarkdown(){const t=new Blob([this.content],{type:"text/markdown"}),e=window.URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.setAttribute("download","ai_thoughts.md"),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)}}},Q5t={class:"my-4"},v5t={class:"flex items-center gap-2"},y5t=["aria-expanded"],b5t={key:0,class:"flex items-center gap-2"},E5t={class:"flex space-x-1"},x5t={key:1},S5t={key:0,class:"mt-2 text-gray-600"},L5t={ref:"contentContainer",class:"p-4 rounded-lg prose prose-sm max-w-none overflow-y-auto max-h-[500px]"},C5t={key:0},A5t=["innerHTML"];function w5t(t,e,n,r,i,o){return k(),P("div",Q5t,[g("div",v5t,[g("button",{onClick:e[0]||(e[0]=(...s)=>o.toggle&&o.toggle(...s)),class:"group flex items-center gap-2 px-3 py-2 text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors duration-200 rounded-md hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","aria-expanded":i.isOpen},[(k(),P("svg",{class:We(["w-4 h-4 transition-transform duration-200",{"rotate-90":i.isOpen}]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},e[2]||(e[2]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2)),o.isThinking?(k(),P("span",b5t,[e[3]||(e[3]=nt(" Thinking ")),g("div",E5t,[(k(),P(ze,null,lt(3,s=>g("div",{key:s,class:"w-1 h-1 bg-blue-500 rounded-full animate-pulse",style:bn({animationDelay:`${(s-1)*150}ms`})},null,4)),64))])])):(k(),P("span",x5t,"AI Thoughts"))],8,y5t),!o.isThinking&&n.content?(k(),P("button",{key:0,onClick:e[1]||(e[1]=(...s)=>o.downloadMarkdown&&o.downloadMarkdown(...s)),class:"px-2 py-1 text-xs font-medium text-gray-600 hover:text-gray-900 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500",title:"Download as Markdown"},e[4]||(e[4]=[g("svg",{class:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 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)]))):ie("",!0)]),ae(Ai,{"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-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Be(()=>[i.isOpen?(k(),P("div",S5t,[g("div",L5t,[t.$slots.default?(k(),P("div",C5t,[er(t.$slots,"default")])):(k(),P("div",{key:1,innerHTML:o.renderedContent},null,8,A5t))],512)])):ie("",!0)]),_:3})])}const M5t=Et(_5t,[["render",w5t]]);var g7={},_7={};Object.defineProperty(_7,"__esModule",{value:!0});_7.VERSION=void 0;_7.VERSION="3.2.2";var Q7={},r1={};Object.defineProperty(r1,"__esModule",{value:!0});r1.PrioritizedList=void 0;var O5t=function(){function t(){this.items=[],this.items=[]}return t.prototype[Symbol.iterator]=function(){var e=0,n=this.items;return{next:function(){return{value:n[e++],done:e>n.length}}}},t.prototype.add=function(e,n){n===void 0&&(n=t.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n=0&&this.items[n].item!==e);n>=0&&this.items.splice(n,1)},t.DEFAULTPRIORITY=5,t}();r1.PrioritizedList=O5t;var R5t=S&&S.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N5t=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.HandlerList=void 0;var D5t=r1,I5t=function(t){R5t(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.register=function(n){return this.add(n,n.priority)},e.prototype.unregister=function(n){this.remove(n)},e.prototype.handlesDocument=function(n){var r,i;try{for(var o=N5t(this),s=o.next();!s.done;s=o.next()){var a=s.value,l=a.item;if(l.handlesDocument(n))return l}}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new Error("Can't find handler for document")},e.prototype.document=function(n,r){return r===void 0&&(r=null),this.handlesDocument(n).create(n,r)},e}(D5t.PrioritizedList);Q7.HandlerList=I5t;var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.retryAfter=Ka.handleRetriesFor=void 0;function k5t(t){return new Promise(function e(n,r){try{n(t())}catch(i){i.retry&&i.retry instanceof Promise?i.retry.then(function(){return e(n,r)}).catch(function(o){return r(o)}):i.restart&&i.restart.isCallback?MathJax.Callback.After(function(){return e(n,r)},i.restart):r(i)}})}Ka.handleRetriesFor=k5t;function P5t(t){var e=new Error("MathJax retry");throw e.retry=t,e}Ka.retryAfter=P5t;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.mathjax=void 0;var e=_7,n=Q7,r=Ka;t.mathjax={version:e.VERSION,handlers:new n.HandlerList,document:function(i,o){return t.mathjax.handlers.document(i,o)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})(g7);var v7={},R0={},ar={};(function(t){var e=S&&S.__values||function(v){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&v[y],E=0;if(b)return b.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&E>=v.length&&(v=void 0),{value:v&&v[E++],done:!v}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},n=S&&S.__read||function(v,y){var b=typeof Symbol=="function"&&v[Symbol.iterator];if(!b)return v;var E=b.call(v),x,L=[],M;try{for(;(y===void 0||y-- >0)&&!(x=E.next()).done;)L.push(x.value)}catch(C){M={error:C}}finally{try{x&&!x.done&&(b=E.return)&&b.call(E)}finally{if(M)throw M.error}}return L},r=S&&S.__spreadArray||function(v,y,b){if(b||arguments.length===2)for(var E=0,x=y.length,L;E=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Kw=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Zw=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},q5t=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r=s&&this.state(s-1),o.renderActions.renderMath(this,o,s)},i.prototype.convert=function(o,s){s===void 0&&(s=t.STATE.LAST),o.renderActions.renderConvert(this,o,s)},i.prototype.compile=function(o){this.state()=t.STATE.INSERTED&&this.removeFromDocument(s),o=t.STATE.TYPESET&&(this.outputData={}),o=t.STATE.COMPILED&&(this.inputData={}),this._state=o),this._state},i.prototype.reset=function(o){o===void 0&&(o=!1),this.state(t.STATE.UNPROCESSED,o)},i}();t.AbstractMathItem=n,t.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function r(i,o){if(i in t.STATE)throw Error("State "+i+" already exists");t.STATE[i]=o}t.newState=r})(M2);var X5t=S&&S.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tM=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};Object.defineProperty(y7,"__esModule",{value:!0});y7.FindTeX=void 0;var J5t=b7,P6=Gn,Qm=M2,eut=function(t){X5t(e,t);function e(n){var r=t.call(this,n)||this;return r.getPatterns(),r}return e.prototype.getPatterns=function(){var n=this,r=this.options,i=[],o=[],s=[];this.end={},this.env=this.sub=0;var a=1;r.inlineMath.forEach(function(l){return n.addPattern(i,l,!1)}),r.displayMath.forEach(function(l){return n.addPattern(i,l,!0)}),i.length&&o.push(i.sort(P6.sortLength).join("|")),r.processEnvironments&&(o.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=a,a++),r.processEscapes&&s.push("\\\\([\\\\$])"),r.processRefs&&s.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),s.length&&(o.push("("+s.join("|")+")"),this.sub=a),this.start=new RegExp(o.join("|"),"g"),this.hasPatterns=o.length>0},e.prototype.addPattern=function(n,r,i){var o=tM(r,2),s=o[0],a=o[1];n.push((0,P6.quotePattern)(s)),this.end[s]=[a,i,this.endPattern(a)]},e.prototype.endPattern=function(n,r){return new RegExp((r||(0,P6.quotePattern)(n))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},e.prototype.findEnd=function(n,r,i,o){for(var s=tM(o,3),a=s[0],l=s[1],c=s[2],u=c.lastIndex=i.index+i[0].length,d,h=0;d=c.exec(n);){if((d[1]||d[0])===a&&h===0)return(0,Qm.protoItem)(i[0],n.substr(u,d.index-u),d[0],r,i.index,d.index+d[0].length,l);d[0]==="{"?h++:d[0]==="}"&&h&&h--}return null},e.prototype.findMathInString=function(n,r,i){var o,s;for(this.start.lastIndex=0;o=this.start.exec(i);){if(o[this.env]!==void 0&&this.env){var a="\\\\end\\s*(\\{"+(0,P6.quotePattern)(o[this.env])+"\\})";s=this.findEnd(i,r,o,["{"+o[this.env]+"}",!0,this.endPattern(null,a)]),s&&(s.math=s.open+s.math+s.close,s.open=s.close="")}else if(o[this.sub]!==void 0&&this.sub){var l=o[this.sub],a=o.index+o[this.sub].length;l.length===2?s=(0,Qm.protoItem)("",l.substr(1),"",r,o.index,a):s=(0,Qm.protoItem)("",l,"",r,o.index,a,!1)}else s=this.findEnd(i,r,o,this.end[o[0]]);s&&(n.push(s),this.start.lastIndex=s.end.n)}},e.prototype.findMath=function(n){var r=[];if(this.hasPatterns)for(var i=0,o=n.length;i=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Attributes=t.INHERIT=void 0,t.INHERIT="_inherit_";var n=function(){function r(i,o){this.global=o,this.defaults=Object.create(o),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,i)}return r.prototype.set=function(i,o){this.attributes[i]=o},r.prototype.setList=function(i){Object.assign(this.attributes,i)},r.prototype.get=function(i){var o=this.attributes[i];return o===t.INHERIT&&(o=this.global[i]),o},r.prototype.getExplicit=function(i){if(this.attributes.hasOwnProperty(i))return this.attributes[i]},r.prototype.getList=function(){for(var i,o,s=[],a=0;a=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p2,"__esModule",{value:!0});p2.AbstractEmptyNode=p2.AbstractNode=void 0;var gF=function(){function t(e,n,r){var i,o;n===void 0&&(n={}),r===void 0&&(r=[]),this.factory=e,this.parent=null,this.properties={},this.childNodes=[];try{for(var s=y3(Object.keys(n)),a=s.next();!a.done;a=s.next()){var l=a.value;this.setProperty(l,n[l])}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}r.length&&this.setChildren(r)}return Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(e,n){this.properties[e]=n},t.prototype.getProperty=function(e){return this.properties[e]},t.prototype.getPropertyNames=function(){return Object.keys(this.properties)},t.prototype.getAllProperties=function(){return this.properties},t.prototype.removeProperty=function(){for(var e,n,r=[],i=0;i=Q.length&&(Q=void 0),{value:Q&&Q[y++],done:!Q}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},i=S&&S.__read||function(Q,_){var v=typeof Symbol=="function"&&Q[Symbol.iterator];if(!v)return Q;var y=v.call(Q),b,E=[],x;try{for(;(_===void 0||_-- >0)&&!(b=y.next()).done;)E.push(b.value)}catch(L){x={error:L}}finally{try{b&&!b.done&&(v=y.return)&&v.call(y)}finally{if(x)throw x.error}}return E};Object.defineProperty(t,"__esModule",{value:!0}),t.XMLNode=t.TextNode=t.AbstractMmlEmptyNode=t.AbstractMmlBaseNode=t.AbstractMmlLayoutNode=t.AbstractMmlTokenNode=t.AbstractMmlNode=t.indentAttributes=t.TEXCLASSNAMES=t.TEXCLASS=void 0;var o=Vc,s=p2;t.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},t.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var a=["","thinmathspace","mediummathspace","thickmathspace"],l=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];t.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var c=function(Q){e(_,Q);function _(v,y,b){y===void 0&&(y={}),b===void 0&&(b=[]);var E=Q.call(this,v)||this;return E.prevClass=null,E.prevLevel=null,E.texclass=null,E.arity<0&&(E.childNodes=[v.create("inferredMrow")],E.childNodes[0].parent=E),E.setChildren(b),E.attributes=new o.Attributes(v.getNodeClass(E.kind).defaults,v.getNodeClass("math").defaults),E.attributes.setList(y),E}return _.prototype.copy=function(v){var y,b,E,x;v===void 0&&(v=!1);var L=this.factory.create(this.kind);if(L.properties=n({},this.properties),this.attributes){var M=this.attributes.getAllAttributes();try{for(var C=r(Object.keys(M)),A=C.next();!A.done;A=C.next()){var I=A.value;(I!=="id"||v)&&L.attributes.set(I,M[I])}}catch(F){y={error:F}}finally{try{A&&!A.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}}if(this.childNodes&&this.childNodes.length){var N=this.childNodes;N.length===1&&N[0].isInferred&&(N=N[0].childNodes);try{for(var V=r(N),R=V.next();!R.done;R=V.next()){var B=R.value;B?L.appendChild(B.copy()):L.childNodes.push(null)}}catch(F){E={error:F}}finally{try{R&&!R.done&&(x=V.return)&&x.call(V)}finally{if(E)throw E.error}}}return L},Object.defineProperty(_.prototype,"texClass",{get:function(){return this.texclass},set:function(v){this.texclass=v},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"Parent",{get:function(){for(var v=this.parent;v&&v.notParent;)v=v.Parent;return v},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),_.prototype.setChildren=function(v){return this.arity<0?this.childNodes[0].setChildren(v):Q.prototype.setChildren.call(this,v)},_.prototype.appendChild=function(v){var y,b,E=this;if(this.arity<0)return this.childNodes[0].appendChild(v),v;if(v.isInferred){if(this.arity===1/0)return v.childNodes.forEach(function(A){return Q.prototype.appendChild.call(E,A)}),v;var x=v;v=this.factory.create("mrow"),v.setChildren(x.childNodes),v.attributes=x.attributes;try{for(var L=r(x.getPropertyNames()),M=L.next();!M.done;M=L.next()){var C=M.value;v.setProperty(C,x.getProperty(C))}}catch(A){y={error:A}}finally{try{M&&!M.done&&(b=L.return)&&b.call(L)}finally{if(y)throw y.error}}}return Q.prototype.appendChild.call(this,v)},_.prototype.replaceChild=function(v,y){return this.arity<0?(this.childNodes[0].replaceChild(v,y),v):Q.prototype.replaceChild.call(this,v,y)},_.prototype.core=function(){return this},_.prototype.coreMO=function(){return this},_.prototype.coreIndex=function(){return 0},_.prototype.childPosition=function(){for(var v,y,b=this,E=b.parent;E&&E.notParent;)b=E,E=E.parent;if(E){var x=0;try{for(var L=r(E.childNodes),M=L.next();!M.done;M=L.next()){var C=M.value;if(C===b)return x;x++}}catch(A){v={error:A}}finally{try{M&&!M.done&&(y=L.return)&&y.call(L)}finally{if(v)throw v.error}}}return null},_.prototype.setTeXclass=function(v){return this.getPrevClass(v),this.texClass!=null?this:v},_.prototype.updateTeXclass=function(v){v&&(this.prevClass=v.prevClass,this.prevLevel=v.prevLevel,v.prevClass=v.prevLevel=null,this.texClass=v.texClass)},_.prototype.getPrevClass=function(v){v&&(this.prevClass=v.texClass,this.prevLevel=v.attributes.get("scriptlevel"))},_.prototype.texSpacing=function(){var v=this.prevClass!=null?this.prevClass:t.TEXCLASS.NONE,y=this.texClass||t.TEXCLASS.ORD;if(v===t.TEXCLASS.NONE||y===t.TEXCLASS.NONE)return"";v===t.TEXCLASS.VCENTER&&(v=t.TEXCLASS.ORD),y===t.TEXCLASS.VCENTER&&(y=t.TEXCLASS.ORD);var b=l[v][y];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&b>=0?"":a[Math.abs(b)]},_.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},_.prototype.setInheritedAttributes=function(v,y,b,E){var x,L;v===void 0&&(v={}),y===void 0&&(y=!1),b===void 0&&(b=0),E===void 0&&(E=!1);var M=this.attributes.getAllDefaults();try{for(var C=r(Object.keys(v)),A=C.next();!A.done;A=C.next()){var I=A.value;if(M.hasOwnProperty(I)||_.alwaysInherit.hasOwnProperty(I)){var N=i(v[I],2),V=N[0],R=N[1],B=(_.noInherit[V]||{})[this.kind]||{};B[I]||this.attributes.setInherited(I,R)}}}catch(Z){x={error:Z}}finally{try{A&&!A.done&&(L=C.return)&&L.call(C)}finally{if(x)throw x.error}}var F=this.attributes.getExplicit("displaystyle");F===void 0&&this.attributes.setInherited("displaystyle",y);var U=this.attributes.getExplicit("scriptlevel");U===void 0&&this.attributes.setInherited("scriptlevel",b),E&&this.setProperty("texprimestyle",E);var G=this.arity;if(G>=0&&G!==1/0&&(G===1&&this.childNodes.length===0||G!==1&&this.childNodes.length!==G))if(G=0&&y!==1/0&&(y===1&&this.childNodes.length===0||y!==1&&this.childNodes.length!==y)&&this.mError('Wrong number of children for "'+this.kind+'" node',v,!0),this.verifyChildren(v)}},_.prototype.verifyAttributes=function(v){var y,b;if(v.checkAttributes){var E=this.attributes,x=[];try{for(var L=r(E.getExplicitNames()),M=L.next();!M.done;M=L.next()){var C=M.value;C.substr(0,5)!=="data-"&&E.getDefault(C)===void 0&&!C.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&x.push(C)}}catch(A){y={error:A}}finally{try{M&&!M.done&&(b=L.return)&&b.call(L)}finally{if(y)throw y.error}}x.length&&this.mError("Unknown attributes for "+this.kind+" node: "+x.join(", "),v)}},_.prototype.verifyChildren=function(v){var y,b;try{for(var E=r(this.childNodes),x=E.next();!x.done;x=E.next()){var L=x.value;L.verifyTree(v)}}catch(M){y={error:M}}finally{try{x&&!x.done&&(b=E.return)&&b.call(E)}finally{if(y)throw y.error}}},_.prototype.mError=function(v,y,b){if(b===void 0&&(b=!1),this.parent&&this.parent.isKind("merror"))return null;var E=this.factory.create("merror");if(E.attributes.set("data-mjx-message",v),y.fullErrors||b){var x=this.factory.create("mtext"),L=this.factory.create("text");L.setText(y.fullErrors?v:this.kind),x.appendChild(L),E.appendChild(x),this.parent.replaceChild(E,this)}else this.parent.replaceChild(E,this),E.appendChild(this);return E},_.defaults={mathbackground:o.INHERIT,mathcolor:o.INHERIT,mathsize:o.INHERIT,dir:o.INHERIT},_.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},_.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},_.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},_}(s.AbstractNode);t.AbstractMmlNode=c;var u=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),_.prototype.getText=function(){var v,y,b="";try{for(var E=r(this.childNodes),x=E.next();!x.done;x=E.next()){var L=x.value;L instanceof m&&(b+=L.getText())}}catch(M){v={error:M}}finally{try{x&&!x.done&&(y=E.return)&&y.call(E)}finally{if(v)throw v.error}}return b},_.prototype.setChildInheritedAttributes=function(v,y,b,E){var x,L;try{for(var M=r(this.childNodes),C=M.next();!C.done;C=M.next()){var A=C.value;A instanceof c&&A.setInheritedAttributes(v,y,b,E)}}catch(I){x={error:I}}finally{try{C&&!C.done&&(L=M.return)&&L.call(M)}finally{if(x)throw x.error}}},_.prototype.walkTree=function(v,y){var b,E;v(this,y);try{for(var x=r(this.childNodes),L=x.next();!L.done;L=x.next()){var M=L.value;M instanceof c&&M.walkTree(v,y)}}catch(C){b={error:C}}finally{try{L&&!L.done&&(E=x.return)&&E.call(x)}finally{if(b)throw b.error}}return y},_.defaults=n(n({},c.defaults),{mathvariant:"normal",mathsize:o.INHERIT}),_}(c);t.AbstractMmlTokenNode=u;var d=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this.childNodes[0]},_.prototype.coreMO=function(){return this.childNodes[0].coreMO()},_.prototype.setTeXclass=function(v){return v=this.childNodes[0].setTeXclass(v),this.updateTeXclass(this.childNodes[0]),v},_.defaults=c.defaults,_}(c);t.AbstractMmlLayoutNode=d;var h=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this.childNodes[0]},_.prototype.coreMO=function(){return this.childNodes[0].coreMO()},_.prototype.setTeXclass=function(v){var y,b;this.getPrevClass(v),this.texClass=t.TEXCLASS.ORD;var E=this.childNodes[0];E?this.isEmbellished||E.isKind("mi")?(v=E.setTeXclass(v),this.updateTeXclass(this.core())):(E.setTeXclass(null),v=this):v=this;try{for(var x=r(this.childNodes.slice(1)),L=x.next();!L.done;L=x.next()){var M=L.value;M&&M.setTeXclass(null)}}catch(C){y={error:C}}finally{try{L&&!L.done&&(b=x.return)&&b.call(x)}finally{if(y)throw y.error}}return v},_.defaults=c.defaults,_}(c);t.AbstractMmlBaseNode=h;var f=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"texClass",{get:function(){return t.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"prevClass",{get:function(){return t.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),_.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(_.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this},_.prototype.coreMO=function(){return this},_.prototype.coreIndex=function(){return 0},_.prototype.childPosition=function(){return 0},_.prototype.setTeXclass=function(v){return v},_.prototype.texSpacing=function(){return""},_.prototype.setInheritedAttributes=function(v,y,b,E){},_.prototype.inheritAttributesFrom=function(v){},_.prototype.verifyTree=function(v){},_.prototype.mError=function(v,y,b){return null},_}(s.AbstractEmptyNode);t.AbstractMmlEmptyNode=f;var m=function(Q){e(_,Q);function _(){var v=Q!==null&&Q.apply(this,arguments)||this;return v.text="",v}return Object.defineProperty(_.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),_.prototype.getText=function(){return this.text},_.prototype.setText=function(v){return this.text=v,this},_.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},_.prototype.toString=function(){return this.text},_}(f);t.TextNode=m;var T=function(Q){e(_,Q);function _(){var v=Q!==null&&Q.apply(this,arguments)||this;return v.xml=null,v.adaptor=null,v}return Object.defineProperty(_.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),_.prototype.getXML=function(){return this.xml},_.prototype.setXML=function(v,y){return y===void 0&&(y=null),this.xml=v,this.adaptor=y,this},_.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},_.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},_.prototype.toString=function(){return"XML data"},_}(f);t.XMLNode=T})(St);var Dn={},O2={},Cy={};(function(t){var e=S&&S.__values||function(o){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&o[s],l=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&l>=o.length&&(o=void 0),{value:o&&o[l++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.OPTABLE=t.MMLSPACING=t.getRange=t.RANGES=t.MO=t.OPDEF=void 0;var n=St;function r(o,s,a,l){return a===void 0&&(a=n.TEXCLASS.BIN),l===void 0&&(l=null),[o,s,a,l]}t.OPDEF=r,t.MO={ORD:r(0,0,n.TEXCLASS.ORD),ORD11:r(1,1,n.TEXCLASS.ORD),ORD21:r(2,1,n.TEXCLASS.ORD),ORD02:r(0,2,n.TEXCLASS.ORD),ORD55:r(5,5,n.TEXCLASS.ORD),NONE:r(0,0,n.TEXCLASS.NONE),OP:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,n.TEXCLASS.BIN),BIN4:r(4,4,n.TEXCLASS.BIN),BIN01:r(0,1,n.TEXCLASS.BIN),BIN5:r(5,5,n.TEXCLASS.BIN),TALLBIN:r(4,4,n.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,n.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,n.TEXCLASS.REL),REL1:r(1,1,n.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,n.TEXCLASS.REL),RELSTRETCH:r(5,5,n.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,n.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,n.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,n.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,n.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,n.TEXCLASS.INNER),PUNCT:r(0,3,n.TEXCLASS.PUNCT),ACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0,stretchy:!0})},t.RANGES=[[32,127,n.TEXCLASS.REL,"mo"],[160,191,n.TEXCLASS.ORD,"mo"],[192,591,n.TEXCLASS.ORD,"mi"],[688,879,n.TEXCLASS.ORD,"mo"],[880,6688,n.TEXCLASS.ORD,"mi"],[6832,6911,n.TEXCLASS.ORD,"mo"],[6912,7615,n.TEXCLASS.ORD,"mi"],[7616,7679,n.TEXCLASS.ORD,"mo"],[7680,8191,n.TEXCLASS.ORD,"mi"],[8192,8303,n.TEXCLASS.ORD,"mo"],[8304,8351,n.TEXCLASS.ORD,"mo"],[8448,8527,n.TEXCLASS.ORD,"mi"],[8528,8591,n.TEXCLASS.ORD,"mn"],[8592,8703,n.TEXCLASS.REL,"mo"],[8704,8959,n.TEXCLASS.BIN,"mo"],[8960,9215,n.TEXCLASS.ORD,"mo"],[9312,9471,n.TEXCLASS.ORD,"mn"],[9472,10223,n.TEXCLASS.ORD,"mo"],[10224,10239,n.TEXCLASS.REL,"mo"],[10240,10495,n.TEXCLASS.ORD,"mtext"],[10496,10623,n.TEXCLASS.REL,"mo"],[10624,10751,n.TEXCLASS.ORD,"mo"],[10752,11007,n.TEXCLASS.BIN,"mo"],[11008,11055,n.TEXCLASS.ORD,"mo"],[11056,11087,n.TEXCLASS.REL,"mo"],[11088,11263,n.TEXCLASS.ORD,"mo"],[11264,11744,n.TEXCLASS.ORD,"mi"],[11776,11903,n.TEXCLASS.ORD,"mo"],[11904,12255,n.TEXCLASS.ORD,"mi","normal"],[12272,12351,n.TEXCLASS.ORD,"mo"],[12352,42143,n.TEXCLASS.ORD,"mi","normal"],[42192,43055,n.TEXCLASS.ORD,"mi"],[43056,43071,n.TEXCLASS.ORD,"mn"],[43072,55295,n.TEXCLASS.ORD,"mi"],[63744,64255,n.TEXCLASS.ORD,"mi","normal"],[64256,65023,n.TEXCLASS.ORD,"mi"],[65024,65135,n.TEXCLASS.ORD,"mo"],[65136,65791,n.TEXCLASS.ORD,"mi"],[65792,65935,n.TEXCLASS.ORD,"mn"],[65936,74751,n.TEXCLASS.ORD,"mi","normal"],[74752,74879,n.TEXCLASS.ORD,"mn"],[74880,113823,n.TEXCLASS.ORD,"mi","normal"],[113824,119391,n.TEXCLASS.ORD,"mo"],[119648,119679,n.TEXCLASS.ORD,"mn"],[119808,120781,n.TEXCLASS.ORD,"mi"],[120782,120831,n.TEXCLASS.ORD,"mn"],[122624,129023,n.TEXCLASS.ORD,"mo"],[129024,129279,n.TEXCLASS.REL,"mo"],[129280,129535,n.TEXCLASS.ORD,"mo"],[131072,195103,n.TEXCLASS.ORD,"mi","normnal"]];function i(o){var s,a,l=o.codePointAt(0);try{for(var c=e(t.RANGES),u=c.next();!u.done;u=c.next()){var d=u.value;if(l<=d[1]){if(l>=d[0])return d;break}}}catch(h){s={error:h}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}return null}t.getRange=i,t.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],t.OPTABLE={prefix:{"(":t.MO.OPEN,"+":t.MO.BIN01,"-":t.MO.BIN01,"[":t.MO.OPEN,"{":t.MO.OPEN,"|":t.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":t.MO.ORD21,"±":t.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"ⅅ":t.MO.ORD21,"ⅆ":r(2,0,n.TEXCLASS.ORD),"∀":t.MO.ORD21,"∂":t.MO.ORD21,"∃":t.MO.ORD21,"∄":t.MO.ORD21,"∇":t.MO.ORD21,"∏":t.MO.OP,"∐":t.MO.OP,"∑":t.MO.OP,"−":t.MO.BIN01,"∓":t.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:!0}],"∛":t.MO.ORD11,"∜":t.MO.ORD11,"∠":t.MO.ORD,"∡":t.MO.ORD,"∢":t.MO.ORD,"∫":t.MO.INTEGRAL,"∬":t.MO.INTEGRAL,"∭":t.MO.INTEGRAL,"∮":t.MO.INTEGRAL,"∯":t.MO.INTEGRAL,"∰":t.MO.INTEGRAL,"∱":t.MO.INTEGRAL,"∲":t.MO.INTEGRAL,"∳":t.MO.INTEGRAL,"⋀":t.MO.OP,"⋁":t.MO.OP,"⋂":t.MO.OP,"⋃":t.MO.OP,"⌈":t.MO.OPEN,"⌊":t.MO.OPEN,"〈":t.MO.OPEN,"❲":t.MO.OPEN,"⟦":t.MO.OPEN,"⟨":t.MO.OPEN,"⟪":t.MO.OPEN,"⟬":t.MO.OPEN,"⟮":t.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":t.MO.OPEN,"⦅":t.MO.OPEN,"⦇":t.MO.OPEN,"⦉":t.MO.OPEN,"⦋":t.MO.OPEN,"⦍":t.MO.OPEN,"⦏":t.MO.OPEN,"⦑":t.MO.OPEN,"⦓":t.MO.OPEN,"⦕":t.MO.OPEN,"⦗":t.MO.OPEN,"⧼":t.MO.OPEN,"⨀":t.MO.OP,"⨁":t.MO.OP,"⨂":t.MO.OP,"⨃":t.MO.OP,"⨄":t.MO.OP,"⨅":t.MO.OP,"⨆":t.MO.OP,"⨇":t.MO.OP,"⨈":t.MO.OP,"⨉":t.MO.OP,"⨊":t.MO.OP,"⨋":t.MO.INTEGRAL2,"⨌":t.MO.INTEGRAL,"⨍":t.MO.INTEGRAL2,"⨎":t.MO.INTEGRAL2,"⨏":t.MO.INTEGRAL2,"⨐":t.MO.OP,"⨑":t.MO.OP,"⨒":t.MO.OP,"⨓":t.MO.OP,"⨔":t.MO.OP,"⨕":t.MO.INTEGRAL2,"⨖":t.MO.INTEGRAL2,"⨗":t.MO.INTEGRAL2,"⨘":t.MO.INTEGRAL2,"⨙":t.MO.INTEGRAL2,"⨚":t.MO.INTEGRAL2,"⨛":t.MO.INTEGRAL2,"⨜":t.MO.INTEGRAL2,"⫼":t.MO.OP,"⫿":t.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':t.MO.ACCENT,"&":t.MO.ORD,")":t.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":t.MO.ORD,"'":t.MO.ACCENT,"]":t.MO.CLOSE,"^":t.MO.WIDEACCENT,_:t.MO.WIDEACCENT,"`":t.MO.ACCENT,"|":t.MO.CLOSE,"}":t.MO.CLOSE,"~":t.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":t.MO.ACCENT,ª:t.MO.ACCENT,"¯":t.MO.WIDEACCENT,"°":t.MO.ORD,"²":t.MO.ACCENT,"³":t.MO.ACCENT,"´":t.MO.ACCENT,"¸":t.MO.ACCENT,"¹":t.MO.ACCENT,º:t.MO.ACCENT,"ˆ":t.MO.WIDEACCENT,"ˇ":t.MO.WIDEACCENT,"ˉ":t.MO.WIDEACCENT,"ˊ":t.MO.ACCENT,"ˋ":t.MO.ACCENT,"ˍ":t.MO.WIDEACCENT,"˘":t.MO.ACCENT,"˙":t.MO.ACCENT,"˚":t.MO.ACCENT,"˜":t.MO.WIDEACCENT,"˝":t.MO.ACCENT,"˷":t.MO.WIDEACCENT,"̂":t.MO.WIDEACCENT,"̑":t.MO.ACCENT,"϶":t.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"‚":t.MO.ACCENT,"‛":t.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"„":t.MO.ACCENT,"‟":t.MO.ACCENT,"′":t.MO.ORD,"″":t.MO.ACCENT,"‴":t.MO.ACCENT,"‵":t.MO.ACCENT,"‶":t.MO.ACCENT,"‷":t.MO.ACCENT,"‾":t.MO.WIDEACCENT,"⁗":t.MO.ACCENT,"⃛":t.MO.ACCENT,"⃜":t.MO.ACCENT,"⌉":t.MO.CLOSE,"⌋":t.MO.CLOSE,"〉":t.MO.CLOSE,"⎴":t.MO.WIDEACCENT,"⎵":t.MO.WIDEACCENT,"⏜":t.MO.WIDEACCENT,"⏝":t.MO.WIDEACCENT,"⏞":t.MO.WIDEACCENT,"⏟":t.MO.WIDEACCENT,"⏠":t.MO.WIDEACCENT,"⏡":t.MO.WIDEACCENT,"■":t.MO.BIN3,"□":t.MO.BIN3,"▪":t.MO.BIN3,"▫":t.MO.BIN3,"▭":t.MO.BIN3,"▮":t.MO.BIN3,"▯":t.MO.BIN3,"▰":t.MO.BIN3,"▱":t.MO.BIN3,"▲":t.MO.BIN4,"▴":t.MO.BIN4,"▶":t.MO.BIN4,"▷":t.MO.BIN4,"▸":t.MO.BIN4,"▼":t.MO.BIN4,"▾":t.MO.BIN4,"◀":t.MO.BIN4,"◁":t.MO.BIN4,"◂":t.MO.BIN4,"◄":t.MO.BIN4,"◅":t.MO.BIN4,"◆":t.MO.BIN4,"◇":t.MO.BIN4,"◈":t.MO.BIN4,"◉":t.MO.BIN4,"◌":t.MO.BIN4,"◍":t.MO.BIN4,"◎":t.MO.BIN4,"●":t.MO.BIN4,"◖":t.MO.BIN4,"◗":t.MO.BIN4,"◦":t.MO.BIN4,"♭":t.MO.ORD02,"♮":t.MO.ORD02,"♯":t.MO.ORD02,"❳":t.MO.CLOSE,"⟧":t.MO.CLOSE,"⟩":t.MO.CLOSE,"⟫":t.MO.CLOSE,"⟭":t.MO.CLOSE,"⟯":t.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":t.MO.CLOSE,"⦆":t.MO.CLOSE,"⦈":t.MO.CLOSE,"⦊":t.MO.CLOSE,"⦌":t.MO.CLOSE,"⦎":t.MO.CLOSE,"⦐":t.MO.CLOSE,"⦒":t.MO.CLOSE,"⦔":t.MO.CLOSE,"⦖":t.MO.CLOSE,"⦘":t.MO.CLOSE,"⧽":t.MO.CLOSE},infix:{"!=":t.MO.BIN4,"#":t.MO.ORD,$:t.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":t.MO.BIN4,"":t.MO.ORD,"*":t.MO.BIN3,"**":r(1,1),"*=":t.MO.BIN4,"+":t.MO.BIN4,"+=":t.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":t.MO.BIN4,"-=":t.MO.BIN4,"->":t.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:!0}],"/":t.MO.ORD11,"//":r(1,1),"/=":t.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":t.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":t.MO.REL,"<=":t.MO.BIN5,"<>":r(1,1),"=":t.MO.REL,"==":t.MO.BIN4,">":t.MO.REL,">=":t.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":t.MO.ORD11,"\\":t.MO.ORD,"^":t.MO.ORD11,_:t.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":t.MO.BIN4,"·":t.MO.BIN4,"×":t.MO.BIN4,"÷":t.MO.BIN4,"ʹ":t.MO.ORD,"̀":t.MO.ACCENT,"́":t.MO.ACCENT,"̃":t.MO.WIDEACCENT,"̄":t.MO.ACCENT,"̆":t.MO.ACCENT,"̇":t.MO.ACCENT,"̈":t.MO.ACCENT,"̌":t.MO.ACCENT,"̲":t.MO.WIDEACCENT,"̸":t.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"†":t.MO.BIN3,"‡":t.MO.BIN3,"•":t.MO.BIN4,"…":t.MO.INNER,"⁃":t.MO.BIN4,"⁄":t.MO.TALLBIN,"⁡":t.MO.NONE,"⁢":t.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"⁤":t.MO.NONE,"⃗":t.MO.ACCENT,ℑ:t.MO.ORD,ℓ:t.MO.ORD,"℘":t.MO.ORD,ℜ:t.MO.ORD,"←":t.MO.WIDEREL,"↑":t.MO.RELSTRETCH,"→":t.MO.WIDEREL,"↓":t.MO.RELSTRETCH,"↔":t.MO.WIDEREL,"↕":t.MO.RELSTRETCH,"↖":t.MO.RELSTRETCH,"↗":t.MO.RELSTRETCH,"↘":t.MO.RELSTRETCH,"↙":t.MO.RELSTRETCH,"↚":t.MO.RELACCENT,"↛":t.MO.RELACCENT,"↜":t.MO.WIDEREL,"↝":t.MO.WIDEREL,"↞":t.MO.WIDEREL,"↟":t.MO.WIDEREL,"↠":t.MO.WIDEREL,"↡":t.MO.RELSTRETCH,"↢":t.MO.WIDEREL,"↣":t.MO.WIDEREL,"↤":t.MO.WIDEREL,"↥":t.MO.RELSTRETCH,"↦":t.MO.WIDEREL,"↧":t.MO.RELSTRETCH,"↨":t.MO.RELSTRETCH,"↩":t.MO.WIDEREL,"↪":t.MO.WIDEREL,"↫":t.MO.WIDEREL,"↬":t.MO.WIDEREL,"↭":t.MO.WIDEREL,"↮":t.MO.RELACCENT,"↯":t.MO.RELSTRETCH,"↰":t.MO.RELSTRETCH,"↱":t.MO.RELSTRETCH,"↲":t.MO.RELSTRETCH,"↳":t.MO.RELSTRETCH,"↴":t.MO.RELSTRETCH,"↵":t.MO.RELSTRETCH,"↶":t.MO.RELACCENT,"↷":t.MO.RELACCENT,"↸":t.MO.REL,"↹":t.MO.WIDEREL,"↺":t.MO.REL,"↻":t.MO.REL,"↼":t.MO.WIDEREL,"↽":t.MO.WIDEREL,"↾":t.MO.RELSTRETCH,"↿":t.MO.RELSTRETCH,"⇀":t.MO.WIDEREL,"⇁":t.MO.WIDEREL,"⇂":t.MO.RELSTRETCH,"⇃":t.MO.RELSTRETCH,"⇄":t.MO.WIDEREL,"⇅":t.MO.RELSTRETCH,"⇆":t.MO.WIDEREL,"⇇":t.MO.WIDEREL,"⇈":t.MO.RELSTRETCH,"⇉":t.MO.WIDEREL,"⇊":t.MO.RELSTRETCH,"⇋":t.MO.WIDEREL,"⇌":t.MO.WIDEREL,"⇍":t.MO.RELACCENT,"⇎":t.MO.RELACCENT,"⇏":t.MO.RELACCENT,"⇐":t.MO.WIDEREL,"⇑":t.MO.RELSTRETCH,"⇒":t.MO.WIDEREL,"⇓":t.MO.RELSTRETCH,"⇔":t.MO.WIDEREL,"⇕":t.MO.RELSTRETCH,"⇖":t.MO.RELSTRETCH,"⇗":t.MO.RELSTRETCH,"⇘":t.MO.RELSTRETCH,"⇙":t.MO.RELSTRETCH,"⇚":t.MO.WIDEREL,"⇛":t.MO.WIDEREL,"⇜":t.MO.WIDEREL,"⇝":t.MO.WIDEREL,"⇞":t.MO.REL,"⇟":t.MO.REL,"⇠":t.MO.WIDEREL,"⇡":t.MO.RELSTRETCH,"⇢":t.MO.WIDEREL,"⇣":t.MO.RELSTRETCH,"⇤":t.MO.WIDEREL,"⇥":t.MO.WIDEREL,"⇦":t.MO.WIDEREL,"⇧":t.MO.RELSTRETCH,"⇨":t.MO.WIDEREL,"⇩":t.MO.RELSTRETCH,"⇪":t.MO.RELSTRETCH,"⇫":t.MO.RELSTRETCH,"⇬":t.MO.RELSTRETCH,"⇭":t.MO.RELSTRETCH,"⇮":t.MO.RELSTRETCH,"⇯":t.MO.RELSTRETCH,"⇰":t.MO.WIDEREL,"⇱":t.MO.REL,"⇲":t.MO.REL,"⇳":t.MO.RELSTRETCH,"⇴":t.MO.RELACCENT,"⇵":t.MO.RELSTRETCH,"⇶":t.MO.WIDEREL,"⇷":t.MO.RELACCENT,"⇸":t.MO.RELACCENT,"⇹":t.MO.RELACCENT,"⇺":t.MO.RELACCENT,"⇻":t.MO.RELACCENT,"⇼":t.MO.RELACCENT,"⇽":t.MO.WIDEREL,"⇾":t.MO.WIDEREL,"⇿":t.MO.WIDEREL,"∁":r(1,2,n.TEXCLASS.ORD),"∅":t.MO.ORD,"∆":t.MO.BIN3,"∈":t.MO.REL,"∉":t.MO.REL,"∊":t.MO.REL,"∋":t.MO.REL,"∌":t.MO.REL,"∍":t.MO.REL,"∎":t.MO.BIN3,"−":t.MO.BIN4,"∓":t.MO.BIN4,"∔":t.MO.BIN4,"∕":t.MO.TALLBIN,"∖":t.MO.BIN4,"∗":t.MO.BIN4,"∘":t.MO.BIN4,"∙":t.MO.BIN4,"∝":t.MO.REL,"∞":t.MO.ORD,"∟":t.MO.REL,"∣":t.MO.REL,"∤":t.MO.REL,"∥":t.MO.REL,"∦":t.MO.REL,"∧":t.MO.BIN4,"∨":t.MO.BIN4,"∩":t.MO.BIN4,"∪":t.MO.BIN4,"∴":t.MO.REL,"∵":t.MO.REL,"∶":t.MO.REL,"∷":t.MO.REL,"∸":t.MO.BIN4,"∹":t.MO.REL,"∺":t.MO.BIN4,"∻":t.MO.REL,"∼":t.MO.REL,"∽":t.MO.REL,"∽̱":t.MO.BIN3,"∾":t.MO.REL,"∿":t.MO.BIN3,"≀":t.MO.BIN4,"≁":t.MO.REL,"≂":t.MO.REL,"≂̸":t.MO.REL,"≃":t.MO.REL,"≄":t.MO.REL,"≅":t.MO.REL,"≆":t.MO.REL,"≇":t.MO.REL,"≈":t.MO.REL,"≉":t.MO.REL,"≊":t.MO.REL,"≋":t.MO.REL,"≌":t.MO.REL,"≍":t.MO.REL,"≎":t.MO.REL,"≎̸":t.MO.REL,"≏":t.MO.REL,"≏̸":t.MO.REL,"≐":t.MO.REL,"≑":t.MO.REL,"≒":t.MO.REL,"≓":t.MO.REL,"≔":t.MO.REL,"≕":t.MO.REL,"≖":t.MO.REL,"≗":t.MO.REL,"≘":t.MO.REL,"≙":t.MO.REL,"≚":t.MO.REL,"≛":t.MO.REL,"≜":t.MO.REL,"≝":t.MO.REL,"≞":t.MO.REL,"≟":t.MO.REL,"≠":t.MO.REL,"≡":t.MO.REL,"≢":t.MO.REL,"≣":t.MO.REL,"≤":t.MO.REL,"≥":t.MO.REL,"≦":t.MO.REL,"≦̸":t.MO.REL,"≧":t.MO.REL,"≨":t.MO.REL,"≩":t.MO.REL,"≪":t.MO.REL,"≪̸":t.MO.REL,"≫":t.MO.REL,"≫̸":t.MO.REL,"≬":t.MO.REL,"≭":t.MO.REL,"≮":t.MO.REL,"≯":t.MO.REL,"≰":t.MO.REL,"≱":t.MO.REL,"≲":t.MO.REL,"≳":t.MO.REL,"≴":t.MO.REL,"≵":t.MO.REL,"≶":t.MO.REL,"≷":t.MO.REL,"≸":t.MO.REL,"≹":t.MO.REL,"≺":t.MO.REL,"≻":t.MO.REL,"≼":t.MO.REL,"≽":t.MO.REL,"≾":t.MO.REL,"≿":t.MO.REL,"≿̸":t.MO.REL,"⊀":t.MO.REL,"⊁":t.MO.REL,"⊂":t.MO.REL,"⊂⃒":t.MO.REL,"⊃":t.MO.REL,"⊃⃒":t.MO.REL,"⊄":t.MO.REL,"⊅":t.MO.REL,"⊆":t.MO.REL,"⊇":t.MO.REL,"⊈":t.MO.REL,"⊉":t.MO.REL,"⊊":t.MO.REL,"⊋":t.MO.REL,"⊌":t.MO.BIN4,"⊍":t.MO.BIN4,"⊎":t.MO.BIN4,"⊏":t.MO.REL,"⊏̸":t.MO.REL,"⊐":t.MO.REL,"⊐̸":t.MO.REL,"⊑":t.MO.REL,"⊒":t.MO.REL,"⊓":t.MO.BIN4,"⊔":t.MO.BIN4,"⊕":t.MO.BIN4,"⊖":t.MO.BIN4,"⊗":t.MO.BIN4,"⊘":t.MO.BIN4,"⊙":t.MO.BIN4,"⊚":t.MO.BIN4,"⊛":t.MO.BIN4,"⊜":t.MO.BIN4,"⊝":t.MO.BIN4,"⊞":t.MO.BIN4,"⊟":t.MO.BIN4,"⊠":t.MO.BIN4,"⊡":t.MO.BIN4,"⊢":t.MO.REL,"⊣":t.MO.REL,"⊤":t.MO.ORD55,"⊥":t.MO.REL,"⊦":t.MO.REL,"⊧":t.MO.REL,"⊨":t.MO.REL,"⊩":t.MO.REL,"⊪":t.MO.REL,"⊫":t.MO.REL,"⊬":t.MO.REL,"⊭":t.MO.REL,"⊮":t.MO.REL,"⊯":t.MO.REL,"⊰":t.MO.REL,"⊱":t.MO.REL,"⊲":t.MO.REL,"⊳":t.MO.REL,"⊴":t.MO.REL,"⊵":t.MO.REL,"⊶":t.MO.REL,"⊷":t.MO.REL,"⊸":t.MO.REL,"⊹":t.MO.REL,"⊺":t.MO.BIN4,"⊻":t.MO.BIN4,"⊼":t.MO.BIN4,"⊽":t.MO.BIN4,"⊾":t.MO.BIN3,"⊿":t.MO.BIN3,"⋄":t.MO.BIN4,"⋅":t.MO.BIN4,"⋆":t.MO.BIN4,"⋇":t.MO.BIN4,"⋈":t.MO.REL,"⋉":t.MO.BIN4,"⋊":t.MO.BIN4,"⋋":t.MO.BIN4,"⋌":t.MO.BIN4,"⋍":t.MO.REL,"⋎":t.MO.BIN4,"⋏":t.MO.BIN4,"⋐":t.MO.REL,"⋑":t.MO.REL,"⋒":t.MO.BIN4,"⋓":t.MO.BIN4,"⋔":t.MO.REL,"⋕":t.MO.REL,"⋖":t.MO.REL,"⋗":t.MO.REL,"⋘":t.MO.REL,"⋙":t.MO.REL,"⋚":t.MO.REL,"⋛":t.MO.REL,"⋜":t.MO.REL,"⋝":t.MO.REL,"⋞":t.MO.REL,"⋟":t.MO.REL,"⋠":t.MO.REL,"⋡":t.MO.REL,"⋢":t.MO.REL,"⋣":t.MO.REL,"⋤":t.MO.REL,"⋥":t.MO.REL,"⋦":t.MO.REL,"⋧":t.MO.REL,"⋨":t.MO.REL,"⋩":t.MO.REL,"⋪":t.MO.REL,"⋫":t.MO.REL,"⋬":t.MO.REL,"⋭":t.MO.REL,"⋮":t.MO.ORD55,"⋯":t.MO.INNER,"⋰":t.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":t.MO.REL,"⋳":t.MO.REL,"⋴":t.MO.REL,"⋵":t.MO.REL,"⋶":t.MO.REL,"⋷":t.MO.REL,"⋸":t.MO.REL,"⋹":t.MO.REL,"⋺":t.MO.REL,"⋻":t.MO.REL,"⋼":t.MO.REL,"⋽":t.MO.REL,"⋾":t.MO.REL,"⋿":t.MO.REL,"⌅":t.MO.BIN3,"⌆":t.MO.BIN3,"⌢":t.MO.REL4,"⌣":t.MO.REL4,"〈":t.MO.OPEN,"〉":t.MO.CLOSE,"⎪":t.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"⎰":t.MO.OPEN,"⎱":t.MO.CLOSE,"─":t.MO.ORD,"△":t.MO.BIN4,"▵":t.MO.BIN4,"▹":t.MO.BIN4,"▽":t.MO.BIN4,"▿":t.MO.BIN4,"◃":t.MO.BIN4,"◯":t.MO.BIN3,"♠":t.MO.ORD,"♡":t.MO.ORD,"♢":t.MO.ORD,"♣":t.MO.ORD,"❘":t.MO.REL,"⟰":t.MO.RELSTRETCH,"⟱":t.MO.RELSTRETCH,"⟵":t.MO.WIDEREL,"⟶":t.MO.WIDEREL,"⟷":t.MO.WIDEREL,"⟸":t.MO.WIDEREL,"⟹":t.MO.WIDEREL,"⟺":t.MO.WIDEREL,"⟻":t.MO.WIDEREL,"⟼":t.MO.WIDEREL,"⟽":t.MO.WIDEREL,"⟾":t.MO.WIDEREL,"⟿":t.MO.WIDEREL,"⤀":t.MO.RELACCENT,"⤁":t.MO.RELACCENT,"⤂":t.MO.RELACCENT,"⤃":t.MO.RELACCENT,"⤄":t.MO.RELACCENT,"⤅":t.MO.RELACCENT,"⤆":t.MO.RELACCENT,"⤇":t.MO.RELACCENT,"⤈":t.MO.REL,"⤉":t.MO.REL,"⤊":t.MO.RELSTRETCH,"⤋":t.MO.RELSTRETCH,"⤌":t.MO.WIDEREL,"⤍":t.MO.WIDEREL,"⤎":t.MO.WIDEREL,"⤏":t.MO.WIDEREL,"⤐":t.MO.WIDEREL,"⤑":t.MO.RELACCENT,"⤒":t.MO.RELSTRETCH,"⤓":t.MO.RELSTRETCH,"⤔":t.MO.RELACCENT,"⤕":t.MO.RELACCENT,"⤖":t.MO.RELACCENT,"⤗":t.MO.RELACCENT,"⤘":t.MO.RELACCENT,"⤙":t.MO.RELACCENT,"⤚":t.MO.RELACCENT,"⤛":t.MO.RELACCENT,"⤜":t.MO.RELACCENT,"⤝":t.MO.RELACCENT,"⤞":t.MO.RELACCENT,"⤟":t.MO.RELACCENT,"⤠":t.MO.RELACCENT,"⤡":t.MO.RELSTRETCH,"⤢":t.MO.RELSTRETCH,"⤣":t.MO.REL,"⤤":t.MO.REL,"⤥":t.MO.REL,"⤦":t.MO.REL,"⤧":t.MO.REL,"⤨":t.MO.REL,"⤩":t.MO.REL,"⤪":t.MO.REL,"⤫":t.MO.REL,"⤬":t.MO.REL,"⤭":t.MO.REL,"⤮":t.MO.REL,"⤯":t.MO.REL,"⤰":t.MO.REL,"⤱":t.MO.REL,"⤲":t.MO.REL,"⤳":t.MO.RELACCENT,"⤴":t.MO.REL,"⤵":t.MO.REL,"⤶":t.MO.REL,"⤷":t.MO.REL,"⤸":t.MO.REL,"⤹":t.MO.REL,"⤺":t.MO.RELACCENT,"⤻":t.MO.RELACCENT,"⤼":t.MO.RELACCENT,"⤽":t.MO.RELACCENT,"⤾":t.MO.REL,"⤿":t.MO.REL,"⥀":t.MO.REL,"⥁":t.MO.REL,"⥂":t.MO.RELACCENT,"⥃":t.MO.RELACCENT,"⥄":t.MO.RELACCENT,"⥅":t.MO.RELACCENT,"⥆":t.MO.RELACCENT,"⥇":t.MO.RELACCENT,"⥈":t.MO.RELACCENT,"⥉":t.MO.REL,"⥊":t.MO.RELACCENT,"⥋":t.MO.RELACCENT,"⥌":t.MO.REL,"⥍":t.MO.REL,"⥎":t.MO.WIDEREL,"⥏":t.MO.RELSTRETCH,"⥐":t.MO.WIDEREL,"⥑":t.MO.RELSTRETCH,"⥒":t.MO.WIDEREL,"⥓":t.MO.WIDEREL,"⥔":t.MO.RELSTRETCH,"⥕":t.MO.RELSTRETCH,"⥖":t.MO.RELSTRETCH,"⥗":t.MO.RELSTRETCH,"⥘":t.MO.RELSTRETCH,"⥙":t.MO.RELSTRETCH,"⥚":t.MO.WIDEREL,"⥛":t.MO.WIDEREL,"⥜":t.MO.RELSTRETCH,"⥝":t.MO.RELSTRETCH,"⥞":t.MO.WIDEREL,"⥟":t.MO.WIDEREL,"⥠":t.MO.RELSTRETCH,"⥡":t.MO.RELSTRETCH,"⥢":t.MO.RELACCENT,"⥣":t.MO.REL,"⥤":t.MO.RELACCENT,"⥥":t.MO.REL,"⥦":t.MO.RELACCENT,"⥧":t.MO.RELACCENT,"⥨":t.MO.RELACCENT,"⥩":t.MO.RELACCENT,"⥪":t.MO.RELACCENT,"⥫":t.MO.RELACCENT,"⥬":t.MO.RELACCENT,"⥭":t.MO.RELACCENT,"⥮":t.MO.RELSTRETCH,"⥯":t.MO.RELSTRETCH,"⥰":t.MO.RELACCENT,"⥱":t.MO.RELACCENT,"⥲":t.MO.RELACCENT,"⥳":t.MO.RELACCENT,"⥴":t.MO.RELACCENT,"⥵":t.MO.RELACCENT,"⥶":t.MO.RELACCENT,"⥷":t.MO.RELACCENT,"⥸":t.MO.RELACCENT,"⥹":t.MO.RELACCENT,"⥺":t.MO.RELACCENT,"⥻":t.MO.RELACCENT,"⥼":t.MO.RELACCENT,"⥽":t.MO.RELACCENT,"⥾":t.MO.REL,"⥿":t.MO.REL,"⦁":t.MO.BIN3,"⦂":t.MO.BIN3,"⦙":t.MO.BIN3,"⦚":t.MO.BIN3,"⦛":t.MO.BIN3,"⦜":t.MO.BIN3,"⦝":t.MO.BIN3,"⦞":t.MO.BIN3,"⦟":t.MO.BIN3,"⦠":t.MO.BIN3,"⦡":t.MO.BIN3,"⦢":t.MO.BIN3,"⦣":t.MO.BIN3,"⦤":t.MO.BIN3,"⦥":t.MO.BIN3,"⦦":t.MO.BIN3,"⦧":t.MO.BIN3,"⦨":t.MO.BIN3,"⦩":t.MO.BIN3,"⦪":t.MO.BIN3,"⦫":t.MO.BIN3,"⦬":t.MO.BIN3,"⦭":t.MO.BIN3,"⦮":t.MO.BIN3,"⦯":t.MO.BIN3,"⦰":t.MO.BIN3,"⦱":t.MO.BIN3,"⦲":t.MO.BIN3,"⦳":t.MO.BIN3,"⦴":t.MO.BIN3,"⦵":t.MO.BIN3,"⦶":t.MO.BIN4,"⦷":t.MO.BIN4,"⦸":t.MO.BIN4,"⦹":t.MO.BIN4,"⦺":t.MO.BIN4,"⦻":t.MO.BIN4,"⦼":t.MO.BIN4,"⦽":t.MO.BIN4,"⦾":t.MO.BIN4,"⦿":t.MO.BIN4,"⧀":t.MO.REL,"⧁":t.MO.REL,"⧂":t.MO.BIN3,"⧃":t.MO.BIN3,"⧄":t.MO.BIN4,"⧅":t.MO.BIN4,"⧆":t.MO.BIN4,"⧇":t.MO.BIN4,"⧈":t.MO.BIN4,"⧉":t.MO.BIN3,"⧊":t.MO.BIN3,"⧋":t.MO.BIN3,"⧌":t.MO.BIN3,"⧍":t.MO.BIN3,"⧎":t.MO.REL,"⧏":t.MO.REL,"⧏̸":t.MO.REL,"⧐":t.MO.REL,"⧐̸":t.MO.REL,"⧑":t.MO.REL,"⧒":t.MO.REL,"⧓":t.MO.REL,"⧔":t.MO.REL,"⧕":t.MO.REL,"⧖":t.MO.BIN4,"⧗":t.MO.BIN4,"⧘":t.MO.BIN3,"⧙":t.MO.BIN3,"⧛":t.MO.BIN3,"⧜":t.MO.BIN3,"⧝":t.MO.BIN3,"⧞":t.MO.REL,"⧟":t.MO.BIN3,"⧠":t.MO.BIN3,"⧡":t.MO.REL,"⧢":t.MO.BIN4,"⧣":t.MO.REL,"⧤":t.MO.REL,"⧥":t.MO.REL,"⧦":t.MO.REL,"⧧":t.MO.BIN3,"⧨":t.MO.BIN3,"⧩":t.MO.BIN3,"⧪":t.MO.BIN3,"⧫":t.MO.BIN3,"⧬":t.MO.BIN3,"⧭":t.MO.BIN3,"⧮":t.MO.BIN3,"⧯":t.MO.BIN3,"⧰":t.MO.BIN3,"⧱":t.MO.BIN3,"⧲":t.MO.BIN3,"⧳":t.MO.BIN3,"⧴":t.MO.REL,"⧵":t.MO.BIN4,"⧶":t.MO.BIN4,"⧷":t.MO.BIN4,"⧸":t.MO.BIN3,"⧹":t.MO.BIN3,"⧺":t.MO.BIN3,"⧻":t.MO.BIN3,"⧾":t.MO.BIN4,"⧿":t.MO.BIN4,"⨝":t.MO.BIN3,"⨞":t.MO.BIN3,"⨟":t.MO.BIN3,"⨠":t.MO.BIN3,"⨡":t.MO.BIN3,"⨢":t.MO.BIN4,"⨣":t.MO.BIN4,"⨤":t.MO.BIN4,"⨥":t.MO.BIN4,"⨦":t.MO.BIN4,"⨧":t.MO.BIN4,"⨨":t.MO.BIN4,"⨩":t.MO.BIN4,"⨪":t.MO.BIN4,"⨫":t.MO.BIN4,"⨬":t.MO.BIN4,"⨭":t.MO.BIN4,"⨮":t.MO.BIN4,"⨯":t.MO.BIN4,"⨰":t.MO.BIN4,"⨱":t.MO.BIN4,"⨲":t.MO.BIN4,"⨳":t.MO.BIN4,"⨴":t.MO.BIN4,"⨵":t.MO.BIN4,"⨶":t.MO.BIN4,"⨷":t.MO.BIN4,"⨸":t.MO.BIN4,"⨹":t.MO.BIN4,"⨺":t.MO.BIN4,"⨻":t.MO.BIN4,"⨼":t.MO.BIN4,"⨽":t.MO.BIN4,"⨾":t.MO.BIN4,"⨿":t.MO.BIN4,"⩀":t.MO.BIN4,"⩁":t.MO.BIN4,"⩂":t.MO.BIN4,"⩃":t.MO.BIN4,"⩄":t.MO.BIN4,"⩅":t.MO.BIN4,"⩆":t.MO.BIN4,"⩇":t.MO.BIN4,"⩈":t.MO.BIN4,"⩉":t.MO.BIN4,"⩊":t.MO.BIN4,"⩋":t.MO.BIN4,"⩌":t.MO.BIN4,"⩍":t.MO.BIN4,"⩎":t.MO.BIN4,"⩏":t.MO.BIN4,"⩐":t.MO.BIN4,"⩑":t.MO.BIN4,"⩒":t.MO.BIN4,"⩓":t.MO.BIN4,"⩔":t.MO.BIN4,"⩕":t.MO.BIN4,"⩖":t.MO.BIN4,"⩗":t.MO.BIN4,"⩘":t.MO.BIN4,"⩙":t.MO.REL,"⩚":t.MO.BIN4,"⩛":t.MO.BIN4,"⩜":t.MO.BIN4,"⩝":t.MO.BIN4,"⩞":t.MO.BIN4,"⩟":t.MO.BIN4,"⩠":t.MO.BIN4,"⩡":t.MO.BIN4,"⩢":t.MO.BIN4,"⩣":t.MO.BIN4,"⩤":t.MO.BIN4,"⩥":t.MO.BIN4,"⩦":t.MO.REL,"⩧":t.MO.REL,"⩨":t.MO.REL,"⩩":t.MO.REL,"⩪":t.MO.REL,"⩫":t.MO.REL,"⩬":t.MO.REL,"⩭":t.MO.REL,"⩮":t.MO.REL,"⩯":t.MO.REL,"⩰":t.MO.REL,"⩱":t.MO.BIN4,"⩲":t.MO.BIN4,"⩳":t.MO.REL,"⩴":t.MO.REL,"⩵":t.MO.REL,"⩶":t.MO.REL,"⩷":t.MO.REL,"⩸":t.MO.REL,"⩹":t.MO.REL,"⩺":t.MO.REL,"⩻":t.MO.REL,"⩼":t.MO.REL,"⩽":t.MO.REL,"⩽̸":t.MO.REL,"⩾":t.MO.REL,"⩾̸":t.MO.REL,"⩿":t.MO.REL,"⪀":t.MO.REL,"⪁":t.MO.REL,"⪂":t.MO.REL,"⪃":t.MO.REL,"⪄":t.MO.REL,"⪅":t.MO.REL,"⪆":t.MO.REL,"⪇":t.MO.REL,"⪈":t.MO.REL,"⪉":t.MO.REL,"⪊":t.MO.REL,"⪋":t.MO.REL,"⪌":t.MO.REL,"⪍":t.MO.REL,"⪎":t.MO.REL,"⪏":t.MO.REL,"⪐":t.MO.REL,"⪑":t.MO.REL,"⪒":t.MO.REL,"⪓":t.MO.REL,"⪔":t.MO.REL,"⪕":t.MO.REL,"⪖":t.MO.REL,"⪗":t.MO.REL,"⪘":t.MO.REL,"⪙":t.MO.REL,"⪚":t.MO.REL,"⪛":t.MO.REL,"⪜":t.MO.REL,"⪝":t.MO.REL,"⪞":t.MO.REL,"⪟":t.MO.REL,"⪠":t.MO.REL,"⪡":t.MO.REL,"⪡̸":t.MO.REL,"⪢":t.MO.REL,"⪢̸":t.MO.REL,"⪣":t.MO.REL,"⪤":t.MO.REL,"⪥":t.MO.REL,"⪦":t.MO.REL,"⪧":t.MO.REL,"⪨":t.MO.REL,"⪩":t.MO.REL,"⪪":t.MO.REL,"⪫":t.MO.REL,"⪬":t.MO.REL,"⪭":t.MO.REL,"⪮":t.MO.REL,"⪯":t.MO.REL,"⪯̸":t.MO.REL,"⪰":t.MO.REL,"⪰̸":t.MO.REL,"⪱":t.MO.REL,"⪲":t.MO.REL,"⪳":t.MO.REL,"⪴":t.MO.REL,"⪵":t.MO.REL,"⪶":t.MO.REL,"⪷":t.MO.REL,"⪸":t.MO.REL,"⪹":t.MO.REL,"⪺":t.MO.REL,"⪻":t.MO.REL,"⪼":t.MO.REL,"⪽":t.MO.REL,"⪾":t.MO.REL,"⪿":t.MO.REL,"⫀":t.MO.REL,"⫁":t.MO.REL,"⫂":t.MO.REL,"⫃":t.MO.REL,"⫄":t.MO.REL,"⫅":t.MO.REL,"⫆":t.MO.REL,"⫇":t.MO.REL,"⫈":t.MO.REL,"⫉":t.MO.REL,"⫊":t.MO.REL,"⫋":t.MO.REL,"⫌":t.MO.REL,"⫍":t.MO.REL,"⫎":t.MO.REL,"⫏":t.MO.REL,"⫐":t.MO.REL,"⫑":t.MO.REL,"⫒":t.MO.REL,"⫓":t.MO.REL,"⫔":t.MO.REL,"⫕":t.MO.REL,"⫖":t.MO.REL,"⫗":t.MO.REL,"⫘":t.MO.REL,"⫙":t.MO.REL,"⫚":t.MO.REL,"⫛":t.MO.REL,"⫝":t.MO.REL,"⫝̸":t.MO.REL,"⫞":t.MO.REL,"⫟":t.MO.REL,"⫠":t.MO.REL,"⫡":t.MO.REL,"⫢":t.MO.REL,"⫣":t.MO.REL,"⫤":t.MO.REL,"⫥":t.MO.REL,"⫦":t.MO.REL,"⫧":t.MO.REL,"⫨":t.MO.REL,"⫩":t.MO.REL,"⫪":t.MO.REL,"⫫":t.MO.REL,"⫬":t.MO.REL,"⫭":t.MO.REL,"⫮":t.MO.REL,"⫯":t.MO.REL,"⫰":t.MO.REL,"⫱":t.MO.REL,"⫲":t.MO.REL,"⫳":t.MO.REL,"⫴":t.MO.BIN4,"⫵":t.MO.BIN4,"⫶":t.MO.BIN4,"⫷":t.MO.REL,"⫸":t.MO.REL,"⫹":t.MO.REL,"⫺":t.MO.REL,"⫻":t.MO.BIN4,"⫽":t.MO.BIN4,"⫾":t.MO.BIN3,"⭅":t.MO.RELSTRETCH,"⭆":t.MO.RELSTRETCH,"〈":t.MO.OPEN,"〉":t.MO.CLOSE,"︷":t.MO.WIDEACCENT,"︸":t.MO.WIDEACCENT}},t.OPTABLE.infix["^"]=t.MO.WIDEREL,t.OPTABLE.infix._=t.MO.WIDEREL,t.OPTABLE.infix["⫝̸"]=t.MO.REL})(Cy);var rut=S&&S.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$u=S&&S.__assign||function(){return $u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},iut=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(O2,"__esModule",{value:!0});O2.MmlMo=void 0;var xn=St,vm=Cy,rM=Gn,out=function(t){rut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._texClass=null,n.lspace=5/18,n.rspace=5/18,n}return Object.defineProperty(e.prototype,"texClass",{get:function(){if(this._texClass===null){var n=this.getText(),r=nM(this.handleExplicitForm(this.getForms()),3),i=r[0],o=r[1],s=r[2],a=this.constructor.OPTABLE,l=a[i][n]||a[o][n]||a[s][n];return l?l[2]:xn.TEXCLASS.REL}return this._texClass},set:function(n){this._texClass=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return this.attributes.get("linebreak")==="newline"},enumerable:!1,configurable:!0}),e.prototype.coreParent=function(){for(var n=this,r=this,i=this.factory.getNodeClass("math");r&&r.isEmbellished&&r.coreMO()===this&&!(r instanceof i);)n=r,r=r.parent;return n},e.prototype.coreText=function(n){if(!n)return"";if(n.isEmbellished)return n.coreMO().getText();for(;((n.isKind("mrow")||n.isKind("TeXAtom")&&n.texClass!==xn.TEXCLASS.VCENTER||n.isKind("mstyle")||n.isKind("mphantom"))&&n.childNodes.length===1||n.isKind("munderover"))&&n.childNodes[0];)n=n.childNodes[0];return n.isToken?n.getText():""},e.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(e.prototype,"isAccent",{get:function(){var n=!1,r=this.coreParent().parent;if(r){var i=r.isKind("mover")?r.childNodes[r.over].coreMO()?"accent":"":r.isKind("munder")?r.childNodes[r.under].coreMO()?"accentunder":"":r.isKind("munderover")?this===r.childNodes[r.over].coreMO()?"accent":this===r.childNodes[r.under].coreMO()?"accentunder":"":"";if(i){var o=r.attributes.getExplicit(i);n=o!==void 0?n:this.attributes.get("accent")}}return n},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(n){var r=this.attributes.getList("form","fence"),i=r.form,o=r.fence;return this.getProperty("texClass")===void 0&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(o&&this.texClass===xn.TEXCLASS.REL&&(i==="prefix"&&(this.texClass=xn.TEXCLASS.OPEN),i==="postfix"&&(this.texClass=xn.TEXCLASS.CLOSE)),this.adjustTeXclass(n))},e.prototype.adjustTeXclass=function(n){var r=this.texClass,i=this.prevClass;if(r===xn.TEXCLASS.NONE)return n;if(n?(n.getProperty("autoOP")&&(r===xn.TEXCLASS.BIN||r===xn.TEXCLASS.REL)&&(i=n.texClass=xn.TEXCLASS.ORD),i=this.prevClass=n.texClass||xn.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):i=this.prevClass=xn.TEXCLASS.NONE,r===xn.TEXCLASS.BIN&&(i===xn.TEXCLASS.NONE||i===xn.TEXCLASS.BIN||i===xn.TEXCLASS.OP||i===xn.TEXCLASS.REL||i===xn.TEXCLASS.OPEN||i===xn.TEXCLASS.PUNCT))this.texClass=xn.TEXCLASS.ORD;else if(i===xn.TEXCLASS.BIN&&(r===xn.TEXCLASS.REL||r===xn.TEXCLASS.CLOSE||r===xn.TEXCLASS.PUNCT))n.texClass=this.prevClass=xn.TEXCLASS.ORD;else if(r===xn.TEXCLASS.BIN){for(var o=this,s=this.parent;s&&s.parent&&s.isEmbellished&&(s.childNodes.length===1||!s.isKind("mrow")&&s.core()===o);)o=s,s=s.parent;s.childNodes[s.childNodes.length-1]===o&&(this.texClass=xn.TEXCLASS.ORD)}return this},e.prototype.setInheritedAttributes=function(n,r,i,o){n===void 0&&(n={}),r===void 0&&(r=!1),i===void 0&&(i=0),o===void 0&&(o=!1),t.prototype.setInheritedAttributes.call(this,n,r,i,o);var s=this.getText();this.checkOperatorTable(s),this.checkPseudoScripts(s),this.checkPrimes(s),this.checkMathAccent(s)},e.prototype.checkOperatorTable=function(n){var r,i,o=nM(this.handleExplicitForm(this.getForms()),3),s=o[0],a=o[1],l=o[2];this.attributes.setInherited("form",s);var c=this.constructor.OPTABLE,u=c[s][n]||c[a][n]||c[l][n];if(u){this.getProperty("texClass")===void 0&&(this.texClass=u[2]);try{for(var d=iut(Object.keys(u[3]||{})),h=d.next();!h.done;h=d.next()){var f=h.value;this.attributes.setInherited(f,u[3][f])}}catch(Q){r={error:Q}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}this.lspace=(u[0]+1)/18,this.rspace=(u[1]+1)/18}else{var m=(0,vm.getRange)(n);if(m){this.getProperty("texClass")===void 0&&(this.texClass=m[2]);var T=this.constructor.MMLSPACING[m[2]];this.lspace=(T[0]+1)/18,this.rspace=(T[1]+1)/18}}},e.prototype.getForms=function(){for(var n=this,r=this.parent,i=this.Parent;i&&i.isEmbellished;)n=r,r=i.parent,i=i.Parent;if(r&&r.isKind("mrow")&&r.nonSpaceLength()!==1){if(r.firstNonSpace()===n)return["prefix","infix","postfix"];if(r.lastNonSpace()===n)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},e.prototype.handleExplicitForm=function(n){if(this.attributes.isSet("form")){var r=this.attributes.get("form");n=[r].concat(n.filter(function(i){return i!==r}))}return n},e.prototype.checkPseudoScripts=function(n){var r=this.constructor.pseudoScripts;if(n.match(r)){var i=this.coreParent().Parent,o=!i||!(i.isKind("msubsup")&&!i.isKind("msub"));this.setProperty("pseudoscript",o),o&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},e.prototype.checkPrimes=function(n){var r=this.constructor.primes;if(n.match(r)){var i=this.constructor.remapPrimes,o=(0,rM.unicodeString)((0,rM.unicodeChars)(n).map(function(s){return i[s]}));this.setProperty("primes",o)}},e.prototype.checkMathAccent=function(n){var r=this.Parent;if(!(this.getProperty("mathaccent")!==void 0||!r||!r.isKind("munderover"))){var i=r.childNodes[0];if(!(i.isEmbellished&&i.coreMO()===this)){var o=this.constructor.mathaccents;n.match(o)&&this.setProperty("mathaccent",!0)}}},e.defaults=$u($u({},xn.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),e.MMLSPACING=vm.MMLSPACING,e.OPTABLE=vm.OPTABLE,e.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),e.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),e.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},e.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),e}(xn.AbstractMmlTokenNode);O2.MmlMo=out;var ym=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sut=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},aut=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cut=S&&S.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ly,"__esModule",{value:!0});var oM=St,vr=cut(Dn),_Q;(function(t){t.cleanStretchy=function(o){var s,a,l=o.data;try{for(var c=T1(l.getList("fixStretchy")),u=c.next();!u.done;u=c.next()){var d=u.value;if(vr.default.getProperty(d,"fixStretchy")){var h=vr.default.getForm(d);h&&h[3]&&h[3].stretchy&&vr.default.setAttribute(d,"stretchy",!1);var f=d.parent;if(!vr.default.getTexClass(d)&&(!h||!h[2])){var m=l.nodeFactory.create("node","TeXAtom",[d]);f.replaceChild(m,d),m.inheritAttributesFrom(d)}vr.default.removeProperties(d,"fixStretchy")}}}catch(T){s={error:T}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}},t.cleanAttributes=function(o){var s=o.data.root;s.walkTree(function(a,l){var c,u,d=a.attributes;if(d){var h=new Set((d.get("mjx-keep-attrs")||"").split(/ /));delete d.getAllAttributes()["mjx-keep-attrs"];try{for(var f=T1(d.getExplicitNames()),m=f.next();!m.done;m=f.next()){var T=m.value;!h.has(T)&&d.attributes[T]===a.attributes.getInherited(T)&&delete d.attributes[T]}}catch(Q){c={error:Q}}finally{try{m&&!m.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}}},{})},t.combineRelations=function(o){var s,a,l,c,u=[];try{for(var d=T1(o.data.getList("mo")),h=d.next();!h.done;h=d.next()){var f=h.value;if(!(f.getProperty("relationsCombined")||!f.parent||f.parent&&!vr.default.isType(f.parent,"mrow")||vr.default.getTexClass(f)!==oM.TEXCLASS.REL)){for(var m=f.parent,T=void 0,Q=m.childNodes,_=Q.indexOf(f)+1,v=vr.default.getProperty(f,"variantForm");_="0"&&s<="9")r[i]=n[parseInt(r[i],10)-1],typeof r[i]=="number"&&(r[i]=r[i].toString());else if(s==="{")if(s=r[i].substr(1),s>="0"&&s<="9")r[i]=n[parseInt(r[i].substr(1,r[i].length-2),10)-1],typeof r[i]=="number"&&(r[i]=r[i].toString());else{var a=r[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);a&&(r[i]="%"+r[i])}r[i]==null&&(r[i]="???")}return r.join("")},t.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,t}();fn.default=uut;var Fc={},E7={};Object.defineProperty(E7,"__esModule",{value:!0});E7.asyncLoad=void 0;var sM=g7;function dut(t){return sM.mathjax.asyncLoad?new Promise(function(e,n){var r=sM.mathjax.asyncLoad(t);r instanceof Promise?r.then(function(i){return e(i)}).catch(function(i){return n(i)}):e(r)}):Promise.reject("Can't load '".concat(t,"': No asyncLoad method specified"))}E7.asyncLoad=dut;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numeric=t.translate=t.remove=t.add=t.entities=t.options=void 0;var e=Ka,n=E7;t.options={loadMissingEntities:!0},t.entities={ApplyFunction:"⁡",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"};var r={};function i(c,u){Object.assign(t.entities,c),r[u]=!0}t.add=i;function o(c){delete t.entities[c]}t.remove=o;function s(c){return c.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/ig,a)}t.translate=s;function a(c,u){if(u.charAt(0)==="#")return l(u.slice(1));if(t.entities[u])return t.entities[u];if(t.options.loadMissingEntities){var d=u.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:u.charAt(0).toLowerCase();r[d]||(r[d]=!0,(0,e.retryAfter)((0,n.asyncLoad)("./util/entities/"+d+".js")))}return c}function l(c){var u=c.charAt(0)==="x"?parseInt(c.slice(1),16):parseInt(c);return String.fromCodePoint(u)}t.numeric=l})(Fc);var aM;function In(){if(aM)return V6;aM=1;var t=S&&S.__read||function(c,u){var d=typeof Symbol=="function"&&c[Symbol.iterator];if(!d)return c;var h=d.call(c),f,m=[],T;try{for(;(u===void 0||u-- >0)&&!(f=h.next()).done;)m.push(f.value)}catch(Q){T={error:Q}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(T)throw T.error}}return m},e=S&&S.__values||function(c){var u=typeof Symbol=="function"&&Symbol.iterator,d=u&&c[u],h=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&h>=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},n=S&&S.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(V6,"__esModule",{value:!0});var r=St,i=n(Dn),o=n(Br()),s=n(fn),a=Fc,l;return function(c){var u=7.2,d=72,h={em:function(z){return z},ex:function(z){return z*.43},pt:function(z){return z/10},pc:function(z){return z*1.2},px:function(z){return z*u/d},in:function(z){return z*u},cm:function(z){return z*u/2.54},mm:function(z){return z*u/25.4},mu:function(z){return z/18}},f="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",m="(pt|em|ex|mu|px|mm|cm|in|pc)",T=RegExp("^\\s*"+f+"\\s*"+m+"\\s*$"),Q=RegExp("^\\s*"+f+"\\s*"+m+" ?");function _(z,re){re===void 0&&(re=!1);var he=z.match(re?Q:T);return he?v([he[1].replace(/,/,"."),he[4],he[0].length]):[null,null,0]}c.matchDimen=_;function v(z){var re=t(z,3),he=re[0],Se=re[1],we=re[2];if(Se!=="mu")return[he,Se,we];var se=b(h[Se](parseFloat(he||"1")));return[se.slice(0,-2),"em",we]}function y(z){var re=t(_(z),2),he=re[0],Se=re[1],we=parseFloat(he||"1"),se=h[Se];return se?se(we):0}c.dimen2em=y;function b(z){return Math.abs(z)<6e-4?"0em":z.toFixed(3).replace(/\.?0+$/,"")+"em"}c.Em=b;function E(){for(var z=[],re=0;re1&&(W=[z.create("node","mrow",W)]),W}c.internalMath=A;function I(z,re,he){re=re.replace(/^\s+/,a.entities.nbsp).replace(/\s+$/,a.entities.nbsp);var Se=z.create("text",re);return z.create("node","mtext",[],he,Se)}c.internalText=I;function N(z,re,he,Se,we){if(c.checkMovableLimits(re),i.default.isType(re,"munderover")&&i.default.isEmbellished(re)){i.default.setProperties(i.default.getCoreMO(re),{lspace:0,rspace:0});var se=z.create("node","mo",[],{rspace:0});re=z.create("node","mrow",[se,re])}var W=z.create("node","munderover",[re]);i.default.setChild(W,Se==="over"?W.over:W.under,he);var j=W;return we&&(j=z.create("node","TeXAtom",[W],{texClass:r.TEXCLASS.OP,movesupsub:!0})),i.default.setProperty(j,"subsupOK",!0),j}c.underOver=N;function V(z){var re=i.default.isType(z,"mo")?i.default.getForm(z):null;(i.default.getProperty(z,"movablelimits")||re&&re[3]&&re[3].movablelimits)&&i.default.setProperties(z,{movablelimits:!1})}c.checkMovableLimits=V;function R(z){if(typeof z!="string")return z;var re=z.trim();return re.match(/\\$/)&&z.match(/ $/)&&(re+=" "),re}c.trimSpaces=R;function B(z,re){return re=c.trimSpaces(re||""),re==="t"?z.arraydef.align="baseline 1":re==="b"?z.arraydef.align="baseline -1":re==="c"?z.arraydef.align="axis":re&&(z.arraydef.align=re),z}c.setArrayAlign=B;function F(z,re,he){for(var Se="",we="",se=0;sere.length)throw new s.default("IllegalMacroParam","Illegal macro parameter reference");we=U(z,U(z,we,Se),re[parseInt(W,10)-1]),Se=""}else Se+=W}return U(z,we,Se)}c.substituteArgs=F;function U(z,re,he){if(he.match(/^[a-z]/i)&&re.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(re+=" "),re.length+he.length>z.configuration.options.maxBuffer)throw new s.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return re+he}c.addArgs=U;function G(z,re){if(re===void 0&&(re=!0),!(++z.macroCount<=z.configuration.options.maxMacros))throw re?new s.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new s.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")}c.checkMaxMacros=G;function Z(z){if(z.stack.global.eqnenv)throw new s.default("ErroneousNestingEq","Erroneous nesting of equation structures");z.stack.global.eqnenv=!0}c.checkEqnEnv=Z;function Y(z,re){var he=z.copy(),Se=re.configuration;return he.walkTree(function(we){var se,W;Se.addNode(we.kind,we);var j=(we.getProperty("in-lists")||"").split(/,/);try{for(var oe=e(j),_e=oe.next();!_e.done;_e=oe.next()){var ye=_e.value;ye&&Se.addNode(ye,we)}}catch(le){se={error:le}}finally{try{_e&&!_e.done&&(W=oe.return)&&W.call(oe)}finally{if(se)throw se.error}}}),he}c.copyNode=Y;function ee(z,re,he){return he}c.MmlFilterAttribute=ee;function pe(z){var re=z.stack.env.font;return re?{mathvariant:re}:{}}c.getFontDef=pe;function K(z,re,he){var Se,we;re===void 0&&(re=null),he===void 0&&(he=!1);var se=$(z);if(re)try{for(var W=e(Object.keys(se)),j=W.next();!j.done;j=W.next()){var oe=j.value;if(!re.hasOwnProperty(oe)){if(he)throw new s.default("InvalidOption","Invalid option: %1",oe);delete se[oe]}}}catch(_e){Se={error:_e}}finally{try{j&&!j.done&&(we=W.return)&&we.call(W)}finally{if(Se)throw Se.error}}return se}c.keyvalOptions=K;function $(z){for(var re,he,Se={},we=z,se,W,j;we;)re=t(Ee(we,["=",","]),3),W=re[0],se=re[1],we=re[2],se==="="?(he=t(Ee(we,[","]),3),j=he[0],se=he[1],we=he[2],j=j==="false"||j==="true"?JSON.parse(j):j,Se[W]=j):W&&(Se[W]=!0);return Se}function ce(z,re){for(;re>0;)z=z.trim().slice(1,-1),re--;return z.trim()}function Ee(z,re){for(var he=z.length,Se=0,we="",se=0,W=0,j=!0,oe=!1;seSe&&(W=Se)),Se++;break;case"}":Se&&Se--,(j||oe)&&(W--,oe=!0),j=!1;break;default:if(!Se&&re.indexOf(_e)!==-1)return[oe?"true":ce(we,W),_e,z.slice(se)];j=!1,oe=!1}we+=_e}if(Se)throw new s.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[oe?"true":ce(we,W),"",z.slice(se)]}}(l||(l={})),V6.default=l,V6}var x7={},fut=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lM=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},put=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const f2=new Z6t;function cn(t,e){return f2.parse(t,e)}cn.options=cn.setOptions=function(t){return f2.setOptions(t),cn.defaults=f2.defaults,nF(cn.defaults),cn};cn.getDefaults=Qy;cn.defaults=A2;cn.use=function(...t){return f2.use(...t),cn.defaults=f2.defaults,nF(cn.defaults),cn};cn.walkTokens=function(t,e){return f2.walkTokens(t,e)};cn.parseInline=f2.parseInline;cn.Parser=Ki;cn.parser=Ki.parse;cn.Renderer=Bu;cn.TextRenderer=Sy;cn.Lexer=Yi;cn.lexer=Yi.lex;cn.Tokenizer=Vu;cn.Hooks=H4;cn.parse=cn;cn.options;cn.setOptions;cn.use;cn.walkTokens;cn.parseInline;Ki.parse;Yi.lex;/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:fF,setPrototypeOf:$w,isFrozen:X6t,getPrototypeOf:J6t,getOwnPropertyDescriptor:e5t}=Object;let{freeze:ii,seal:ro,create:pF}=Object,{apply:hQ,construct:TQ}=typeof Reflect<"u"&&Reflect;ii||(ii=function(e){return e});ro||(ro=function(e){return e});hQ||(hQ=function(e,n,r){return e.apply(n,r)});TQ||(TQ=function(e,n){return new e(...n)});const I6=Ri(Array.prototype.forEach),Uw=Ri(Array.prototype.pop),m3=Ri(Array.prototype.push),lu=Ri(String.prototype.toLowerCase),hm=Ri(String.prototype.toString),Gw=Ri(String.prototype.match),g3=Ri(String.prototype.replace),t5t=Ri(String.prototype.indexOf),n5t=Ri(String.prototype.trim),To=Ri(Object.prototype.hasOwnProperty),qr=Ri(RegExp.prototype.test),_3=r5t(TypeError);function Ri(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:lu;$w&&$w(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(X6t(e)||(e[r]=o),i=o)}t[i]=!0}return t}function i5t(t){for(let e=0;e/gm),c5t=ro(/\${[\w\W]*}/gm),u5t=ro(/^data-[\-\w.\u00B7-\uFFFF]/),d5t=ro(/^aria-[\-\w]+$/),hF=ro(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),f5t=ro(/^(?:\w+script|data):/i),p5t=ro(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TF=ro(/^html$/i),h5t=ro(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yw=Object.freeze({__proto__:null,MUSTACHE_EXPR:a5t,ERB_EXPR:l5t,TMPLIT_EXPR:c5t,DATA_ATTR:u5t,ARIA_ATTR:d5t,IS_ALLOWED_URI:hF,IS_SCRIPT_OR_DATA:f5t,ATTR_WHITESPACE:p5t,DOCTYPE_NAME:TF,CUSTOM_ELEMENT:h5t});const v3={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},T5t=function(){return typeof window>"u"?null:window},m5t=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function mF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T5t();const e=me=>mF(me);if(e.version="3.1.7",e.removed=[],!t||!t.document||t.document.nodeType!==v3.document)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,m=l.prototype,T=Q3(m,"cloneNode"),Q=Q3(m,"remove"),_=Q3(m,"nextSibling"),v=Q3(m,"childNodes"),y=Q3(m,"parentNode");if(typeof s=="function"){const me=n.createElement("template");me.content&&me.content.ownerDocument&&(n=me.content.ownerDocument)}let b,E="";const{implementation:x,createNodeIterator:L,createDocumentFragment:M,getElementsByTagName:C}=n,{importNode:A}=r;let I={};e.isSupported=typeof fF=="function"&&typeof y=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:V,TMPLIT_EXPR:R,DATA_ATTR:B,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:Z}=Yw;let{IS_ALLOWED_URI:Y}=Yw,ee=null;const pe=Yt({},[...qw,...Tm,...mm,...gm,...zw]);let K=null;const $=Yt({},[...jw,..._m,...Ww,...k6]);let ce=Object.seal(pF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,z=null,re=!0,he=!0,Se=!1,we=!0,se=!1,W=!0,j=!1,oe=!1,_e=!1,ye=!1,le=!1,De=!1,Ce=!0,Oe=!1;const He="user-content-";let X=!0,q=!1,Te={},fe=null;const ve=Yt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Ie=Yt({},["audio","video","img","source","image","track"]);let Fe=null;const qe=Yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Ot=$e,pt=!1,ht=null;const Tt=Yt({},[ot,it,$e],hm);let rt=null;const ut=["application/xhtml+xml","text/html"],Qe="text/html";let Ue=null,Ge=null;const Ve=n.createElement("form"),Je=function(J){return J instanceof RegExp||J instanceof Function},yt=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===J)){if((!J||typeof J!="object")&&(J={}),J=B1(J),rt=ut.indexOf(J.PARSER_MEDIA_TYPE)===-1?Qe:J.PARSER_MEDIA_TYPE,Ue=rt==="application/xhtml+xml"?hm:lu,ee=To(J,"ALLOWED_TAGS")?Yt({},J.ALLOWED_TAGS,Ue):pe,K=To(J,"ALLOWED_ATTR")?Yt({},J.ALLOWED_ATTR,Ue):$,ht=To(J,"ALLOWED_NAMESPACES")?Yt({},J.ALLOWED_NAMESPACES,hm):Tt,Fe=To(J,"ADD_URI_SAFE_ATTR")?Yt(B1(qe),J.ADD_URI_SAFE_ATTR,Ue):qe,Me=To(J,"ADD_DATA_URI_TAGS")?Yt(B1(Ie),J.ADD_DATA_URI_TAGS,Ue):Ie,fe=To(J,"FORBID_CONTENTS")?Yt({},J.FORBID_CONTENTS,Ue):ve,Ee=To(J,"FORBID_TAGS")?Yt({},J.FORBID_TAGS,Ue):{},z=To(J,"FORBID_ATTR")?Yt({},J.FORBID_ATTR,Ue):{},Te=To(J,"USE_PROFILES")?J.USE_PROFILES:!1,re=J.ALLOW_ARIA_ATTR!==!1,he=J.ALLOW_DATA_ATTR!==!1,Se=J.ALLOW_UNKNOWN_PROTOCOLS||!1,we=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=J.SAFE_FOR_TEMPLATES||!1,W=J.SAFE_FOR_XML!==!1,j=J.WHOLE_DOCUMENT||!1,ye=J.RETURN_DOM||!1,le=J.RETURN_DOM_FRAGMENT||!1,De=J.RETURN_TRUSTED_TYPE||!1,_e=J.FORCE_BODY||!1,Ce=J.SANITIZE_DOM!==!1,Oe=J.SANITIZE_NAMED_PROPS||!1,X=J.KEEP_CONTENT!==!1,q=J.IN_PLACE||!1,Y=J.ALLOWED_URI_REGEXP||hF,Ot=J.NAMESPACE||$e,ce=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&Je(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(he=!1),le&&(ye=!0),Te&&(ee=Yt({},zw),K=[],Te.html===!0&&(Yt(ee,qw),Yt(K,jw)),Te.svg===!0&&(Yt(ee,Tm),Yt(K,_m),Yt(K,k6)),Te.svgFilters===!0&&(Yt(ee,mm),Yt(K,_m),Yt(K,k6)),Te.mathMl===!0&&(Yt(ee,gm),Yt(K,Ww),Yt(K,k6))),J.ADD_TAGS&&(ee===pe&&(ee=B1(ee)),Yt(ee,J.ADD_TAGS,Ue)),J.ADD_ATTR&&(K===$&&(K=B1(K)),Yt(K,J.ADD_ATTR,Ue)),J.ADD_URI_SAFE_ATTR&&Yt(Fe,J.ADD_URI_SAFE_ATTR,Ue),J.FORBID_CONTENTS&&(fe===ve&&(fe=B1(fe)),Yt(fe,J.FORBID_CONTENTS,Ue)),X&&(ee["#text"]=!0),j&&Yt(ee,["html","head","body"]),ee.table&&(Yt(ee,["tbody"]),delete Ee.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw _3('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _3('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=J.TRUSTED_TYPES_POLICY,E=b.createHTML("")}else b===void 0&&(b=m5t(f,i)),b!==null&&typeof E=="string"&&(E=b.createHTML(""));ii&&ii(J),Ge=J}},Rt=Yt({},["mi","mo","mn","ms","mtext"]),wn=Yt({},["annotation-xml"]),Bn=Yt({},["title","style","font","a","script"]),Xt=Yt({},[...Tm,...mm,...o5t]),$n=Yt({},[...gm,...s5t]),hr=function(J){let de=y(J);(!de||!de.tagName)&&(de={namespaceURI:Ot,tagName:"template"});const Re=lu(J.tagName),ke=lu(de.tagName);return ht[J.namespaceURI]?J.namespaceURI===it?de.namespaceURI===$e?Re==="svg":de.namespaceURI===ot?Re==="svg"&&(ke==="annotation-xml"||Rt[ke]):!!Xt[Re]:J.namespaceURI===ot?de.namespaceURI===$e?Re==="math":de.namespaceURI===it?Re==="math"&&wn[ke]:!!$n[Re]:J.namespaceURI===$e?de.namespaceURI===it&&!wn[ke]||de.namespaceURI===ot&&!Rt[ke]?!1:!$n[Re]&&(Bn[Re]||!Xt[Re]):!!(rt==="application/xhtml+xml"&&ht[J.namespaceURI]):!1},lr=function(J){m3(e.removed,{element:J});try{y(J).removeChild(J)}catch{Q(J)}},$r=function(J,de){try{m3(e.removed,{attribute:de.getAttributeNode(J),from:de})}catch{m3(e.removed,{attribute:null,from:de})}if(de.removeAttribute(J),J==="is"&&!K[J])if(ye||le)try{lr(de)}catch{}else try{de.setAttribute(J,"")}catch{}},$t=function(J){let de=null,Re=null;if(_e)J=""+J;else{const je=Gw(J,/^[\r\n\t ]+/);Re=je&&je[0]}rt==="application/xhtml+xml"&&Ot===$e&&(J=''+J+"");const ke=b?b.createHTML(J):J;if(Ot===$e)try{de=new h().parseFromString(ke,rt)}catch{}if(!de||!de.documentElement){de=x.createDocument(Ot,"template",null);try{de.documentElement.innerHTML=pt?E:ke}catch{}}const H=de.body||de.documentElement;return J&&Re&&H.insertBefore(n.createTextNode(Re),H.childNodes[0]||null),Ot===$e?C.call(de,j?"html":"body")[0]:j?de.documentElement:H},oi=function(J){return L.call(J.ownerDocument||J,J,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},zn=function(J){return J instanceof d&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof u)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},Mr=function(J){return typeof a=="function"&&J instanceof a},_n=function(J,de,Re){I[J]&&I6(I[J],ke=>{ke.call(e,de,Re,Ge)})},lo=function(J){let de=null;if(_n("beforeSanitizeElements",J,null),zn(J))return lr(J),!0;const Re=Ue(J.nodeName);if(_n("uponSanitizeElement",J,{tagName:Re,allowedTags:ee}),J.hasChildNodes()&&!Mr(J.firstElementChild)&&qr(/<[/\w]/g,J.innerHTML)&&qr(/<[/\w]/g,J.textContent)||J.nodeType===v3.progressingInstruction||W&&J.nodeType===v3.comment&&qr(/<[/\w]/g,J.data))return lr(J),!0;if(!ee[Re]||Ee[Re]){if(!Ee[Re]&&Io(Re)&&(ce.tagNameCheck instanceof RegExp&&qr(ce.tagNameCheck,Re)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Re)))return!1;if(X&&!fe[Re]){const ke=y(J)||J.parentNode,H=v(J)||J.childNodes;if(H&&ke){const je=H.length;for(let ft=je-1;ft>=0;--ft){const dt=T(H[ft],!0);dt.__removalCount=(J.__removalCount||0)+1,ke.insertBefore(dt,_(J))}}}return lr(J),!0}return J instanceof l&&!hr(J)||(Re==="noscript"||Re==="noembed"||Re==="noframes")&&qr(/<\/no(script|embed|frames)/i,J.innerHTML)?(lr(J),!0):(se&&J.nodeType===v3.text&&(de=J.textContent,I6([N,V,R],ke=>{de=g3(de,ke," ")}),J.textContent!==de&&(m3(e.removed,{element:J.cloneNode()}),J.textContent=de)),_n("afterSanitizeElements",J,null),!1)},co=function(J,de,Re){if(Ce&&(de==="id"||de==="name")&&(Re in n||Re in Ve))return!1;if(!(he&&!z[de]&&qr(B,de))){if(!(re&&qr(F,de))){if(!K[de]||z[de]){if(!(Io(J)&&(ce.tagNameCheck instanceof RegExp&&qr(ce.tagNameCheck,J)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(J))&&(ce.attributeNameCheck instanceof RegExp&&qr(ce.attributeNameCheck,de)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(de))||de==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&qr(ce.tagNameCheck,Re)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Re))))return!1}else if(!Fe[de]){if(!qr(Y,g3(Re,G,""))){if(!((de==="src"||de==="xlink:href"||de==="href")&&J!=="script"&&t5t(Re,"data:")===0&&Me[J])){if(!(Se&&!qr(U,g3(Re,G,"")))){if(Re)return!1}}}}}}return!0},Io=function(J){return J!=="annotation-xml"&&Gw(J,Z)},ne=function(J){_n("beforeSanitizeAttributes",J,null);const{attributes:de}=J;if(!de)return;const Re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};let ke=de.length;for(;ke--;){const H=de[ke],{name:je,namespaceURI:ft,value:dt}=H,mt=Ue(je);let bt=je==="value"?dt:n5t(dt);if(Re.attrName=mt,Re.attrValue=bt,Re.keepAttr=!0,Re.forceKeepAttr=void 0,_n("uponSanitizeAttribute",J,Re),bt=Re.attrValue,Re.forceKeepAttr||($r(je,J),!Re.keepAttr))continue;if(!we&&qr(/\/>/i,bt)){$r(je,J);continue}se&&I6([N,V,R],sn=>{bt=g3(bt,sn," ")});const qt=Ue(J.nodeName);if(co(qt,mt,bt)){if(Oe&&(mt==="id"||mt==="name")&&($r(je,J),bt=He+bt),W&&qr(/((--!?|])>)|<\/(style|title)/i,bt)){$r(je,J);continue}if(b&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!ft)switch(f.getAttributeType(qt,mt)){case"TrustedHTML":{bt=b.createHTML(bt);break}case"TrustedScriptURL":{bt=b.createScriptURL(bt);break}}try{ft?J.setAttributeNS(ft,je,bt):J.setAttribute(je,bt),zn(J)?lr(J):Uw(e.removed)}catch{}}}_n("afterSanitizeAttributes",J,null)},Ae=function me(J){let de=null;const Re=oi(J);for(_n("beforeSanitizeShadowDOM",J,null);de=Re.nextNode();)_n("uponSanitizeShadowNode",de,null),!lo(de)&&(de.content instanceof o&&me(de.content),ne(de));_n("afterSanitizeShadowDOM",J,null)};return e.sanitize=function(me){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=null,Re=null,ke=null,H=null;if(pt=!me,pt&&(me=""),typeof me!="string"&&!Mr(me))if(typeof me.toString=="function"){if(me=me.toString(),typeof me!="string")throw _3("dirty is not a string, aborting")}else throw _3("toString is not a function");if(!e.isSupported)return me;if(oe||yt(J),e.removed=[],typeof me=="string"&&(q=!1),q){if(me.nodeName){const dt=Ue(me.nodeName);if(!ee[dt]||Ee[dt])throw _3("root node is forbidden and cannot be sanitized in-place")}}else if(me instanceof a)de=$t(""),Re=de.ownerDocument.importNode(me,!0),Re.nodeType===v3.element&&Re.nodeName==="BODY"||Re.nodeName==="HTML"?de=Re:de.appendChild(Re);else{if(!ye&&!se&&!j&&me.indexOf("<")===-1)return b&&De?b.createHTML(me):me;if(de=$t(me),!de)return ye?null:De?E:""}de&&_e&&lr(de.firstChild);const je=oi(q?me:de);for(;ke=je.nextNode();)lo(ke)||(ke.content instanceof o&&Ae(ke.content),ne(ke));if(q)return me;if(ye){if(le)for(H=M.call(de.ownerDocument);de.firstChild;)H.appendChild(de.firstChild);else H=de;return(K.shadowroot||K.shadowrootmode)&&(H=A.call(r,H,!0)),H}let ft=j?de.outerHTML:de.innerHTML;return j&&ee["!doctype"]&&de.ownerDocument&&de.ownerDocument.doctype&&de.ownerDocument.doctype.name&&qr(TF,de.ownerDocument.doctype.name)&&(ft=" +`+ft),se&&I6([N,V,R],dt=>{ft=g3(ft,dt," ")}),b&&De?b.createHTML(ft):ft},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(me),oe=!0},e.clearConfig=function(){Ge=null,oe=!1},e.isValidAttribute=function(me,J,de){Ge||yt({});const Re=Ue(me),ke=Ue(J);return co(Re,ke,de)},e.addHook=function(me,J){typeof J=="function"&&(I[me]=I[me]||[],m3(I[me],J))},e.removeHook=function(me){if(I[me])return Uw(I[me])},e.removeHooks=function(me){I[me]&&(I[me]=[])},e.removeAllHooks=function(){I={}},e}var g5t=mF();cn.setOptions({highlight:function(t,e){return e&&es.getLanguage(e)?es.highlight(t,{language:e}).value:es.highlightAuto(t).value},breaks:!0,gfm:!0});const _5t={name:"ThinkingBlock",props:{content:{type:String,required:!0},isDone:{type:Boolean,required:!0,default:!1}},data(){return{isOpen:!1}},computed:{isThinking(){return!this.isDone},renderedContent(){return g5t.sanitize(cn.parse(this.content))}},watch:{content:{handler(){this.$nextTick(()=>{this.scrollToBottom()})},immediate:!0}},methods:{toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.$nextTick(()=>{this.scrollToBottom()})},scrollToBottom(){if(this.$refs.contentContainer){const t=this.$refs.contentContainer;t.scrollTop=t.scrollHeight}},downloadMarkdown(){const t=new Blob([this.content],{type:"text/markdown"}),e=window.URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.setAttribute("download","ai_thoughts.md"),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)}}},Q5t={class:"my-4"},v5t={class:"flex items-center gap-2"},y5t=["aria-expanded"],b5t={key:0,class:"flex items-center gap-2"},E5t={class:"flex space-x-1"},x5t={key:1},S5t={key:0,class:"mt-2 text-gray-600"},L5t={ref:"contentContainer",class:"p-4 rounded-lg prose prose-sm max-w-none overflow-y-auto max-h-[500px]"},C5t={key:0},A5t=["innerHTML"];function w5t(t,e,n,r,i,o){return k(),P("div",Q5t,[g("div",v5t,[g("button",{onClick:e[0]||(e[0]=(...s)=>o.toggle&&o.toggle(...s)),class:"group flex items-center gap-2 px-3 py-2 text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors duration-200 rounded-md hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","aria-expanded":i.isOpen},[(k(),P("svg",{class:We(["w-4 h-4 transition-transform duration-200",{"rotate-90":i.isOpen}]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},e[2]||(e[2]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2)),o.isThinking?(k(),P("span",b5t,[e[3]||(e[3]=nt(" Thinking ")),g("div",E5t,[(k(),P(ze,null,lt(3,s=>g("div",{key:s,class:"w-1 h-1 bg-blue-500 rounded-full animate-pulse",style:gn({animationDelay:`${(s-1)*150}ms`})},null,4)),64))])])):(k(),P("span",x5t,"AI Thoughts"))],8,y5t),!o.isThinking&&n.content?(k(),P("button",{key:0,onClick:e[1]||(e[1]=(...s)=>o.downloadMarkdown&&o.downloadMarkdown(...s)),class:"px-2 py-1 text-xs font-medium text-gray-600 hover:text-gray-900 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500",title:"Download as Markdown"},e[4]||(e[4]=[g("svg",{class:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 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)]))):ie("",!0)]),ae(Ai,{"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-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Be(()=>[i.isOpen?(k(),P("div",S5t,[g("div",L5t,[t.$slots.default?(k(),P("div",C5t,[er(t.$slots,"default")])):(k(),P("div",{key:1,innerHTML:o.renderedContent},null,8,A5t))],512)])):ie("",!0)]),_:3})])}const M5t=Et(_5t,[["render",w5t]]);var g7={},_7={};Object.defineProperty(_7,"__esModule",{value:!0});_7.VERSION=void 0;_7.VERSION="3.2.2";var Q7={},r1={};Object.defineProperty(r1,"__esModule",{value:!0});r1.PrioritizedList=void 0;var O5t=function(){function t(){this.items=[],this.items=[]}return t.prototype[Symbol.iterator]=function(){var e=0,n=this.items;return{next:function(){return{value:n[e++],done:e>n.length}}}},t.prototype.add=function(e,n){n===void 0&&(n=t.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n=0&&this.items[n].item!==e);n>=0&&this.items.splice(n,1)},t.DEFAULTPRIORITY=5,t}();r1.PrioritizedList=O5t;var R5t=S&&S.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N5t=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Q7,"__esModule",{value:!0});Q7.HandlerList=void 0;var D5t=r1,I5t=function(t){R5t(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.register=function(n){return this.add(n,n.priority)},e.prototype.unregister=function(n){this.remove(n)},e.prototype.handlesDocument=function(n){var r,i;try{for(var o=N5t(this),s=o.next();!s.done;s=o.next()){var a=s.value,l=a.item;if(l.handlesDocument(n))return l}}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new Error("Can't find handler for document")},e.prototype.document=function(n,r){return r===void 0&&(r=null),this.handlesDocument(n).create(n,r)},e}(D5t.PrioritizedList);Q7.HandlerList=I5t;var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.retryAfter=Ka.handleRetriesFor=void 0;function k5t(t){return new Promise(function e(n,r){try{n(t())}catch(i){i.retry&&i.retry instanceof Promise?i.retry.then(function(){return e(n,r)}).catch(function(o){return r(o)}):i.restart&&i.restart.isCallback?MathJax.Callback.After(function(){return e(n,r)},i.restart):r(i)}})}Ka.handleRetriesFor=k5t;function P5t(t){var e=new Error("MathJax retry");throw e.retry=t,e}Ka.retryAfter=P5t;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.mathjax=void 0;var e=_7,n=Q7,r=Ka;t.mathjax={version:e.VERSION,handlers:new n.HandlerList,document:function(i,o){return t.mathjax.handlers.document(i,o)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})(g7);var v7={},R0={},ar={};(function(t){var e=S&&S.__values||function(v){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&v[y],E=0;if(b)return b.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&E>=v.length&&(v=void 0),{value:v&&v[E++],done:!v}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},n=S&&S.__read||function(v,y){var b=typeof Symbol=="function"&&v[Symbol.iterator];if(!b)return v;var E=b.call(v),x,L=[],M;try{for(;(y===void 0||y-- >0)&&!(x=E.next()).done;)L.push(x.value)}catch(C){M={error:C}}finally{try{x&&!x.done&&(b=E.return)&&b.call(E)}finally{if(M)throw M.error}}return L},r=S&&S.__spreadArray||function(v,y,b){if(b||arguments.length===2)for(var E=0,x=y.length,L;E=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Kw=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Zw=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},q5t=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r=s&&this.state(s-1),o.renderActions.renderMath(this,o,s)},i.prototype.convert=function(o,s){s===void 0&&(s=t.STATE.LAST),o.renderActions.renderConvert(this,o,s)},i.prototype.compile=function(o){this.state()=t.STATE.INSERTED&&this.removeFromDocument(s),o=t.STATE.TYPESET&&(this.outputData={}),o=t.STATE.COMPILED&&(this.inputData={}),this._state=o),this._state},i.prototype.reset=function(o){o===void 0&&(o=!1),this.state(t.STATE.UNPROCESSED,o)},i}();t.AbstractMathItem=n,t.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function r(i,o){if(i in t.STATE)throw Error("State "+i+" already exists");t.STATE[i]=o}t.newState=r})(M2);var X5t=S&&S.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tM=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};Object.defineProperty(y7,"__esModule",{value:!0});y7.FindTeX=void 0;var J5t=b7,P6=Gn,Qm=M2,eut=function(t){X5t(e,t);function e(n){var r=t.call(this,n)||this;return r.getPatterns(),r}return e.prototype.getPatterns=function(){var n=this,r=this.options,i=[],o=[],s=[];this.end={},this.env=this.sub=0;var a=1;r.inlineMath.forEach(function(l){return n.addPattern(i,l,!1)}),r.displayMath.forEach(function(l){return n.addPattern(i,l,!0)}),i.length&&o.push(i.sort(P6.sortLength).join("|")),r.processEnvironments&&(o.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=a,a++),r.processEscapes&&s.push("\\\\([\\\\$])"),r.processRefs&&s.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),s.length&&(o.push("("+s.join("|")+")"),this.sub=a),this.start=new RegExp(o.join("|"),"g"),this.hasPatterns=o.length>0},e.prototype.addPattern=function(n,r,i){var o=tM(r,2),s=o[0],a=o[1];n.push((0,P6.quotePattern)(s)),this.end[s]=[a,i,this.endPattern(a)]},e.prototype.endPattern=function(n,r){return new RegExp((r||(0,P6.quotePattern)(n))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},e.prototype.findEnd=function(n,r,i,o){for(var s=tM(o,3),a=s[0],l=s[1],c=s[2],u=c.lastIndex=i.index+i[0].length,d,h=0;d=c.exec(n);){if((d[1]||d[0])===a&&h===0)return(0,Qm.protoItem)(i[0],n.substr(u,d.index-u),d[0],r,i.index,d.index+d[0].length,l);d[0]==="{"?h++:d[0]==="}"&&h&&h--}return null},e.prototype.findMathInString=function(n,r,i){var o,s;for(this.start.lastIndex=0;o=this.start.exec(i);){if(o[this.env]!==void 0&&this.env){var a="\\\\end\\s*(\\{"+(0,P6.quotePattern)(o[this.env])+"\\})";s=this.findEnd(i,r,o,["{"+o[this.env]+"}",!0,this.endPattern(null,a)]),s&&(s.math=s.open+s.math+s.close,s.open=s.close="")}else if(o[this.sub]!==void 0&&this.sub){var l=o[this.sub],a=o.index+o[this.sub].length;l.length===2?s=(0,Qm.protoItem)("",l.substr(1),"",r,o.index,a):s=(0,Qm.protoItem)("",l,"",r,o.index,a,!1)}else s=this.findEnd(i,r,o,this.end[o[0]]);s&&(n.push(s),this.start.lastIndex=s.end.n)}},e.prototype.findMath=function(n){var r=[];if(this.hasPatterns)for(var i=0,o=n.length;i=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Attributes=t.INHERIT=void 0,t.INHERIT="_inherit_";var n=function(){function r(i,o){this.global=o,this.defaults=Object.create(o),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,i)}return r.prototype.set=function(i,o){this.attributes[i]=o},r.prototype.setList=function(i){Object.assign(this.attributes,i)},r.prototype.get=function(i){var o=this.attributes[i];return o===t.INHERIT&&(o=this.global[i]),o},r.prototype.getExplicit=function(i){if(this.attributes.hasOwnProperty(i))return this.attributes[i]},r.prototype.getList=function(){for(var i,o,s=[],a=0;a=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p2,"__esModule",{value:!0});p2.AbstractEmptyNode=p2.AbstractNode=void 0;var gF=function(){function t(e,n,r){var i,o;n===void 0&&(n={}),r===void 0&&(r=[]),this.factory=e,this.parent=null,this.properties={},this.childNodes=[];try{for(var s=y3(Object.keys(n)),a=s.next();!a.done;a=s.next()){var l=a.value;this.setProperty(l,n[l])}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}r.length&&this.setChildren(r)}return Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(e,n){this.properties[e]=n},t.prototype.getProperty=function(e){return this.properties[e]},t.prototype.getPropertyNames=function(){return Object.keys(this.properties)},t.prototype.getAllProperties=function(){return this.properties},t.prototype.removeProperty=function(){for(var e,n,r=[],i=0;i=Q.length&&(Q=void 0),{value:Q&&Q[y++],done:!Q}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},i=S&&S.__read||function(Q,_){var v=typeof Symbol=="function"&&Q[Symbol.iterator];if(!v)return Q;var y=v.call(Q),b,E=[],x;try{for(;(_===void 0||_-- >0)&&!(b=y.next()).done;)E.push(b.value)}catch(L){x={error:L}}finally{try{b&&!b.done&&(v=y.return)&&v.call(y)}finally{if(x)throw x.error}}return E};Object.defineProperty(t,"__esModule",{value:!0}),t.XMLNode=t.TextNode=t.AbstractMmlEmptyNode=t.AbstractMmlBaseNode=t.AbstractMmlLayoutNode=t.AbstractMmlTokenNode=t.AbstractMmlNode=t.indentAttributes=t.TEXCLASSNAMES=t.TEXCLASS=void 0;var o=Vc,s=p2;t.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},t.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var a=["","thinmathspace","mediummathspace","thickmathspace"],l=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];t.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var c=function(Q){e(_,Q);function _(v,y,b){y===void 0&&(y={}),b===void 0&&(b=[]);var E=Q.call(this,v)||this;return E.prevClass=null,E.prevLevel=null,E.texclass=null,E.arity<0&&(E.childNodes=[v.create("inferredMrow")],E.childNodes[0].parent=E),E.setChildren(b),E.attributes=new o.Attributes(v.getNodeClass(E.kind).defaults,v.getNodeClass("math").defaults),E.attributes.setList(y),E}return _.prototype.copy=function(v){var y,b,E,x;v===void 0&&(v=!1);var L=this.factory.create(this.kind);if(L.properties=n({},this.properties),this.attributes){var M=this.attributes.getAllAttributes();try{for(var C=r(Object.keys(M)),A=C.next();!A.done;A=C.next()){var I=A.value;(I!=="id"||v)&&L.attributes.set(I,M[I])}}catch(F){y={error:F}}finally{try{A&&!A.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}}if(this.childNodes&&this.childNodes.length){var N=this.childNodes;N.length===1&&N[0].isInferred&&(N=N[0].childNodes);try{for(var V=r(N),R=V.next();!R.done;R=V.next()){var B=R.value;B?L.appendChild(B.copy()):L.childNodes.push(null)}}catch(F){E={error:F}}finally{try{R&&!R.done&&(x=V.return)&&x.call(V)}finally{if(E)throw E.error}}}return L},Object.defineProperty(_.prototype,"texClass",{get:function(){return this.texclass},set:function(v){this.texclass=v},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"Parent",{get:function(){for(var v=this.parent;v&&v.notParent;)v=v.Parent;return v},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),_.prototype.setChildren=function(v){return this.arity<0?this.childNodes[0].setChildren(v):Q.prototype.setChildren.call(this,v)},_.prototype.appendChild=function(v){var y,b,E=this;if(this.arity<0)return this.childNodes[0].appendChild(v),v;if(v.isInferred){if(this.arity===1/0)return v.childNodes.forEach(function(A){return Q.prototype.appendChild.call(E,A)}),v;var x=v;v=this.factory.create("mrow"),v.setChildren(x.childNodes),v.attributes=x.attributes;try{for(var L=r(x.getPropertyNames()),M=L.next();!M.done;M=L.next()){var C=M.value;v.setProperty(C,x.getProperty(C))}}catch(A){y={error:A}}finally{try{M&&!M.done&&(b=L.return)&&b.call(L)}finally{if(y)throw y.error}}}return Q.prototype.appendChild.call(this,v)},_.prototype.replaceChild=function(v,y){return this.arity<0?(this.childNodes[0].replaceChild(v,y),v):Q.prototype.replaceChild.call(this,v,y)},_.prototype.core=function(){return this},_.prototype.coreMO=function(){return this},_.prototype.coreIndex=function(){return 0},_.prototype.childPosition=function(){for(var v,y,b=this,E=b.parent;E&&E.notParent;)b=E,E=E.parent;if(E){var x=0;try{for(var L=r(E.childNodes),M=L.next();!M.done;M=L.next()){var C=M.value;if(C===b)return x;x++}}catch(A){v={error:A}}finally{try{M&&!M.done&&(y=L.return)&&y.call(L)}finally{if(v)throw v.error}}}return null},_.prototype.setTeXclass=function(v){return this.getPrevClass(v),this.texClass!=null?this:v},_.prototype.updateTeXclass=function(v){v&&(this.prevClass=v.prevClass,this.prevLevel=v.prevLevel,v.prevClass=v.prevLevel=null,this.texClass=v.texClass)},_.prototype.getPrevClass=function(v){v&&(this.prevClass=v.texClass,this.prevLevel=v.attributes.get("scriptlevel"))},_.prototype.texSpacing=function(){var v=this.prevClass!=null?this.prevClass:t.TEXCLASS.NONE,y=this.texClass||t.TEXCLASS.ORD;if(v===t.TEXCLASS.NONE||y===t.TEXCLASS.NONE)return"";v===t.TEXCLASS.VCENTER&&(v=t.TEXCLASS.ORD),y===t.TEXCLASS.VCENTER&&(y=t.TEXCLASS.ORD);var b=l[v][y];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&b>=0?"":a[Math.abs(b)]},_.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},_.prototype.setInheritedAttributes=function(v,y,b,E){var x,L;v===void 0&&(v={}),y===void 0&&(y=!1),b===void 0&&(b=0),E===void 0&&(E=!1);var M=this.attributes.getAllDefaults();try{for(var C=r(Object.keys(v)),A=C.next();!A.done;A=C.next()){var I=A.value;if(M.hasOwnProperty(I)||_.alwaysInherit.hasOwnProperty(I)){var N=i(v[I],2),V=N[0],R=N[1],B=(_.noInherit[V]||{})[this.kind]||{};B[I]||this.attributes.setInherited(I,R)}}}catch(Z){x={error:Z}}finally{try{A&&!A.done&&(L=C.return)&&L.call(C)}finally{if(x)throw x.error}}var F=this.attributes.getExplicit("displaystyle");F===void 0&&this.attributes.setInherited("displaystyle",y);var U=this.attributes.getExplicit("scriptlevel");U===void 0&&this.attributes.setInherited("scriptlevel",b),E&&this.setProperty("texprimestyle",E);var G=this.arity;if(G>=0&&G!==1/0&&(G===1&&this.childNodes.length===0||G!==1&&this.childNodes.length!==G))if(G=0&&y!==1/0&&(y===1&&this.childNodes.length===0||y!==1&&this.childNodes.length!==y)&&this.mError('Wrong number of children for "'+this.kind+'" node',v,!0),this.verifyChildren(v)}},_.prototype.verifyAttributes=function(v){var y,b;if(v.checkAttributes){var E=this.attributes,x=[];try{for(var L=r(E.getExplicitNames()),M=L.next();!M.done;M=L.next()){var C=M.value;C.substr(0,5)!=="data-"&&E.getDefault(C)===void 0&&!C.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&x.push(C)}}catch(A){y={error:A}}finally{try{M&&!M.done&&(b=L.return)&&b.call(L)}finally{if(y)throw y.error}}x.length&&this.mError("Unknown attributes for "+this.kind+" node: "+x.join(", "),v)}},_.prototype.verifyChildren=function(v){var y,b;try{for(var E=r(this.childNodes),x=E.next();!x.done;x=E.next()){var L=x.value;L.verifyTree(v)}}catch(M){y={error:M}}finally{try{x&&!x.done&&(b=E.return)&&b.call(E)}finally{if(y)throw y.error}}},_.prototype.mError=function(v,y,b){if(b===void 0&&(b=!1),this.parent&&this.parent.isKind("merror"))return null;var E=this.factory.create("merror");if(E.attributes.set("data-mjx-message",v),y.fullErrors||b){var x=this.factory.create("mtext"),L=this.factory.create("text");L.setText(y.fullErrors?v:this.kind),x.appendChild(L),E.appendChild(x),this.parent.replaceChild(E,this)}else this.parent.replaceChild(E,this),E.appendChild(this);return E},_.defaults={mathbackground:o.INHERIT,mathcolor:o.INHERIT,mathsize:o.INHERIT,dir:o.INHERIT},_.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},_.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},_.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},_}(s.AbstractNode);t.AbstractMmlNode=c;var u=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),_.prototype.getText=function(){var v,y,b="";try{for(var E=r(this.childNodes),x=E.next();!x.done;x=E.next()){var L=x.value;L instanceof m&&(b+=L.getText())}}catch(M){v={error:M}}finally{try{x&&!x.done&&(y=E.return)&&y.call(E)}finally{if(v)throw v.error}}return b},_.prototype.setChildInheritedAttributes=function(v,y,b,E){var x,L;try{for(var M=r(this.childNodes),C=M.next();!C.done;C=M.next()){var A=C.value;A instanceof c&&A.setInheritedAttributes(v,y,b,E)}}catch(I){x={error:I}}finally{try{C&&!C.done&&(L=M.return)&&L.call(M)}finally{if(x)throw x.error}}},_.prototype.walkTree=function(v,y){var b,E;v(this,y);try{for(var x=r(this.childNodes),L=x.next();!L.done;L=x.next()){var M=L.value;M instanceof c&&M.walkTree(v,y)}}catch(C){b={error:C}}finally{try{L&&!L.done&&(E=x.return)&&E.call(x)}finally{if(b)throw b.error}}return y},_.defaults=n(n({},c.defaults),{mathvariant:"normal",mathsize:o.INHERIT}),_}(c);t.AbstractMmlTokenNode=u;var d=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this.childNodes[0]},_.prototype.coreMO=function(){return this.childNodes[0].coreMO()},_.prototype.setTeXclass=function(v){return v=this.childNodes[0].setTeXclass(v),this.updateTeXclass(this.childNodes[0]),v},_.defaults=c.defaults,_}(c);t.AbstractMmlLayoutNode=d;var h=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this.childNodes[0]},_.prototype.coreMO=function(){return this.childNodes[0].coreMO()},_.prototype.setTeXclass=function(v){var y,b;this.getPrevClass(v),this.texClass=t.TEXCLASS.ORD;var E=this.childNodes[0];E?this.isEmbellished||E.isKind("mi")?(v=E.setTeXclass(v),this.updateTeXclass(this.core())):(E.setTeXclass(null),v=this):v=this;try{for(var x=r(this.childNodes.slice(1)),L=x.next();!L.done;L=x.next()){var M=L.value;M&&M.setTeXclass(null)}}catch(C){y={error:C}}finally{try{L&&!L.done&&(b=x.return)&&b.call(x)}finally{if(y)throw y.error}}return v},_.defaults=c.defaults,_}(c);t.AbstractMmlBaseNode=h;var f=function(Q){e(_,Q);function _(){return Q!==null&&Q.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"texClass",{get:function(){return t.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"prevClass",{get:function(){return t.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),_.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(_.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this},_.prototype.coreMO=function(){return this},_.prototype.coreIndex=function(){return 0},_.prototype.childPosition=function(){return 0},_.prototype.setTeXclass=function(v){return v},_.prototype.texSpacing=function(){return""},_.prototype.setInheritedAttributes=function(v,y,b,E){},_.prototype.inheritAttributesFrom=function(v){},_.prototype.verifyTree=function(v){},_.prototype.mError=function(v,y,b){return null},_}(s.AbstractEmptyNode);t.AbstractMmlEmptyNode=f;var m=function(Q){e(_,Q);function _(){var v=Q!==null&&Q.apply(this,arguments)||this;return v.text="",v}return Object.defineProperty(_.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),_.prototype.getText=function(){return this.text},_.prototype.setText=function(v){return this.text=v,this},_.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},_.prototype.toString=function(){return this.text},_}(f);t.TextNode=m;var T=function(Q){e(_,Q);function _(){var v=Q!==null&&Q.apply(this,arguments)||this;return v.xml=null,v.adaptor=null,v}return Object.defineProperty(_.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),_.prototype.getXML=function(){return this.xml},_.prototype.setXML=function(v,y){return y===void 0&&(y=null),this.xml=v,this.adaptor=y,this},_.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},_.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},_.prototype.toString=function(){return"XML data"},_}(f);t.XMLNode=T})(St);var Dn={},O2={},Cy={};(function(t){var e=S&&S.__values||function(o){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&o[s],l=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&l>=o.length&&(o=void 0),{value:o&&o[l++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.OPTABLE=t.MMLSPACING=t.getRange=t.RANGES=t.MO=t.OPDEF=void 0;var n=St;function r(o,s,a,l){return a===void 0&&(a=n.TEXCLASS.BIN),l===void 0&&(l=null),[o,s,a,l]}t.OPDEF=r,t.MO={ORD:r(0,0,n.TEXCLASS.ORD),ORD11:r(1,1,n.TEXCLASS.ORD),ORD21:r(2,1,n.TEXCLASS.ORD),ORD02:r(0,2,n.TEXCLASS.ORD),ORD55:r(5,5,n.TEXCLASS.ORD),NONE:r(0,0,n.TEXCLASS.NONE),OP:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,n.TEXCLASS.BIN),BIN4:r(4,4,n.TEXCLASS.BIN),BIN01:r(0,1,n.TEXCLASS.BIN),BIN5:r(5,5,n.TEXCLASS.BIN),TALLBIN:r(4,4,n.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,n.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,n.TEXCLASS.REL),REL1:r(1,1,n.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,n.TEXCLASS.REL),RELSTRETCH:r(5,5,n.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,n.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,n.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,n.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,n.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,n.TEXCLASS.INNER),PUNCT:r(0,3,n.TEXCLASS.PUNCT),ACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0,stretchy:!0})},t.RANGES=[[32,127,n.TEXCLASS.REL,"mo"],[160,191,n.TEXCLASS.ORD,"mo"],[192,591,n.TEXCLASS.ORD,"mi"],[688,879,n.TEXCLASS.ORD,"mo"],[880,6688,n.TEXCLASS.ORD,"mi"],[6832,6911,n.TEXCLASS.ORD,"mo"],[6912,7615,n.TEXCLASS.ORD,"mi"],[7616,7679,n.TEXCLASS.ORD,"mo"],[7680,8191,n.TEXCLASS.ORD,"mi"],[8192,8303,n.TEXCLASS.ORD,"mo"],[8304,8351,n.TEXCLASS.ORD,"mo"],[8448,8527,n.TEXCLASS.ORD,"mi"],[8528,8591,n.TEXCLASS.ORD,"mn"],[8592,8703,n.TEXCLASS.REL,"mo"],[8704,8959,n.TEXCLASS.BIN,"mo"],[8960,9215,n.TEXCLASS.ORD,"mo"],[9312,9471,n.TEXCLASS.ORD,"mn"],[9472,10223,n.TEXCLASS.ORD,"mo"],[10224,10239,n.TEXCLASS.REL,"mo"],[10240,10495,n.TEXCLASS.ORD,"mtext"],[10496,10623,n.TEXCLASS.REL,"mo"],[10624,10751,n.TEXCLASS.ORD,"mo"],[10752,11007,n.TEXCLASS.BIN,"mo"],[11008,11055,n.TEXCLASS.ORD,"mo"],[11056,11087,n.TEXCLASS.REL,"mo"],[11088,11263,n.TEXCLASS.ORD,"mo"],[11264,11744,n.TEXCLASS.ORD,"mi"],[11776,11903,n.TEXCLASS.ORD,"mo"],[11904,12255,n.TEXCLASS.ORD,"mi","normal"],[12272,12351,n.TEXCLASS.ORD,"mo"],[12352,42143,n.TEXCLASS.ORD,"mi","normal"],[42192,43055,n.TEXCLASS.ORD,"mi"],[43056,43071,n.TEXCLASS.ORD,"mn"],[43072,55295,n.TEXCLASS.ORD,"mi"],[63744,64255,n.TEXCLASS.ORD,"mi","normal"],[64256,65023,n.TEXCLASS.ORD,"mi"],[65024,65135,n.TEXCLASS.ORD,"mo"],[65136,65791,n.TEXCLASS.ORD,"mi"],[65792,65935,n.TEXCLASS.ORD,"mn"],[65936,74751,n.TEXCLASS.ORD,"mi","normal"],[74752,74879,n.TEXCLASS.ORD,"mn"],[74880,113823,n.TEXCLASS.ORD,"mi","normal"],[113824,119391,n.TEXCLASS.ORD,"mo"],[119648,119679,n.TEXCLASS.ORD,"mn"],[119808,120781,n.TEXCLASS.ORD,"mi"],[120782,120831,n.TEXCLASS.ORD,"mn"],[122624,129023,n.TEXCLASS.ORD,"mo"],[129024,129279,n.TEXCLASS.REL,"mo"],[129280,129535,n.TEXCLASS.ORD,"mo"],[131072,195103,n.TEXCLASS.ORD,"mi","normnal"]];function i(o){var s,a,l=o.codePointAt(0);try{for(var c=e(t.RANGES),u=c.next();!u.done;u=c.next()){var d=u.value;if(l<=d[1]){if(l>=d[0])return d;break}}}catch(h){s={error:h}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}return null}t.getRange=i,t.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],t.OPTABLE={prefix:{"(":t.MO.OPEN,"+":t.MO.BIN01,"-":t.MO.BIN01,"[":t.MO.OPEN,"{":t.MO.OPEN,"|":t.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":t.MO.ORD21,"±":t.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"ⅅ":t.MO.ORD21,"ⅆ":r(2,0,n.TEXCLASS.ORD),"∀":t.MO.ORD21,"∂":t.MO.ORD21,"∃":t.MO.ORD21,"∄":t.MO.ORD21,"∇":t.MO.ORD21,"∏":t.MO.OP,"∐":t.MO.OP,"∑":t.MO.OP,"−":t.MO.BIN01,"∓":t.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:!0}],"∛":t.MO.ORD11,"∜":t.MO.ORD11,"∠":t.MO.ORD,"∡":t.MO.ORD,"∢":t.MO.ORD,"∫":t.MO.INTEGRAL,"∬":t.MO.INTEGRAL,"∭":t.MO.INTEGRAL,"∮":t.MO.INTEGRAL,"∯":t.MO.INTEGRAL,"∰":t.MO.INTEGRAL,"∱":t.MO.INTEGRAL,"∲":t.MO.INTEGRAL,"∳":t.MO.INTEGRAL,"⋀":t.MO.OP,"⋁":t.MO.OP,"⋂":t.MO.OP,"⋃":t.MO.OP,"⌈":t.MO.OPEN,"⌊":t.MO.OPEN,"〈":t.MO.OPEN,"❲":t.MO.OPEN,"⟦":t.MO.OPEN,"⟨":t.MO.OPEN,"⟪":t.MO.OPEN,"⟬":t.MO.OPEN,"⟮":t.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":t.MO.OPEN,"⦅":t.MO.OPEN,"⦇":t.MO.OPEN,"⦉":t.MO.OPEN,"⦋":t.MO.OPEN,"⦍":t.MO.OPEN,"⦏":t.MO.OPEN,"⦑":t.MO.OPEN,"⦓":t.MO.OPEN,"⦕":t.MO.OPEN,"⦗":t.MO.OPEN,"⧼":t.MO.OPEN,"⨀":t.MO.OP,"⨁":t.MO.OP,"⨂":t.MO.OP,"⨃":t.MO.OP,"⨄":t.MO.OP,"⨅":t.MO.OP,"⨆":t.MO.OP,"⨇":t.MO.OP,"⨈":t.MO.OP,"⨉":t.MO.OP,"⨊":t.MO.OP,"⨋":t.MO.INTEGRAL2,"⨌":t.MO.INTEGRAL,"⨍":t.MO.INTEGRAL2,"⨎":t.MO.INTEGRAL2,"⨏":t.MO.INTEGRAL2,"⨐":t.MO.OP,"⨑":t.MO.OP,"⨒":t.MO.OP,"⨓":t.MO.OP,"⨔":t.MO.OP,"⨕":t.MO.INTEGRAL2,"⨖":t.MO.INTEGRAL2,"⨗":t.MO.INTEGRAL2,"⨘":t.MO.INTEGRAL2,"⨙":t.MO.INTEGRAL2,"⨚":t.MO.INTEGRAL2,"⨛":t.MO.INTEGRAL2,"⨜":t.MO.INTEGRAL2,"⫼":t.MO.OP,"⫿":t.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':t.MO.ACCENT,"&":t.MO.ORD,")":t.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":t.MO.ORD,"'":t.MO.ACCENT,"]":t.MO.CLOSE,"^":t.MO.WIDEACCENT,_:t.MO.WIDEACCENT,"`":t.MO.ACCENT,"|":t.MO.CLOSE,"}":t.MO.CLOSE,"~":t.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":t.MO.ACCENT,ª:t.MO.ACCENT,"¯":t.MO.WIDEACCENT,"°":t.MO.ORD,"²":t.MO.ACCENT,"³":t.MO.ACCENT,"´":t.MO.ACCENT,"¸":t.MO.ACCENT,"¹":t.MO.ACCENT,º:t.MO.ACCENT,"ˆ":t.MO.WIDEACCENT,"ˇ":t.MO.WIDEACCENT,"ˉ":t.MO.WIDEACCENT,"ˊ":t.MO.ACCENT,"ˋ":t.MO.ACCENT,"ˍ":t.MO.WIDEACCENT,"˘":t.MO.ACCENT,"˙":t.MO.ACCENT,"˚":t.MO.ACCENT,"˜":t.MO.WIDEACCENT,"˝":t.MO.ACCENT,"˷":t.MO.WIDEACCENT,"̂":t.MO.WIDEACCENT,"̑":t.MO.ACCENT,"϶":t.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"‚":t.MO.ACCENT,"‛":t.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"„":t.MO.ACCENT,"‟":t.MO.ACCENT,"′":t.MO.ORD,"″":t.MO.ACCENT,"‴":t.MO.ACCENT,"‵":t.MO.ACCENT,"‶":t.MO.ACCENT,"‷":t.MO.ACCENT,"‾":t.MO.WIDEACCENT,"⁗":t.MO.ACCENT,"⃛":t.MO.ACCENT,"⃜":t.MO.ACCENT,"⌉":t.MO.CLOSE,"⌋":t.MO.CLOSE,"〉":t.MO.CLOSE,"⎴":t.MO.WIDEACCENT,"⎵":t.MO.WIDEACCENT,"⏜":t.MO.WIDEACCENT,"⏝":t.MO.WIDEACCENT,"⏞":t.MO.WIDEACCENT,"⏟":t.MO.WIDEACCENT,"⏠":t.MO.WIDEACCENT,"⏡":t.MO.WIDEACCENT,"■":t.MO.BIN3,"□":t.MO.BIN3,"▪":t.MO.BIN3,"▫":t.MO.BIN3,"▭":t.MO.BIN3,"▮":t.MO.BIN3,"▯":t.MO.BIN3,"▰":t.MO.BIN3,"▱":t.MO.BIN3,"▲":t.MO.BIN4,"▴":t.MO.BIN4,"▶":t.MO.BIN4,"▷":t.MO.BIN4,"▸":t.MO.BIN4,"▼":t.MO.BIN4,"▾":t.MO.BIN4,"◀":t.MO.BIN4,"◁":t.MO.BIN4,"◂":t.MO.BIN4,"◄":t.MO.BIN4,"◅":t.MO.BIN4,"◆":t.MO.BIN4,"◇":t.MO.BIN4,"◈":t.MO.BIN4,"◉":t.MO.BIN4,"◌":t.MO.BIN4,"◍":t.MO.BIN4,"◎":t.MO.BIN4,"●":t.MO.BIN4,"◖":t.MO.BIN4,"◗":t.MO.BIN4,"◦":t.MO.BIN4,"♭":t.MO.ORD02,"♮":t.MO.ORD02,"♯":t.MO.ORD02,"❳":t.MO.CLOSE,"⟧":t.MO.CLOSE,"⟩":t.MO.CLOSE,"⟫":t.MO.CLOSE,"⟭":t.MO.CLOSE,"⟯":t.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":t.MO.CLOSE,"⦆":t.MO.CLOSE,"⦈":t.MO.CLOSE,"⦊":t.MO.CLOSE,"⦌":t.MO.CLOSE,"⦎":t.MO.CLOSE,"⦐":t.MO.CLOSE,"⦒":t.MO.CLOSE,"⦔":t.MO.CLOSE,"⦖":t.MO.CLOSE,"⦘":t.MO.CLOSE,"⧽":t.MO.CLOSE},infix:{"!=":t.MO.BIN4,"#":t.MO.ORD,$:t.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":t.MO.BIN4,"":t.MO.ORD,"*":t.MO.BIN3,"**":r(1,1),"*=":t.MO.BIN4,"+":t.MO.BIN4,"+=":t.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":t.MO.BIN4,"-=":t.MO.BIN4,"->":t.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:!0}],"/":t.MO.ORD11,"//":r(1,1),"/=":t.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":t.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":t.MO.REL,"<=":t.MO.BIN5,"<>":r(1,1),"=":t.MO.REL,"==":t.MO.BIN4,">":t.MO.REL,">=":t.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":t.MO.ORD11,"\\":t.MO.ORD,"^":t.MO.ORD11,_:t.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":t.MO.BIN4,"·":t.MO.BIN4,"×":t.MO.BIN4,"÷":t.MO.BIN4,"ʹ":t.MO.ORD,"̀":t.MO.ACCENT,"́":t.MO.ACCENT,"̃":t.MO.WIDEACCENT,"̄":t.MO.ACCENT,"̆":t.MO.ACCENT,"̇":t.MO.ACCENT,"̈":t.MO.ACCENT,"̌":t.MO.ACCENT,"̲":t.MO.WIDEACCENT,"̸":t.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"†":t.MO.BIN3,"‡":t.MO.BIN3,"•":t.MO.BIN4,"…":t.MO.INNER,"⁃":t.MO.BIN4,"⁄":t.MO.TALLBIN,"⁡":t.MO.NONE,"⁢":t.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"⁤":t.MO.NONE,"⃗":t.MO.ACCENT,ℑ:t.MO.ORD,ℓ:t.MO.ORD,"℘":t.MO.ORD,ℜ:t.MO.ORD,"←":t.MO.WIDEREL,"↑":t.MO.RELSTRETCH,"→":t.MO.WIDEREL,"↓":t.MO.RELSTRETCH,"↔":t.MO.WIDEREL,"↕":t.MO.RELSTRETCH,"↖":t.MO.RELSTRETCH,"↗":t.MO.RELSTRETCH,"↘":t.MO.RELSTRETCH,"↙":t.MO.RELSTRETCH,"↚":t.MO.RELACCENT,"↛":t.MO.RELACCENT,"↜":t.MO.WIDEREL,"↝":t.MO.WIDEREL,"↞":t.MO.WIDEREL,"↟":t.MO.WIDEREL,"↠":t.MO.WIDEREL,"↡":t.MO.RELSTRETCH,"↢":t.MO.WIDEREL,"↣":t.MO.WIDEREL,"↤":t.MO.WIDEREL,"↥":t.MO.RELSTRETCH,"↦":t.MO.WIDEREL,"↧":t.MO.RELSTRETCH,"↨":t.MO.RELSTRETCH,"↩":t.MO.WIDEREL,"↪":t.MO.WIDEREL,"↫":t.MO.WIDEREL,"↬":t.MO.WIDEREL,"↭":t.MO.WIDEREL,"↮":t.MO.RELACCENT,"↯":t.MO.RELSTRETCH,"↰":t.MO.RELSTRETCH,"↱":t.MO.RELSTRETCH,"↲":t.MO.RELSTRETCH,"↳":t.MO.RELSTRETCH,"↴":t.MO.RELSTRETCH,"↵":t.MO.RELSTRETCH,"↶":t.MO.RELACCENT,"↷":t.MO.RELACCENT,"↸":t.MO.REL,"↹":t.MO.WIDEREL,"↺":t.MO.REL,"↻":t.MO.REL,"↼":t.MO.WIDEREL,"↽":t.MO.WIDEREL,"↾":t.MO.RELSTRETCH,"↿":t.MO.RELSTRETCH,"⇀":t.MO.WIDEREL,"⇁":t.MO.WIDEREL,"⇂":t.MO.RELSTRETCH,"⇃":t.MO.RELSTRETCH,"⇄":t.MO.WIDEREL,"⇅":t.MO.RELSTRETCH,"⇆":t.MO.WIDEREL,"⇇":t.MO.WIDEREL,"⇈":t.MO.RELSTRETCH,"⇉":t.MO.WIDEREL,"⇊":t.MO.RELSTRETCH,"⇋":t.MO.WIDEREL,"⇌":t.MO.WIDEREL,"⇍":t.MO.RELACCENT,"⇎":t.MO.RELACCENT,"⇏":t.MO.RELACCENT,"⇐":t.MO.WIDEREL,"⇑":t.MO.RELSTRETCH,"⇒":t.MO.WIDEREL,"⇓":t.MO.RELSTRETCH,"⇔":t.MO.WIDEREL,"⇕":t.MO.RELSTRETCH,"⇖":t.MO.RELSTRETCH,"⇗":t.MO.RELSTRETCH,"⇘":t.MO.RELSTRETCH,"⇙":t.MO.RELSTRETCH,"⇚":t.MO.WIDEREL,"⇛":t.MO.WIDEREL,"⇜":t.MO.WIDEREL,"⇝":t.MO.WIDEREL,"⇞":t.MO.REL,"⇟":t.MO.REL,"⇠":t.MO.WIDEREL,"⇡":t.MO.RELSTRETCH,"⇢":t.MO.WIDEREL,"⇣":t.MO.RELSTRETCH,"⇤":t.MO.WIDEREL,"⇥":t.MO.WIDEREL,"⇦":t.MO.WIDEREL,"⇧":t.MO.RELSTRETCH,"⇨":t.MO.WIDEREL,"⇩":t.MO.RELSTRETCH,"⇪":t.MO.RELSTRETCH,"⇫":t.MO.RELSTRETCH,"⇬":t.MO.RELSTRETCH,"⇭":t.MO.RELSTRETCH,"⇮":t.MO.RELSTRETCH,"⇯":t.MO.RELSTRETCH,"⇰":t.MO.WIDEREL,"⇱":t.MO.REL,"⇲":t.MO.REL,"⇳":t.MO.RELSTRETCH,"⇴":t.MO.RELACCENT,"⇵":t.MO.RELSTRETCH,"⇶":t.MO.WIDEREL,"⇷":t.MO.RELACCENT,"⇸":t.MO.RELACCENT,"⇹":t.MO.RELACCENT,"⇺":t.MO.RELACCENT,"⇻":t.MO.RELACCENT,"⇼":t.MO.RELACCENT,"⇽":t.MO.WIDEREL,"⇾":t.MO.WIDEREL,"⇿":t.MO.WIDEREL,"∁":r(1,2,n.TEXCLASS.ORD),"∅":t.MO.ORD,"∆":t.MO.BIN3,"∈":t.MO.REL,"∉":t.MO.REL,"∊":t.MO.REL,"∋":t.MO.REL,"∌":t.MO.REL,"∍":t.MO.REL,"∎":t.MO.BIN3,"−":t.MO.BIN4,"∓":t.MO.BIN4,"∔":t.MO.BIN4,"∕":t.MO.TALLBIN,"∖":t.MO.BIN4,"∗":t.MO.BIN4,"∘":t.MO.BIN4,"∙":t.MO.BIN4,"∝":t.MO.REL,"∞":t.MO.ORD,"∟":t.MO.REL,"∣":t.MO.REL,"∤":t.MO.REL,"∥":t.MO.REL,"∦":t.MO.REL,"∧":t.MO.BIN4,"∨":t.MO.BIN4,"∩":t.MO.BIN4,"∪":t.MO.BIN4,"∴":t.MO.REL,"∵":t.MO.REL,"∶":t.MO.REL,"∷":t.MO.REL,"∸":t.MO.BIN4,"∹":t.MO.REL,"∺":t.MO.BIN4,"∻":t.MO.REL,"∼":t.MO.REL,"∽":t.MO.REL,"∽̱":t.MO.BIN3,"∾":t.MO.REL,"∿":t.MO.BIN3,"≀":t.MO.BIN4,"≁":t.MO.REL,"≂":t.MO.REL,"≂̸":t.MO.REL,"≃":t.MO.REL,"≄":t.MO.REL,"≅":t.MO.REL,"≆":t.MO.REL,"≇":t.MO.REL,"≈":t.MO.REL,"≉":t.MO.REL,"≊":t.MO.REL,"≋":t.MO.REL,"≌":t.MO.REL,"≍":t.MO.REL,"≎":t.MO.REL,"≎̸":t.MO.REL,"≏":t.MO.REL,"≏̸":t.MO.REL,"≐":t.MO.REL,"≑":t.MO.REL,"≒":t.MO.REL,"≓":t.MO.REL,"≔":t.MO.REL,"≕":t.MO.REL,"≖":t.MO.REL,"≗":t.MO.REL,"≘":t.MO.REL,"≙":t.MO.REL,"≚":t.MO.REL,"≛":t.MO.REL,"≜":t.MO.REL,"≝":t.MO.REL,"≞":t.MO.REL,"≟":t.MO.REL,"≠":t.MO.REL,"≡":t.MO.REL,"≢":t.MO.REL,"≣":t.MO.REL,"≤":t.MO.REL,"≥":t.MO.REL,"≦":t.MO.REL,"≦̸":t.MO.REL,"≧":t.MO.REL,"≨":t.MO.REL,"≩":t.MO.REL,"≪":t.MO.REL,"≪̸":t.MO.REL,"≫":t.MO.REL,"≫̸":t.MO.REL,"≬":t.MO.REL,"≭":t.MO.REL,"≮":t.MO.REL,"≯":t.MO.REL,"≰":t.MO.REL,"≱":t.MO.REL,"≲":t.MO.REL,"≳":t.MO.REL,"≴":t.MO.REL,"≵":t.MO.REL,"≶":t.MO.REL,"≷":t.MO.REL,"≸":t.MO.REL,"≹":t.MO.REL,"≺":t.MO.REL,"≻":t.MO.REL,"≼":t.MO.REL,"≽":t.MO.REL,"≾":t.MO.REL,"≿":t.MO.REL,"≿̸":t.MO.REL,"⊀":t.MO.REL,"⊁":t.MO.REL,"⊂":t.MO.REL,"⊂⃒":t.MO.REL,"⊃":t.MO.REL,"⊃⃒":t.MO.REL,"⊄":t.MO.REL,"⊅":t.MO.REL,"⊆":t.MO.REL,"⊇":t.MO.REL,"⊈":t.MO.REL,"⊉":t.MO.REL,"⊊":t.MO.REL,"⊋":t.MO.REL,"⊌":t.MO.BIN4,"⊍":t.MO.BIN4,"⊎":t.MO.BIN4,"⊏":t.MO.REL,"⊏̸":t.MO.REL,"⊐":t.MO.REL,"⊐̸":t.MO.REL,"⊑":t.MO.REL,"⊒":t.MO.REL,"⊓":t.MO.BIN4,"⊔":t.MO.BIN4,"⊕":t.MO.BIN4,"⊖":t.MO.BIN4,"⊗":t.MO.BIN4,"⊘":t.MO.BIN4,"⊙":t.MO.BIN4,"⊚":t.MO.BIN4,"⊛":t.MO.BIN4,"⊜":t.MO.BIN4,"⊝":t.MO.BIN4,"⊞":t.MO.BIN4,"⊟":t.MO.BIN4,"⊠":t.MO.BIN4,"⊡":t.MO.BIN4,"⊢":t.MO.REL,"⊣":t.MO.REL,"⊤":t.MO.ORD55,"⊥":t.MO.REL,"⊦":t.MO.REL,"⊧":t.MO.REL,"⊨":t.MO.REL,"⊩":t.MO.REL,"⊪":t.MO.REL,"⊫":t.MO.REL,"⊬":t.MO.REL,"⊭":t.MO.REL,"⊮":t.MO.REL,"⊯":t.MO.REL,"⊰":t.MO.REL,"⊱":t.MO.REL,"⊲":t.MO.REL,"⊳":t.MO.REL,"⊴":t.MO.REL,"⊵":t.MO.REL,"⊶":t.MO.REL,"⊷":t.MO.REL,"⊸":t.MO.REL,"⊹":t.MO.REL,"⊺":t.MO.BIN4,"⊻":t.MO.BIN4,"⊼":t.MO.BIN4,"⊽":t.MO.BIN4,"⊾":t.MO.BIN3,"⊿":t.MO.BIN3,"⋄":t.MO.BIN4,"⋅":t.MO.BIN4,"⋆":t.MO.BIN4,"⋇":t.MO.BIN4,"⋈":t.MO.REL,"⋉":t.MO.BIN4,"⋊":t.MO.BIN4,"⋋":t.MO.BIN4,"⋌":t.MO.BIN4,"⋍":t.MO.REL,"⋎":t.MO.BIN4,"⋏":t.MO.BIN4,"⋐":t.MO.REL,"⋑":t.MO.REL,"⋒":t.MO.BIN4,"⋓":t.MO.BIN4,"⋔":t.MO.REL,"⋕":t.MO.REL,"⋖":t.MO.REL,"⋗":t.MO.REL,"⋘":t.MO.REL,"⋙":t.MO.REL,"⋚":t.MO.REL,"⋛":t.MO.REL,"⋜":t.MO.REL,"⋝":t.MO.REL,"⋞":t.MO.REL,"⋟":t.MO.REL,"⋠":t.MO.REL,"⋡":t.MO.REL,"⋢":t.MO.REL,"⋣":t.MO.REL,"⋤":t.MO.REL,"⋥":t.MO.REL,"⋦":t.MO.REL,"⋧":t.MO.REL,"⋨":t.MO.REL,"⋩":t.MO.REL,"⋪":t.MO.REL,"⋫":t.MO.REL,"⋬":t.MO.REL,"⋭":t.MO.REL,"⋮":t.MO.ORD55,"⋯":t.MO.INNER,"⋰":t.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":t.MO.REL,"⋳":t.MO.REL,"⋴":t.MO.REL,"⋵":t.MO.REL,"⋶":t.MO.REL,"⋷":t.MO.REL,"⋸":t.MO.REL,"⋹":t.MO.REL,"⋺":t.MO.REL,"⋻":t.MO.REL,"⋼":t.MO.REL,"⋽":t.MO.REL,"⋾":t.MO.REL,"⋿":t.MO.REL,"⌅":t.MO.BIN3,"⌆":t.MO.BIN3,"⌢":t.MO.REL4,"⌣":t.MO.REL4,"〈":t.MO.OPEN,"〉":t.MO.CLOSE,"⎪":t.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"⎰":t.MO.OPEN,"⎱":t.MO.CLOSE,"─":t.MO.ORD,"△":t.MO.BIN4,"▵":t.MO.BIN4,"▹":t.MO.BIN4,"▽":t.MO.BIN4,"▿":t.MO.BIN4,"◃":t.MO.BIN4,"◯":t.MO.BIN3,"♠":t.MO.ORD,"♡":t.MO.ORD,"♢":t.MO.ORD,"♣":t.MO.ORD,"❘":t.MO.REL,"⟰":t.MO.RELSTRETCH,"⟱":t.MO.RELSTRETCH,"⟵":t.MO.WIDEREL,"⟶":t.MO.WIDEREL,"⟷":t.MO.WIDEREL,"⟸":t.MO.WIDEREL,"⟹":t.MO.WIDEREL,"⟺":t.MO.WIDEREL,"⟻":t.MO.WIDEREL,"⟼":t.MO.WIDEREL,"⟽":t.MO.WIDEREL,"⟾":t.MO.WIDEREL,"⟿":t.MO.WIDEREL,"⤀":t.MO.RELACCENT,"⤁":t.MO.RELACCENT,"⤂":t.MO.RELACCENT,"⤃":t.MO.RELACCENT,"⤄":t.MO.RELACCENT,"⤅":t.MO.RELACCENT,"⤆":t.MO.RELACCENT,"⤇":t.MO.RELACCENT,"⤈":t.MO.REL,"⤉":t.MO.REL,"⤊":t.MO.RELSTRETCH,"⤋":t.MO.RELSTRETCH,"⤌":t.MO.WIDEREL,"⤍":t.MO.WIDEREL,"⤎":t.MO.WIDEREL,"⤏":t.MO.WIDEREL,"⤐":t.MO.WIDEREL,"⤑":t.MO.RELACCENT,"⤒":t.MO.RELSTRETCH,"⤓":t.MO.RELSTRETCH,"⤔":t.MO.RELACCENT,"⤕":t.MO.RELACCENT,"⤖":t.MO.RELACCENT,"⤗":t.MO.RELACCENT,"⤘":t.MO.RELACCENT,"⤙":t.MO.RELACCENT,"⤚":t.MO.RELACCENT,"⤛":t.MO.RELACCENT,"⤜":t.MO.RELACCENT,"⤝":t.MO.RELACCENT,"⤞":t.MO.RELACCENT,"⤟":t.MO.RELACCENT,"⤠":t.MO.RELACCENT,"⤡":t.MO.RELSTRETCH,"⤢":t.MO.RELSTRETCH,"⤣":t.MO.REL,"⤤":t.MO.REL,"⤥":t.MO.REL,"⤦":t.MO.REL,"⤧":t.MO.REL,"⤨":t.MO.REL,"⤩":t.MO.REL,"⤪":t.MO.REL,"⤫":t.MO.REL,"⤬":t.MO.REL,"⤭":t.MO.REL,"⤮":t.MO.REL,"⤯":t.MO.REL,"⤰":t.MO.REL,"⤱":t.MO.REL,"⤲":t.MO.REL,"⤳":t.MO.RELACCENT,"⤴":t.MO.REL,"⤵":t.MO.REL,"⤶":t.MO.REL,"⤷":t.MO.REL,"⤸":t.MO.REL,"⤹":t.MO.REL,"⤺":t.MO.RELACCENT,"⤻":t.MO.RELACCENT,"⤼":t.MO.RELACCENT,"⤽":t.MO.RELACCENT,"⤾":t.MO.REL,"⤿":t.MO.REL,"⥀":t.MO.REL,"⥁":t.MO.REL,"⥂":t.MO.RELACCENT,"⥃":t.MO.RELACCENT,"⥄":t.MO.RELACCENT,"⥅":t.MO.RELACCENT,"⥆":t.MO.RELACCENT,"⥇":t.MO.RELACCENT,"⥈":t.MO.RELACCENT,"⥉":t.MO.REL,"⥊":t.MO.RELACCENT,"⥋":t.MO.RELACCENT,"⥌":t.MO.REL,"⥍":t.MO.REL,"⥎":t.MO.WIDEREL,"⥏":t.MO.RELSTRETCH,"⥐":t.MO.WIDEREL,"⥑":t.MO.RELSTRETCH,"⥒":t.MO.WIDEREL,"⥓":t.MO.WIDEREL,"⥔":t.MO.RELSTRETCH,"⥕":t.MO.RELSTRETCH,"⥖":t.MO.RELSTRETCH,"⥗":t.MO.RELSTRETCH,"⥘":t.MO.RELSTRETCH,"⥙":t.MO.RELSTRETCH,"⥚":t.MO.WIDEREL,"⥛":t.MO.WIDEREL,"⥜":t.MO.RELSTRETCH,"⥝":t.MO.RELSTRETCH,"⥞":t.MO.WIDEREL,"⥟":t.MO.WIDEREL,"⥠":t.MO.RELSTRETCH,"⥡":t.MO.RELSTRETCH,"⥢":t.MO.RELACCENT,"⥣":t.MO.REL,"⥤":t.MO.RELACCENT,"⥥":t.MO.REL,"⥦":t.MO.RELACCENT,"⥧":t.MO.RELACCENT,"⥨":t.MO.RELACCENT,"⥩":t.MO.RELACCENT,"⥪":t.MO.RELACCENT,"⥫":t.MO.RELACCENT,"⥬":t.MO.RELACCENT,"⥭":t.MO.RELACCENT,"⥮":t.MO.RELSTRETCH,"⥯":t.MO.RELSTRETCH,"⥰":t.MO.RELACCENT,"⥱":t.MO.RELACCENT,"⥲":t.MO.RELACCENT,"⥳":t.MO.RELACCENT,"⥴":t.MO.RELACCENT,"⥵":t.MO.RELACCENT,"⥶":t.MO.RELACCENT,"⥷":t.MO.RELACCENT,"⥸":t.MO.RELACCENT,"⥹":t.MO.RELACCENT,"⥺":t.MO.RELACCENT,"⥻":t.MO.RELACCENT,"⥼":t.MO.RELACCENT,"⥽":t.MO.RELACCENT,"⥾":t.MO.REL,"⥿":t.MO.REL,"⦁":t.MO.BIN3,"⦂":t.MO.BIN3,"⦙":t.MO.BIN3,"⦚":t.MO.BIN3,"⦛":t.MO.BIN3,"⦜":t.MO.BIN3,"⦝":t.MO.BIN3,"⦞":t.MO.BIN3,"⦟":t.MO.BIN3,"⦠":t.MO.BIN3,"⦡":t.MO.BIN3,"⦢":t.MO.BIN3,"⦣":t.MO.BIN3,"⦤":t.MO.BIN3,"⦥":t.MO.BIN3,"⦦":t.MO.BIN3,"⦧":t.MO.BIN3,"⦨":t.MO.BIN3,"⦩":t.MO.BIN3,"⦪":t.MO.BIN3,"⦫":t.MO.BIN3,"⦬":t.MO.BIN3,"⦭":t.MO.BIN3,"⦮":t.MO.BIN3,"⦯":t.MO.BIN3,"⦰":t.MO.BIN3,"⦱":t.MO.BIN3,"⦲":t.MO.BIN3,"⦳":t.MO.BIN3,"⦴":t.MO.BIN3,"⦵":t.MO.BIN3,"⦶":t.MO.BIN4,"⦷":t.MO.BIN4,"⦸":t.MO.BIN4,"⦹":t.MO.BIN4,"⦺":t.MO.BIN4,"⦻":t.MO.BIN4,"⦼":t.MO.BIN4,"⦽":t.MO.BIN4,"⦾":t.MO.BIN4,"⦿":t.MO.BIN4,"⧀":t.MO.REL,"⧁":t.MO.REL,"⧂":t.MO.BIN3,"⧃":t.MO.BIN3,"⧄":t.MO.BIN4,"⧅":t.MO.BIN4,"⧆":t.MO.BIN4,"⧇":t.MO.BIN4,"⧈":t.MO.BIN4,"⧉":t.MO.BIN3,"⧊":t.MO.BIN3,"⧋":t.MO.BIN3,"⧌":t.MO.BIN3,"⧍":t.MO.BIN3,"⧎":t.MO.REL,"⧏":t.MO.REL,"⧏̸":t.MO.REL,"⧐":t.MO.REL,"⧐̸":t.MO.REL,"⧑":t.MO.REL,"⧒":t.MO.REL,"⧓":t.MO.REL,"⧔":t.MO.REL,"⧕":t.MO.REL,"⧖":t.MO.BIN4,"⧗":t.MO.BIN4,"⧘":t.MO.BIN3,"⧙":t.MO.BIN3,"⧛":t.MO.BIN3,"⧜":t.MO.BIN3,"⧝":t.MO.BIN3,"⧞":t.MO.REL,"⧟":t.MO.BIN3,"⧠":t.MO.BIN3,"⧡":t.MO.REL,"⧢":t.MO.BIN4,"⧣":t.MO.REL,"⧤":t.MO.REL,"⧥":t.MO.REL,"⧦":t.MO.REL,"⧧":t.MO.BIN3,"⧨":t.MO.BIN3,"⧩":t.MO.BIN3,"⧪":t.MO.BIN3,"⧫":t.MO.BIN3,"⧬":t.MO.BIN3,"⧭":t.MO.BIN3,"⧮":t.MO.BIN3,"⧯":t.MO.BIN3,"⧰":t.MO.BIN3,"⧱":t.MO.BIN3,"⧲":t.MO.BIN3,"⧳":t.MO.BIN3,"⧴":t.MO.REL,"⧵":t.MO.BIN4,"⧶":t.MO.BIN4,"⧷":t.MO.BIN4,"⧸":t.MO.BIN3,"⧹":t.MO.BIN3,"⧺":t.MO.BIN3,"⧻":t.MO.BIN3,"⧾":t.MO.BIN4,"⧿":t.MO.BIN4,"⨝":t.MO.BIN3,"⨞":t.MO.BIN3,"⨟":t.MO.BIN3,"⨠":t.MO.BIN3,"⨡":t.MO.BIN3,"⨢":t.MO.BIN4,"⨣":t.MO.BIN4,"⨤":t.MO.BIN4,"⨥":t.MO.BIN4,"⨦":t.MO.BIN4,"⨧":t.MO.BIN4,"⨨":t.MO.BIN4,"⨩":t.MO.BIN4,"⨪":t.MO.BIN4,"⨫":t.MO.BIN4,"⨬":t.MO.BIN4,"⨭":t.MO.BIN4,"⨮":t.MO.BIN4,"⨯":t.MO.BIN4,"⨰":t.MO.BIN4,"⨱":t.MO.BIN4,"⨲":t.MO.BIN4,"⨳":t.MO.BIN4,"⨴":t.MO.BIN4,"⨵":t.MO.BIN4,"⨶":t.MO.BIN4,"⨷":t.MO.BIN4,"⨸":t.MO.BIN4,"⨹":t.MO.BIN4,"⨺":t.MO.BIN4,"⨻":t.MO.BIN4,"⨼":t.MO.BIN4,"⨽":t.MO.BIN4,"⨾":t.MO.BIN4,"⨿":t.MO.BIN4,"⩀":t.MO.BIN4,"⩁":t.MO.BIN4,"⩂":t.MO.BIN4,"⩃":t.MO.BIN4,"⩄":t.MO.BIN4,"⩅":t.MO.BIN4,"⩆":t.MO.BIN4,"⩇":t.MO.BIN4,"⩈":t.MO.BIN4,"⩉":t.MO.BIN4,"⩊":t.MO.BIN4,"⩋":t.MO.BIN4,"⩌":t.MO.BIN4,"⩍":t.MO.BIN4,"⩎":t.MO.BIN4,"⩏":t.MO.BIN4,"⩐":t.MO.BIN4,"⩑":t.MO.BIN4,"⩒":t.MO.BIN4,"⩓":t.MO.BIN4,"⩔":t.MO.BIN4,"⩕":t.MO.BIN4,"⩖":t.MO.BIN4,"⩗":t.MO.BIN4,"⩘":t.MO.BIN4,"⩙":t.MO.REL,"⩚":t.MO.BIN4,"⩛":t.MO.BIN4,"⩜":t.MO.BIN4,"⩝":t.MO.BIN4,"⩞":t.MO.BIN4,"⩟":t.MO.BIN4,"⩠":t.MO.BIN4,"⩡":t.MO.BIN4,"⩢":t.MO.BIN4,"⩣":t.MO.BIN4,"⩤":t.MO.BIN4,"⩥":t.MO.BIN4,"⩦":t.MO.REL,"⩧":t.MO.REL,"⩨":t.MO.REL,"⩩":t.MO.REL,"⩪":t.MO.REL,"⩫":t.MO.REL,"⩬":t.MO.REL,"⩭":t.MO.REL,"⩮":t.MO.REL,"⩯":t.MO.REL,"⩰":t.MO.REL,"⩱":t.MO.BIN4,"⩲":t.MO.BIN4,"⩳":t.MO.REL,"⩴":t.MO.REL,"⩵":t.MO.REL,"⩶":t.MO.REL,"⩷":t.MO.REL,"⩸":t.MO.REL,"⩹":t.MO.REL,"⩺":t.MO.REL,"⩻":t.MO.REL,"⩼":t.MO.REL,"⩽":t.MO.REL,"⩽̸":t.MO.REL,"⩾":t.MO.REL,"⩾̸":t.MO.REL,"⩿":t.MO.REL,"⪀":t.MO.REL,"⪁":t.MO.REL,"⪂":t.MO.REL,"⪃":t.MO.REL,"⪄":t.MO.REL,"⪅":t.MO.REL,"⪆":t.MO.REL,"⪇":t.MO.REL,"⪈":t.MO.REL,"⪉":t.MO.REL,"⪊":t.MO.REL,"⪋":t.MO.REL,"⪌":t.MO.REL,"⪍":t.MO.REL,"⪎":t.MO.REL,"⪏":t.MO.REL,"⪐":t.MO.REL,"⪑":t.MO.REL,"⪒":t.MO.REL,"⪓":t.MO.REL,"⪔":t.MO.REL,"⪕":t.MO.REL,"⪖":t.MO.REL,"⪗":t.MO.REL,"⪘":t.MO.REL,"⪙":t.MO.REL,"⪚":t.MO.REL,"⪛":t.MO.REL,"⪜":t.MO.REL,"⪝":t.MO.REL,"⪞":t.MO.REL,"⪟":t.MO.REL,"⪠":t.MO.REL,"⪡":t.MO.REL,"⪡̸":t.MO.REL,"⪢":t.MO.REL,"⪢̸":t.MO.REL,"⪣":t.MO.REL,"⪤":t.MO.REL,"⪥":t.MO.REL,"⪦":t.MO.REL,"⪧":t.MO.REL,"⪨":t.MO.REL,"⪩":t.MO.REL,"⪪":t.MO.REL,"⪫":t.MO.REL,"⪬":t.MO.REL,"⪭":t.MO.REL,"⪮":t.MO.REL,"⪯":t.MO.REL,"⪯̸":t.MO.REL,"⪰":t.MO.REL,"⪰̸":t.MO.REL,"⪱":t.MO.REL,"⪲":t.MO.REL,"⪳":t.MO.REL,"⪴":t.MO.REL,"⪵":t.MO.REL,"⪶":t.MO.REL,"⪷":t.MO.REL,"⪸":t.MO.REL,"⪹":t.MO.REL,"⪺":t.MO.REL,"⪻":t.MO.REL,"⪼":t.MO.REL,"⪽":t.MO.REL,"⪾":t.MO.REL,"⪿":t.MO.REL,"⫀":t.MO.REL,"⫁":t.MO.REL,"⫂":t.MO.REL,"⫃":t.MO.REL,"⫄":t.MO.REL,"⫅":t.MO.REL,"⫆":t.MO.REL,"⫇":t.MO.REL,"⫈":t.MO.REL,"⫉":t.MO.REL,"⫊":t.MO.REL,"⫋":t.MO.REL,"⫌":t.MO.REL,"⫍":t.MO.REL,"⫎":t.MO.REL,"⫏":t.MO.REL,"⫐":t.MO.REL,"⫑":t.MO.REL,"⫒":t.MO.REL,"⫓":t.MO.REL,"⫔":t.MO.REL,"⫕":t.MO.REL,"⫖":t.MO.REL,"⫗":t.MO.REL,"⫘":t.MO.REL,"⫙":t.MO.REL,"⫚":t.MO.REL,"⫛":t.MO.REL,"⫝":t.MO.REL,"⫝̸":t.MO.REL,"⫞":t.MO.REL,"⫟":t.MO.REL,"⫠":t.MO.REL,"⫡":t.MO.REL,"⫢":t.MO.REL,"⫣":t.MO.REL,"⫤":t.MO.REL,"⫥":t.MO.REL,"⫦":t.MO.REL,"⫧":t.MO.REL,"⫨":t.MO.REL,"⫩":t.MO.REL,"⫪":t.MO.REL,"⫫":t.MO.REL,"⫬":t.MO.REL,"⫭":t.MO.REL,"⫮":t.MO.REL,"⫯":t.MO.REL,"⫰":t.MO.REL,"⫱":t.MO.REL,"⫲":t.MO.REL,"⫳":t.MO.REL,"⫴":t.MO.BIN4,"⫵":t.MO.BIN4,"⫶":t.MO.BIN4,"⫷":t.MO.REL,"⫸":t.MO.REL,"⫹":t.MO.REL,"⫺":t.MO.REL,"⫻":t.MO.BIN4,"⫽":t.MO.BIN4,"⫾":t.MO.BIN3,"⭅":t.MO.RELSTRETCH,"⭆":t.MO.RELSTRETCH,"〈":t.MO.OPEN,"〉":t.MO.CLOSE,"︷":t.MO.WIDEACCENT,"︸":t.MO.WIDEACCENT}},t.OPTABLE.infix["^"]=t.MO.WIDEREL,t.OPTABLE.infix._=t.MO.WIDEREL,t.OPTABLE.infix["⫝̸"]=t.MO.REL})(Cy);var rut=S&&S.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$u=S&&S.__assign||function(){return $u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},iut=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(O2,"__esModule",{value:!0});O2.MmlMo=void 0;var xn=St,vm=Cy,rM=Gn,out=function(t){rut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._texClass=null,n.lspace=5/18,n.rspace=5/18,n}return Object.defineProperty(e.prototype,"texClass",{get:function(){if(this._texClass===null){var n=this.getText(),r=nM(this.handleExplicitForm(this.getForms()),3),i=r[0],o=r[1],s=r[2],a=this.constructor.OPTABLE,l=a[i][n]||a[o][n]||a[s][n];return l?l[2]:xn.TEXCLASS.REL}return this._texClass},set:function(n){this._texClass=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return this.attributes.get("linebreak")==="newline"},enumerable:!1,configurable:!0}),e.prototype.coreParent=function(){for(var n=this,r=this,i=this.factory.getNodeClass("math");r&&r.isEmbellished&&r.coreMO()===this&&!(r instanceof i);)n=r,r=r.parent;return n},e.prototype.coreText=function(n){if(!n)return"";if(n.isEmbellished)return n.coreMO().getText();for(;((n.isKind("mrow")||n.isKind("TeXAtom")&&n.texClass!==xn.TEXCLASS.VCENTER||n.isKind("mstyle")||n.isKind("mphantom"))&&n.childNodes.length===1||n.isKind("munderover"))&&n.childNodes[0];)n=n.childNodes[0];return n.isToken?n.getText():""},e.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(e.prototype,"isAccent",{get:function(){var n=!1,r=this.coreParent().parent;if(r){var i=r.isKind("mover")?r.childNodes[r.over].coreMO()?"accent":"":r.isKind("munder")?r.childNodes[r.under].coreMO()?"accentunder":"":r.isKind("munderover")?this===r.childNodes[r.over].coreMO()?"accent":this===r.childNodes[r.under].coreMO()?"accentunder":"":"";if(i){var o=r.attributes.getExplicit(i);n=o!==void 0?n:this.attributes.get("accent")}}return n},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(n){var r=this.attributes.getList("form","fence"),i=r.form,o=r.fence;return this.getProperty("texClass")===void 0&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(o&&this.texClass===xn.TEXCLASS.REL&&(i==="prefix"&&(this.texClass=xn.TEXCLASS.OPEN),i==="postfix"&&(this.texClass=xn.TEXCLASS.CLOSE)),this.adjustTeXclass(n))},e.prototype.adjustTeXclass=function(n){var r=this.texClass,i=this.prevClass;if(r===xn.TEXCLASS.NONE)return n;if(n?(n.getProperty("autoOP")&&(r===xn.TEXCLASS.BIN||r===xn.TEXCLASS.REL)&&(i=n.texClass=xn.TEXCLASS.ORD),i=this.prevClass=n.texClass||xn.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):i=this.prevClass=xn.TEXCLASS.NONE,r===xn.TEXCLASS.BIN&&(i===xn.TEXCLASS.NONE||i===xn.TEXCLASS.BIN||i===xn.TEXCLASS.OP||i===xn.TEXCLASS.REL||i===xn.TEXCLASS.OPEN||i===xn.TEXCLASS.PUNCT))this.texClass=xn.TEXCLASS.ORD;else if(i===xn.TEXCLASS.BIN&&(r===xn.TEXCLASS.REL||r===xn.TEXCLASS.CLOSE||r===xn.TEXCLASS.PUNCT))n.texClass=this.prevClass=xn.TEXCLASS.ORD;else if(r===xn.TEXCLASS.BIN){for(var o=this,s=this.parent;s&&s.parent&&s.isEmbellished&&(s.childNodes.length===1||!s.isKind("mrow")&&s.core()===o);)o=s,s=s.parent;s.childNodes[s.childNodes.length-1]===o&&(this.texClass=xn.TEXCLASS.ORD)}return this},e.prototype.setInheritedAttributes=function(n,r,i,o){n===void 0&&(n={}),r===void 0&&(r=!1),i===void 0&&(i=0),o===void 0&&(o=!1),t.prototype.setInheritedAttributes.call(this,n,r,i,o);var s=this.getText();this.checkOperatorTable(s),this.checkPseudoScripts(s),this.checkPrimes(s),this.checkMathAccent(s)},e.prototype.checkOperatorTable=function(n){var r,i,o=nM(this.handleExplicitForm(this.getForms()),3),s=o[0],a=o[1],l=o[2];this.attributes.setInherited("form",s);var c=this.constructor.OPTABLE,u=c[s][n]||c[a][n]||c[l][n];if(u){this.getProperty("texClass")===void 0&&(this.texClass=u[2]);try{for(var d=iut(Object.keys(u[3]||{})),h=d.next();!h.done;h=d.next()){var f=h.value;this.attributes.setInherited(f,u[3][f])}}catch(Q){r={error:Q}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}this.lspace=(u[0]+1)/18,this.rspace=(u[1]+1)/18}else{var m=(0,vm.getRange)(n);if(m){this.getProperty("texClass")===void 0&&(this.texClass=m[2]);var T=this.constructor.MMLSPACING[m[2]];this.lspace=(T[0]+1)/18,this.rspace=(T[1]+1)/18}}},e.prototype.getForms=function(){for(var n=this,r=this.parent,i=this.Parent;i&&i.isEmbellished;)n=r,r=i.parent,i=i.Parent;if(r&&r.isKind("mrow")&&r.nonSpaceLength()!==1){if(r.firstNonSpace()===n)return["prefix","infix","postfix"];if(r.lastNonSpace()===n)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},e.prototype.handleExplicitForm=function(n){if(this.attributes.isSet("form")){var r=this.attributes.get("form");n=[r].concat(n.filter(function(i){return i!==r}))}return n},e.prototype.checkPseudoScripts=function(n){var r=this.constructor.pseudoScripts;if(n.match(r)){var i=this.coreParent().Parent,o=!i||!(i.isKind("msubsup")&&!i.isKind("msub"));this.setProperty("pseudoscript",o),o&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},e.prototype.checkPrimes=function(n){var r=this.constructor.primes;if(n.match(r)){var i=this.constructor.remapPrimes,o=(0,rM.unicodeString)((0,rM.unicodeChars)(n).map(function(s){return i[s]}));this.setProperty("primes",o)}},e.prototype.checkMathAccent=function(n){var r=this.Parent;if(!(this.getProperty("mathaccent")!==void 0||!r||!r.isKind("munderover"))){var i=r.childNodes[0];if(!(i.isEmbellished&&i.coreMO()===this)){var o=this.constructor.mathaccents;n.match(o)&&this.setProperty("mathaccent",!0)}}},e.defaults=$u($u({},xn.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),e.MMLSPACING=vm.MMLSPACING,e.OPTABLE=vm.OPTABLE,e.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),e.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),e.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},e.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),e}(xn.AbstractMmlTokenNode);O2.MmlMo=out;var ym=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sut=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},aut=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cut=S&&S.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ly,"__esModule",{value:!0});var oM=St,vr=cut(Dn),_Q;(function(t){t.cleanStretchy=function(o){var s,a,l=o.data;try{for(var c=T1(l.getList("fixStretchy")),u=c.next();!u.done;u=c.next()){var d=u.value;if(vr.default.getProperty(d,"fixStretchy")){var h=vr.default.getForm(d);h&&h[3]&&h[3].stretchy&&vr.default.setAttribute(d,"stretchy",!1);var f=d.parent;if(!vr.default.getTexClass(d)&&(!h||!h[2])){var m=l.nodeFactory.create("node","TeXAtom",[d]);f.replaceChild(m,d),m.inheritAttributesFrom(d)}vr.default.removeProperties(d,"fixStretchy")}}}catch(T){s={error:T}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}},t.cleanAttributes=function(o){var s=o.data.root;s.walkTree(function(a,l){var c,u,d=a.attributes;if(d){var h=new Set((d.get("mjx-keep-attrs")||"").split(/ /));delete d.getAllAttributes()["mjx-keep-attrs"];try{for(var f=T1(d.getExplicitNames()),m=f.next();!m.done;m=f.next()){var T=m.value;!h.has(T)&&d.attributes[T]===a.attributes.getInherited(T)&&delete d.attributes[T]}}catch(Q){c={error:Q}}finally{try{m&&!m.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}}},{})},t.combineRelations=function(o){var s,a,l,c,u=[];try{for(var d=T1(o.data.getList("mo")),h=d.next();!h.done;h=d.next()){var f=h.value;if(!(f.getProperty("relationsCombined")||!f.parent||f.parent&&!vr.default.isType(f.parent,"mrow")||vr.default.getTexClass(f)!==oM.TEXCLASS.REL)){for(var m=f.parent,T=void 0,Q=m.childNodes,_=Q.indexOf(f)+1,v=vr.default.getProperty(f,"variantForm");_="0"&&s<="9")r[i]=n[parseInt(r[i],10)-1],typeof r[i]=="number"&&(r[i]=r[i].toString());else if(s==="{")if(s=r[i].substr(1),s>="0"&&s<="9")r[i]=n[parseInt(r[i].substr(1,r[i].length-2),10)-1],typeof r[i]=="number"&&(r[i]=r[i].toString());else{var a=r[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);a&&(r[i]="%"+r[i])}r[i]==null&&(r[i]="???")}return r.join("")},t.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,t}();fn.default=uut;var Fc={},E7={};Object.defineProperty(E7,"__esModule",{value:!0});E7.asyncLoad=void 0;var sM=g7;function dut(t){return sM.mathjax.asyncLoad?new Promise(function(e,n){var r=sM.mathjax.asyncLoad(t);r instanceof Promise?r.then(function(i){return e(i)}).catch(function(i){return n(i)}):e(r)}):Promise.reject("Can't load '".concat(t,"': No asyncLoad method specified"))}E7.asyncLoad=dut;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numeric=t.translate=t.remove=t.add=t.entities=t.options=void 0;var e=Ka,n=E7;t.options={loadMissingEntities:!0},t.entities={ApplyFunction:"⁡",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"};var r={};function i(c,u){Object.assign(t.entities,c),r[u]=!0}t.add=i;function o(c){delete t.entities[c]}t.remove=o;function s(c){return c.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/ig,a)}t.translate=s;function a(c,u){if(u.charAt(0)==="#")return l(u.slice(1));if(t.entities[u])return t.entities[u];if(t.options.loadMissingEntities){var d=u.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:u.charAt(0).toLowerCase();r[d]||(r[d]=!0,(0,e.retryAfter)((0,n.asyncLoad)("./util/entities/"+d+".js")))}return c}function l(c){var u=c.charAt(0)==="x"?parseInt(c.slice(1),16):parseInt(c);return String.fromCodePoint(u)}t.numeric=l})(Fc);var aM;function In(){if(aM)return V6;aM=1;var t=S&&S.__read||function(c,u){var d=typeof Symbol=="function"&&c[Symbol.iterator];if(!d)return c;var h=d.call(c),f,m=[],T;try{for(;(u===void 0||u-- >0)&&!(f=h.next()).done;)m.push(f.value)}catch(Q){T={error:Q}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(T)throw T.error}}return m},e=S&&S.__values||function(c){var u=typeof Symbol=="function"&&Symbol.iterator,d=u&&c[u],h=0;if(d)return d.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&h>=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},n=S&&S.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(V6,"__esModule",{value:!0});var r=St,i=n(Dn),o=n(Br()),s=n(fn),a=Fc,l;return function(c){var u=7.2,d=72,h={em:function(z){return z},ex:function(z){return z*.43},pt:function(z){return z/10},pc:function(z){return z*1.2},px:function(z){return z*u/d},in:function(z){return z*u},cm:function(z){return z*u/2.54},mm:function(z){return z*u/25.4},mu:function(z){return z/18}},f="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",m="(pt|em|ex|mu|px|mm|cm|in|pc)",T=RegExp("^\\s*"+f+"\\s*"+m+"\\s*$"),Q=RegExp("^\\s*"+f+"\\s*"+m+" ?");function _(z,re){re===void 0&&(re=!1);var he=z.match(re?Q:T);return he?v([he[1].replace(/,/,"."),he[4],he[0].length]):[null,null,0]}c.matchDimen=_;function v(z){var re=t(z,3),he=re[0],Se=re[1],we=re[2];if(Se!=="mu")return[he,Se,we];var se=b(h[Se](parseFloat(he||"1")));return[se.slice(0,-2),"em",we]}function y(z){var re=t(_(z),2),he=re[0],Se=re[1],we=parseFloat(he||"1"),se=h[Se];return se?se(we):0}c.dimen2em=y;function b(z){return Math.abs(z)<6e-4?"0em":z.toFixed(3).replace(/\.?0+$/,"")+"em"}c.Em=b;function E(){for(var z=[],re=0;re1&&(W=[z.create("node","mrow",W)]),W}c.internalMath=A;function I(z,re,he){re=re.replace(/^\s+/,a.entities.nbsp).replace(/\s+$/,a.entities.nbsp);var Se=z.create("text",re);return z.create("node","mtext",[],he,Se)}c.internalText=I;function N(z,re,he,Se,we){if(c.checkMovableLimits(re),i.default.isType(re,"munderover")&&i.default.isEmbellished(re)){i.default.setProperties(i.default.getCoreMO(re),{lspace:0,rspace:0});var se=z.create("node","mo",[],{rspace:0});re=z.create("node","mrow",[se,re])}var W=z.create("node","munderover",[re]);i.default.setChild(W,Se==="over"?W.over:W.under,he);var j=W;return we&&(j=z.create("node","TeXAtom",[W],{texClass:r.TEXCLASS.OP,movesupsub:!0})),i.default.setProperty(j,"subsupOK",!0),j}c.underOver=N;function V(z){var re=i.default.isType(z,"mo")?i.default.getForm(z):null;(i.default.getProperty(z,"movablelimits")||re&&re[3]&&re[3].movablelimits)&&i.default.setProperties(z,{movablelimits:!1})}c.checkMovableLimits=V;function R(z){if(typeof z!="string")return z;var re=z.trim();return re.match(/\\$/)&&z.match(/ $/)&&(re+=" "),re}c.trimSpaces=R;function B(z,re){return re=c.trimSpaces(re||""),re==="t"?z.arraydef.align="baseline 1":re==="b"?z.arraydef.align="baseline -1":re==="c"?z.arraydef.align="axis":re&&(z.arraydef.align=re),z}c.setArrayAlign=B;function F(z,re,he){for(var Se="",we="",se=0;sere.length)throw new s.default("IllegalMacroParam","Illegal macro parameter reference");we=U(z,U(z,we,Se),re[parseInt(W,10)-1]),Se=""}else Se+=W}return U(z,we,Se)}c.substituteArgs=F;function U(z,re,he){if(he.match(/^[a-z]/i)&&re.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(re+=" "),re.length+he.length>z.configuration.options.maxBuffer)throw new s.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return re+he}c.addArgs=U;function G(z,re){if(re===void 0&&(re=!0),!(++z.macroCount<=z.configuration.options.maxMacros))throw re?new s.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new s.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")}c.checkMaxMacros=G;function Z(z){if(z.stack.global.eqnenv)throw new s.default("ErroneousNestingEq","Erroneous nesting of equation structures");z.stack.global.eqnenv=!0}c.checkEqnEnv=Z;function Y(z,re){var he=z.copy(),Se=re.configuration;return he.walkTree(function(we){var se,W;Se.addNode(we.kind,we);var j=(we.getProperty("in-lists")||"").split(/,/);try{for(var oe=e(j),_e=oe.next();!_e.done;_e=oe.next()){var ye=_e.value;ye&&Se.addNode(ye,we)}}catch(le){se={error:le}}finally{try{_e&&!_e.done&&(W=oe.return)&&W.call(oe)}finally{if(se)throw se.error}}}),he}c.copyNode=Y;function ee(z,re,he){return he}c.MmlFilterAttribute=ee;function pe(z){var re=z.stack.env.font;return re?{mathvariant:re}:{}}c.getFontDef=pe;function K(z,re,he){var Se,we;re===void 0&&(re=null),he===void 0&&(he=!1);var se=$(z);if(re)try{for(var W=e(Object.keys(se)),j=W.next();!j.done;j=W.next()){var oe=j.value;if(!re.hasOwnProperty(oe)){if(he)throw new s.default("InvalidOption","Invalid option: %1",oe);delete se[oe]}}}catch(_e){Se={error:_e}}finally{try{j&&!j.done&&(we=W.return)&&we.call(W)}finally{if(Se)throw Se.error}}return se}c.keyvalOptions=K;function $(z){for(var re,he,Se={},we=z,se,W,j;we;)re=t(Ee(we,["=",","]),3),W=re[0],se=re[1],we=re[2],se==="="?(he=t(Ee(we,[","]),3),j=he[0],se=he[1],we=he[2],j=j==="false"||j==="true"?JSON.parse(j):j,Se[W]=j):W&&(Se[W]=!0);return Se}function ce(z,re){for(;re>0;)z=z.trim().slice(1,-1),re--;return z.trim()}function Ee(z,re){for(var he=z.length,Se=0,we="",se=0,W=0,j=!0,oe=!1;seSe&&(W=Se)),Se++;break;case"}":Se&&Se--,(j||oe)&&(W--,oe=!0),j=!1;break;default:if(!Se&&re.indexOf(_e)!==-1)return[oe?"true":ce(we,W),_e,z.slice(se)];j=!1,oe=!1}we+=_e}if(Se)throw new s.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[oe?"true":ce(we,W),"",z.slice(se)]}}(l||(l={})),V6.default=l,V6}var x7={},fut=S&&S.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lM=S&&S.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},put=S&&S.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r=c.length&&(c=void 0),{value:c&&c[h++],done:!c}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},e=S&&S.__read||function(c,u){var d=typeof Symbol=="function"&&c[Symbol.iterator];if(!d)return c;var h=d.call(c),f,m=[],T;try{for(;(u===void 0||u-- >0)&&!(f=h.next()).done;)m.push(f.value)}catch(Q){T={error:Q}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(T)throw T.error}}return m},n=S&&S.__spreadArray||function(c,u,d){if(d||arguments.length===2)for(var h=0,f=u.length,m;h option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}),l4}var Ag={},bN;function wb(){return bN||(bN=1,function(t){var e=S&&S.__spreadArray||function(a,l,c){if(c||arguments.length===2)for(var u=0,d=l.length,h;u"u")return function(m){for(var T=m;T=c.getParent(T);)if(c.isTag(T)&&i(T))return!0;return!1};var h=new WeakSet;return function(m){for(var T=m;T=c.getParent(T);)if(!h.has(T)){if(c.isTag(T)&&i(T))return!0;h.add(T)}return!1}}case"_flexibleDescendant":return function(m){var T=m;do if(c.isTag(T)&&i(T))return!0;while(T=c.getParent(T));return!1};case n.SelectorType.Parent:return function(m){return c.getChildren(m).some(function(T){return c.isTag(T)&&i(T)})};case n.SelectorType.Child:return function(m){var T=c.getParent(m);return T!=null&&c.isTag(T)&&i(T)};case n.SelectorType.Sibling:return function(m){for(var T=c.getSiblings(m),Q=0;Q0&&(0,i.isTraversal)(M[0])&&M[0].type!=="descendant"))if(E&&!M.some(c))M.unshift(u);else continue;M.unshift(h)}}function m(_,v,y){var b;_=_.filter(function(C){return C.length>0}),_.forEach(r.default),y=(b=v.context)!==null&&b!==void 0?b:y;var E=Array.isArray(y),x=y&&(Array.isArray(y)?y:[y]);f(_,v,x);var L=!1,M=_.map(function(C){if(C.length>=2){var A=C[0],I=C[1];A.type!=="pseudo"||A.name!=="scope"||(E&&I.type==="descendant"?C[1]=d:(I.type==="adjacent"||I.type==="sibling")&&(L=!0))}return T(C,v,x)}).reduce(Q,n.falseFunc);return M.shouldTestNextSiblings=L,M}Ss.compileToken=m;function T(_,v,y){var b;return _.reduce(function(E,x){return E===n.falseFunc?n.falseFunc:(0,o.compileGeneralSelector)(E,x,v,y,m)},(b=v.rootFunc)!==null&&b!==void 0?b:n.trueFunc)}function Q(_,v){return v===n.falseFunc||_===n.trueFunc?_:_===n.falseFunc||v===n.trueFunc?v:function(b){return _(b)||v(b)}}return Ss}var LN;function CN(){return LN||(LN=1,function(t){var e=S&&S.__createBinding||(Object.create?function(_,v,y,b){b===void 0&&(b=y);var E=Object.getOwnPropertyDescriptor(v,y);(!E||("get"in E?!v.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return v[y]}}),Object.defineProperty(_,b,E)}:function(_,v,y,b){b===void 0&&(b=y),_[b]=v[y]}),n=S&&S.__setModuleDefault||(Object.create?function(_,v){Object.defineProperty(_,"default",{enumerable:!0,value:v})}:function(_,v){_.default=v}),r=S&&S.__importStar||function(_){if(_&&_.__esModule)return _;var v={};if(_!=null)for(var y in _)y!=="default"&&Object.prototype.hasOwnProperty.call(_,y)&&e(v,_,y);return n(v,_),v};Object.defineProperty(t,"__esModule",{value:!0}),t.aliases=t.pseudos=t.filters=t.is=t.selectOne=t.selectAll=t.prepareContext=t._compileToken=t._compileUnsafe=t.compile=void 0;var i=r(w9()),o=D2(),s=gsn(),a=wb(),l=function(_,v){return _===v},c={adapter:i,equals:l};function u(_){var v,y,b,E,x=_??c;return(v=x.adapter)!==null&&v!==void 0||(x.adapter=i),(y=x.equals)!==null&&y!==void 0||(x.equals=(E=(b=x.adapter)===null||b===void 0?void 0:b.equals)!==null&&E!==void 0?E:l),x}function d(_){return function(y,b,E){var x=u(b);return _(y,x,E)}}t.compile=d(s.compile),t._compileUnsafe=d(s.compileUnsafe),t._compileToken=d(s.compileToken);function h(_){return function(y,b,E){var x=u(E);typeof y!="function"&&(y=(0,s.compileUnsafe)(y,x,b));var L=f(b,x.adapter,y.shouldTestNextSiblings);return _(y,L,x)}}function f(_,v,y){return y===void 0&&(y=!1),y&&(_=m(_,v)),Array.isArray(_)?v.removeSubsets(_):v.getChildren(_)}t.prepareContext=f;function m(_,v){for(var y=Array.isArray(_)?_.slice(0):[_],b=y.length,E=0;E=0?o+1:1/0:0;case"lt":return isFinite(o)?o>=0?o:1/0:0;case"gt":return isFinite(o)?1/0:0;default:return 1/0}}t.getLimit=n}(wg)),wg}var wN;function _sn(){if(wN)return A1;wN=1,Object.defineProperty(A1,"__esModule",{value:!0}),A1.groupSelectors=A1.getDocumentRoot=void 0;var t=k$();function e(r){for(;r.parent;)r=r.parent;return r}A1.getDocumentRoot=e;function n(r){for(var i=[],o=[],s=0,a=r;s0&&V.some((0,a._compileToken)(U,B))||G.some(function(Z){return b(Z,V,B).length>0})}t.some=Q;function _(V,R,B,F){var U=typeof B=="string"?parseInt(B,10):NaN;switch(V){case"first":case"lt":return R;case"last":return R.length>0?[R[R.length-1]]:R;case"nth":case"eq":return isFinite(U)&&Math.abs(U)65535&&(i-=65536,o+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),o+=String.fromCharCode(i),o};function r(i){return i>=55296&&i<=57343||i>1114111?"�":(i in e.default&&(i=e.default[i]),n(i))}return T5.default=r,T5}const ysn="Á",bsn="á",Esn="Ă",xsn="ă",Ssn="∾",Lsn="∿",Csn="∾̳",Asn="Â",wsn="â",Msn="´",Osn="А",Rsn="а",Nsn="Æ",Dsn="æ",Isn="⁡",ksn="𝔄",Psn="𝔞",Hsn="À",Vsn="à",Fsn="ℵ",Bsn="ℵ",$sn="Α",Usn="α",Gsn="Ā",qsn="ā",zsn="⨿",jsn="&",Wsn="&",Ysn="⩕",Ksn="⩓",Zsn="∧",Xsn="⩜",Jsn="⩘",ean="⩚",tan="∠",nan="⦤",ran="∠",ian="⦨",oan="⦩",san="⦪",aan="⦫",lan="⦬",can="⦭",uan="⦮",dan="⦯",fan="∡",pan="∟",han="⊾",Tan="⦝",man="∢",gan="Å",_an="⍼",Qan="Ą",van="ą",yan="𝔸",ban="𝕒",Ean="⩯",xan="≈",San="⩰",Lan="≊",Can="≋",Aan="'",wan="⁡",Man="≈",Oan="≊",Ran="Å",Nan="å",Dan="𝒜",Ian="𝒶",kan="≔",Pan="*",Han="≈",Van="≍",Fan="Ã",Ban="ã",$an="Ä",Uan="ä",Gan="∳",qan="⨑",zan="≌",jan="϶",Wan="‵",Yan="∽",Kan="⋍",Zan="∖",Xan="⫧",Jan="⊽",e1n="⌅",t1n="⌆",n1n="⌅",r1n="⎵",i1n="⎶",o1n="≌",s1n="Б",a1n="б",l1n="„",c1n="∵",u1n="∵",d1n="∵",f1n="⦰",p1n="϶",h1n="ℬ",T1n="ℬ",m1n="Β",g1n="β",_1n="ℶ",Q1n="≬",v1n="𝔅",y1n="𝔟",b1n="⋂",E1n="◯",x1n="⋃",S1n="⨀",L1n="⨁",C1n="⨂",A1n="⨆",w1n="★",M1n="▽",O1n="△",R1n="⨄",N1n="⋁",D1n="⋀",I1n="⤍",k1n="⧫",P1n="▪",H1n="▴",V1n="▾",F1n="◂",B1n="▸",$1n="␣",U1n="▒",G1n="░",q1n="▓",z1n="█",j1n="=⃥",W1n="≡⃥",Y1n="⫭",K1n="⌐",Z1n="𝔹",X1n="𝕓",J1n="⊥",e2n="⊥",t2n="⋈",n2n="⧉",r2n="┐",i2n="╕",o2n="╖",s2n="╗",a2n="┌",l2n="╒",c2n="╓",u2n="╔",d2n="─",f2n="═",p2n="┬",h2n="╤",T2n="╥",m2n="╦",g2n="┴",_2n="╧",Q2n="╨",v2n="╩",y2n="⊟",b2n="⊞",E2n="⊠",x2n="┘",S2n="╛",L2n="╜",C2n="╝",A2n="└",w2n="╘",M2n="╙",O2n="╚",R2n="│",N2n="║",D2n="┼",I2n="╪",k2n="╫",P2n="╬",H2n="┤",V2n="╡",F2n="╢",B2n="╣",$2n="├",U2n="╞",G2n="╟",q2n="╠",z2n="‵",j2n="˘",W2n="˘",Y2n="¦",K2n="𝒷",Z2n="ℬ",X2n="⁏",J2n="∽",eln="⋍",tln="⧅",nln="\\",rln="⟈",iln="•",oln="•",sln="≎",aln="⪮",lln="≏",cln="≎",uln="≏",dln="Ć",fln="ć",pln="⩄",hln="⩉",Tln="⩋",mln="∩",gln="⋒",_ln="⩇",Qln="⩀",vln="ⅅ",yln="∩︀",bln="⁁",Eln="ˇ",xln="ℭ",Sln="⩍",Lln="Č",Cln="č",Aln="Ç",wln="ç",Mln="Ĉ",Oln="ĉ",Rln="∰",Nln="⩌",Dln="⩐",Iln="Ċ",kln="ċ",Pln="¸",Hln="¸",Vln="⦲",Fln="¢",Bln="·",$ln="·",Uln="𝔠",Gln="ℭ",qln="Ч",zln="ч",jln="✓",Wln="✓",Yln="Χ",Kln="χ",Zln="ˆ",Xln="≗",Jln="↺",ecn="↻",tcn="⊛",ncn="⊚",rcn="⊝",icn="⊙",ocn="®",scn="Ⓢ",acn="⊖",lcn="⊕",ccn="⊗",ucn="○",dcn="⧃",fcn="≗",pcn="⨐",hcn="⫯",Tcn="⧂",mcn="∲",gcn="”",_cn="’",Qcn="♣",vcn="♣",ycn=":",bcn="∷",Ecn="⩴",xcn="≔",Scn="≔",Lcn=",",Ccn="@",Acn="∁",wcn="∘",Mcn="∁",Ocn="ℂ",Rcn="≅",Ncn="⩭",Dcn="≡",Icn="∮",kcn="∯",Pcn="∮",Hcn="𝕔",Vcn="ℂ",Fcn="∐",Bcn="∐",$cn="©",Ucn="©",Gcn="℗",qcn="∳",zcn="↵",jcn="✗",Wcn="⨯",Ycn="𝒞",Kcn="𝒸",Zcn="⫏",Xcn="⫑",Jcn="⫐",e3n="⫒",t3n="⋯",n3n="⤸",r3n="⤵",i3n="⋞",o3n="⋟",s3n="↶",a3n="⤽",l3n="⩈",c3n="⩆",u3n="≍",d3n="∪",f3n="⋓",p3n="⩊",h3n="⊍",T3n="⩅",m3n="∪︀",g3n="↷",_3n="⤼",Q3n="⋞",v3n="⋟",y3n="⋎",b3n="⋏",E3n="¤",x3n="↶",S3n="↷",L3n="⋎",C3n="⋏",A3n="∲",w3n="∱",M3n="⌭",O3n="†",R3n="‡",N3n="ℸ",D3n="↓",I3n="↡",k3n="⇓",P3n="‐",H3n="⫤",V3n="⊣",F3n="⤏",B3n="˝",$3n="Ď",U3n="ď",G3n="Д",q3n="д",z3n="‡",j3n="⇊",W3n="ⅅ",Y3n="ⅆ",K3n="⤑",Z3n="⩷",X3n="°",J3n="∇",e4n="Δ",t4n="δ",n4n="⦱",r4n="⥿",i4n="𝔇",o4n="𝔡",s4n="⥥",a4n="⇃",l4n="⇂",c4n="´",u4n="˙",d4n="˝",f4n="`",p4n="˜",h4n="⋄",T4n="⋄",m4n="⋄",g4n="♦",_4n="♦",Q4n="¨",v4n="ⅆ",y4n="ϝ",b4n="⋲",E4n="÷",x4n="÷",S4n="⋇",L4n="⋇",C4n="Ђ",A4n="ђ",w4n="⌞",M4n="⌍",O4n="$",R4n="𝔻",N4n="𝕕",D4n="¨",I4n="˙",k4n="⃜",P4n="≐",H4n="≑",V4n="≐",F4n="∸",B4n="∔",$4n="⊡",U4n="⌆",G4n="∯",q4n="¨",z4n="⇓",j4n="⇐",W4n="⇔",Y4n="⫤",K4n="⟸",Z4n="⟺",X4n="⟹",J4n="⇒",e0n="⊨",t0n="⇑",n0n="⇕",r0n="∥",i0n="⤓",o0n="↓",s0n="↓",a0n="⇓",l0n="⇵",c0n="̑",u0n="⇊",d0n="⇃",f0n="⇂",p0n="⥐",h0n="⥞",T0n="⥖",m0n="↽",g0n="⥟",_0n="⥗",Q0n="⇁",v0n="↧",y0n="⊤",b0n="⤐",E0n="⌟",x0n="⌌",S0n="𝒟",L0n="𝒹",C0n="Ѕ",A0n="ѕ",w0n="⧶",M0n="Đ",O0n="đ",R0n="⋱",N0n="▿",D0n="▾",I0n="⇵",k0n="⥯",P0n="⦦",H0n="Џ",V0n="џ",F0n="⟿",B0n="É",$0n="é",U0n="⩮",G0n="Ě",q0n="ě",z0n="Ê",j0n="ê",W0n="≖",Y0n="≕",K0n="Э",Z0n="э",X0n="⩷",J0n="Ė",e6n="ė",t6n="≑",n6n="ⅇ",r6n="≒",i6n="𝔈",o6n="𝔢",s6n="⪚",a6n="È",l6n="è",c6n="⪖",u6n="⪘",d6n="⪙",f6n="∈",p6n="⏧",h6n="ℓ",T6n="⪕",m6n="⪗",g6n="Ē",_6n="ē",Q6n="∅",v6n="∅",y6n="◻",b6n="∅",E6n="▫",x6n=" ",S6n=" ",L6n=" ",C6n="Ŋ",A6n="ŋ",w6n=" ",M6n="Ę",O6n="ę",R6n="𝔼",N6n="𝕖",D6n="⋕",I6n="⧣",k6n="⩱",P6n="ε",H6n="Ε",V6n="ε",F6n="ϵ",B6n="≖",$6n="≕",U6n="≂",G6n="⪖",q6n="⪕",z6n="⩵",j6n="=",W6n="≂",Y6n="≟",K6n="⇌",Z6n="≡",X6n="⩸",J6n="⧥",e5n="⥱",t5n="≓",n5n="ℯ",r5n="ℰ",i5n="≐",o5n="⩳",s5n="≂",a5n="Η",l5n="η",c5n="Ð",u5n="ð",d5n="Ë",f5n="ë",p5n="€",h5n="!",T5n="∃",m5n="∃",g5n="ℰ",_5n="ⅇ",Q5n="ⅇ",v5n="≒",y5n="Ф",b5n="ф",E5n="♀",x5n="ffi",S5n="ff",L5n="ffl",C5n="𝔉",A5n="𝔣",w5n="fi",M5n="◼",O5n="▪",R5n="fj",N5n="♭",D5n="fl",I5n="▱",k5n="ƒ",P5n="𝔽",H5n="𝕗",V5n="∀",F5n="∀",B5n="⋔",$5n="⫙",U5n="ℱ",G5n="⨍",q5n="½",z5n="⅓",j5n="¼",W5n="⅕",Y5n="⅙",K5n="⅛",Z5n="⅔",X5n="⅖",J5n="¾",eun="⅗",tun="⅜",nun="⅘",run="⅚",iun="⅝",oun="⅞",sun="⁄",aun="⌢",lun="𝒻",cun="ℱ",uun="ǵ",dun="Γ",fun="γ",pun="Ϝ",hun="ϝ",Tun="⪆",mun="Ğ",gun="ğ",_un="Ģ",Qun="Ĝ",vun="ĝ",yun="Г",bun="г",Eun="Ġ",xun="ġ",Sun="≥",Lun="≧",Cun="⪌",Aun="⋛",wun="≥",Mun="≧",Oun="⩾",Run="⪩",Nun="⩾",Dun="⪀",Iun="⪂",kun="⪄",Pun="⋛︀",Hun="⪔",Vun="𝔊",Fun="𝔤",Bun="≫",$un="⋙",Uun="⋙",Gun="ℷ",qun="Ѓ",zun="ѓ",jun="⪥",Wun="≷",Yun="⪒",Kun="⪤",Zun="⪊",Xun="⪊",Jun="⪈",edn="≩",tdn="⪈",ndn="≩",rdn="⋧",idn="𝔾",odn="𝕘",sdn="`",adn="≥",ldn="⋛",cdn="≧",udn="⪢",ddn="≷",fdn="⩾",pdn="≳",hdn="𝒢",Tdn="ℊ",mdn="≳",gdn="⪎",_dn="⪐",Qdn="⪧",vdn="⩺",ydn=">",bdn=">",Edn="≫",xdn="⋗",Sdn="⦕",Ldn="⩼",Cdn="⪆",Adn="⥸",wdn="⋗",Mdn="⋛",Odn="⪌",Rdn="≷",Ndn="≳",Ddn="≩︀",Idn="≩︀",kdn="ˇ",Pdn=" ",Hdn="½",Vdn="ℋ",Fdn="Ъ",Bdn="ъ",$dn="⥈",Udn="↔",Gdn="⇔",qdn="↭",zdn="^",jdn="ℏ",Wdn="Ĥ",Ydn="ĥ",Kdn="♥",Zdn="♥",Xdn="…",Jdn="⊹",e7n="𝔥",t7n="ℌ",n7n="ℋ",r7n="⤥",i7n="⤦",o7n="⇿",s7n="∻",a7n="↩",l7n="↪",c7n="𝕙",u7n="ℍ",d7n="―",f7n="─",p7n="𝒽",h7n="ℋ",T7n="ℏ",m7n="Ħ",g7n="ħ",_7n="≎",Q7n="≏",v7n="⁃",y7n="‐",b7n="Í",E7n="í",x7n="⁣",S7n="Î",L7n="î",C7n="И",A7n="и",w7n="İ",M7n="Е",O7n="е",R7n="¡",N7n="⇔",D7n="𝔦",I7n="ℑ",k7n="Ì",P7n="ì",H7n="ⅈ",V7n="⨌",F7n="∭",B7n="⧜",$7n="℩",U7n="IJ",G7n="ij",q7n="Ī",z7n="ī",j7n="ℑ",W7n="ⅈ",Y7n="ℐ",K7n="ℑ",Z7n="ı",X7n="ℑ",J7n="⊷",e8n="Ƶ",t8n="⇒",n8n="℅",r8n="∞",i8n="⧝",o8n="ı",s8n="⊺",a8n="∫",l8n="∬",c8n="ℤ",u8n="∫",d8n="⊺",f8n="⋂",p8n="⨗",h8n="⨼",T8n="⁣",m8n="⁢",g8n="Ё",_8n="ё",Q8n="Į",v8n="į",y8n="𝕀",b8n="𝕚",E8n="Ι",x8n="ι",S8n="⨼",L8n="¿",C8n="𝒾",A8n="ℐ",w8n="∈",M8n="⋵",O8n="⋹",R8n="⋴",N8n="⋳",D8n="∈",I8n="⁢",k8n="Ĩ",P8n="ĩ",H8n="І",V8n="і",F8n="Ï",B8n="ï",$8n="Ĵ",U8n="ĵ",G8n="Й",q8n="й",z8n="𝔍",j8n="𝔧",W8n="ȷ",Y8n="𝕁",K8n="𝕛",Z8n="𝒥",X8n="𝒿",J8n="Ј",e9n="ј",t9n="Є",n9n="є",r9n="Κ",i9n="κ",o9n="ϰ",s9n="Ķ",a9n="ķ",l9n="К",c9n="к",u9n="𝔎",d9n="𝔨",f9n="ĸ",p9n="Х",h9n="х",T9n="Ќ",m9n="ќ",g9n="𝕂",_9n="𝕜",Q9n="𝒦",v9n="𝓀",y9n="⇚",b9n="Ĺ",E9n="ĺ",x9n="⦴",S9n="ℒ",L9n="Λ",C9n="λ",A9n="⟨",w9n="⟪",M9n="⦑",O9n="⟨",R9n="⪅",N9n="ℒ",D9n="«",I9n="⇤",k9n="⤟",P9n="←",H9n="↞",V9n="⇐",F9n="⤝",B9n="↩",$9n="↫",U9n="⤹",G9n="⥳",q9n="↢",z9n="⤙",j9n="⤛",W9n="⪫",Y9n="⪭",K9n="⪭︀",Z9n="⤌",X9n="⤎",J9n="❲",efn="{",tfn="[",nfn="⦋",rfn="⦏",ifn="⦍",ofn="Ľ",sfn="ľ",afn="Ļ",lfn="ļ",cfn="⌈",ufn="{",dfn="Л",ffn="л",pfn="⤶",hfn="“",Tfn="„",mfn="⥧",gfn="⥋",_fn="↲",Qfn="≤",vfn="≦",yfn="⟨",bfn="⇤",Efn="←",xfn="←",Sfn="⇐",Lfn="⇆",Cfn="↢",Afn="⌈",wfn="⟦",Mfn="⥡",Ofn="⥙",Rfn="⇃",Nfn="⌊",Dfn="↽",Ifn="↼",kfn="⇇",Pfn="↔",Hfn="↔",Vfn="⇔",Ffn="⇆",Bfn="⇋",$fn="↭",Ufn="⥎",Gfn="↤",qfn="⊣",zfn="⥚",jfn="⋋",Wfn="⧏",Yfn="⊲",Kfn="⊴",Zfn="⥑",Xfn="⥠",Jfn="⥘",epn="↿",tpn="⥒",npn="↼",rpn="⪋",ipn="⋚",opn="≤",spn="≦",apn="⩽",lpn="⪨",cpn="⩽",upn="⩿",dpn="⪁",fpn="⪃",ppn="⋚︀",hpn="⪓",Tpn="⪅",mpn="⋖",gpn="⋚",_pn="⪋",Qpn="⋚",vpn="≦",ypn="≶",bpn="≶",Epn="⪡",xpn="≲",Spn="⩽",Lpn="≲",Cpn="⥼",Apn="⌊",wpn="𝔏",Mpn="𝔩",Opn="≶",Rpn="⪑",Npn="⥢",Dpn="↽",Ipn="↼",kpn="⥪",Ppn="▄",Hpn="Љ",Vpn="љ",Fpn="⇇",Bpn="≪",$pn="⋘",Upn="⌞",Gpn="⇚",qpn="⥫",zpn="◺",jpn="Ŀ",Wpn="ŀ",Ypn="⎰",Kpn="⎰",Zpn="⪉",Xpn="⪉",Jpn="⪇",ehn="≨",thn="⪇",nhn="≨",rhn="⋦",ihn="⟬",ohn="⇽",shn="⟦",ahn="⟵",lhn="⟵",chn="⟸",uhn="⟷",dhn="⟷",fhn="⟺",phn="⟼",hhn="⟶",Thn="⟶",mhn="⟹",ghn="↫",_hn="↬",Qhn="⦅",vhn="𝕃",yhn="𝕝",bhn="⨭",Ehn="⨴",xhn="∗",Shn="_",Lhn="↙",Chn="↘",Ahn="◊",whn="◊",Mhn="⧫",Ohn="(",Rhn="⦓",Nhn="⇆",Dhn="⌟",Ihn="⇋",khn="⥭",Phn="‎",Hhn="⊿",Vhn="‹",Fhn="𝓁",Bhn="ℒ",$hn="↰",Uhn="↰",Ghn="≲",qhn="⪍",zhn="⪏",jhn="[",Whn="‘",Yhn="‚",Khn="Ł",Zhn="ł",Xhn="⪦",Jhn="⩹",eTn="<",tTn="<",nTn="≪",rTn="⋖",iTn="⋋",oTn="⋉",sTn="⥶",aTn="⩻",lTn="◃",cTn="⊴",uTn="◂",dTn="⦖",fTn="⥊",pTn="⥦",hTn="≨︀",TTn="≨︀",mTn="¯",gTn="♂",_Tn="✠",QTn="✠",vTn="↦",yTn="↦",bTn="↧",ETn="↤",xTn="↥",STn="▮",LTn="⨩",CTn="М",ATn="м",wTn="—",MTn="∺",OTn="∡",RTn=" ",NTn="ℳ",DTn="𝔐",ITn="𝔪",kTn="℧",PTn="µ",HTn="*",VTn="⫰",FTn="∣",BTn="·",$Tn="⊟",UTn="−",GTn="∸",qTn="⨪",zTn="∓",jTn="⫛",WTn="…",YTn="∓",KTn="⊧",ZTn="𝕄",XTn="𝕞",JTn="∓",emn="𝓂",tmn="ℳ",nmn="∾",rmn="Μ",imn="μ",omn="⊸",smn="⊸",amn="∇",lmn="Ń",cmn="ń",umn="∠⃒",dmn="≉",fmn="⩰̸",pmn="≋̸",hmn="ʼn",Tmn="≉",mmn="♮",gmn="ℕ",_mn="♮",Qmn=" ",vmn="≎̸",ymn="≏̸",bmn="⩃",Emn="Ň",xmn="ň",Smn="Ņ",Lmn="ņ",Cmn="≇",Amn="⩭̸",wmn="⩂",Mmn="Н",Omn="н",Rmn="–",Nmn="⤤",Dmn="↗",Imn="⇗",kmn="↗",Pmn="≠",Hmn="≐̸",Vmn="​",Fmn="​",Bmn="​",$mn="​",Umn="≢",Gmn="⤨",qmn="≂̸",zmn="≫",jmn="≪",Wmn=` `,Ymn="∄",Kmn="∄",Zmn="𝔑",Xmn="𝔫",Jmn="≧̸",egn="≱",tgn="≱",ngn="≧̸",rgn="⩾̸",ign="⩾̸",ogn="⋙̸",sgn="≵",agn="≫⃒",lgn="≯",cgn="≯",ugn="≫̸",dgn="↮",fgn="⇎",pgn="⫲",hgn="∋",Tgn="⋼",mgn="⋺",ggn="∋",_gn="Њ",Qgn="њ",vgn="↚",ygn="⇍",bgn="‥",Egn="≦̸",xgn="≰",Sgn="↚",Lgn="⇍",Cgn="↮",Agn="⇎",wgn="≰",Mgn="≦̸",Ogn="⩽̸",Rgn="⩽̸",Ngn="≮",Dgn="⋘̸",Ign="≴",kgn="≪⃒",Pgn="≮",Hgn="⋪",Vgn="⋬",Fgn="≪̸",Bgn="∤",$gn="⁠",Ugn=" ",Ggn="𝕟",qgn="ℕ",zgn="⫬",jgn="¬",Wgn="≢",Ygn="≭",Kgn="∦",Zgn="∉",Xgn="≠",Jgn="≂̸",e_n="∄",t_n="≯",n_n="≱",r_n="≧̸",i_n="≫̸",o_n="≹",s_n="⩾̸",a_n="≵",l_n="≎̸",c_n="≏̸",u_n="∉",d_n="⋵̸",f_n="⋹̸",p_n="∉",h_n="⋷",T_n="⋶",m_n="⧏̸",g_n="⋪",__n="⋬",Q_n="≮",v_n="≰",y_n="≸",b_n="≪̸",E_n="⩽̸",x_n="≴",S_n="⪢̸",L_n="⪡̸",C_n="∌",A_n="∌",w_n="⋾",M_n="⋽",O_n="⊀",R_n="⪯̸",N_n="⋠",D_n="∌",I_n="⧐̸",k_n="⋫",P_n="⋭",H_n="⊏̸",V_n="⋢",F_n="⊐̸",B_n="⋣",$_n="⊂⃒",U_n="⊈",G_n="⊁",q_n="⪰̸",z_n="⋡",j_n="≿̸",W_n="⊃⃒",Y_n="⊉",K_n="≁",Z_n="≄",X_n="≇",J_n="≉",eQn="∤",tQn="∦",nQn="∦",rQn="⫽⃥",iQn="∂̸",oQn="⨔",sQn="⊀",aQn="⋠",lQn="⊀",cQn="⪯̸",uQn="⪯̸",dQn="⤳̸",fQn="↛",pQn="⇏",hQn="↝̸",TQn="↛",mQn="⇏",gQn="⋫",_Qn="⋭",QQn="⊁",vQn="⋡",yQn="⪰̸",bQn="𝒩",EQn="𝓃",xQn="∤",SQn="∦",LQn="≁",CQn="≄",AQn="≄",wQn="∤",MQn="∦",OQn="⋢",RQn="⋣",NQn="⊄",DQn="⫅̸",IQn="⊈",kQn="⊂⃒",PQn="⊈",HQn="⫅̸",VQn="⊁",FQn="⪰̸",BQn="⊅",$Qn="⫆̸",UQn="⊉",GQn="⊃⃒",qQn="⊉",zQn="⫆̸",jQn="≹",WQn="Ñ",YQn="ñ",KQn="≸",ZQn="⋪",XQn="⋬",JQn="⋫",evn="⋭",tvn="Ν",nvn="ν",rvn="#",ivn="№",ovn=" ",svn="≍⃒",avn="⊬",lvn="⊭",cvn="⊮",uvn="⊯",dvn="≥⃒",fvn=">⃒",pvn="⤄",hvn="⧞",Tvn="⤂",mvn="≤⃒",gvn="<⃒",_vn="⊴⃒",Qvn="⤃",vvn="⊵⃒",yvn="∼⃒",bvn="⤣",Evn="↖",xvn="⇖",Svn="↖",Lvn="⤧",Cvn="Ó",Avn="ó",wvn="⊛",Mvn="Ô",Ovn="ô",Rvn="⊚",Nvn="О",Dvn="о",Ivn="⊝",kvn="Ő",Pvn="ő",Hvn="⨸",Vvn="⊙",Fvn="⦼",Bvn="Œ",$vn="œ",Uvn="⦿",Gvn="𝔒",qvn="𝔬",zvn="˛",jvn="Ò",Wvn="ò",Yvn="⧁",Kvn="⦵",Zvn="Ω",Xvn="∮",Jvn="↺",eyn="⦾",tyn="⦻",nyn="‾",ryn="⧀",iyn="Ō",oyn="ō",syn="Ω",ayn="ω",lyn="Ο",cyn="ο",uyn="⦶",dyn="⊖",fyn="𝕆",pyn="𝕠",hyn="⦷",Tyn="“",myn="‘",gyn="⦹",_yn="⊕",Qyn="↻",vyn="⩔",yyn="∨",byn="⩝",Eyn="ℴ",xyn="ℴ",Syn="ª",Lyn="º",Cyn="⊶",Ayn="⩖",wyn="⩗",Myn="⩛",Oyn="Ⓢ",Ryn="𝒪",Nyn="ℴ",Dyn="Ø",Iyn="ø",kyn="⊘",Pyn="Õ",Hyn="õ",Vyn="⨶",Fyn="⨷",Byn="⊗",$yn="Ö",Uyn="ö",Gyn="⌽",qyn="‾",zyn="⏞",jyn="⎴",Wyn="⏜",Yyn="¶",Kyn="∥",Zyn="∥",Xyn="⫳",Jyn="⫽",ebn="∂",tbn="∂",nbn="П",rbn="п",ibn="%",obn=".",sbn="‰",abn="⊥",lbn="‱",cbn="𝔓",ubn="𝔭",dbn="Φ",fbn="φ",pbn="ϕ",hbn="ℳ",Tbn="☎",mbn="Π",gbn="π",_bn="⋔",Qbn="ϖ",vbn="ℏ",ybn="ℎ",bbn="ℏ",Ebn="⨣",xbn="⊞",Sbn="⨢",Lbn="+",Cbn="∔",Abn="⨥",wbn="⩲",Mbn="±",Obn="±",Rbn="⨦",Nbn="⨧",Dbn="±",Ibn="ℌ",kbn="⨕",Pbn="𝕡",Hbn="ℙ",Vbn="£",Fbn="⪷",Bbn="⪻",$bn="≺",Ubn="≼",Gbn="⪷",qbn="≺",zbn="≼",jbn="≺",Wbn="⪯",Ybn="≼",Kbn="≾",Zbn="⪯",Xbn="⪹",Jbn="⪵",eEn="⋨",tEn="⪯",nEn="⪳",rEn="≾",iEn="′",oEn="″",sEn="ℙ",aEn="⪹",lEn="⪵",cEn="⋨",uEn="∏",dEn="∏",fEn="⌮",pEn="⌒",hEn="⌓",TEn="∝",mEn="∝",gEn="∷",_En="∝",QEn="≾",vEn="⊰",yEn="𝒫",bEn="𝓅",EEn="Ψ",xEn="ψ",SEn=" ",LEn="𝔔",CEn="𝔮",AEn="⨌",wEn="𝕢",MEn="ℚ",OEn="⁗",REn="𝒬",NEn="𝓆",DEn="ℍ",IEn="⨖",kEn="?",PEn="≟",HEn='"',VEn='"',FEn="⇛",BEn="∽̱",$En="Ŕ",UEn="ŕ",GEn="√",qEn="⦳",zEn="⟩",jEn="⟫",WEn="⦒",YEn="⦥",KEn="⟩",ZEn="»",XEn="⥵",JEn="⇥",exn="⤠",txn="⤳",nxn="→",rxn="↠",ixn="⇒",oxn="⤞",sxn="↪",axn="↬",lxn="⥅",cxn="⥴",uxn="⤖",dxn="↣",fxn="↝",pxn="⤚",hxn="⤜",Txn="∶",mxn="ℚ",gxn="⤍",_xn="⤏",Qxn="⤐",vxn="❳",yxn="}",bxn="]",Exn="⦌",xxn="⦎",Sxn="⦐",Lxn="Ř",Cxn="ř",Axn="Ŗ",wxn="ŗ",Mxn="⌉",Oxn="}",Rxn="Р",Nxn="р",Dxn="⤷",Ixn="⥩",kxn="”",Pxn="”",Hxn="↳",Vxn="ℜ",Fxn="ℛ",Bxn="ℜ",$xn="ℝ",Uxn="ℜ",Gxn="▭",qxn="®",zxn="®",jxn="∋",Wxn="⇋",Yxn="⥯",Kxn="⥽",Zxn="⌋",Xxn="𝔯",Jxn="ℜ",eSn="⥤",tSn="⇁",nSn="⇀",rSn="⥬",iSn="Ρ",oSn="ρ",sSn="ϱ",aSn="⟩",lSn="⇥",cSn="→",uSn="→",dSn="⇒",fSn="⇄",pSn="↣",hSn="⌉",TSn="⟧",mSn="⥝",gSn="⥕",_Sn="⇂",QSn="⌋",vSn="⇁",ySn="⇀",bSn="⇄",ESn="⇌",xSn="⇉",SSn="↝",LSn="↦",CSn="⊢",ASn="⥛",wSn="⋌",MSn="⧐",OSn="⊳",RSn="⊵",NSn="⥏",DSn="⥜",ISn="⥔",kSn="↾",PSn="⥓",HSn="⇀",VSn="˚",FSn="≓",BSn="⇄",$Sn="⇌",USn="‏",GSn="⎱",qSn="⎱",zSn="⫮",jSn="⟭",WSn="⇾",YSn="⟧",KSn="⦆",ZSn="𝕣",XSn="ℝ",JSn="⨮",eLn="⨵",tLn="⥰",nLn=")",rLn="⦔",iLn="⨒",oLn="⇉",sLn="⇛",aLn="›",lLn="𝓇",cLn="ℛ",uLn="↱",dLn="↱",fLn="]",pLn="’",hLn="’",TLn="⋌",mLn="⋊",gLn="▹",_Ln="⊵",QLn="▸",vLn="⧎",yLn="⧴",bLn="⥨",ELn="℞",xLn="Ś",SLn="ś",LLn="‚",CLn="⪸",ALn="Š",wLn="š",MLn="⪼",OLn="≻",RLn="≽",NLn="⪰",DLn="⪴",ILn="Ş",kLn="ş",PLn="Ŝ",HLn="ŝ",VLn="⪺",FLn="⪶",BLn="⋩",$Ln="⨓",ULn="≿",GLn="С",qLn="с",zLn="⊡",jLn="⋅",WLn="⩦",YLn="⤥",KLn="↘",ZLn="⇘",XLn="↘",JLn="§",eCn=";",tCn="⤩",nCn="∖",rCn="∖",iCn="✶",oCn="𝔖",sCn="𝔰",aCn="⌢",lCn="♯",cCn="Щ",uCn="щ",dCn="Ш",fCn="ш",pCn="↓",hCn="←",TCn="∣",mCn="∥",gCn="→",_Cn="↑",QCn="­",vCn="Σ",yCn="σ",bCn="ς",ECn="ς",xCn="∼",SCn="⩪",LCn="≃",CCn="≃",ACn="⪞",wCn="⪠",MCn="⪝",OCn="⪟",RCn="≆",NCn="⨤",DCn="⥲",ICn="←",kCn="∘",PCn="∖",HCn="⨳",VCn="⧤",FCn="∣",BCn="⌣",$Cn="⪪",UCn="⪬",GCn="⪬︀",qCn="Ь",zCn="ь",jCn="⌿",WCn="⧄",YCn="/",KCn="𝕊",ZCn="𝕤",XCn="♠",JCn="♠",eAn="∥",tAn="⊓",nAn="⊓︀",rAn="⊔",iAn="⊔︀",oAn="√",sAn="⊏",aAn="⊑",lAn="⊏",cAn="⊑",uAn="⊐",dAn="⊒",fAn="⊐",pAn="⊒",hAn="□",TAn="□",mAn="⊓",gAn="⊏",_An="⊑",QAn="⊐",vAn="⊒",yAn="⊔",bAn="▪",EAn="□",xAn="▪",SAn="→",LAn="𝒮",CAn="𝓈",AAn="∖",wAn="⌣",MAn="⋆",OAn="⋆",RAn="☆",NAn="★",DAn="ϵ",IAn="ϕ",kAn="¯",PAn="⊂",HAn="⋐",VAn="⪽",FAn="⫅",BAn="⊆",$An="⫃",UAn="⫁",GAn="⫋",qAn="⊊",zAn="⪿",jAn="⥹",WAn="⊂",YAn="⋐",KAn="⊆",ZAn="⫅",XAn="⊆",JAn="⊊",ewn="⫋",twn="⫇",nwn="⫕",rwn="⫓",iwn="⪸",own="≻",swn="≽",awn="≻",lwn="⪰",cwn="≽",uwn="≿",dwn="⪰",fwn="⪺",pwn="⪶",hwn="⋩",Twn="≿",mwn="∋",gwn="∑",_wn="∑",Qwn="♪",vwn="¹",ywn="²",bwn="³",Ewn="⊃",xwn="⋑",Swn="⪾",Lwn="⫘",Cwn="⫆",Awn="⊇",wwn="⫄",Mwn="⊃",Own="⊇",Rwn="⟉",Nwn="⫗",Dwn="⥻",Iwn="⫂",kwn="⫌",Pwn="⊋",Hwn="⫀",Vwn="⊃",Fwn="⋑",Bwn="⊇",$wn="⫆",Uwn="⊋",Gwn="⫌",qwn="⫈",zwn="⫔",jwn="⫖",Wwn="⤦",Ywn="↙",Kwn="⇙",Zwn="↙",Xwn="⤪",Jwn="ß",eMn=" ",tMn="⌖",nMn="Τ",rMn="τ",iMn="⎴",oMn="Ť",sMn="ť",aMn="Ţ",lMn="ţ",cMn="Т",uMn="т",dMn="⃛",fMn="⌕",pMn="𝔗",hMn="𝔱",TMn="∴",mMn="∴",gMn="∴",_Mn="Θ",QMn="θ",vMn="ϑ",yMn="ϑ",bMn="≈",EMn="∼",xMn="  ",SMn=" ",LMn=" ",CMn="≈",AMn="∼",wMn="Þ",MMn="þ",OMn="˜",RMn="∼",NMn="≃",DMn="≅",IMn="≈",kMn="⨱",PMn="⊠",HMn="×",VMn="⨰",FMn="∭",BMn="⤨",$Mn="⌶",UMn="⫱",GMn="⊤",qMn="𝕋",zMn="𝕥",jMn="⫚",WMn="⤩",YMn="‴",KMn="™",ZMn="™",XMn="▵",JMn="▿",eOn="◃",tOn="⊴",nOn="≜",rOn="▹",iOn="⊵",oOn="◬",sOn="≜",aOn="⨺",lOn="⃛",cOn="⨹",uOn="⧍",dOn="⨻",fOn="⏢",pOn="𝒯",hOn="𝓉",TOn="Ц",mOn="ц",gOn="Ћ",_On="ћ",QOn="Ŧ",vOn="ŧ",yOn="≬",bOn="↞",EOn="↠",xOn="Ú",SOn="ú",LOn="↑",COn="↟",AOn="⇑",wOn="⥉",MOn="Ў",OOn="ў",ROn="Ŭ",NOn="ŭ",DOn="Û",IOn="û",kOn="У",POn="у",HOn="⇅",VOn="Ű",FOn="ű",BOn="⥮",$On="⥾",UOn="𝔘",GOn="𝔲",qOn="Ù",zOn="ù",jOn="⥣",WOn="↿",YOn="↾",KOn="▀",ZOn="⌜",XOn="⌜",JOn="⌏",eRn="◸",tRn="Ū",nRn="ū",rRn="¨",iRn="_",oRn="⏟",sRn="⎵",aRn="⏝",lRn="⋃",cRn="⊎",uRn="Ų",dRn="ų",fRn="𝕌",pRn="𝕦",hRn="⤒",TRn="↑",mRn="↑",gRn="⇑",_Rn="⇅",QRn="↕",vRn="↕",yRn="⇕",bRn="⥮",ERn="↿",xRn="↾",SRn="⊎",LRn="↖",CRn="↗",ARn="υ",wRn="ϒ",MRn="ϒ",ORn="Υ",RRn="υ",NRn="↥",DRn="⊥",IRn="⇈",kRn="⌝",PRn="⌝",HRn="⌎",VRn="Ů",FRn="ů",BRn="◹",$Rn="𝒰",URn="𝓊",GRn="⋰",qRn="Ũ",zRn="ũ",jRn="▵",WRn="▴",YRn="⇈",KRn="Ü",ZRn="ü",XRn="⦧",JRn="⦜",eNn="ϵ",tNn="ϰ",nNn="∅",rNn="ϕ",iNn="ϖ",oNn="∝",sNn="↕",aNn="⇕",lNn="ϱ",cNn="ς",uNn="⊊︀",dNn="⫋︀",fNn="⊋︀",pNn="⫌︀",hNn="ϑ",TNn="⊲",mNn="⊳",gNn="⫨",_Nn="⫫",QNn="⫩",vNn="В",yNn="в",bNn="⊢",ENn="⊨",xNn="⊩",SNn="⊫",LNn="⫦",CNn="⊻",ANn="∨",wNn="⋁",MNn="≚",ONn="⋮",RNn="|",NNn="‖",DNn="|",INn="‖",kNn="∣",PNn="|",HNn="❘",VNn="≀",FNn=" ",BNn="𝔙",$Nn="𝔳",UNn="⊲",GNn="⊂⃒",qNn="⊃⃒",zNn="𝕍",jNn="𝕧",WNn="∝",YNn="⊳",KNn="𝒱",ZNn="𝓋",XNn="⫋︀",JNn="⊊︀",eDn="⫌︀",tDn="⊋︀",nDn="⊪",rDn="⦚",iDn="Ŵ",oDn="ŵ",sDn="⩟",aDn="∧",lDn="⋀",cDn="≙",uDn="℘",dDn="𝔚",fDn="𝔴",pDn="𝕎",hDn="𝕨",TDn="℘",mDn="≀",gDn="≀",_Dn="𝒲",QDn="𝓌",vDn="⋂",yDn="◯",bDn="⋃",EDn="▽",xDn="𝔛",SDn="𝔵",LDn="⟷",CDn="⟺",ADn="Ξ",wDn="ξ",MDn="⟵",ODn="⟸",RDn="⟼",NDn="⋻",DDn="⨀",IDn="𝕏",kDn="𝕩",PDn="⨁",HDn="⨂",VDn="⟶",FDn="⟹",BDn="𝒳",$Dn="𝓍",UDn="⨆",GDn="⨄",qDn="△",zDn="⋁",jDn="⋀",WDn="Ý",YDn="ý",KDn="Я",ZDn="я",XDn="Ŷ",JDn="ŷ",eIn="Ы",tIn="ы",nIn="¥",rIn="𝔜",iIn="𝔶",oIn="Ї",sIn="ї",aIn="𝕐",lIn="𝕪",cIn="𝒴",uIn="𝓎",dIn="Ю",fIn="ю",pIn="ÿ",hIn="Ÿ",TIn="Ź",mIn="ź",gIn="Ž",_In="ž",QIn="З",vIn="з",yIn="Ż",bIn="ż",EIn="ℨ",xIn="​",SIn="Ζ",LIn="ζ",CIn="𝔷",AIn="ℨ",wIn="Ж",MIn="ж",OIn="⇝",RIn="𝕫",NIn="ℤ",DIn="𝒵",IIn="𝓏",kIn="‍",PIn="‌",HIn={Aacute:ysn,aacute:bsn,Abreve:Esn,abreve:xsn,ac:Ssn,acd:Lsn,acE:Csn,Acirc:Asn,acirc:wsn,acute:Msn,Acy:Osn,acy:Rsn,AElig:Nsn,aelig:Dsn,af:Isn,Afr:ksn,afr:Psn,Agrave:Hsn,agrave:Vsn,alefsym:Fsn,aleph:Bsn,Alpha:$sn,alpha:Usn,Amacr:Gsn,amacr:qsn,amalg:zsn,amp:jsn,AMP:Wsn,andand:Ysn,And:Ksn,and:Zsn,andd:Xsn,andslope:Jsn,andv:ean,ang:tan,ange:nan,angle:ran,angmsdaa:ian,angmsdab:oan,angmsdac:san,angmsdad:aan,angmsdae:lan,angmsdaf:can,angmsdag:uan,angmsdah:dan,angmsd:fan,angrt:pan,angrtvb:han,angrtvbd:Tan,angsph:man,angst:gan,angzarr:_an,Aogon:Qan,aogon:van,Aopf:yan,aopf:ban,apacir:Ean,ap:xan,apE:San,ape:Lan,apid:Can,apos:Aan,ApplyFunction:wan,approx:Man,approxeq:Oan,Aring:Ran,aring:Nan,Ascr:Dan,ascr:Ian,Assign:kan,ast:Pan,asymp:Han,asympeq:Van,Atilde:Fan,atilde:Ban,Auml:$an,auml:Uan,awconint:Gan,awint:qan,backcong:zan,backepsilon:jan,backprime:Wan,backsim:Yan,backsimeq:Kan,Backslash:Zan,Barv:Xan,barvee:Jan,barwed:e1n,Barwed:t1n,barwedge:n1n,bbrk:r1n,bbrktbrk:i1n,bcong:o1n,Bcy:s1n,bcy:a1n,bdquo:l1n,becaus:c1n,because:u1n,Because:d1n,bemptyv:f1n,bepsi:p1n,bernou:h1n,Bernoullis:T1n,Beta:m1n,beta:g1n,beth:_1n,between:Q1n,Bfr:v1n,bfr:y1n,bigcap:b1n,bigcirc:E1n,bigcup:x1n,bigodot:S1n,bigoplus:L1n,bigotimes:C1n,bigsqcup:A1n,bigstar:w1n,bigtriangledown:M1n,bigtriangleup:O1n,biguplus:R1n,bigvee:N1n,bigwedge:D1n,bkarow:I1n,blacklozenge:k1n,blacksquare:P1n,blacktriangle:H1n,blacktriangledown:V1n,blacktriangleleft:F1n,blacktriangleright:B1n,blank:$1n,blk12:U1n,blk14:G1n,blk34:q1n,block:z1n,bne:j1n,bnequiv:W1n,bNot:Y1n,bnot:K1n,Bopf:Z1n,bopf:X1n,bot:J1n,bottom:e2n,bowtie:t2n,boxbox:n2n,boxdl:r2n,boxdL:i2n,boxDl:o2n,boxDL:s2n,boxdr:a2n,boxdR:l2n,boxDr:c2n,boxDR:u2n,boxh:d2n,boxH:f2n,boxhd:p2n,boxHd:h2n,boxhD:T2n,boxHD:m2n,boxhu:g2n,boxHu:_2n,boxhU:Q2n,boxHU:v2n,boxminus:y2n,boxplus:b2n,boxtimes:E2n,boxul:x2n,boxuL:S2n,boxUl:L2n,boxUL:C2n,boxur:A2n,boxuR:w2n,boxUr:M2n,boxUR:O2n,boxv:R2n,boxV:N2n,boxvh:D2n,boxvH:I2n,boxVh:k2n,boxVH:P2n,boxvl:H2n,boxvL:V2n,boxVl:F2n,boxVL:B2n,boxvr:$2n,boxvR:U2n,boxVr:G2n,boxVR:q2n,bprime:z2n,breve:j2n,Breve:W2n,brvbar:Y2n,bscr:K2n,Bscr:Z2n,bsemi:X2n,bsim:J2n,bsime:eln,bsolb:tln,bsol:nln,bsolhsub:rln,bull:iln,bullet:oln,bump:sln,bumpE:aln,bumpe:lln,Bumpeq:cln,bumpeq:uln,Cacute:dln,cacute:fln,capand:pln,capbrcup:hln,capcap:Tln,cap:mln,Cap:gln,capcup:_ln,capdot:Qln,CapitalDifferentialD:vln,caps:yln,caret:bln,caron:Eln,Cayleys:xln,ccaps:Sln,Ccaron:Lln,ccaron:Cln,Ccedil:Aln,ccedil:wln,Ccirc:Mln,ccirc:Oln,Cconint:Rln,ccups:Nln,ccupssm:Dln,Cdot:Iln,cdot:kln,cedil:Pln,Cedilla:Hln,cemptyv:Vln,cent:Fln,centerdot:Bln,CenterDot:$ln,cfr:Uln,Cfr:Gln,CHcy:qln,chcy:zln,check:jln,checkmark:Wln,Chi:Yln,chi:Kln,circ:Zln,circeq:Xln,circlearrowleft:Jln,circlearrowright:ecn,circledast:tcn,circledcirc:ncn,circleddash:rcn,CircleDot:icn,circledR:ocn,circledS:scn,CircleMinus:acn,CirclePlus:lcn,CircleTimes:ccn,cir:ucn,cirE:dcn,cire:fcn,cirfnint:pcn,cirmid:hcn,cirscir:Tcn,ClockwiseContourIntegral:mcn,CloseCurlyDoubleQuote:gcn,CloseCurlyQuote:_cn,clubs:Qcn,clubsuit:vcn,colon:ycn,Colon:bcn,Colone:Ecn,colone:xcn,coloneq:Scn,comma:Lcn,commat:Ccn,comp:Acn,compfn:wcn,complement:Mcn,complexes:Ocn,cong:Rcn,congdot:Ncn,Congruent:Dcn,conint:Icn,Conint:kcn,ContourIntegral:Pcn,copf:Hcn,Copf:Vcn,coprod:Fcn,Coproduct:Bcn,copy:$cn,COPY:Ucn,copysr:Gcn,CounterClockwiseContourIntegral:qcn,crarr:zcn,cross:jcn,Cross:Wcn,Cscr:Ycn,cscr:Kcn,csub:Zcn,csube:Xcn,csup:Jcn,csupe:e3n,ctdot:t3n,cudarrl:n3n,cudarrr:r3n,cuepr:i3n,cuesc:o3n,cularr:s3n,cularrp:a3n,cupbrcap:l3n,cupcap:c3n,CupCap:u3n,cup:d3n,Cup:f3n,cupcup:p3n,cupdot:h3n,cupor:T3n,cups:m3n,curarr:g3n,curarrm:_3n,curlyeqprec:Q3n,curlyeqsucc:v3n,curlyvee:y3n,curlywedge:b3n,curren:E3n,curvearrowleft:x3n,curvearrowright:S3n,cuvee:L3n,cuwed:C3n,cwconint:A3n,cwint:w3n,cylcty:M3n,dagger:O3n,Dagger:R3n,daleth:N3n,darr:D3n,Darr:I3n,dArr:k3n,dash:P3n,Dashv:H3n,dashv:V3n,dbkarow:F3n,dblac:B3n,Dcaron:$3n,dcaron:U3n,Dcy:G3n,dcy:q3n,ddagger:z3n,ddarr:j3n,DD:W3n,dd:Y3n,DDotrahd:K3n,ddotseq:Z3n,deg:X3n,Del:J3n,Delta:e4n,delta:t4n,demptyv:n4n,dfisht:r4n,Dfr:i4n,dfr:o4n,dHar:s4n,dharl:a4n,dharr:l4n,DiacriticalAcute:c4n,DiacriticalDot:u4n,DiacriticalDoubleAcute:d4n,DiacriticalGrave:f4n,DiacriticalTilde:p4n,diam:h4n,diamond:T4n,Diamond:m4n,diamondsuit:g4n,diams:_4n,die:Q4n,DifferentialD:v4n,digamma:y4n,disin:b4n,div:E4n,divide:x4n,divideontimes:S4n,divonx:L4n,DJcy:C4n,djcy:A4n,dlcorn:w4n,dlcrop:M4n,dollar:O4n,Dopf:R4n,dopf:N4n,Dot:D4n,dot:I4n,DotDot:k4n,doteq:P4n,doteqdot:H4n,DotEqual:V4n,dotminus:F4n,dotplus:B4n,dotsquare:$4n,doublebarwedge:U4n,DoubleContourIntegral:G4n,DoubleDot:q4n,DoubleDownArrow:z4n,DoubleLeftArrow:j4n,DoubleLeftRightArrow:W4n,DoubleLeftTee:Y4n,DoubleLongLeftArrow:K4n,DoubleLongLeftRightArrow:Z4n,DoubleLongRightArrow:X4n,DoubleRightArrow:J4n,DoubleRightTee:e0n,DoubleUpArrow:t0n,DoubleUpDownArrow:n0n,DoubleVerticalBar:r0n,DownArrowBar:i0n,downarrow:o0n,DownArrow:s0n,Downarrow:a0n,DownArrowUpArrow:l0n,DownBreve:c0n,downdownarrows:u0n,downharpoonleft:d0n,downharpoonright:f0n,DownLeftRightVector:p0n,DownLeftTeeVector:h0n,DownLeftVectorBar:T0n,DownLeftVector:m0n,DownRightTeeVector:g0n,DownRightVectorBar:_0n,DownRightVector:Q0n,DownTeeArrow:v0n,DownTee:y0n,drbkarow:b0n,drcorn:E0n,drcrop:x0n,Dscr:S0n,dscr:L0n,DScy:C0n,dscy:A0n,dsol:w0n,Dstrok:M0n,dstrok:O0n,dtdot:R0n,dtri:N0n,dtrif:D0n,duarr:I0n,duhar:k0n,dwangle:P0n,DZcy:H0n,dzcy:V0n,dzigrarr:F0n,Eacute:B0n,eacute:$0n,easter:U0n,Ecaron:G0n,ecaron:q0n,Ecirc:z0n,ecirc:j0n,ecir:W0n,ecolon:Y0n,Ecy:K0n,ecy:Z0n,eDDot:X0n,Edot:J0n,edot:e6n,eDot:t6n,ee:n6n,efDot:r6n,Efr:i6n,efr:o6n,eg:s6n,Egrave:a6n,egrave:l6n,egs:c6n,egsdot:u6n,el:d6n,Element:f6n,elinters:p6n,ell:h6n,els:T6n,elsdot:m6n,Emacr:g6n,emacr:_6n,empty:Q6n,emptyset:v6n,EmptySmallSquare:y6n,emptyv:b6n,EmptyVerySmallSquare:E6n,emsp13:x6n,emsp14:S6n,emsp:L6n,ENG:C6n,eng:A6n,ensp:w6n,Eogon:M6n,eogon:O6n,Eopf:R6n,eopf:N6n,epar:D6n,eparsl:I6n,eplus:k6n,epsi:P6n,Epsilon:H6n,epsilon:V6n,epsiv:F6n,eqcirc:B6n,eqcolon:$6n,eqsim:U6n,eqslantgtr:G6n,eqslantless:q6n,Equal:z6n,equals:j6n,EqualTilde:W6n,equest:Y6n,Equilibrium:K6n,equiv:Z6n,equivDD:X6n,eqvparsl:J6n,erarr:e5n,erDot:t5n,escr:n5n,Escr:r5n,esdot:i5n,Esim:o5n,esim:s5n,Eta:a5n,eta:l5n,ETH:c5n,eth:u5n,Euml:d5n,euml:f5n,euro:p5n,excl:h5n,exist:T5n,Exists:m5n,expectation:g5n,exponentiale:_5n,ExponentialE:Q5n,fallingdotseq:v5n,Fcy:y5n,fcy:b5n,female:E5n,ffilig:x5n,fflig:S5n,ffllig:L5n,Ffr:C5n,ffr:A5n,filig:w5n,FilledSmallSquare:M5n,FilledVerySmallSquare:O5n,fjlig:R5n,flat:N5n,fllig:D5n,fltns:I5n,fnof:k5n,Fopf:P5n,fopf:H5n,forall:V5n,ForAll:F5n,fork:B5n,forkv:$5n,Fouriertrf:U5n,fpartint:G5n,frac12:q5n,frac13:z5n,frac14:j5n,frac15:W5n,frac16:Y5n,frac18:K5n,frac23:Z5n,frac25:X5n,frac34:J5n,frac35:eun,frac38:tun,frac45:nun,frac56:run,frac58:iun,frac78:oun,frasl:sun,frown:aun,fscr:lun,Fscr:cun,gacute:uun,Gamma:dun,gamma:fun,Gammad:pun,gammad:hun,gap:Tun,Gbreve:mun,gbreve:gun,Gcedil:_un,Gcirc:Qun,gcirc:vun,Gcy:yun,gcy:bun,Gdot:Eun,gdot:xun,ge:Sun,gE:Lun,gEl:Cun,gel:Aun,geq:wun,geqq:Mun,geqslant:Oun,gescc:Run,ges:Nun,gesdot:Dun,gesdoto:Iun,gesdotol:kun,gesl:Pun,gesles:Hun,Gfr:Vun,gfr:Fun,gg:Bun,Gg:$un,ggg:Uun,gimel:Gun,GJcy:qun,gjcy:zun,gla:jun,gl:Wun,glE:Yun,glj:Kun,gnap:Zun,gnapprox:Xun,gne:Jun,gnE:edn,gneq:tdn,gneqq:ndn,gnsim:rdn,Gopf:idn,gopf:odn,grave:sdn,GreaterEqual:adn,GreaterEqualLess:ldn,GreaterFullEqual:cdn,GreaterGreater:udn,GreaterLess:ddn,GreaterSlantEqual:fdn,GreaterTilde:pdn,Gscr:hdn,gscr:Tdn,gsim:mdn,gsime:gdn,gsiml:_dn,gtcc:Qdn,gtcir:vdn,gt:ydn,GT:bdn,Gt:Edn,gtdot:xdn,gtlPar:Sdn,gtquest:Ldn,gtrapprox:Cdn,gtrarr:Adn,gtrdot:wdn,gtreqless:Mdn,gtreqqless:Odn,gtrless:Rdn,gtrsim:Ndn,gvertneqq:Ddn,gvnE:Idn,Hacek:kdn,hairsp:Pdn,half:Hdn,hamilt:Vdn,HARDcy:Fdn,hardcy:Bdn,harrcir:$dn,harr:Udn,hArr:Gdn,harrw:qdn,Hat:zdn,hbar:jdn,Hcirc:Wdn,hcirc:Ydn,hearts:Kdn,heartsuit:Zdn,hellip:Xdn,hercon:Jdn,hfr:e7n,Hfr:t7n,HilbertSpace:n7n,hksearow:r7n,hkswarow:i7n,hoarr:o7n,homtht:s7n,hookleftarrow:a7n,hookrightarrow:l7n,hopf:c7n,Hopf:u7n,horbar:d7n,HorizontalLine:f7n,hscr:p7n,Hscr:h7n,hslash:T7n,Hstrok:m7n,hstrok:g7n,HumpDownHump:_7n,HumpEqual:Q7n,hybull:v7n,hyphen:y7n,Iacute:b7n,iacute:E7n,ic:x7n,Icirc:S7n,icirc:L7n,Icy:C7n,icy:A7n,Idot:w7n,IEcy:M7n,iecy:O7n,iexcl:R7n,iff:N7n,ifr:D7n,Ifr:I7n,Igrave:k7n,igrave:P7n,ii:H7n,iiiint:V7n,iiint:F7n,iinfin:B7n,iiota:$7n,IJlig:U7n,ijlig:G7n,Imacr:q7n,imacr:z7n,image:j7n,ImaginaryI:W7n,imagline:Y7n,imagpart:K7n,imath:Z7n,Im:X7n,imof:J7n,imped:e8n,Implies:t8n,incare:n8n,in:"∈",infin:r8n,infintie:i8n,inodot:o8n,intcal:s8n,int:a8n,Int:l8n,integers:c8n,Integral:u8n,intercal:d8n,Intersection:f8n,intlarhk:p8n,intprod:h8n,InvisibleComma:T8n,InvisibleTimes:m8n,IOcy:g8n,iocy:_8n,Iogon:Q8n,iogon:v8n,Iopf:y8n,iopf:b8n,Iota:E8n,iota:x8n,iprod:S8n,iquest:L8n,iscr:C8n,Iscr:A8n,isin:w8n,isindot:M8n,isinE:O8n,isins:R8n,isinsv:N8n,isinv:D8n,it:I8n,Itilde:k8n,itilde:P8n,Iukcy:H8n,iukcy:V8n,Iuml:F8n,iuml:B8n,Jcirc:$8n,jcirc:U8n,Jcy:G8n,jcy:q8n,Jfr:z8n,jfr:j8n,jmath:W8n,Jopf:Y8n,jopf:K8n,Jscr:Z8n,jscr:X8n,Jsercy:J8n,jsercy:e9n,Jukcy:t9n,jukcy:n9n,Kappa:r9n,kappa:i9n,kappav:o9n,Kcedil:s9n,kcedil:a9n,Kcy:l9n,kcy:c9n,Kfr:u9n,kfr:d9n,kgreen:f9n,KHcy:p9n,khcy:h9n,KJcy:T9n,kjcy:m9n,Kopf:g9n,kopf:_9n,Kscr:Q9n,kscr:v9n,lAarr:y9n,Lacute:b9n,lacute:E9n,laemptyv:x9n,lagran:S9n,Lambda:L9n,lambda:C9n,lang:A9n,Lang:w9n,langd:M9n,langle:O9n,lap:R9n,Laplacetrf:N9n,laquo:D9n,larrb:I9n,larrbfs:k9n,larr:P9n,Larr:H9n,lArr:V9n,larrfs:F9n,larrhk:B9n,larrlp:$9n,larrpl:U9n,larrsim:G9n,larrtl:q9n,latail:z9n,lAtail:j9n,lat:W9n,late:Y9n,lates:K9n,lbarr:Z9n,lBarr:X9n,lbbrk:J9n,lbrace:efn,lbrack:tfn,lbrke:nfn,lbrksld:rfn,lbrkslu:ifn,Lcaron:ofn,lcaron:sfn,Lcedil:afn,lcedil:lfn,lceil:cfn,lcub:ufn,Lcy:dfn,lcy:ffn,ldca:pfn,ldquo:hfn,ldquor:Tfn,ldrdhar:mfn,ldrushar:gfn,ldsh:_fn,le:Qfn,lE:vfn,LeftAngleBracket:yfn,LeftArrowBar:bfn,leftarrow:Efn,LeftArrow:xfn,Leftarrow:Sfn,LeftArrowRightArrow:Lfn,leftarrowtail:Cfn,LeftCeiling:Afn,LeftDoubleBracket:wfn,LeftDownTeeVector:Mfn,LeftDownVectorBar:Ofn,LeftDownVector:Rfn,LeftFloor:Nfn,leftharpoondown:Dfn,leftharpoonup:Ifn,leftleftarrows:kfn,leftrightarrow:Pfn,LeftRightArrow:Hfn,Leftrightarrow:Vfn,leftrightarrows:Ffn,leftrightharpoons:Bfn,leftrightsquigarrow:$fn,LeftRightVector:Ufn,LeftTeeArrow:Gfn,LeftTee:qfn,LeftTeeVector:zfn,leftthreetimes:jfn,LeftTriangleBar:Wfn,LeftTriangle:Yfn,LeftTriangleEqual:Kfn,LeftUpDownVector:Zfn,LeftUpTeeVector:Xfn,LeftUpVectorBar:Jfn,LeftUpVector:epn,LeftVectorBar:tpn,LeftVector:npn,lEg:rpn,leg:ipn,leq:opn,leqq:spn,leqslant:apn,lescc:lpn,les:cpn,lesdot:upn,lesdoto:dpn,lesdotor:fpn,lesg:ppn,lesges:hpn,lessapprox:Tpn,lessdot:mpn,lesseqgtr:gpn,lesseqqgtr:_pn,LessEqualGreater:Qpn,LessFullEqual:vpn,LessGreater:ypn,lessgtr:bpn,LessLess:Epn,lesssim:xpn,LessSlantEqual:Spn,LessTilde:Lpn,lfisht:Cpn,lfloor:Apn,Lfr:wpn,lfr:Mpn,lg:Opn,lgE:Rpn,lHar:Npn,lhard:Dpn,lharu:Ipn,lharul:kpn,lhblk:Ppn,LJcy:Hpn,ljcy:Vpn,llarr:Fpn,ll:Bpn,Ll:$pn,llcorner:Upn,Lleftarrow:Gpn,llhard:qpn,lltri:zpn,Lmidot:jpn,lmidot:Wpn,lmoustache:Ypn,lmoust:Kpn,lnap:Zpn,lnapprox:Xpn,lne:Jpn,lnE:ehn,lneq:thn,lneqq:nhn,lnsim:rhn,loang:ihn,loarr:ohn,lobrk:shn,longleftarrow:ahn,LongLeftArrow:lhn,Longleftarrow:chn,longleftrightarrow:uhn,LongLeftRightArrow:dhn,Longleftrightarrow:fhn,longmapsto:phn,longrightarrow:hhn,LongRightArrow:Thn,Longrightarrow:mhn,looparrowleft:ghn,looparrowright:_hn,lopar:Qhn,Lopf:vhn,lopf:yhn,loplus:bhn,lotimes:Ehn,lowast:xhn,lowbar:Shn,LowerLeftArrow:Lhn,LowerRightArrow:Chn,loz:Ahn,lozenge:whn,lozf:Mhn,lpar:Ohn,lparlt:Rhn,lrarr:Nhn,lrcorner:Dhn,lrhar:Ihn,lrhard:khn,lrm:Phn,lrtri:Hhn,lsaquo:Vhn,lscr:Fhn,Lscr:Bhn,lsh:$hn,Lsh:Uhn,lsim:Ghn,lsime:qhn,lsimg:zhn,lsqb:jhn,lsquo:Whn,lsquor:Yhn,Lstrok:Khn,lstrok:Zhn,ltcc:Xhn,ltcir:Jhn,lt:eTn,LT:tTn,Lt:nTn,ltdot:rTn,lthree:iTn,ltimes:oTn,ltlarr:sTn,ltquest:aTn,ltri:lTn,ltrie:cTn,ltrif:uTn,ltrPar:dTn,lurdshar:fTn,luruhar:pTn,lvertneqq:hTn,lvnE:TTn,macr:mTn,male:gTn,malt:_Tn,maltese:QTn,Map:"⤅",map:vTn,mapsto:yTn,mapstodown:bTn,mapstoleft:ETn,mapstoup:xTn,marker:STn,mcomma:LTn,Mcy:CTn,mcy:ATn,mdash:wTn,mDDot:MTn,measuredangle:OTn,MediumSpace:RTn,Mellintrf:NTn,Mfr:DTn,mfr:ITn,mho:kTn,micro:PTn,midast:HTn,midcir:VTn,mid:FTn,middot:BTn,minusb:$Tn,minus:UTn,minusd:GTn,minusdu:qTn,MinusPlus:zTn,mlcp:jTn,mldr:WTn,mnplus:YTn,models:KTn,Mopf:ZTn,mopf:XTn,mp:JTn,mscr:emn,Mscr:tmn,mstpos:nmn,Mu:rmn,mu:imn,multimap:omn,mumap:smn,nabla:amn,Nacute:lmn,nacute:cmn,nang:umn,nap:dmn,napE:fmn,napid:pmn,napos:hmn,napprox:Tmn,natural:mmn,naturals:gmn,natur:_mn,nbsp:Qmn,nbump:vmn,nbumpe:ymn,ncap:bmn,Ncaron:Emn,ncaron:xmn,Ncedil:Smn,ncedil:Lmn,ncong:Cmn,ncongdot:Amn,ncup:wmn,Ncy:Mmn,ncy:Omn,ndash:Rmn,nearhk:Nmn,nearr:Dmn,neArr:Imn,nearrow:kmn,ne:Pmn,nedot:Hmn,NegativeMediumSpace:Vmn,NegativeThickSpace:Fmn,NegativeThinSpace:Bmn,NegativeVeryThinSpace:$mn,nequiv:Umn,nesear:Gmn,nesim:qmn,NestedGreaterGreater:zmn,NestedLessLess:jmn,NewLine:Wmn,nexist:Ymn,nexists:Kmn,Nfr:Zmn,nfr:Xmn,ngE:Jmn,nge:egn,ngeq:tgn,ngeqq:ngn,ngeqslant:rgn,nges:ign,nGg:ogn,ngsim:sgn,nGt:agn,ngt:lgn,ngtr:cgn,nGtv:ugn,nharr:dgn,nhArr:fgn,nhpar:pgn,ni:hgn,nis:Tgn,nisd:mgn,niv:ggn,NJcy:_gn,njcy:Qgn,nlarr:vgn,nlArr:ygn,nldr:bgn,nlE:Egn,nle:xgn,nleftarrow:Sgn,nLeftarrow:Lgn,nleftrightarrow:Cgn,nLeftrightarrow:Agn,nleq:wgn,nleqq:Mgn,nleqslant:Ogn,nles:Rgn,nless:Ngn,nLl:Dgn,nlsim:Ign,nLt:kgn,nlt:Pgn,nltri:Hgn,nltrie:Vgn,nLtv:Fgn,nmid:Bgn,NoBreak:$gn,NonBreakingSpace:Ugn,nopf:Ggn,Nopf:qgn,Not:zgn,not:jgn,NotCongruent:Wgn,NotCupCap:Ygn,NotDoubleVerticalBar:Kgn,NotElement:Zgn,NotEqual:Xgn,NotEqualTilde:Jgn,NotExists:e_n,NotGreater:t_n,NotGreaterEqual:n_n,NotGreaterFullEqual:r_n,NotGreaterGreater:i_n,NotGreaterLess:o_n,NotGreaterSlantEqual:s_n,NotGreaterTilde:a_n,NotHumpDownHump:l_n,NotHumpEqual:c_n,notin:u_n,notindot:d_n,notinE:f_n,notinva:p_n,notinvb:h_n,notinvc:T_n,NotLeftTriangleBar:m_n,NotLeftTriangle:g_n,NotLeftTriangleEqual:__n,NotLess:Q_n,NotLessEqual:v_n,NotLessGreater:y_n,NotLessLess:b_n,NotLessSlantEqual:E_n,NotLessTilde:x_n,NotNestedGreaterGreater:S_n,NotNestedLessLess:L_n,notni:C_n,notniva:A_n,notnivb:w_n,notnivc:M_n,NotPrecedes:O_n,NotPrecedesEqual:R_n,NotPrecedesSlantEqual:N_n,NotReverseElement:D_n,NotRightTriangleBar:I_n,NotRightTriangle:k_n,NotRightTriangleEqual:P_n,NotSquareSubset:H_n,NotSquareSubsetEqual:V_n,NotSquareSuperset:F_n,NotSquareSupersetEqual:B_n,NotSubset:$_n,NotSubsetEqual:U_n,NotSucceeds:G_n,NotSucceedsEqual:q_n,NotSucceedsSlantEqual:z_n,NotSucceedsTilde:j_n,NotSuperset:W_n,NotSupersetEqual:Y_n,NotTilde:K_n,NotTildeEqual:Z_n,NotTildeFullEqual:X_n,NotTildeTilde:J_n,NotVerticalBar:eQn,nparallel:tQn,npar:nQn,nparsl:rQn,npart:iQn,npolint:oQn,npr:sQn,nprcue:aQn,nprec:lQn,npreceq:cQn,npre:uQn,nrarrc:dQn,nrarr:fQn,nrArr:pQn,nrarrw:hQn,nrightarrow:TQn,nRightarrow:mQn,nrtri:gQn,nrtrie:_Qn,nsc:QQn,nsccue:vQn,nsce:yQn,Nscr:bQn,nscr:EQn,nshortmid:xQn,nshortparallel:SQn,nsim:LQn,nsime:CQn,nsimeq:AQn,nsmid:wQn,nspar:MQn,nsqsube:OQn,nsqsupe:RQn,nsub:NQn,nsubE:DQn,nsube:IQn,nsubset:kQn,nsubseteq:PQn,nsubseteqq:HQn,nsucc:VQn,nsucceq:FQn,nsup:BQn,nsupE:$Qn,nsupe:UQn,nsupset:GQn,nsupseteq:qQn,nsupseteqq:zQn,ntgl:jQn,Ntilde:WQn,ntilde:YQn,ntlg:KQn,ntriangleleft:ZQn,ntrianglelefteq:XQn,ntriangleright:JQn,ntrianglerighteq:evn,Nu:tvn,nu:nvn,num:rvn,numero:ivn,numsp:ovn,nvap:svn,nvdash:avn,nvDash:lvn,nVdash:cvn,nVDash:uvn,nvge:dvn,nvgt:fvn,nvHarr:pvn,nvinfin:hvn,nvlArr:Tvn,nvle:mvn,nvlt:gvn,nvltrie:_vn,nvrArr:Qvn,nvrtrie:vvn,nvsim:yvn,nwarhk:bvn,nwarr:Evn,nwArr:xvn,nwarrow:Svn,nwnear:Lvn,Oacute:Cvn,oacute:Avn,oast:wvn,Ocirc:Mvn,ocirc:Ovn,ocir:Rvn,Ocy:Nvn,ocy:Dvn,odash:Ivn,Odblac:kvn,odblac:Pvn,odiv:Hvn,odot:Vvn,odsold:Fvn,OElig:Bvn,oelig:$vn,ofcir:Uvn,Ofr:Gvn,ofr:qvn,ogon:zvn,Ograve:jvn,ograve:Wvn,ogt:Yvn,ohbar:Kvn,ohm:Zvn,oint:Xvn,olarr:Jvn,olcir:eyn,olcross:tyn,oline:nyn,olt:ryn,Omacr:iyn,omacr:oyn,Omega:syn,omega:ayn,Omicron:lyn,omicron:cyn,omid:uyn,ominus:dyn,Oopf:fyn,oopf:pyn,opar:hyn,OpenCurlyDoubleQuote:Tyn,OpenCurlyQuote:myn,operp:gyn,oplus:_yn,orarr:Qyn,Or:vyn,or:yyn,ord:byn,order:Eyn,orderof:xyn,ordf:Syn,ordm:Lyn,origof:Cyn,oror:Ayn,orslope:wyn,orv:Myn,oS:Oyn,Oscr:Ryn,oscr:Nyn,Oslash:Dyn,oslash:Iyn,osol:kyn,Otilde:Pyn,otilde:Hyn,otimesas:Vyn,Otimes:Fyn,otimes:Byn,Ouml:$yn,ouml:Uyn,ovbar:Gyn,OverBar:qyn,OverBrace:zyn,OverBracket:jyn,OverParenthesis:Wyn,para:Yyn,parallel:Kyn,par:Zyn,parsim:Xyn,parsl:Jyn,part:ebn,PartialD:tbn,Pcy:nbn,pcy:rbn,percnt:ibn,period:obn,permil:sbn,perp:abn,pertenk:lbn,Pfr:cbn,pfr:ubn,Phi:dbn,phi:fbn,phiv:pbn,phmmat:hbn,phone:Tbn,Pi:mbn,pi:gbn,pitchfork:_bn,piv:Qbn,planck:vbn,planckh:ybn,plankv:bbn,plusacir:Ebn,plusb:xbn,pluscir:Sbn,plus:Lbn,plusdo:Cbn,plusdu:Abn,pluse:wbn,PlusMinus:Mbn,plusmn:Obn,plussim:Rbn,plustwo:Nbn,pm:Dbn,Poincareplane:Ibn,pointint:kbn,popf:Pbn,Popf:Hbn,pound:Vbn,prap:Fbn,Pr:Bbn,pr:$bn,prcue:Ubn,precapprox:Gbn,prec:qbn,preccurlyeq:zbn,Precedes:jbn,PrecedesEqual:Wbn,PrecedesSlantEqual:Ybn,PrecedesTilde:Kbn,preceq:Zbn,precnapprox:Xbn,precneqq:Jbn,precnsim:eEn,pre:tEn,prE:nEn,precsim:rEn,prime:iEn,Prime:oEn,primes:sEn,prnap:aEn,prnE:lEn,prnsim:cEn,prod:uEn,Product:dEn,profalar:fEn,profline:pEn,profsurf:hEn,prop:TEn,Proportional:mEn,Proportion:gEn,propto:_En,prsim:QEn,prurel:vEn,Pscr:yEn,pscr:bEn,Psi:EEn,psi:xEn,puncsp:SEn,Qfr:LEn,qfr:CEn,qint:AEn,qopf:wEn,Qopf:MEn,qprime:OEn,Qscr:REn,qscr:NEn,quaternions:DEn,quatint:IEn,quest:kEn,questeq:PEn,quot:HEn,QUOT:VEn,rAarr:FEn,race:BEn,Racute:$En,racute:UEn,radic:GEn,raemptyv:qEn,rang:zEn,Rang:jEn,rangd:WEn,range:YEn,rangle:KEn,raquo:ZEn,rarrap:XEn,rarrb:JEn,rarrbfs:exn,rarrc:txn,rarr:nxn,Rarr:rxn,rArr:ixn,rarrfs:oxn,rarrhk:sxn,rarrlp:axn,rarrpl:lxn,rarrsim:cxn,Rarrtl:uxn,rarrtl:dxn,rarrw:fxn,ratail:pxn,rAtail:hxn,ratio:Txn,rationals:mxn,rbarr:gxn,rBarr:_xn,RBarr:Qxn,rbbrk:vxn,rbrace:yxn,rbrack:bxn,rbrke:Exn,rbrksld:xxn,rbrkslu:Sxn,Rcaron:Lxn,rcaron:Cxn,Rcedil:Axn,rcedil:wxn,rceil:Mxn,rcub:Oxn,Rcy:Rxn,rcy:Nxn,rdca:Dxn,rdldhar:Ixn,rdquo:kxn,rdquor:Pxn,rdsh:Hxn,real:Vxn,realine:Fxn,realpart:Bxn,reals:$xn,Re:Uxn,rect:Gxn,reg:qxn,REG:zxn,ReverseElement:jxn,ReverseEquilibrium:Wxn,ReverseUpEquilibrium:Yxn,rfisht:Kxn,rfloor:Zxn,rfr:Xxn,Rfr:Jxn,rHar:eSn,rhard:tSn,rharu:nSn,rharul:rSn,Rho:iSn,rho:oSn,rhov:sSn,RightAngleBracket:aSn,RightArrowBar:lSn,rightarrow:cSn,RightArrow:uSn,Rightarrow:dSn,RightArrowLeftArrow:fSn,rightarrowtail:pSn,RightCeiling:hSn,RightDoubleBracket:TSn,RightDownTeeVector:mSn,RightDownVectorBar:gSn,RightDownVector:_Sn,RightFloor:QSn,rightharpoondown:vSn,rightharpoonup:ySn,rightleftarrows:bSn,rightleftharpoons:ESn,rightrightarrows:xSn,rightsquigarrow:SSn,RightTeeArrow:LSn,RightTee:CSn,RightTeeVector:ASn,rightthreetimes:wSn,RightTriangleBar:MSn,RightTriangle:OSn,RightTriangleEqual:RSn,RightUpDownVector:NSn,RightUpTeeVector:DSn,RightUpVectorBar:ISn,RightUpVector:kSn,RightVectorBar:PSn,RightVector:HSn,ring:VSn,risingdotseq:FSn,rlarr:BSn,rlhar:$Sn,rlm:USn,rmoustache:GSn,rmoust:qSn,rnmid:zSn,roang:jSn,roarr:WSn,robrk:YSn,ropar:KSn,ropf:ZSn,Ropf:XSn,roplus:JSn,rotimes:eLn,RoundImplies:tLn,rpar:nLn,rpargt:rLn,rppolint:iLn,rrarr:oLn,Rrightarrow:sLn,rsaquo:aLn,rscr:lLn,Rscr:cLn,rsh:uLn,Rsh:dLn,rsqb:fLn,rsquo:pLn,rsquor:hLn,rthree:TLn,rtimes:mLn,rtri:gLn,rtrie:_Ln,rtrif:QLn,rtriltri:vLn,RuleDelayed:yLn,ruluhar:bLn,rx:ELn,Sacute:xLn,sacute:SLn,sbquo:LLn,scap:CLn,Scaron:ALn,scaron:wLn,Sc:MLn,sc:OLn,sccue:RLn,sce:NLn,scE:DLn,Scedil:ILn,scedil:kLn,Scirc:PLn,scirc:HLn,scnap:VLn,scnE:FLn,scnsim:BLn,scpolint:$Ln,scsim:ULn,Scy:GLn,scy:qLn,sdotb:zLn,sdot:jLn,sdote:WLn,searhk:YLn,searr:KLn,seArr:ZLn,searrow:XLn,sect:JLn,semi:eCn,seswar:tCn,setminus:nCn,setmn:rCn,sext:iCn,Sfr:oCn,sfr:sCn,sfrown:aCn,sharp:lCn,SHCHcy:cCn,shchcy:uCn,SHcy:dCn,shcy:fCn,ShortDownArrow:pCn,ShortLeftArrow:hCn,shortmid:TCn,shortparallel:mCn,ShortRightArrow:gCn,ShortUpArrow:_Cn,shy:QCn,Sigma:vCn,sigma:yCn,sigmaf:bCn,sigmav:ECn,sim:xCn,simdot:SCn,sime:LCn,simeq:CCn,simg:ACn,simgE:wCn,siml:MCn,simlE:OCn,simne:RCn,simplus:NCn,simrarr:DCn,slarr:ICn,SmallCircle:kCn,smallsetminus:PCn,smashp:HCn,smeparsl:VCn,smid:FCn,smile:BCn,smt:$Cn,smte:UCn,smtes:GCn,SOFTcy:qCn,softcy:zCn,solbar:jCn,solb:WCn,sol:YCn,Sopf:KCn,sopf:ZCn,spades:XCn,spadesuit:JCn,spar:eAn,sqcap:tAn,sqcaps:nAn,sqcup:rAn,sqcups:iAn,Sqrt:oAn,sqsub:sAn,sqsube:aAn,sqsubset:lAn,sqsubseteq:cAn,sqsup:uAn,sqsupe:dAn,sqsupset:fAn,sqsupseteq:pAn,square:hAn,Square:TAn,SquareIntersection:mAn,SquareSubset:gAn,SquareSubsetEqual:_An,SquareSuperset:QAn,SquareSupersetEqual:vAn,SquareUnion:yAn,squarf:bAn,squ:EAn,squf:xAn,srarr:SAn,Sscr:LAn,sscr:CAn,ssetmn:AAn,ssmile:wAn,sstarf:MAn,Star:OAn,star:RAn,starf:NAn,straightepsilon:DAn,straightphi:IAn,strns:kAn,sub:PAn,Sub:HAn,subdot:VAn,subE:FAn,sube:BAn,subedot:$An,submult:UAn,subnE:GAn,subne:qAn,subplus:zAn,subrarr:jAn,subset:WAn,Subset:YAn,subseteq:KAn,subseteqq:ZAn,SubsetEqual:XAn,subsetneq:JAn,subsetneqq:ewn,subsim:twn,subsub:nwn,subsup:rwn,succapprox:iwn,succ:own,succcurlyeq:swn,Succeeds:awn,SucceedsEqual:lwn,SucceedsSlantEqual:cwn,SucceedsTilde:uwn,succeq:dwn,succnapprox:fwn,succneqq:pwn,succnsim:hwn,succsim:Twn,SuchThat:mwn,sum:gwn,Sum:_wn,sung:Qwn,sup1:vwn,sup2:ywn,sup3:bwn,sup:Ewn,Sup:xwn,supdot:Swn,supdsub:Lwn,supE:Cwn,supe:Awn,supedot:wwn,Superset:Mwn,SupersetEqual:Own,suphsol:Rwn,suphsub:Nwn,suplarr:Dwn,supmult:Iwn,supnE:kwn,supne:Pwn,supplus:Hwn,supset:Vwn,Supset:Fwn,supseteq:Bwn,supseteqq:$wn,supsetneq:Uwn,supsetneqq:Gwn,supsim:qwn,supsub:zwn,supsup:jwn,swarhk:Wwn,swarr:Ywn,swArr:Kwn,swarrow:Zwn,swnwar:Xwn,szlig:Jwn,Tab:eMn,target:tMn,Tau:nMn,tau:rMn,tbrk:iMn,Tcaron:oMn,tcaron:sMn,Tcedil:aMn,tcedil:lMn,Tcy:cMn,tcy:uMn,tdot:dMn,telrec:fMn,Tfr:pMn,tfr:hMn,there4:TMn,therefore:mMn,Therefore:gMn,Theta:_Mn,theta:QMn,thetasym:vMn,thetav:yMn,thickapprox:bMn,thicksim:EMn,ThickSpace:xMn,ThinSpace:SMn,thinsp:LMn,thkap:CMn,thksim:AMn,THORN:wMn,thorn:MMn,tilde:OMn,Tilde:RMn,TildeEqual:NMn,TildeFullEqual:DMn,TildeTilde:IMn,timesbar:kMn,timesb:PMn,times:HMn,timesd:VMn,tint:FMn,toea:BMn,topbot:$Mn,topcir:UMn,top:GMn,Topf:qMn,topf:zMn,topfork:jMn,tosa:WMn,tprime:YMn,trade:KMn,TRADE:ZMn,triangle:XMn,triangledown:JMn,triangleleft:eOn,trianglelefteq:tOn,triangleq:nOn,triangleright:rOn,trianglerighteq:iOn,tridot:oOn,trie:sOn,triminus:aOn,TripleDot:lOn,triplus:cOn,trisb:uOn,tritime:dOn,trpezium:fOn,Tscr:pOn,tscr:hOn,TScy:TOn,tscy:mOn,TSHcy:gOn,tshcy:_On,Tstrok:QOn,tstrok:vOn,twixt:yOn,twoheadleftarrow:bOn,twoheadrightarrow:EOn,Uacute:xOn,uacute:SOn,uarr:LOn,Uarr:COn,uArr:AOn,Uarrocir:wOn,Ubrcy:MOn,ubrcy:OOn,Ubreve:ROn,ubreve:NOn,Ucirc:DOn,ucirc:IOn,Ucy:kOn,ucy:POn,udarr:HOn,Udblac:VOn,udblac:FOn,udhar:BOn,ufisht:$On,Ufr:UOn,ufr:GOn,Ugrave:qOn,ugrave:zOn,uHar:jOn,uharl:WOn,uharr:YOn,uhblk:KOn,ulcorn:ZOn,ulcorner:XOn,ulcrop:JOn,ultri:eRn,Umacr:tRn,umacr:nRn,uml:rRn,UnderBar:iRn,UnderBrace:oRn,UnderBracket:sRn,UnderParenthesis:aRn,Union:lRn,UnionPlus:cRn,Uogon:uRn,uogon:dRn,Uopf:fRn,uopf:pRn,UpArrowBar:hRn,uparrow:TRn,UpArrow:mRn,Uparrow:gRn,UpArrowDownArrow:_Rn,updownarrow:QRn,UpDownArrow:vRn,Updownarrow:yRn,UpEquilibrium:bRn,upharpoonleft:ERn,upharpoonright:xRn,uplus:SRn,UpperLeftArrow:LRn,UpperRightArrow:CRn,upsi:ARn,Upsi:wRn,upsih:MRn,Upsilon:ORn,upsilon:RRn,UpTeeArrow:NRn,UpTee:DRn,upuparrows:IRn,urcorn:kRn,urcorner:PRn,urcrop:HRn,Uring:VRn,uring:FRn,urtri:BRn,Uscr:$Rn,uscr:URn,utdot:GRn,Utilde:qRn,utilde:zRn,utri:jRn,utrif:WRn,uuarr:YRn,Uuml:KRn,uuml:ZRn,uwangle:XRn,vangrt:JRn,varepsilon:eNn,varkappa:tNn,varnothing:nNn,varphi:rNn,varpi:iNn,varpropto:oNn,varr:sNn,vArr:aNn,varrho:lNn,varsigma:cNn,varsubsetneq:uNn,varsubsetneqq:dNn,varsupsetneq:fNn,varsupsetneqq:pNn,vartheta:hNn,vartriangleleft:TNn,vartriangleright:mNn,vBar:gNn,Vbar:_Nn,vBarv:QNn,Vcy:vNn,vcy:yNn,vdash:bNn,vDash:ENn,Vdash:xNn,VDash:SNn,Vdashl:LNn,veebar:CNn,vee:ANn,Vee:wNn,veeeq:MNn,vellip:ONn,verbar:RNn,Verbar:NNn,vert:DNn,Vert:INn,VerticalBar:kNn,VerticalLine:PNn,VerticalSeparator:HNn,VerticalTilde:VNn,VeryThinSpace:FNn,Vfr:BNn,vfr:$Nn,vltri:UNn,vnsub:GNn,vnsup:qNn,Vopf:zNn,vopf:jNn,vprop:WNn,vrtri:YNn,Vscr:KNn,vscr:ZNn,vsubnE:XNn,vsubne:JNn,vsupnE:eDn,vsupne:tDn,Vvdash:nDn,vzigzag:rDn,Wcirc:iDn,wcirc:oDn,wedbar:sDn,wedge:aDn,Wedge:lDn,wedgeq:cDn,weierp:uDn,Wfr:dDn,wfr:fDn,Wopf:pDn,wopf:hDn,wp:TDn,wr:mDn,wreath:gDn,Wscr:_Dn,wscr:QDn,xcap:vDn,xcirc:yDn,xcup:bDn,xdtri:EDn,Xfr:xDn,xfr:SDn,xharr:LDn,xhArr:CDn,Xi:ADn,xi:wDn,xlarr:MDn,xlArr:ODn,xmap:RDn,xnis:NDn,xodot:DDn,Xopf:IDn,xopf:kDn,xoplus:PDn,xotime:HDn,xrarr:VDn,xrArr:FDn,Xscr:BDn,xscr:$Dn,xsqcup:UDn,xuplus:GDn,xutri:qDn,xvee:zDn,xwedge:jDn,Yacute:WDn,yacute:YDn,YAcy:KDn,yacy:ZDn,Ycirc:XDn,ycirc:JDn,Ycy:eIn,ycy:tIn,yen:nIn,Yfr:rIn,yfr:iIn,YIcy:oIn,yicy:sIn,Yopf:aIn,yopf:lIn,Yscr:cIn,yscr:uIn,YUcy:dIn,yucy:fIn,yuml:pIn,Yuml:hIn,Zacute:TIn,zacute:mIn,Zcaron:gIn,zcaron:_In,Zcy:QIn,zcy:vIn,Zdot:yIn,zdot:bIn,zeetrf:EIn,ZeroWidthSpace:xIn,Zeta:SIn,zeta:LIn,zfr:CIn,Zfr:AIn,ZHcy:wIn,zhcy:MIn,zigrarr:OIn,zopf:RIn,Zopf:NIn,Zscr:DIn,zscr:IIn,zwj:kIn,zwnj:PIn},VIn="Á",FIn="á",BIn="Â",$In="â",UIn="´",GIn="Æ",qIn="æ",zIn="À",jIn="à",WIn="&",YIn="&",KIn="Å",ZIn="å",XIn="Ã",JIn="ã",ekn="Ä",tkn="ä",nkn="¦",rkn="Ç",ikn="ç",okn="¸",skn="¢",akn="©",lkn="©",ckn="¤",ukn="°",dkn="÷",fkn="É",pkn="é",hkn="Ê",Tkn="ê",mkn="È",gkn="è",_kn="Ð",Qkn="ð",vkn="Ë",ykn="ë",bkn="½",Ekn="¼",xkn="¾",Skn=">",Lkn=">",Ckn="Í",Akn="í",wkn="Î",Mkn="î",Okn="¡",Rkn="Ì",Nkn="ì",Dkn="¿",Ikn="Ï",kkn="ï",Pkn="«",Hkn="<",Vkn="<",Fkn="¯",Bkn="µ",$kn="·",Ukn=" ",Gkn="¬",qkn="Ñ",zkn="ñ",jkn="Ó",Wkn="ó",Ykn="Ô",Kkn="ô",Zkn="Ò",Xkn="ò",Jkn="ª",ePn="º",tPn="Ø",nPn="ø",rPn="Õ",iPn="õ",oPn="Ö",sPn="ö",aPn="¶",lPn="±",cPn="£",uPn='"',dPn='"',fPn="»",pPn="®",hPn="®",TPn="§",mPn="­",gPn="¹",_Pn="²",QPn="³",vPn="ß",yPn="Þ",bPn="þ",EPn="×",xPn="Ú",SPn="ú",LPn="Û",CPn="û",APn="Ù",wPn="ù",MPn="¨",OPn="Ü",RPn="ü",NPn="Ý",DPn="ý",IPn="¥",kPn="ÿ",PPn={Aacute:VIn,aacute:FIn,Acirc:BIn,acirc:$In,acute:UIn,AElig:GIn,aelig:qIn,Agrave:zIn,agrave:jIn,amp:WIn,AMP:YIn,Aring:KIn,aring:ZIn,Atilde:XIn,atilde:JIn,Auml:ekn,auml:tkn,brvbar:nkn,Ccedil:rkn,ccedil:ikn,cedil:okn,cent:skn,copy:akn,COPY:lkn,curren:ckn,deg:ukn,divide:dkn,Eacute:fkn,eacute:pkn,Ecirc:hkn,ecirc:Tkn,Egrave:mkn,egrave:gkn,ETH:_kn,eth:Qkn,Euml:vkn,euml:ykn,frac12:bkn,frac14:Ekn,frac34:xkn,gt:Skn,GT:Lkn,Iacute:Ckn,iacute:Akn,Icirc:wkn,icirc:Mkn,iexcl:Okn,Igrave:Rkn,igrave:Nkn,iquest:Dkn,Iuml:Ikn,iuml:kkn,laquo:Pkn,lt:Hkn,LT:Vkn,macr:Fkn,micro:Bkn,middot:$kn,nbsp:Ukn,not:Gkn,Ntilde:qkn,ntilde:zkn,Oacute:jkn,oacute:Wkn,Ocirc:Ykn,ocirc:Kkn,Ograve:Zkn,ograve:Xkn,ordf:Jkn,ordm:ePn,Oslash:tPn,oslash:nPn,Otilde:rPn,otilde:iPn,Ouml:oPn,ouml:sPn,para:aPn,plusmn:lPn,pound:cPn,quot:uPn,QUOT:dPn,raquo:fPn,reg:pPn,REG:hPn,sect:TPn,shy:mPn,sup1:gPn,sup2:_Pn,sup3:QPn,szlig:vPn,THORN:yPn,thorn:bPn,times:EPn,Uacute:xPn,uacute:SPn,Ucirc:LPn,ucirc:CPn,Ugrave:APn,ugrave:wPn,uml:MPn,Uuml:OPn,uuml:RPn,Yacute:NPn,yacute:DPn,yen:IPn,yuml:kPn},HPn="&",VPn="'",FPn=">",BPn="<",$Pn='"',UPn={amp:HPn,apos:VPn,gt:FPn,lt:BPn,quot:$Pn};var RN;function H$(){if(RN)return h5;RN=1;var t=S&&S.__importDefault||function(K){return K&&K.__esModule?K:{default:K}};Object.defineProperty(h5,"__esModule",{value:!0});var e=t(vsn()),n=t(HIn),r=t(PPn),i=t(UPn);function o(K){return K===" "||K===` -`||K===" "||K==="\f"||K==="\r"}function s(K){return K>="a"&&K<="z"||K>="A"&&K<="Z"}function a(K,$,ce){var Ee=K.toLowerCase();return K===Ee?function(z,re){re===Ee?z._state=$:(z._state=ce,z._index--)}:function(z,re){re===Ee||re===K?z._state=$:(z._state=ce,z._index--)}}function l(K,$){var ce=K.toLowerCase();return function(Ee,z){z===ce||z===K?Ee._state=$:(Ee._state=3,Ee._index--)}}var c=a("C",24,16),u=a("D",25,16),d=a("A",26,16),h=a("T",27,16),f=a("A",28,16),m=l("R",35),T=l("I",36),Q=l("P",37),_=l("T",38),v=a("R",40,1),y=a("I",41,1),b=a("P",42,1),E=a("T",43,1),x=l("Y",45),L=l("L",46),M=l("E",47),C=a("Y",49,1),A=a("L",50,1),I=a("E",51,1),N=l("I",54),V=l("T",55),R=l("L",56),B=l("E",57),F=a("I",58,1),U=a("T",59,1),G=a("L",60,1),Z=a("E",61,1),Y=a("#",63,64),ee=a("X",66,65),pe=function(){function K($,ce){var Ee;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=ce,this.xmlMode=!!($!=null&&$.xmlMode),this.decodeEntities=(Ee=$==null?void 0:$.decodeEntities)!==null&&Ee!==void 0?Ee:!0}return K.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},K.prototype.write=function($){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=$,this.parse()},K.prototype.end=function($){this.ended&&this.cbs.onerror(Error(".end() after done!")),$&&this.write($),this.ended=!0,this.running&&this.finish()},K.prototype.pause=function(){this.running=!1},K.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&$==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},K.prototype.isTagStartChar=function($){return s($)||this.xmlMode&&!o($)&&$!=="/"&&$!==">"},K.prototype.stateBeforeTagName=function($){$==="/"?this._state=5:$==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):$===">"||this.special!==1||o($)?this._state=1:$==="!"?(this._state=15,this.sectionStart=this._index+1):$==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar($)?(this._state=!this.xmlMode&&($==="s"||$==="S")?32:!this.xmlMode&&($==="t"||$==="T")?52:3,this.sectionStart=this._index):this._state=1},K.prototype.stateInTagName=function($){($==="/"||$===">"||o($))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},K.prototype.stateBeforeClosingTagName=function($){o($)||($===">"?this._state=1:this.special!==1?this.special!==4&&($==="s"||$==="S")?this._state=33:this.special===4&&($==="t"||$==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar($)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},K.prototype.stateInClosingTagName=function($){($===">"||o($))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},K.prototype.stateAfterClosingTagName=function($){$===">"&&(this._state=1,this.sectionStart=this._index+1)},K.prototype.stateBeforeAttributeName=function($){$===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):$==="/"?this._state=4:o($)||(this._state=9,this.sectionStart=this._index)},K.prototype.stateInSelfClosingTag=function($){$===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):o($)||(this._state=8,this._index--)},K.prototype.stateInAttributeName=function($){($==="="||$==="/"||$===">"||o($))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},K.prototype.stateAfterAttributeName=function($){$==="="?this._state=11:$==="/"||$===">"?(this.cbs.onattribend(void 0),this._state=8,this._index--):o($)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},K.prototype.stateBeforeAttributeValue=function($){$==='"'?(this._state=12,this.sectionStart=this._index+1):$==="'"?(this._state=13,this.sectionStart=this._index+1):o($)||(this._state=14,this.sectionStart=this._index,this._index--)},K.prototype.handleInAttributeValue=function($,ce){$===ce?(this.emitToken("onattribdata"),this.cbs.onattribend(ce),this._state=8):this.decodeEntities&&$==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},K.prototype.stateInAttributeValueDoubleQuotes=function($){this.handleInAttributeValue($,'"')},K.prototype.stateInAttributeValueSingleQuotes=function($){this.handleInAttributeValue($,"'")},K.prototype.stateInAttributeValueNoQuotes=function($){o($)||$===">"?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&$==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},K.prototype.stateBeforeDeclaration=function($){this._state=$==="["?23:$==="-"?18:16},K.prototype.stateInDeclaration=function($){$===">"&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},K.prototype.stateInProcessingInstruction=function($){$===">"&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},K.prototype.stateBeforeComment=function($){$==="-"?(this._state=19,this.sectionStart=this._index+1):this._state=16},K.prototype.stateInComment=function($){$==="-"&&(this._state=21)},K.prototype.stateInSpecialComment=function($){$===">"&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},K.prototype.stateAfterComment1=function($){$==="-"?this._state=22:this._state=19},K.prototype.stateAfterComment2=function($){$===">"?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):$!=="-"&&(this._state=19)},K.prototype.stateBeforeCdata6=function($){$==="["?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},K.prototype.stateInCdata=function($){$==="]"&&(this._state=30)},K.prototype.stateAfterCdata1=function($){$==="]"?this._state=31:this._state=29},K.prototype.stateAfterCdata2=function($){$===">"?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):$!=="]"&&(this._state=29)},K.prototype.stateBeforeSpecialS=function($){$==="c"||$==="C"?this._state=34:$==="t"||$==="T"?this._state=44:(this._state=3,this._index--)},K.prototype.stateBeforeSpecialSEnd=function($){this.special===2&&($==="c"||$==="C")?this._state=39:this.special===3&&($==="t"||$==="T")?this._state=48:this._state=1},K.prototype.stateBeforeSpecialLast=function($,ce){($==="/"||$===">"||o($))&&(this.special=ce),this._state=3,this._index--},K.prototype.stateAfterSpecialLast=function($,ce){$===">"||o($)?(this.special=1,this._state=6,this.sectionStart=this._index-ce,this._index--):this._state=1},K.prototype.parseFixedEntity=function($){if($===void 0&&($=this.xmlMode?i.default:n.default),this.sectionStart+1=2;){var Ee=this.buffer.substr($,ce);if(Object.prototype.hasOwnProperty.call(r.default,Ee)){this.emitPartial(r.default[Ee]),this.sectionStart+=ce+1;return}ce--}},K.prototype.stateInNamedEntity=function($){$===";"?(this.parseFixedEntity(),this.baseState===1&&this.sectionStart+1"9")&&!s($)&&(this.xmlMode||this.sectionStart+1===this._index||(this.baseState!==1?$!=="="&&this.parseFixedEntity(r.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},K.prototype.decodeNumericEntity=function($,ce,Ee){var z=this.sectionStart+$;if(z!==this._index){var re=this.buffer.substring(z,this._index),he=parseInt(re,ce);this.emitPartial(e.default(he)),this.sectionStart=Ee?this._index+1:this._index}this._state=this.baseState},K.prototype.stateInNumericEntity=function($){$===";"?this.decodeNumericEntity(2,10,!0):($<"0"||$>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},K.prototype.stateInHexEntity=function($){$===";"?this.decodeNumericEntity(3,16,!0):($<"a"||$>"f")&&($<"A"||$>"F")&&($<"0"||$>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},K.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(this._state===1?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},K.prototype.parse=function(){for(;this._index0&&i[d].has(m=this.stack[this.stack.length-1]);)this.onclosetag(m);(this.options.xmlMode||!o.has(d))&&(this.stack.push(d),s.has(d)?this.foreignContext.push(!0):a.has(d)&&this.foreignContext.push(!1)),(f=(h=this.cbs).onopentagname)===null||f===void 0||f.call(h,d),this.cbs.onopentag&&(this.attribs={})},u.prototype.onopentagend=function(){var d,h;this.updatePosition(1),this.attribs&&((h=(d=this.cbs).onopentag)===null||h===void 0||h.call(d,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&o.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},u.prototype.onclosetag=function(d){if(this.updatePosition(1),this.lowerCaseTagNames&&(d=d.toLowerCase()),(s.has(d)||a.has(d))&&this.foreignContext.pop(),this.stack.length&&(this.options.xmlMode||!o.has(d))){var h=this.stack.lastIndexOf(d);if(h!==-1)if(this.cbs.onclosetag)for(h=this.stack.length-h;h--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=h;else d==="p"&&!this.options.xmlMode&&(this.onopentagname(d),this.closeCurrentTag())}else!this.options.xmlMode&&(d==="br"||d==="p")&&(this.onopentagname(d),this.closeCurrentTag())},u.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},u.prototype.closeCurrentTag=function(){var d,h,f=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===f&&((h=(d=this.cbs).onclosetag)===null||h===void 0||h.call(d,f),this.stack.pop())},u.prototype.onattribname=function(d){this.lowerCaseAttributeNames&&(d=d.toLowerCase()),this.attribname=d},u.prototype.onattribdata=function(d){this.attribvalue+=d},u.prototype.onattribend=function(d){var h,f;(f=(h=this.cbs).onattribute)===null||f===void 0||f.call(h,this.attribname,this.attribvalue,d),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},u.prototype.getInstructionName=function(d){var h=d.search(l),f=h<0?d:d.substr(0,h);return this.lowerCaseTagNames&&(f=f.toLowerCase()),f},u.prototype.ondeclaration=function(d){if(this.cbs.onprocessinginstruction){var h=this.getInstructionName(d);this.cbs.onprocessinginstruction("!"+h,"!"+d)}},u.prototype.onprocessinginstruction=function(d){if(this.cbs.onprocessinginstruction){var h=this.getInstructionName(d);this.cbs.onprocessinginstruction("?"+h,"?"+d)}},u.prototype.oncomment=function(d){var h,f,m,T;this.updatePosition(4),(f=(h=this.cbs).oncomment)===null||f===void 0||f.call(h,d),(T=(m=this.cbs).oncommentend)===null||T===void 0||T.call(m)},u.prototype.oncdata=function(d){var h,f,m,T,Q,_;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?((f=(h=this.cbs).oncdatastart)===null||f===void 0||f.call(h),(T=(m=this.cbs).ontext)===null||T===void 0||T.call(m,d),(_=(Q=this.cbs).oncdataend)===null||_===void 0||_.call(Q)):this.oncomment("[CDATA["+d+"]]")},u.prototype.onerror=function(d){var h,f;(f=(h=this.cbs).onerror)===null||f===void 0||f.call(h,d)},u.prototype.onend=function(){var d,h;if(this.cbs.onclosetag)for(var f=this.stack.length;f>0;this.cbs.onclosetag(this.stack[--f]));(h=(d=this.cbs).onend)===null||h===void 0||h.call(d)},u.prototype.reset=function(){var d,h,f,m;(h=(d=this.cbs).onreset)===null||h===void 0||h.call(d),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],(m=(f=this.cbs).onparserinit)===null||m===void 0||m.call(f,this)},u.prototype.parseComplete=function(d){this.reset(),this.end(d)},u.prototype.write=function(d){this.tokenizer.write(d)},u.prototype.end=function(d){this.tokenizer.end(d)},u.prototype.pause=function(){this.tokenizer.pause()},u.prototype.resume=function(){this.tokenizer.resume()},u.prototype.parseChunk=function(d){this.write(d)},u.prototype.done=function(d){this.end(d)},u}();return c4.Parser=c,c4}var w1={},DN;function IN(){if(DN)return w1;DN=1;var t=S&&S.__extends||function(){var y=function(b,E){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,L){x.__proto__=L}||function(x,L){for(var M in L)Object.prototype.hasOwnProperty.call(L,M)&&(x[M]=L[M])},y(b,E)};return function(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");y(b,E);function x(){this.constructor=b}b.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),e=S&&S.__createBinding||(Object.create?function(y,b,E,x){x===void 0&&(x=E),Object.defineProperty(y,x,{enumerable:!0,get:function(){return b[E]}})}:function(y,b,E,x){x===void 0&&(x=E),y[x]=b[E]}),n=S&&S.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),r=S&&S.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&e(b,y,E);return n(b,y),b},i=S&&S.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(w1,"__esModule",{value:!0}),w1.parseFeed=w1.FeedHandler=void 0;var o=i(_i()),s=r(w9()),a=V$(),l;(function(y){y[y.image=0]="image",y[y.audio=1]="audio",y[y.video=2]="video",y[y.document=3]="document",y[y.executable=4]="executable"})(l||(l={}));var c;(function(y){y[y.sample=0]="sample",y[y.full=1]="full",y[y.nonstop=2]="nonstop"})(c||(c={}));var u=function(y){t(b,y);function b(E,x){var L=this;return typeof E=="object"&&(E=void 0,x=E),L=y.call(this,E,x)||this,L}return b.prototype.onend=function(){var E,x,L=f(_,this.dom);if(!L){this.handleCallback(new Error("couldn't find root of feed"));return}var M={};if(L.name==="feed"){var C=L.children;M.type="atom",Q(M,"id","id",C),Q(M,"title","title",C);var A=T("href",f("link",C));A&&(M.link=A),Q(M,"description","subtitle",C);var I=m("updated",C);I&&(M.updated=new Date(I)),Q(M,"author","email",C,!0),M.items=h("entry",C).map(function(N){var V={},R=N.children;Q(V,"id","id",R),Q(V,"title","title",R);var B=T("href",f("link",R));B&&(V.link=B);var F=m("summary",R)||m("content",R);F&&(V.description=F);var U=m("updated",R);return U&&(V.pubDate=new Date(U)),V.media=d(R),V})}else{var C=(x=(E=f("channel",L.children))===null||E===void 0?void 0:E.children)!==null&&x!==void 0?x:[];M.type=L.name.substr(0,3),M.id="",Q(M,"title","title",C),Q(M,"link","link",C),Q(M,"description","description",C);var I=m("lastBuildDate",C);I&&(M.updated=new Date(I)),Q(M,"author","managingEditor",C,!0),M.items=h("item",L.children).map(function(R){var B={},F=R.children;Q(B,"id","guid",F),Q(B,"title","title",F),Q(B,"link","link",F),Q(B,"description","description",F);var U=m("pubDate",F);return U&&(B.pubDate=new Date(U)),B.media=d(F),B})}this.feed=M,this.handleCallback(null)},b}(o.default);w1.FeedHandler=u;function d(y){return h("media:content",y).map(function(b){var E={medium:b.attribs.medium,isDefault:!!b.attribs.isDefault};return b.attribs.url&&(E.url=b.attribs.url),b.attribs.fileSize&&(E.fileSize=parseInt(b.attribs.fileSize,10)),b.attribs.type&&(E.type=b.attribs.type),b.attribs.expression&&(E.expression=b.attribs.expression),b.attribs.bitrate&&(E.bitrate=parseInt(b.attribs.bitrate,10)),b.attribs.framerate&&(E.framerate=parseInt(b.attribs.framerate,10)),b.attribs.samplingrate&&(E.samplingrate=parseInt(b.attribs.samplingrate,10)),b.attribs.channels&&(E.channels=parseInt(b.attribs.channels,10)),b.attribs.duration&&(E.duration=parseInt(b.attribs.duration,10)),b.attribs.height&&(E.height=parseInt(b.attribs.height,10)),b.attribs.width&&(E.width=parseInt(b.attribs.width,10)),b.attribs.lang&&(E.lang=b.attribs.lang),E})}function h(y,b){return s.getElementsByTagName(y,b,!0)}function f(y,b){return s.getElementsByTagName(y,b,!0,1)[0]}function m(y,b,E){return E===void 0&&(E=!1),s.getText(s.getElementsByTagName(y,b,E,1)).trim()}function T(y,b){if(!b)return null;var E=b.attribs;return E[y]}function Q(y,b,E,x,L){L===void 0&&(L=!1);var M=m(E,x,L);M&&(y[b]=M)}function _(y){return y==="rss"||y==="feed"||y==="rdf:RDF"}function v(y,b){b===void 0&&(b={xmlMode:!0});var E=new u(b);return new a.Parser(E,b).end(y),E.feed}return w1.parseFeed=v,w1}var kN;function Kc(){return kN||(kN=1,function(t){var e=S&&S.__createBinding||(Object.create?function(m,T,Q,_){_===void 0&&(_=Q),Object.defineProperty(m,_,{enumerable:!0,get:function(){return T[Q]}})}:function(m,T,Q,_){_===void 0&&(_=Q),m[_]=T[Q]}),n=S&&S.__setModuleDefault||(Object.create?function(m,T){Object.defineProperty(m,"default",{enumerable:!0,value:T})}:function(m,T){m.default=T}),r=S&&S.__importStar||function(m){if(m&&m.__esModule)return m;var T={};if(m!=null)for(var Q in m)Q!=="default"&&Object.prototype.hasOwnProperty.call(m,Q)&&e(T,m,Q);return n(T,m),T},i=S&&S.__exportStar||function(m,T){for(var Q in m)Q!=="default"&&!Object.prototype.hasOwnProperty.call(T,Q)&&e(T,m,Q)},o=S&&S.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var s=V$();Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return s.Parser}});var a=_i();Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}});function l(m,T){var Q=new a.DomHandler(void 0,T);return new s.Parser(Q,T).end(m),Q.root}t.parseDocument=l;function c(m,T){return l(m,T).children}t.parseDOM=c;function u(m,T,Q){var _=new a.DomHandler(m,T,Q);return new s.Parser(_,T)}t.createDomStream=u;var d=H$();Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(d).default}});var h=r(u6());t.ElementType=h,i(IN(),t),t.DomUtils=r(w9());var f=IN();Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return f.FeedHandler}})}(Mg)),Mg}var M1={},u4={},Fo={},PN;function Mb(){if(PN)return Fo;PN=1;const t=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];return Fo.REPLACEMENT_CHARACTER="�",Fo.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},Fo.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},Fo.isSurrogate=function(e){return e>=55296&&e<=57343},Fo.isSurrogatePair=function(e){return e>=56320&&e<=57343},Fo.getSurrogatePairCodePoint=function(e,n){return(e-55296)*1024+9216+n},Fo.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159},Fo.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||t.indexOf(e)>-1},Fo}var Og,HN;function Ob(){return HN||(HN=1,Og={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}),Og}var Rg,VN;function GPn(){if(VN)return Rg;VN=1;const t=Mb(),e=Ob(),n=t.CODE_POINTS,r=65536;class i{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=r}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(s){if(this.pos!==this.lastCharPos){const a=this.html.charCodeAt(this.pos+1);if(t.isSurrogatePair(a))return this.pos++,this._addGap(),t.getSurrogatePairCodePoint(s,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(e.surrogateInInputStream),s}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(s,a){this.html?this.html+=s:this.html=s,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(s){this.html=this.html.substring(0,this.pos+1)+s+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let s=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&s===n.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):s===n.CARRIAGE_RETURN?(this.skipNextNewLine=!0,n.LINE_FEED):(this.skipNextNewLine=!1,t.isSurrogate(s)&&(s=this._processSurrogate(s)),s>31&&s<127||s===n.LINE_FEED||s===n.CARRIAGE_RETURN||s>159&&s<64976||this._checkForProblematicCharacters(s),s)}_checkForProblematicCharacters(s){t.isControlCodePoint(s)?this._err(e.controlCharacterInInputStream):t.isUndefinedCodePoint(s)&&this._err(e.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}return Rg=i,Rg}var Ng,FN;function qPn(){return FN||(FN=1,Ng=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])),Ng}var Dg,BN;function M9(){if(BN)return Dg;BN=1;const t=GPn(),e=Mb(),n=qPn(),r=Ob(),i=e.CODE_POINTS,o=e.CODE_POINT_SEQUENCES,s={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},a=1,l=2,c=4,u=a|l|c,d="DATA_STATE",h="RCDATA_STATE",f="RAWTEXT_STATE",m="SCRIPT_DATA_STATE",T="PLAINTEXT_STATE",Q="TAG_OPEN_STATE",_="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",E="RCDATA_END_TAG_NAME_STATE",x="RAWTEXT_LESS_THAN_SIGN_STATE",L="RAWTEXT_END_TAG_OPEN_STATE",M="RAWTEXT_END_TAG_NAME_STATE",C="SCRIPT_DATA_LESS_THAN_SIGN_STATE",A="SCRIPT_DATA_END_TAG_OPEN_STATE",I="SCRIPT_DATA_END_TAG_NAME_STATE",N="SCRIPT_DATA_ESCAPE_START_STATE",V="SCRIPT_DATA_ESCAPE_START_DASH_STATE",R="SCRIPT_DATA_ESCAPED_STATE",B="SCRIPT_DATA_ESCAPED_DASH_STATE",F="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",U="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",G="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Z="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Y="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",ee="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",pe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",K="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",$="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ce="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Ee="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",re="AFTER_ATTRIBUTE_NAME_STATE",he="BEFORE_ATTRIBUTE_VALUE_STATE",Se="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",we="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",se="ATTRIBUTE_VALUE_UNQUOTED_STATE",W="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",j="SELF_CLOSING_START_TAG_STATE",oe="BOGUS_COMMENT_STATE",_e="MARKUP_DECLARATION_OPEN_STATE",ye="COMMENT_START_STATE",le="COMMENT_START_DASH_STATE",De="COMMENT_STATE",Ce="COMMENT_LESS_THAN_SIGN_STATE",Oe="COMMENT_LESS_THAN_SIGN_BANG_STATE",He="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",X="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",q="COMMENT_END_DASH_STATE",Te="COMMENT_END_STATE",fe="COMMENT_END_BANG_STATE",ve="DOCTYPE_STATE",Me="BEFORE_DOCTYPE_NAME_STATE",Ie="DOCTYPE_NAME_STATE",Fe="AFTER_DOCTYPE_NAME_STATE",qe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",ot="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",it="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",$e="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Ot="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",pt="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ht="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Tt="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",rt="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ut="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Qe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ue="BOGUS_DOCTYPE_STATE",Ge="CDATA_SECTION_STATE",Ve="CDATA_SECTION_BRACKET_STATE",Je="CDATA_SECTION_END_STATE",yt="CHARACTER_REFERENCE_STATE",Rt="NAMED_CHARACTER_REFERENCE_STATE",wn="AMBIGUOS_AMPERSAND_STATE",Bn="NUMERIC_CHARACTER_REFERENCE_STATE",Xt="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",$n="DECIMAL_CHARACTER_REFERENCE_START_STATE",hr="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lr="DECIMAL_CHARACTER_REFERENCE_STATE",$r="NUMERIC_CHARACTER_REFERENCE_END_STATE";function $t(ke){return ke===i.SPACE||ke===i.LINE_FEED||ke===i.TABULATION||ke===i.FORM_FEED}function oi(ke){return ke>=i.DIGIT_0&&ke<=i.DIGIT_9}function zn(ke){return ke>=i.LATIN_CAPITAL_A&&ke<=i.LATIN_CAPITAL_Z}function Mr(ke){return ke>=i.LATIN_SMALL_A&&ke<=i.LATIN_SMALL_Z}function gn(ke){return Mr(ke)||zn(ke)}function lo(ke){return gn(ke)||oi(ke)}function co(ke){return ke>=i.LATIN_CAPITAL_A&&ke<=i.LATIN_CAPITAL_F}function Io(ke){return ke>=i.LATIN_SMALL_A&&ke<=i.LATIN_SMALL_F}function ne(ke){return oi(ke)||co(ke)||Io(ke)}function Ae(ke){return ke+32}function me(ke){return ke<=65535?String.fromCharCode(ke):(ke-=65536,String.fromCharCode(ke>>>10&1023|55296)+String.fromCharCode(56320|ke&1023))}function J(ke){return String.fromCharCode(Ae(ke))}function de(ke,H){const je=n[++ke];let ft=++ke,dt=ft+je-1;for(;ft<=dt;){const mt=ft+dt>>>1,bt=n[mt];if(btH)dt=mt-1;else return n[mt+je]}return-1}class Re{constructor(){this.preprocessor=new t,this.tokenQueue=[],this.allowCDATA=!1,this.state=d,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(H){this._consume(),this._err(H),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const H=this._consume();this._ensureHibernation()||this[this.state](H)}return this.tokenQueue.shift()}write(H,je){this.active=!0,this.preprocessor.write(H,je)}insertHtmlAtCurrentPos(H){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(H)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Re.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(H){this.state=H,this._unconsume()}_consumeSequenceIfMatch(H,je,ft){let dt=0,mt=!0;const bt=H.length;let qt=0,sn=je,Or;for(;qt0&&(sn=this._consume(),dt++),sn===i.EOF){mt=!1;break}if(Or=H[qt],sn!==Or&&(ft||sn!==Ae(Or))){mt=!1;break}}if(!mt)for(;dt--;)this._unconsume();return mt}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==o.SCRIPT_STRING.length)return!1;for(let H=0;H0&&this._err(r.endTagWithAttributes),H.selfClosing&&this._err(r.endTagWithTrailingSolidus)),this.tokenQueue.push(H)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(H,je){this.currentCharacterToken&&this.currentCharacterToken.type!==H&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=je:this._createCharacterToken(H,je)}_emitCodePoint(H){let je=Re.CHARACTER_TOKEN;$t(H)?je=Re.WHITESPACE_CHARACTER_TOKEN:H===i.NULL&&(je=Re.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(je,me(H))}_emitSeveralCodePoints(H){for(let je=0;je-1;){const mt=n[dt],bt=mt")):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.state=R,this._emitChars(e.REPLACEMENT_CHARACTER)):H===i.EOF?(this._err(r.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=R,this._emitCodePoint(H))}[U](H){H===i.SOLIDUS?(this.tempBuff=[],this.state=G):gn(H)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Y)):(this._emitChars("<"),this._reconsumeInState(R))}[G](H){gn(H)?(this._createEndTagToken(),this._reconsumeInState(Z)):(this._emitChars("")):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.state=ee,this._emitChars(e.REPLACEMENT_CHARACTER)):H===i.EOF?(this._err(r.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ee,this._emitCodePoint(H))}[$](H){H===i.SOLIDUS?(this.tempBuff=[],this.state=ce,this._emitChars("/")):this._reconsumeInState(ee)}[ce](H){$t(H)||H===i.SOLIDUS||H===i.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?R:ee,this._emitCodePoint(H)):zn(H)?(this.tempBuff.push(Ae(H)),this._emitCodePoint(H)):Mr(H)?(this.tempBuff.push(H),this._emitCodePoint(H)):this._reconsumeInState(ee)}[Ee](H){$t(H)||(H===i.SOLIDUS||H===i.GREATER_THAN_SIGN||H===i.EOF?this._reconsumeInState(re):H===i.EQUALS_SIGN?(this._err(r.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](H){$t(H)||H===i.SOLIDUS||H===i.GREATER_THAN_SIGN||H===i.EOF?(this._leaveAttrName(re),this._unconsume()):H===i.EQUALS_SIGN?this._leaveAttrName(he):zn(H)?this.currentAttr.name+=J(H):H===i.QUOTATION_MARK||H===i.APOSTROPHE||H===i.LESS_THAN_SIGN?(this._err(r.unexpectedCharacterInAttributeName),this.currentAttr.name+=me(H)):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.name+=e.REPLACEMENT_CHARACTER):this.currentAttr.name+=me(H)}[re](H){$t(H)||(H===i.SOLIDUS?this.state=j:H===i.EQUALS_SIGN?this.state=he:H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[he](H){$t(H)||(H===i.QUOTATION_MARK?this.state=Se:H===i.APOSTROPHE?this.state=we:H===i.GREATER_THAN_SIGN?(this._err(r.missingAttributeValue),this.state=d,this._emitCurrentToken()):this._reconsumeInState(se))}[Se](H){H===i.QUOTATION_MARK?this.state=W:H===i.AMPERSAND?(this.returnState=Se,this.state=yt):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=me(H)}[we](H){H===i.APOSTROPHE?this.state=W:H===i.AMPERSAND?(this.returnState=we,this.state=yt):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=me(H)}[se](H){$t(H)?this._leaveAttrValue(Ee):H===i.AMPERSAND?(this.returnState=se,this.state=yt):H===i.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=e.REPLACEMENT_CHARACTER):H===i.QUOTATION_MARK||H===i.APOSTROPHE||H===i.LESS_THAN_SIGN||H===i.EQUALS_SIGN||H===i.GRAVE_ACCENT?(this._err(r.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=me(H)):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=me(H)}[W](H){$t(H)?this._leaveAttrValue(Ee):H===i.SOLIDUS?this._leaveAttrValue(j):H===i.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._err(r.missingWhitespaceBetweenAttributes),this._reconsumeInState(Ee))}[j](H){H===i.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._err(r.unexpectedSolidusInTag),this._reconsumeInState(Ee))}[oe](H){H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EOF?(this._emitCurrentToken(),this._emitEOFToken()):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.data+=e.REPLACEMENT_CHARACTER):this.currentToken.data+=me(H)}[_e](H){this._consumeSequenceIfMatch(o.DASH_DASH_STRING,H,!0)?(this._createCommentToken(),this.state=ye):this._consumeSequenceIfMatch(o.DOCTYPE_STRING,H,!1)?this.state=ve:this._consumeSequenceIfMatch(o.CDATA_START_STRING,H,!0)?this.allowCDATA?this.state=Ge:(this._err(r.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=oe):this._ensureHibernation()||(this._err(r.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(oe))}[ye](H){H===i.HYPHEN_MINUS?this.state=le:H===i.GREATER_THAN_SIGN?(this._err(r.abruptClosingOfEmptyComment),this.state=d,this._emitCurrentToken()):this._reconsumeInState(De)}[le](H){H===i.HYPHEN_MINUS?this.state=Te:H===i.GREATER_THAN_SIGN?(this._err(r.abruptClosingOfEmptyComment),this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(De))}[De](H){H===i.HYPHEN_MINUS?this.state=q:H===i.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Ce):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.data+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=me(H)}[Ce](H){H===i.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Oe):H===i.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(De)}[Oe](H){H===i.HYPHEN_MINUS?this.state=He:this._reconsumeInState(De)}[He](H){H===i.HYPHEN_MINUS?this.state=X:this._reconsumeInState(q)}[X](H){H!==i.GREATER_THAN_SIGN&&H!==i.EOF&&this._err(r.nestedComment),this._reconsumeInState(Te)}[q](H){H===i.HYPHEN_MINUS?this.state=Te:H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(De))}[Te](H){H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EXCLAMATION_MARK?this.state=fe:H===i.HYPHEN_MINUS?this.currentToken.data+="-":H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(De))}[fe](H){H===i.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=q):H===i.GREATER_THAN_SIGN?(this._err(r.incorrectlyClosedComment),this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(De))}[ve](H){$t(H)?this.state=Me:H===i.GREATER_THAN_SIGN?this._reconsumeInState(Me):H===i.EOF?(this._err(r.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Me))}[Me](H){$t(H)||(zn(H)?(this._createDoctypeToken(J(H)),this.state=Ie):H===i.NULL?(this._err(r.unexpectedNullCharacter),this._createDoctypeToken(e.REPLACEMENT_CHARACTER),this.state=Ie):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(me(H)),this.state=Ie))}[Ie](H){$t(H)?this.state=Fe:H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):zn(H)?this.currentToken.name+=J(H):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.name+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=me(H)}[Fe](H){$t(H)||(H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(o.PUBLIC_STRING,H,!1)?this.state=qe:this._consumeSequenceIfMatch(o.SYSTEM_STRING,H,!1)?this.state=ht:this._ensureHibernation()||(this._err(r.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[qe](H){$t(H)?this.state=ot:H===i.QUOTATION_MARK?(this._err(r.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=it):H===i.APOSTROPHE?(this._err(r.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=$e):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue))}[ot](H){$t(H)||(H===i.QUOTATION_MARK?(this.currentToken.publicId="",this.state=it):H===i.APOSTROPHE?(this.currentToken.publicId="",this.state=$e):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[it](H){H===i.QUOTATION_MARK?this.state=Ot:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.publicId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=me(H)}[$e](H){H===i.APOSTROPHE?this.state=Ot:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.publicId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=me(H)}[Ot](H){$t(H)?this.state=pt:H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.QUOTATION_MARK?(this._err(r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this._err(r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ut):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue))}[pt](H){$t(H)||(H===i.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):H===i.QUOTATION_MARK?(this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this.currentToken.systemId="",this.state=ut):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[ht](H){$t(H)?this.state=Tt:H===i.QUOTATION_MARK?(this._err(r.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this._err(r.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ut):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue))}[Tt](H){$t(H)||(H===i.QUOTATION_MARK?(this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this.currentToken.systemId="",this.state=ut):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[rt](H){H===i.QUOTATION_MARK?this.state=Qe:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.systemId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=me(H)}[ut](H){H===i.APOSTROPHE?this.state=Qe:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.systemId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=me(H)}[Qe](H){$t(H)||(H===i.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ue)))}[Ue](H){H===i.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):H===i.NULL?this._err(r.unexpectedNullCharacter):H===i.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Ge](H){H===i.RIGHT_SQUARE_BRACKET?this.state=Ve:H===i.EOF?(this._err(r.eofInCdata),this._emitEOFToken()):this._emitCodePoint(H)}[Ve](H){H===i.RIGHT_SQUARE_BRACKET?this.state=Je:(this._emitChars("]"),this._reconsumeInState(Ge))}[Je](H){H===i.GREATER_THAN_SIGN?this.state=d:H===i.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Ge))}[yt](H){this.tempBuff=[i.AMPERSAND],H===i.NUMBER_SIGN?(this.tempBuff.push(H),this.state=Bn):lo(H)?this._reconsumeInState(Rt):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rt](H){const je=this._matchNamedCharacterReference(H);if(this._ensureHibernation())this.tempBuff=[i.AMPERSAND];else if(je){const ft=this.tempBuff[this.tempBuff.length-1]===i.SEMICOLON;this._isCharacterReferenceAttributeQuirk(ft)||(ft||this._errOnNextCodePoint(r.missingSemicolonAfterCharacterReference),this.tempBuff=je),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=wn}[wn](H){lo(H)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=me(H):this._emitCodePoint(H):(H===i.SEMICOLON&&this._err(r.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Bn](H){this.charRefCode=0,H===i.LATIN_SMALL_X||H===i.LATIN_CAPITAL_X?(this.tempBuff.push(H),this.state=Xt):this._reconsumeInState($n)}[Xt](H){ne(H)?this._reconsumeInState(hr):(this._err(r.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[$n](H){oi(H)?this._reconsumeInState(lr):(this._err(r.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[hr](H){co(H)?this.charRefCode=this.charRefCode*16+H-55:Io(H)?this.charRefCode=this.charRefCode*16+H-87:oi(H)?this.charRefCode=this.charRefCode*16+H-48:H===i.SEMICOLON?this.state=$r:(this._err(r.missingSemicolonAfterCharacterReference),this._reconsumeInState($r))}[lr](H){oi(H)?this.charRefCode=this.charRefCode*10+H-48:H===i.SEMICOLON?this.state=$r:(this._err(r.missingSemicolonAfterCharacterReference),this._reconsumeInState($r))}[$r](){if(this.charRefCode===i.NULL)this._err(r.nullCharacterReference),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(r.characterReferenceOutsideUnicodeRange),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(e.isSurrogate(this.charRefCode))this._err(r.surrogateCharacterReference),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(e.isUndefinedCodePoint(this.charRefCode))this._err(r.noncharacterCharacterReference);else if(e.isControlCodePoint(this.charRefCode)||this.charRefCode===i.CARRIAGE_RETURN){this._err(r.controlCharacterReference);const H=s[this.charRefCode];H&&(this.charRefCode=H)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}return Re.CHARACTER_TOKEN="CHARACTER_TOKEN",Re.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Re.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Re.START_TAG_TOKEN="START_TAG_TOKEN",Re.END_TAG_TOKEN="END_TAG_TOKEN",Re.COMMENT_TOKEN="COMMENT_TOKEN",Re.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Re.EOF_TOKEN="EOF_TOKEN",Re.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Re.MODE={DATA:d,RCDATA:h,RAWTEXT:f,SCRIPT_DATA:m,PLAINTEXT:T},Re.getTokenAttr=function(ke,H){for(let je=ke.attrs.length-1;je>=0;je--)if(ke.attrs[je].name===H)return ke.attrs[je].value;return null},Dg=Re,Dg}var O1={},$N;function a1(){if($N)return O1;$N=1;const t=O1.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};O1.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},O1.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const e=O1.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};return O1.SPECIAL_ELEMENTS={[t.HTML]:{[e.ADDRESS]:!0,[e.APPLET]:!0,[e.AREA]:!0,[e.ARTICLE]:!0,[e.ASIDE]:!0,[e.BASE]:!0,[e.BASEFONT]:!0,[e.BGSOUND]:!0,[e.BLOCKQUOTE]:!0,[e.BODY]:!0,[e.BR]:!0,[e.BUTTON]:!0,[e.CAPTION]:!0,[e.CENTER]:!0,[e.COL]:!0,[e.COLGROUP]:!0,[e.DD]:!0,[e.DETAILS]:!0,[e.DIR]:!0,[e.DIV]:!0,[e.DL]:!0,[e.DT]:!0,[e.EMBED]:!0,[e.FIELDSET]:!0,[e.FIGCAPTION]:!0,[e.FIGURE]:!0,[e.FOOTER]:!0,[e.FORM]:!0,[e.FRAME]:!0,[e.FRAMESET]:!0,[e.H1]:!0,[e.H2]:!0,[e.H3]:!0,[e.H4]:!0,[e.H5]:!0,[e.H6]:!0,[e.HEAD]:!0,[e.HEADER]:!0,[e.HGROUP]:!0,[e.HR]:!0,[e.HTML]:!0,[e.IFRAME]:!0,[e.IMG]:!0,[e.INPUT]:!0,[e.LI]:!0,[e.LINK]:!0,[e.LISTING]:!0,[e.MAIN]:!0,[e.MARQUEE]:!0,[e.MENU]:!0,[e.META]:!0,[e.NAV]:!0,[e.NOEMBED]:!0,[e.NOFRAMES]:!0,[e.NOSCRIPT]:!0,[e.OBJECT]:!0,[e.OL]:!0,[e.P]:!0,[e.PARAM]:!0,[e.PLAINTEXT]:!0,[e.PRE]:!0,[e.SCRIPT]:!0,[e.SECTION]:!0,[e.SELECT]:!0,[e.SOURCE]:!0,[e.STYLE]:!0,[e.SUMMARY]:!0,[e.TABLE]:!0,[e.TBODY]:!0,[e.TD]:!0,[e.TEMPLATE]:!0,[e.TEXTAREA]:!0,[e.TFOOT]:!0,[e.TH]:!0,[e.THEAD]:!0,[e.TITLE]:!0,[e.TR]:!0,[e.TRACK]:!0,[e.UL]:!0,[e.WBR]:!0,[e.XMP]:!0},[t.MATHML]:{[e.MI]:!0,[e.MO]:!0,[e.MN]:!0,[e.MS]:!0,[e.MTEXT]:!0,[e.ANNOTATION_XML]:!0},[t.SVG]:{[e.TITLE]:!0,[e.FOREIGN_OBJECT]:!0,[e.DESC]:!0}},O1}var Ig,UN;function zPn(){if(UN)return Ig;UN=1;const t=a1(),e=t.TAG_NAMES,n=t.NAMESPACES;function r(a){switch(a.length){case 1:return a===e.P;case 2:return a===e.RB||a===e.RP||a===e.RT||a===e.DD||a===e.DT||a===e.LI;case 3:return a===e.RTC;case 6:return a===e.OPTION;case 8:return a===e.OPTGROUP}return!1}function i(a){switch(a.length){case 1:return a===e.P;case 2:return a===e.RB||a===e.RP||a===e.RT||a===e.DD||a===e.DT||a===e.LI||a===e.TD||a===e.TH||a===e.TR;case 3:return a===e.RTC;case 5:return a===e.TBODY||a===e.TFOOT||a===e.THEAD;case 6:return a===e.OPTION;case 7:return a===e.CAPTION;case 8:return a===e.OPTGROUP||a===e.COLGROUP}return!1}function o(a,l){switch(a.length){case 2:if(a===e.TD||a===e.TH)return l===n.HTML;if(a===e.MI||a===e.MO||a===e.MN||a===e.MS)return l===n.MATHML;break;case 4:if(a===e.HTML)return l===n.HTML;if(a===e.DESC)return l===n.SVG;break;case 5:if(a===e.TABLE)return l===n.HTML;if(a===e.MTEXT)return l===n.MATHML;if(a===e.TITLE)return l===n.SVG;break;case 6:return(a===e.APPLET||a===e.OBJECT)&&l===n.HTML;case 7:return(a===e.CAPTION||a===e.MARQUEE)&&l===n.HTML;case 8:return a===e.TEMPLATE&&l===n.HTML;case 13:return a===e.FOREIGN_OBJECT&&l===n.SVG;case 14:return a===e.ANNOTATION_XML&&l===n.MATHML}return!1}class s{constructor(l,c){this.stackTop=-1,this.items=[],this.current=l,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=c}_indexOf(l){let c=-1;for(let u=this.stackTop;u>=0;u--)if(this.items[u]===l){c=u;break}return c}_isInTemplate(){return this.currentTagName===e.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===n.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(l){this.items[++this.stackTop]=l,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(l,c){const u=this._indexOf(l);this.items[u]=c,u===this.stackTop&&this._updateCurrentElement()}insertAfter(l,c){const u=this._indexOf(l)+1;this.items.splice(u,0,c),u===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(l){for(;this.stackTop>-1;){const c=this.currentTagName,u=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),c===l&&u===n.HTML)break}}popUntilElementPopped(l){for(;this.stackTop>-1;){const c=this.current;if(this.pop(),c===l)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const l=this.currentTagName,c=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),l===e.H1||l===e.H2||l===e.H3||l===e.H4||l===e.H5||l===e.H6&&c===n.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const l=this.currentTagName,c=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),l===e.TD||l===e.TH&&c===n.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==e.TABLE&&this.currentTagName!==e.TEMPLATE&&this.currentTagName!==e.HTML||this.treeAdapter.getNamespaceURI(this.current)!==n.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==e.TBODY&&this.currentTagName!==e.TFOOT&&this.currentTagName!==e.THEAD&&this.currentTagName!==e.TEMPLATE&&this.currentTagName!==e.HTML||this.treeAdapter.getNamespaceURI(this.current)!==n.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==e.TR&&this.currentTagName!==e.TEMPLATE&&this.currentTagName!==e.HTML||this.treeAdapter.getNamespaceURI(this.current)!==n.HTML;)this.pop()}remove(l){for(let c=this.stackTop;c>=0;c--)if(this.items[c]===l){this.items.splice(c,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const l=this.items[1];return l&&this.treeAdapter.getTagName(l)===e.BODY?l:null}contains(l){return this._indexOf(l)>-1}getCommonAncestor(l){let c=this._indexOf(l);return--c>=0?this.items[c]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===e.HTML}hasInScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]),d=this.treeAdapter.getNamespaceURI(this.items[c]);if(u===l&&d===n.HTML)return!0;if(o(u,d))return!1}return!0}hasNumberedHeaderInScope(){for(let l=this.stackTop;l>=0;l--){const c=this.treeAdapter.getTagName(this.items[l]),u=this.treeAdapter.getNamespaceURI(this.items[l]);if((c===e.H1||c===e.H2||c===e.H3||c===e.H4||c===e.H5||c===e.H6)&&u===n.HTML)return!0;if(o(c,u))return!1}return!0}hasInListItemScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]),d=this.treeAdapter.getNamespaceURI(this.items[c]);if(u===l&&d===n.HTML)return!0;if((u===e.UL||u===e.OL)&&d===n.HTML||o(u,d))return!1}return!0}hasInButtonScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]),d=this.treeAdapter.getNamespaceURI(this.items[c]);if(u===l&&d===n.HTML)return!0;if(u===e.BUTTON&&d===n.HTML||o(u,d))return!1}return!0}hasInTableScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]);if(this.treeAdapter.getNamespaceURI(this.items[c])===n.HTML){if(u===l)return!0;if(u===e.TABLE||u===e.TEMPLATE||u===e.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let l=this.stackTop;l>=0;l--){const c=this.treeAdapter.getTagName(this.items[l]);if(this.treeAdapter.getNamespaceURI(this.items[l])===n.HTML){if(c===e.TBODY||c===e.THEAD||c===e.TFOOT)return!0;if(c===e.TABLE||c===e.HTML)return!1}}return!0}hasInSelectScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]);if(this.treeAdapter.getNamespaceURI(this.items[c])===n.HTML){if(u===l)return!0;if(u!==e.OPTION&&u!==e.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;r(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;i(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(l){for(;r(this.currentTagName)&&this.currentTagName!==l;)this.pop()}}return Ig=s,Ig}var kg,GN;function jPn(){if(GN)return kg;GN=1;const t=3;class e{constructor(r){this.length=0,this.entries=[],this.treeAdapter=r,this.bookmark=null}_getNoahArkConditionCandidates(r){const i=[];if(this.length>=t){const o=this.treeAdapter.getAttrList(r).length,s=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);for(let l=this.length-1;l>=0;l--){const c=this.entries[l];if(c.type===e.MARKER_ENTRY)break;const u=c.element,d=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===s&&this.treeAdapter.getNamespaceURI(u)===a&&d.length===o&&i.push({idx:l,attrs:d})}}return i.length=t-1;c--)this.entries.splice(i[c].idx,1),this.length--}}insertMarker(){this.entries.push({type:e.MARKER_ENTRY}),this.length++}pushElement(r,i){this._ensureNoahArkCondition(r),this.entries.push({type:e.ELEMENT_ENTRY,element:r,token:i}),this.length++}insertElementAfterBookmark(r,i){let o=this.length-1;for(;o>=0&&this.entries[o]!==this.bookmark;o--);this.entries.splice(o+1,0,{type:e.ELEMENT_ENTRY,element:r,token:i}),this.length++}removeEntry(r){for(let i=this.length-1;i>=0;i--)if(this.entries[i]===r){this.entries.splice(i,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const r=this.entries.pop();if(this.length--,r.type===e.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(r){for(let i=this.length-1;i>=0;i--){const o=this.entries[i];if(o.type===e.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(o.element)===r)return o}return null}getElementEntry(r){for(let i=this.length-1;i>=0;i--){const o=this.entries[i];if(o.type===e.ELEMENT_ENTRY&&o.element===r)return o}return null}}return e.MARKER_ENTRY="MARKER_ENTRY",e.ELEMENT_ENTRY="ELEMENT_ENTRY",kg=e,kg}var Pg,qN;function oa(){if(qN)return Pg;qN=1;class t{constructor(n){const r={},i=this._getOverriddenMethods(this,r);for(const o of Object.keys(i))typeof i[o]=="function"&&(r[o]=n[o],n[o]=i[o])}_getOverriddenMethods(){throw new Error("Not implemented")}}return t.install=function(e,n,r){e.__mixins||(e.__mixins=[]);for(let o=0;o="a"&&K<="z"||K>="A"&&K<="Z"}function a(K,$,ce){var Ee=K.toLowerCase();return K===Ee?function(z,re){re===Ee?z._state=$:(z._state=ce,z._index--)}:function(z,re){re===Ee||re===K?z._state=$:(z._state=ce,z._index--)}}function l(K,$){var ce=K.toLowerCase();return function(Ee,z){z===ce||z===K?Ee._state=$:(Ee._state=3,Ee._index--)}}var c=a("C",24,16),u=a("D",25,16),d=a("A",26,16),h=a("T",27,16),f=a("A",28,16),m=l("R",35),T=l("I",36),Q=l("P",37),_=l("T",38),v=a("R",40,1),y=a("I",41,1),b=a("P",42,1),E=a("T",43,1),x=l("Y",45),L=l("L",46),M=l("E",47),C=a("Y",49,1),A=a("L",50,1),I=a("E",51,1),N=l("I",54),V=l("T",55),R=l("L",56),B=l("E",57),F=a("I",58,1),U=a("T",59,1),G=a("L",60,1),Z=a("E",61,1),Y=a("#",63,64),ee=a("X",66,65),pe=function(){function K($,ce){var Ee;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=ce,this.xmlMode=!!($!=null&&$.xmlMode),this.decodeEntities=(Ee=$==null?void 0:$.decodeEntities)!==null&&Ee!==void 0?Ee:!0}return K.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},K.prototype.write=function($){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=$,this.parse()},K.prototype.end=function($){this.ended&&this.cbs.onerror(Error(".end() after done!")),$&&this.write($),this.ended=!0,this.running&&this.finish()},K.prototype.pause=function(){this.running=!1},K.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&$==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},K.prototype.isTagStartChar=function($){return s($)||this.xmlMode&&!o($)&&$!=="/"&&$!==">"},K.prototype.stateBeforeTagName=function($){$==="/"?this._state=5:$==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):$===">"||this.special!==1||o($)?this._state=1:$==="!"?(this._state=15,this.sectionStart=this._index+1):$==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar($)?(this._state=!this.xmlMode&&($==="s"||$==="S")?32:!this.xmlMode&&($==="t"||$==="T")?52:3,this.sectionStart=this._index):this._state=1},K.prototype.stateInTagName=function($){($==="/"||$===">"||o($))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},K.prototype.stateBeforeClosingTagName=function($){o($)||($===">"?this._state=1:this.special!==1?this.special!==4&&($==="s"||$==="S")?this._state=33:this.special===4&&($==="t"||$==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar($)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},K.prototype.stateInClosingTagName=function($){($===">"||o($))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},K.prototype.stateAfterClosingTagName=function($){$===">"&&(this._state=1,this.sectionStart=this._index+1)},K.prototype.stateBeforeAttributeName=function($){$===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):$==="/"?this._state=4:o($)||(this._state=9,this.sectionStart=this._index)},K.prototype.stateInSelfClosingTag=function($){$===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):o($)||(this._state=8,this._index--)},K.prototype.stateInAttributeName=function($){($==="="||$==="/"||$===">"||o($))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},K.prototype.stateAfterAttributeName=function($){$==="="?this._state=11:$==="/"||$===">"?(this.cbs.onattribend(void 0),this._state=8,this._index--):o($)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},K.prototype.stateBeforeAttributeValue=function($){$==='"'?(this._state=12,this.sectionStart=this._index+1):$==="'"?(this._state=13,this.sectionStart=this._index+1):o($)||(this._state=14,this.sectionStart=this._index,this._index--)},K.prototype.handleInAttributeValue=function($,ce){$===ce?(this.emitToken("onattribdata"),this.cbs.onattribend(ce),this._state=8):this.decodeEntities&&$==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},K.prototype.stateInAttributeValueDoubleQuotes=function($){this.handleInAttributeValue($,'"')},K.prototype.stateInAttributeValueSingleQuotes=function($){this.handleInAttributeValue($,"'")},K.prototype.stateInAttributeValueNoQuotes=function($){o($)||$===">"?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&$==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},K.prototype.stateBeforeDeclaration=function($){this._state=$==="["?23:$==="-"?18:16},K.prototype.stateInDeclaration=function($){$===">"&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},K.prototype.stateInProcessingInstruction=function($){$===">"&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},K.prototype.stateBeforeComment=function($){$==="-"?(this._state=19,this.sectionStart=this._index+1):this._state=16},K.prototype.stateInComment=function($){$==="-"&&(this._state=21)},K.prototype.stateInSpecialComment=function($){$===">"&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},K.prototype.stateAfterComment1=function($){$==="-"?this._state=22:this._state=19},K.prototype.stateAfterComment2=function($){$===">"?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):$!=="-"&&(this._state=19)},K.prototype.stateBeforeCdata6=function($){$==="["?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},K.prototype.stateInCdata=function($){$==="]"&&(this._state=30)},K.prototype.stateAfterCdata1=function($){$==="]"?this._state=31:this._state=29},K.prototype.stateAfterCdata2=function($){$===">"?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):$!=="]"&&(this._state=29)},K.prototype.stateBeforeSpecialS=function($){$==="c"||$==="C"?this._state=34:$==="t"||$==="T"?this._state=44:(this._state=3,this._index--)},K.prototype.stateBeforeSpecialSEnd=function($){this.special===2&&($==="c"||$==="C")?this._state=39:this.special===3&&($==="t"||$==="T")?this._state=48:this._state=1},K.prototype.stateBeforeSpecialLast=function($,ce){($==="/"||$===">"||o($))&&(this.special=ce),this._state=3,this._index--},K.prototype.stateAfterSpecialLast=function($,ce){$===">"||o($)?(this.special=1,this._state=6,this.sectionStart=this._index-ce,this._index--):this._state=1},K.prototype.parseFixedEntity=function($){if($===void 0&&($=this.xmlMode?i.default:n.default),this.sectionStart+1=2;){var Ee=this.buffer.substr($,ce);if(Object.prototype.hasOwnProperty.call(r.default,Ee)){this.emitPartial(r.default[Ee]),this.sectionStart+=ce+1;return}ce--}},K.prototype.stateInNamedEntity=function($){$===";"?(this.parseFixedEntity(),this.baseState===1&&this.sectionStart+1"9")&&!s($)&&(this.xmlMode||this.sectionStart+1===this._index||(this.baseState!==1?$!=="="&&this.parseFixedEntity(r.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},K.prototype.decodeNumericEntity=function($,ce,Ee){var z=this.sectionStart+$;if(z!==this._index){var re=this.buffer.substring(z,this._index),he=parseInt(re,ce);this.emitPartial(e.default(he)),this.sectionStart=Ee?this._index+1:this._index}this._state=this.baseState},K.prototype.stateInNumericEntity=function($){$===";"?this.decodeNumericEntity(2,10,!0):($<"0"||$>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},K.prototype.stateInHexEntity=function($){$===";"?this.decodeNumericEntity(3,16,!0):($<"a"||$>"f")&&($<"A"||$>"F")&&($<"0"||$>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},K.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(this._state===1?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},K.prototype.parse=function(){for(;this._index0&&i[d].has(m=this.stack[this.stack.length-1]);)this.onclosetag(m);(this.options.xmlMode||!o.has(d))&&(this.stack.push(d),s.has(d)?this.foreignContext.push(!0):a.has(d)&&this.foreignContext.push(!1)),(f=(h=this.cbs).onopentagname)===null||f===void 0||f.call(h,d),this.cbs.onopentag&&(this.attribs={})},u.prototype.onopentagend=function(){var d,h;this.updatePosition(1),this.attribs&&((h=(d=this.cbs).onopentag)===null||h===void 0||h.call(d,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&o.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},u.prototype.onclosetag=function(d){if(this.updatePosition(1),this.lowerCaseTagNames&&(d=d.toLowerCase()),(s.has(d)||a.has(d))&&this.foreignContext.pop(),this.stack.length&&(this.options.xmlMode||!o.has(d))){var h=this.stack.lastIndexOf(d);if(h!==-1)if(this.cbs.onclosetag)for(h=this.stack.length-h;h--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=h;else d==="p"&&!this.options.xmlMode&&(this.onopentagname(d),this.closeCurrentTag())}else!this.options.xmlMode&&(d==="br"||d==="p")&&(this.onopentagname(d),this.closeCurrentTag())},u.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},u.prototype.closeCurrentTag=function(){var d,h,f=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===f&&((h=(d=this.cbs).onclosetag)===null||h===void 0||h.call(d,f),this.stack.pop())},u.prototype.onattribname=function(d){this.lowerCaseAttributeNames&&(d=d.toLowerCase()),this.attribname=d},u.prototype.onattribdata=function(d){this.attribvalue+=d},u.prototype.onattribend=function(d){var h,f;(f=(h=this.cbs).onattribute)===null||f===void 0||f.call(h,this.attribname,this.attribvalue,d),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},u.prototype.getInstructionName=function(d){var h=d.search(l),f=h<0?d:d.substr(0,h);return this.lowerCaseTagNames&&(f=f.toLowerCase()),f},u.prototype.ondeclaration=function(d){if(this.cbs.onprocessinginstruction){var h=this.getInstructionName(d);this.cbs.onprocessinginstruction("!"+h,"!"+d)}},u.prototype.onprocessinginstruction=function(d){if(this.cbs.onprocessinginstruction){var h=this.getInstructionName(d);this.cbs.onprocessinginstruction("?"+h,"?"+d)}},u.prototype.oncomment=function(d){var h,f,m,T;this.updatePosition(4),(f=(h=this.cbs).oncomment)===null||f===void 0||f.call(h,d),(T=(m=this.cbs).oncommentend)===null||T===void 0||T.call(m)},u.prototype.oncdata=function(d){var h,f,m,T,Q,_;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?((f=(h=this.cbs).oncdatastart)===null||f===void 0||f.call(h),(T=(m=this.cbs).ontext)===null||T===void 0||T.call(m,d),(_=(Q=this.cbs).oncdataend)===null||_===void 0||_.call(Q)):this.oncomment("[CDATA["+d+"]]")},u.prototype.onerror=function(d){var h,f;(f=(h=this.cbs).onerror)===null||f===void 0||f.call(h,d)},u.prototype.onend=function(){var d,h;if(this.cbs.onclosetag)for(var f=this.stack.length;f>0;this.cbs.onclosetag(this.stack[--f]));(h=(d=this.cbs).onend)===null||h===void 0||h.call(d)},u.prototype.reset=function(){var d,h,f,m;(h=(d=this.cbs).onreset)===null||h===void 0||h.call(d),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],(m=(f=this.cbs).onparserinit)===null||m===void 0||m.call(f,this)},u.prototype.parseComplete=function(d){this.reset(),this.end(d)},u.prototype.write=function(d){this.tokenizer.write(d)},u.prototype.end=function(d){this.tokenizer.end(d)},u.prototype.pause=function(){this.tokenizer.pause()},u.prototype.resume=function(){this.tokenizer.resume()},u.prototype.parseChunk=function(d){this.write(d)},u.prototype.done=function(d){this.end(d)},u}();return c4.Parser=c,c4}var w1={},DN;function IN(){if(DN)return w1;DN=1;var t=S&&S.__extends||function(){var y=function(b,E){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,L){x.__proto__=L}||function(x,L){for(var M in L)Object.prototype.hasOwnProperty.call(L,M)&&(x[M]=L[M])},y(b,E)};return function(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");y(b,E);function x(){this.constructor=b}b.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),e=S&&S.__createBinding||(Object.create?function(y,b,E,x){x===void 0&&(x=E),Object.defineProperty(y,x,{enumerable:!0,get:function(){return b[E]}})}:function(y,b,E,x){x===void 0&&(x=E),y[x]=b[E]}),n=S&&S.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),r=S&&S.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&e(b,y,E);return n(b,y),b},i=S&&S.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(w1,"__esModule",{value:!0}),w1.parseFeed=w1.FeedHandler=void 0;var o=i(_i()),s=r(w9()),a=V$(),l;(function(y){y[y.image=0]="image",y[y.audio=1]="audio",y[y.video=2]="video",y[y.document=3]="document",y[y.executable=4]="executable"})(l||(l={}));var c;(function(y){y[y.sample=0]="sample",y[y.full=1]="full",y[y.nonstop=2]="nonstop"})(c||(c={}));var u=function(y){t(b,y);function b(E,x){var L=this;return typeof E=="object"&&(E=void 0,x=E),L=y.call(this,E,x)||this,L}return b.prototype.onend=function(){var E,x,L=f(_,this.dom);if(!L){this.handleCallback(new Error("couldn't find root of feed"));return}var M={};if(L.name==="feed"){var C=L.children;M.type="atom",Q(M,"id","id",C),Q(M,"title","title",C);var A=T("href",f("link",C));A&&(M.link=A),Q(M,"description","subtitle",C);var I=m("updated",C);I&&(M.updated=new Date(I)),Q(M,"author","email",C,!0),M.items=h("entry",C).map(function(N){var V={},R=N.children;Q(V,"id","id",R),Q(V,"title","title",R);var B=T("href",f("link",R));B&&(V.link=B);var F=m("summary",R)||m("content",R);F&&(V.description=F);var U=m("updated",R);return U&&(V.pubDate=new Date(U)),V.media=d(R),V})}else{var C=(x=(E=f("channel",L.children))===null||E===void 0?void 0:E.children)!==null&&x!==void 0?x:[];M.type=L.name.substr(0,3),M.id="",Q(M,"title","title",C),Q(M,"link","link",C),Q(M,"description","description",C);var I=m("lastBuildDate",C);I&&(M.updated=new Date(I)),Q(M,"author","managingEditor",C,!0),M.items=h("item",L.children).map(function(R){var B={},F=R.children;Q(B,"id","guid",F),Q(B,"title","title",F),Q(B,"link","link",F),Q(B,"description","description",F);var U=m("pubDate",F);return U&&(B.pubDate=new Date(U)),B.media=d(F),B})}this.feed=M,this.handleCallback(null)},b}(o.default);w1.FeedHandler=u;function d(y){return h("media:content",y).map(function(b){var E={medium:b.attribs.medium,isDefault:!!b.attribs.isDefault};return b.attribs.url&&(E.url=b.attribs.url),b.attribs.fileSize&&(E.fileSize=parseInt(b.attribs.fileSize,10)),b.attribs.type&&(E.type=b.attribs.type),b.attribs.expression&&(E.expression=b.attribs.expression),b.attribs.bitrate&&(E.bitrate=parseInt(b.attribs.bitrate,10)),b.attribs.framerate&&(E.framerate=parseInt(b.attribs.framerate,10)),b.attribs.samplingrate&&(E.samplingrate=parseInt(b.attribs.samplingrate,10)),b.attribs.channels&&(E.channels=parseInt(b.attribs.channels,10)),b.attribs.duration&&(E.duration=parseInt(b.attribs.duration,10)),b.attribs.height&&(E.height=parseInt(b.attribs.height,10)),b.attribs.width&&(E.width=parseInt(b.attribs.width,10)),b.attribs.lang&&(E.lang=b.attribs.lang),E})}function h(y,b){return s.getElementsByTagName(y,b,!0)}function f(y,b){return s.getElementsByTagName(y,b,!0,1)[0]}function m(y,b,E){return E===void 0&&(E=!1),s.getText(s.getElementsByTagName(y,b,E,1)).trim()}function T(y,b){if(!b)return null;var E=b.attribs;return E[y]}function Q(y,b,E,x,L){L===void 0&&(L=!1);var M=m(E,x,L);M&&(y[b]=M)}function _(y){return y==="rss"||y==="feed"||y==="rdf:RDF"}function v(y,b){b===void 0&&(b={xmlMode:!0});var E=new u(b);return new a.Parser(E,b).end(y),E.feed}return w1.parseFeed=v,w1}var kN;function Kc(){return kN||(kN=1,function(t){var e=S&&S.__createBinding||(Object.create?function(m,T,Q,_){_===void 0&&(_=Q),Object.defineProperty(m,_,{enumerable:!0,get:function(){return T[Q]}})}:function(m,T,Q,_){_===void 0&&(_=Q),m[_]=T[Q]}),n=S&&S.__setModuleDefault||(Object.create?function(m,T){Object.defineProperty(m,"default",{enumerable:!0,value:T})}:function(m,T){m.default=T}),r=S&&S.__importStar||function(m){if(m&&m.__esModule)return m;var T={};if(m!=null)for(var Q in m)Q!=="default"&&Object.prototype.hasOwnProperty.call(m,Q)&&e(T,m,Q);return n(T,m),T},i=S&&S.__exportStar||function(m,T){for(var Q in m)Q!=="default"&&!Object.prototype.hasOwnProperty.call(T,Q)&&e(T,m,Q)},o=S&&S.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var s=V$();Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return s.Parser}});var a=_i();Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}});function l(m,T){var Q=new a.DomHandler(void 0,T);return new s.Parser(Q,T).end(m),Q.root}t.parseDocument=l;function c(m,T){return l(m,T).children}t.parseDOM=c;function u(m,T,Q){var _=new a.DomHandler(m,T,Q);return new s.Parser(_,T)}t.createDomStream=u;var d=H$();Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(d).default}});var h=r(u6());t.ElementType=h,i(IN(),t),t.DomUtils=r(w9());var f=IN();Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return f.FeedHandler}})}(Mg)),Mg}var M1={},u4={},Fo={},PN;function Mb(){if(PN)return Fo;PN=1;const t=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];return Fo.REPLACEMENT_CHARACTER="�",Fo.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},Fo.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},Fo.isSurrogate=function(e){return e>=55296&&e<=57343},Fo.isSurrogatePair=function(e){return e>=56320&&e<=57343},Fo.getSurrogatePairCodePoint=function(e,n){return(e-55296)*1024+9216+n},Fo.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159},Fo.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||t.indexOf(e)>-1},Fo}var Og,HN;function Ob(){return HN||(HN=1,Og={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}),Og}var Rg,VN;function GPn(){if(VN)return Rg;VN=1;const t=Mb(),e=Ob(),n=t.CODE_POINTS,r=65536;class i{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=r}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(s){if(this.pos!==this.lastCharPos){const a=this.html.charCodeAt(this.pos+1);if(t.isSurrogatePair(a))return this.pos++,this._addGap(),t.getSurrogatePairCodePoint(s,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(e.surrogateInInputStream),s}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(s,a){this.html?this.html+=s:this.html=s,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(s){this.html=this.html.substring(0,this.pos+1)+s+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let s=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&s===n.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):s===n.CARRIAGE_RETURN?(this.skipNextNewLine=!0,n.LINE_FEED):(this.skipNextNewLine=!1,t.isSurrogate(s)&&(s=this._processSurrogate(s)),s>31&&s<127||s===n.LINE_FEED||s===n.CARRIAGE_RETURN||s>159&&s<64976||this._checkForProblematicCharacters(s),s)}_checkForProblematicCharacters(s){t.isControlCodePoint(s)?this._err(e.controlCharacterInInputStream):t.isUndefinedCodePoint(s)&&this._err(e.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}return Rg=i,Rg}var Ng,FN;function qPn(){return FN||(FN=1,Ng=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])),Ng}var Dg,BN;function M9(){if(BN)return Dg;BN=1;const t=GPn(),e=Mb(),n=qPn(),r=Ob(),i=e.CODE_POINTS,o=e.CODE_POINT_SEQUENCES,s={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},a=1,l=2,c=4,u=a|l|c,d="DATA_STATE",h="RCDATA_STATE",f="RAWTEXT_STATE",m="SCRIPT_DATA_STATE",T="PLAINTEXT_STATE",Q="TAG_OPEN_STATE",_="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",E="RCDATA_END_TAG_NAME_STATE",x="RAWTEXT_LESS_THAN_SIGN_STATE",L="RAWTEXT_END_TAG_OPEN_STATE",M="RAWTEXT_END_TAG_NAME_STATE",C="SCRIPT_DATA_LESS_THAN_SIGN_STATE",A="SCRIPT_DATA_END_TAG_OPEN_STATE",I="SCRIPT_DATA_END_TAG_NAME_STATE",N="SCRIPT_DATA_ESCAPE_START_STATE",V="SCRIPT_DATA_ESCAPE_START_DASH_STATE",R="SCRIPT_DATA_ESCAPED_STATE",B="SCRIPT_DATA_ESCAPED_DASH_STATE",F="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",U="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",G="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Z="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Y="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",ee="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",pe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",K="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",$="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",ce="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Ee="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",re="AFTER_ATTRIBUTE_NAME_STATE",he="BEFORE_ATTRIBUTE_VALUE_STATE",Se="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",we="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",se="ATTRIBUTE_VALUE_UNQUOTED_STATE",W="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",j="SELF_CLOSING_START_TAG_STATE",oe="BOGUS_COMMENT_STATE",_e="MARKUP_DECLARATION_OPEN_STATE",ye="COMMENT_START_STATE",le="COMMENT_START_DASH_STATE",De="COMMENT_STATE",Ce="COMMENT_LESS_THAN_SIGN_STATE",Oe="COMMENT_LESS_THAN_SIGN_BANG_STATE",He="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",X="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",q="COMMENT_END_DASH_STATE",Te="COMMENT_END_STATE",fe="COMMENT_END_BANG_STATE",ve="DOCTYPE_STATE",Me="BEFORE_DOCTYPE_NAME_STATE",Ie="DOCTYPE_NAME_STATE",Fe="AFTER_DOCTYPE_NAME_STATE",qe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",ot="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",it="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",$e="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Ot="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",pt="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ht="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Tt="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",rt="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ut="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Qe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ue="BOGUS_DOCTYPE_STATE",Ge="CDATA_SECTION_STATE",Ve="CDATA_SECTION_BRACKET_STATE",Je="CDATA_SECTION_END_STATE",yt="CHARACTER_REFERENCE_STATE",Rt="NAMED_CHARACTER_REFERENCE_STATE",wn="AMBIGUOS_AMPERSAND_STATE",Bn="NUMERIC_CHARACTER_REFERENCE_STATE",Xt="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",$n="DECIMAL_CHARACTER_REFERENCE_START_STATE",hr="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lr="DECIMAL_CHARACTER_REFERENCE_STATE",$r="NUMERIC_CHARACTER_REFERENCE_END_STATE";function $t(ke){return ke===i.SPACE||ke===i.LINE_FEED||ke===i.TABULATION||ke===i.FORM_FEED}function oi(ke){return ke>=i.DIGIT_0&&ke<=i.DIGIT_9}function zn(ke){return ke>=i.LATIN_CAPITAL_A&&ke<=i.LATIN_CAPITAL_Z}function Mr(ke){return ke>=i.LATIN_SMALL_A&&ke<=i.LATIN_SMALL_Z}function _n(ke){return Mr(ke)||zn(ke)}function lo(ke){return _n(ke)||oi(ke)}function co(ke){return ke>=i.LATIN_CAPITAL_A&&ke<=i.LATIN_CAPITAL_F}function Io(ke){return ke>=i.LATIN_SMALL_A&&ke<=i.LATIN_SMALL_F}function ne(ke){return oi(ke)||co(ke)||Io(ke)}function Ae(ke){return ke+32}function me(ke){return ke<=65535?String.fromCharCode(ke):(ke-=65536,String.fromCharCode(ke>>>10&1023|55296)+String.fromCharCode(56320|ke&1023))}function J(ke){return String.fromCharCode(Ae(ke))}function de(ke,H){const je=n[++ke];let ft=++ke,dt=ft+je-1;for(;ft<=dt;){const mt=ft+dt>>>1,bt=n[mt];if(btH)dt=mt-1;else return n[mt+je]}return-1}class Re{constructor(){this.preprocessor=new t,this.tokenQueue=[],this.allowCDATA=!1,this.state=d,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(H){this._consume(),this._err(H),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const H=this._consume();this._ensureHibernation()||this[this.state](H)}return this.tokenQueue.shift()}write(H,je){this.active=!0,this.preprocessor.write(H,je)}insertHtmlAtCurrentPos(H){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(H)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Re.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(H){this.state=H,this._unconsume()}_consumeSequenceIfMatch(H,je,ft){let dt=0,mt=!0;const bt=H.length;let qt=0,sn=je,Or;for(;qt0&&(sn=this._consume(),dt++),sn===i.EOF){mt=!1;break}if(Or=H[qt],sn!==Or&&(ft||sn!==Ae(Or))){mt=!1;break}}if(!mt)for(;dt--;)this._unconsume();return mt}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==o.SCRIPT_STRING.length)return!1;for(let H=0;H0&&this._err(r.endTagWithAttributes),H.selfClosing&&this._err(r.endTagWithTrailingSolidus)),this.tokenQueue.push(H)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(H,je){this.currentCharacterToken&&this.currentCharacterToken.type!==H&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=je:this._createCharacterToken(H,je)}_emitCodePoint(H){let je=Re.CHARACTER_TOKEN;$t(H)?je=Re.WHITESPACE_CHARACTER_TOKEN:H===i.NULL&&(je=Re.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(je,me(H))}_emitSeveralCodePoints(H){for(let je=0;je-1;){const mt=n[dt],bt=mt")):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.state=R,this._emitChars(e.REPLACEMENT_CHARACTER)):H===i.EOF?(this._err(r.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=R,this._emitCodePoint(H))}[U](H){H===i.SOLIDUS?(this.tempBuff=[],this.state=G):_n(H)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Y)):(this._emitChars("<"),this._reconsumeInState(R))}[G](H){_n(H)?(this._createEndTagToken(),this._reconsumeInState(Z)):(this._emitChars("")):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.state=ee,this._emitChars(e.REPLACEMENT_CHARACTER)):H===i.EOF?(this._err(r.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ee,this._emitCodePoint(H))}[$](H){H===i.SOLIDUS?(this.tempBuff=[],this.state=ce,this._emitChars("/")):this._reconsumeInState(ee)}[ce](H){$t(H)||H===i.SOLIDUS||H===i.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?R:ee,this._emitCodePoint(H)):zn(H)?(this.tempBuff.push(Ae(H)),this._emitCodePoint(H)):Mr(H)?(this.tempBuff.push(H),this._emitCodePoint(H)):this._reconsumeInState(ee)}[Ee](H){$t(H)||(H===i.SOLIDUS||H===i.GREATER_THAN_SIGN||H===i.EOF?this._reconsumeInState(re):H===i.EQUALS_SIGN?(this._err(r.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](H){$t(H)||H===i.SOLIDUS||H===i.GREATER_THAN_SIGN||H===i.EOF?(this._leaveAttrName(re),this._unconsume()):H===i.EQUALS_SIGN?this._leaveAttrName(he):zn(H)?this.currentAttr.name+=J(H):H===i.QUOTATION_MARK||H===i.APOSTROPHE||H===i.LESS_THAN_SIGN?(this._err(r.unexpectedCharacterInAttributeName),this.currentAttr.name+=me(H)):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.name+=e.REPLACEMENT_CHARACTER):this.currentAttr.name+=me(H)}[re](H){$t(H)||(H===i.SOLIDUS?this.state=j:H===i.EQUALS_SIGN?this.state=he:H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[he](H){$t(H)||(H===i.QUOTATION_MARK?this.state=Se:H===i.APOSTROPHE?this.state=we:H===i.GREATER_THAN_SIGN?(this._err(r.missingAttributeValue),this.state=d,this._emitCurrentToken()):this._reconsumeInState(se))}[Se](H){H===i.QUOTATION_MARK?this.state=W:H===i.AMPERSAND?(this.returnState=Se,this.state=yt):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=me(H)}[we](H){H===i.APOSTROPHE?this.state=W:H===i.AMPERSAND?(this.returnState=we,this.state=yt):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=me(H)}[se](H){$t(H)?this._leaveAttrValue(Ee):H===i.AMPERSAND?(this.returnState=se,this.state=yt):H===i.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=e.REPLACEMENT_CHARACTER):H===i.QUOTATION_MARK||H===i.APOSTROPHE||H===i.LESS_THAN_SIGN||H===i.EQUALS_SIGN||H===i.GRAVE_ACCENT?(this._err(r.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=me(H)):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=me(H)}[W](H){$t(H)?this._leaveAttrValue(Ee):H===i.SOLIDUS?this._leaveAttrValue(j):H===i.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._err(r.missingWhitespaceBetweenAttributes),this._reconsumeInState(Ee))}[j](H){H===i.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._err(r.unexpectedSolidusInTag),this._reconsumeInState(Ee))}[oe](H){H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EOF?(this._emitCurrentToken(),this._emitEOFToken()):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.data+=e.REPLACEMENT_CHARACTER):this.currentToken.data+=me(H)}[_e](H){this._consumeSequenceIfMatch(o.DASH_DASH_STRING,H,!0)?(this._createCommentToken(),this.state=ye):this._consumeSequenceIfMatch(o.DOCTYPE_STRING,H,!1)?this.state=ve:this._consumeSequenceIfMatch(o.CDATA_START_STRING,H,!0)?this.allowCDATA?this.state=Ge:(this._err(r.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=oe):this._ensureHibernation()||(this._err(r.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(oe))}[ye](H){H===i.HYPHEN_MINUS?this.state=le:H===i.GREATER_THAN_SIGN?(this._err(r.abruptClosingOfEmptyComment),this.state=d,this._emitCurrentToken()):this._reconsumeInState(De)}[le](H){H===i.HYPHEN_MINUS?this.state=Te:H===i.GREATER_THAN_SIGN?(this._err(r.abruptClosingOfEmptyComment),this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(De))}[De](H){H===i.HYPHEN_MINUS?this.state=q:H===i.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Ce):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.data+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=me(H)}[Ce](H){H===i.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Oe):H===i.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(De)}[Oe](H){H===i.HYPHEN_MINUS?this.state=He:this._reconsumeInState(De)}[He](H){H===i.HYPHEN_MINUS?this.state=X:this._reconsumeInState(q)}[X](H){H!==i.GREATER_THAN_SIGN&&H!==i.EOF&&this._err(r.nestedComment),this._reconsumeInState(Te)}[q](H){H===i.HYPHEN_MINUS?this.state=Te:H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(De))}[Te](H){H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EXCLAMATION_MARK?this.state=fe:H===i.HYPHEN_MINUS?this.currentToken.data+="-":H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(De))}[fe](H){H===i.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=q):H===i.GREATER_THAN_SIGN?(this._err(r.incorrectlyClosedComment),this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(De))}[ve](H){$t(H)?this.state=Me:H===i.GREATER_THAN_SIGN?this._reconsumeInState(Me):H===i.EOF?(this._err(r.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Me))}[Me](H){$t(H)||(zn(H)?(this._createDoctypeToken(J(H)),this.state=Ie):H===i.NULL?(this._err(r.unexpectedNullCharacter),this._createDoctypeToken(e.REPLACEMENT_CHARACTER),this.state=Ie):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(me(H)),this.state=Ie))}[Ie](H){$t(H)?this.state=Fe:H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):zn(H)?this.currentToken.name+=J(H):H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.name+=e.REPLACEMENT_CHARACTER):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=me(H)}[Fe](H){$t(H)||(H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(o.PUBLIC_STRING,H,!1)?this.state=qe:this._consumeSequenceIfMatch(o.SYSTEM_STRING,H,!1)?this.state=ht:this._ensureHibernation()||(this._err(r.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[qe](H){$t(H)?this.state=ot:H===i.QUOTATION_MARK?(this._err(r.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=it):H===i.APOSTROPHE?(this._err(r.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=$e):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue))}[ot](H){$t(H)||(H===i.QUOTATION_MARK?(this.currentToken.publicId="",this.state=it):H===i.APOSTROPHE?(this.currentToken.publicId="",this.state=$e):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[it](H){H===i.QUOTATION_MARK?this.state=Ot:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.publicId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=me(H)}[$e](H){H===i.APOSTROPHE?this.state=Ot:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.publicId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=me(H)}[Ot](H){$t(H)?this.state=pt:H===i.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):H===i.QUOTATION_MARK?(this._err(r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this._err(r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ut):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue))}[pt](H){$t(H)||(H===i.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):H===i.QUOTATION_MARK?(this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this.currentToken.systemId="",this.state=ut):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[ht](H){$t(H)?this.state=Tt:H===i.QUOTATION_MARK?(this._err(r.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this._err(r.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ut):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue))}[Tt](H){$t(H)||(H===i.QUOTATION_MARK?(this.currentToken.systemId="",this.state=rt):H===i.APOSTROPHE?(this.currentToken.systemId="",this.state=ut):H===i.GREATER_THAN_SIGN?(this._err(r.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ue)))}[rt](H){H===i.QUOTATION_MARK?this.state=Qe:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.systemId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=me(H)}[ut](H){H===i.APOSTROPHE?this.state=Qe:H===i.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.systemId+=e.REPLACEMENT_CHARACTER):H===i.GREATER_THAN_SIGN?(this._err(r.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=me(H)}[Qe](H){$t(H)||(H===i.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):H===i.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ue)))}[Ue](H){H===i.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):H===i.NULL?this._err(r.unexpectedNullCharacter):H===i.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Ge](H){H===i.RIGHT_SQUARE_BRACKET?this.state=Ve:H===i.EOF?(this._err(r.eofInCdata),this._emitEOFToken()):this._emitCodePoint(H)}[Ve](H){H===i.RIGHT_SQUARE_BRACKET?this.state=Je:(this._emitChars("]"),this._reconsumeInState(Ge))}[Je](H){H===i.GREATER_THAN_SIGN?this.state=d:H===i.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Ge))}[yt](H){this.tempBuff=[i.AMPERSAND],H===i.NUMBER_SIGN?(this.tempBuff.push(H),this.state=Bn):lo(H)?this._reconsumeInState(Rt):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rt](H){const je=this._matchNamedCharacterReference(H);if(this._ensureHibernation())this.tempBuff=[i.AMPERSAND];else if(je){const ft=this.tempBuff[this.tempBuff.length-1]===i.SEMICOLON;this._isCharacterReferenceAttributeQuirk(ft)||(ft||this._errOnNextCodePoint(r.missingSemicolonAfterCharacterReference),this.tempBuff=je),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=wn}[wn](H){lo(H)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=me(H):this._emitCodePoint(H):(H===i.SEMICOLON&&this._err(r.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Bn](H){this.charRefCode=0,H===i.LATIN_SMALL_X||H===i.LATIN_CAPITAL_X?(this.tempBuff.push(H),this.state=Xt):this._reconsumeInState($n)}[Xt](H){ne(H)?this._reconsumeInState(hr):(this._err(r.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[$n](H){oi(H)?this._reconsumeInState(lr):(this._err(r.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[hr](H){co(H)?this.charRefCode=this.charRefCode*16+H-55:Io(H)?this.charRefCode=this.charRefCode*16+H-87:oi(H)?this.charRefCode=this.charRefCode*16+H-48:H===i.SEMICOLON?this.state=$r:(this._err(r.missingSemicolonAfterCharacterReference),this._reconsumeInState($r))}[lr](H){oi(H)?this.charRefCode=this.charRefCode*10+H-48:H===i.SEMICOLON?this.state=$r:(this._err(r.missingSemicolonAfterCharacterReference),this._reconsumeInState($r))}[$r](){if(this.charRefCode===i.NULL)this._err(r.nullCharacterReference),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(r.characterReferenceOutsideUnicodeRange),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(e.isSurrogate(this.charRefCode))this._err(r.surrogateCharacterReference),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(e.isUndefinedCodePoint(this.charRefCode))this._err(r.noncharacterCharacterReference);else if(e.isControlCodePoint(this.charRefCode)||this.charRefCode===i.CARRIAGE_RETURN){this._err(r.controlCharacterReference);const H=s[this.charRefCode];H&&(this.charRefCode=H)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}return Re.CHARACTER_TOKEN="CHARACTER_TOKEN",Re.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Re.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Re.START_TAG_TOKEN="START_TAG_TOKEN",Re.END_TAG_TOKEN="END_TAG_TOKEN",Re.COMMENT_TOKEN="COMMENT_TOKEN",Re.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Re.EOF_TOKEN="EOF_TOKEN",Re.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Re.MODE={DATA:d,RCDATA:h,RAWTEXT:f,SCRIPT_DATA:m,PLAINTEXT:T},Re.getTokenAttr=function(ke,H){for(let je=ke.attrs.length-1;je>=0;je--)if(ke.attrs[je].name===H)return ke.attrs[je].value;return null},Dg=Re,Dg}var O1={},$N;function a1(){if($N)return O1;$N=1;const t=O1.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};O1.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},O1.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const e=O1.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};return O1.SPECIAL_ELEMENTS={[t.HTML]:{[e.ADDRESS]:!0,[e.APPLET]:!0,[e.AREA]:!0,[e.ARTICLE]:!0,[e.ASIDE]:!0,[e.BASE]:!0,[e.BASEFONT]:!0,[e.BGSOUND]:!0,[e.BLOCKQUOTE]:!0,[e.BODY]:!0,[e.BR]:!0,[e.BUTTON]:!0,[e.CAPTION]:!0,[e.CENTER]:!0,[e.COL]:!0,[e.COLGROUP]:!0,[e.DD]:!0,[e.DETAILS]:!0,[e.DIR]:!0,[e.DIV]:!0,[e.DL]:!0,[e.DT]:!0,[e.EMBED]:!0,[e.FIELDSET]:!0,[e.FIGCAPTION]:!0,[e.FIGURE]:!0,[e.FOOTER]:!0,[e.FORM]:!0,[e.FRAME]:!0,[e.FRAMESET]:!0,[e.H1]:!0,[e.H2]:!0,[e.H3]:!0,[e.H4]:!0,[e.H5]:!0,[e.H6]:!0,[e.HEAD]:!0,[e.HEADER]:!0,[e.HGROUP]:!0,[e.HR]:!0,[e.HTML]:!0,[e.IFRAME]:!0,[e.IMG]:!0,[e.INPUT]:!0,[e.LI]:!0,[e.LINK]:!0,[e.LISTING]:!0,[e.MAIN]:!0,[e.MARQUEE]:!0,[e.MENU]:!0,[e.META]:!0,[e.NAV]:!0,[e.NOEMBED]:!0,[e.NOFRAMES]:!0,[e.NOSCRIPT]:!0,[e.OBJECT]:!0,[e.OL]:!0,[e.P]:!0,[e.PARAM]:!0,[e.PLAINTEXT]:!0,[e.PRE]:!0,[e.SCRIPT]:!0,[e.SECTION]:!0,[e.SELECT]:!0,[e.SOURCE]:!0,[e.STYLE]:!0,[e.SUMMARY]:!0,[e.TABLE]:!0,[e.TBODY]:!0,[e.TD]:!0,[e.TEMPLATE]:!0,[e.TEXTAREA]:!0,[e.TFOOT]:!0,[e.TH]:!0,[e.THEAD]:!0,[e.TITLE]:!0,[e.TR]:!0,[e.TRACK]:!0,[e.UL]:!0,[e.WBR]:!0,[e.XMP]:!0},[t.MATHML]:{[e.MI]:!0,[e.MO]:!0,[e.MN]:!0,[e.MS]:!0,[e.MTEXT]:!0,[e.ANNOTATION_XML]:!0},[t.SVG]:{[e.TITLE]:!0,[e.FOREIGN_OBJECT]:!0,[e.DESC]:!0}},O1}var Ig,UN;function zPn(){if(UN)return Ig;UN=1;const t=a1(),e=t.TAG_NAMES,n=t.NAMESPACES;function r(a){switch(a.length){case 1:return a===e.P;case 2:return a===e.RB||a===e.RP||a===e.RT||a===e.DD||a===e.DT||a===e.LI;case 3:return a===e.RTC;case 6:return a===e.OPTION;case 8:return a===e.OPTGROUP}return!1}function i(a){switch(a.length){case 1:return a===e.P;case 2:return a===e.RB||a===e.RP||a===e.RT||a===e.DD||a===e.DT||a===e.LI||a===e.TD||a===e.TH||a===e.TR;case 3:return a===e.RTC;case 5:return a===e.TBODY||a===e.TFOOT||a===e.THEAD;case 6:return a===e.OPTION;case 7:return a===e.CAPTION;case 8:return a===e.OPTGROUP||a===e.COLGROUP}return!1}function o(a,l){switch(a.length){case 2:if(a===e.TD||a===e.TH)return l===n.HTML;if(a===e.MI||a===e.MO||a===e.MN||a===e.MS)return l===n.MATHML;break;case 4:if(a===e.HTML)return l===n.HTML;if(a===e.DESC)return l===n.SVG;break;case 5:if(a===e.TABLE)return l===n.HTML;if(a===e.MTEXT)return l===n.MATHML;if(a===e.TITLE)return l===n.SVG;break;case 6:return(a===e.APPLET||a===e.OBJECT)&&l===n.HTML;case 7:return(a===e.CAPTION||a===e.MARQUEE)&&l===n.HTML;case 8:return a===e.TEMPLATE&&l===n.HTML;case 13:return a===e.FOREIGN_OBJECT&&l===n.SVG;case 14:return a===e.ANNOTATION_XML&&l===n.MATHML}return!1}class s{constructor(l,c){this.stackTop=-1,this.items=[],this.current=l,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=c}_indexOf(l){let c=-1;for(let u=this.stackTop;u>=0;u--)if(this.items[u]===l){c=u;break}return c}_isInTemplate(){return this.currentTagName===e.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===n.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(l){this.items[++this.stackTop]=l,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(l,c){const u=this._indexOf(l);this.items[u]=c,u===this.stackTop&&this._updateCurrentElement()}insertAfter(l,c){const u=this._indexOf(l)+1;this.items.splice(u,0,c),u===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(l){for(;this.stackTop>-1;){const c=this.currentTagName,u=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),c===l&&u===n.HTML)break}}popUntilElementPopped(l){for(;this.stackTop>-1;){const c=this.current;if(this.pop(),c===l)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const l=this.currentTagName,c=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),l===e.H1||l===e.H2||l===e.H3||l===e.H4||l===e.H5||l===e.H6&&c===n.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const l=this.currentTagName,c=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),l===e.TD||l===e.TH&&c===n.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==e.TABLE&&this.currentTagName!==e.TEMPLATE&&this.currentTagName!==e.HTML||this.treeAdapter.getNamespaceURI(this.current)!==n.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==e.TBODY&&this.currentTagName!==e.TFOOT&&this.currentTagName!==e.THEAD&&this.currentTagName!==e.TEMPLATE&&this.currentTagName!==e.HTML||this.treeAdapter.getNamespaceURI(this.current)!==n.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==e.TR&&this.currentTagName!==e.TEMPLATE&&this.currentTagName!==e.HTML||this.treeAdapter.getNamespaceURI(this.current)!==n.HTML;)this.pop()}remove(l){for(let c=this.stackTop;c>=0;c--)if(this.items[c]===l){this.items.splice(c,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const l=this.items[1];return l&&this.treeAdapter.getTagName(l)===e.BODY?l:null}contains(l){return this._indexOf(l)>-1}getCommonAncestor(l){let c=this._indexOf(l);return--c>=0?this.items[c]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===e.HTML}hasInScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]),d=this.treeAdapter.getNamespaceURI(this.items[c]);if(u===l&&d===n.HTML)return!0;if(o(u,d))return!1}return!0}hasNumberedHeaderInScope(){for(let l=this.stackTop;l>=0;l--){const c=this.treeAdapter.getTagName(this.items[l]),u=this.treeAdapter.getNamespaceURI(this.items[l]);if((c===e.H1||c===e.H2||c===e.H3||c===e.H4||c===e.H5||c===e.H6)&&u===n.HTML)return!0;if(o(c,u))return!1}return!0}hasInListItemScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]),d=this.treeAdapter.getNamespaceURI(this.items[c]);if(u===l&&d===n.HTML)return!0;if((u===e.UL||u===e.OL)&&d===n.HTML||o(u,d))return!1}return!0}hasInButtonScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]),d=this.treeAdapter.getNamespaceURI(this.items[c]);if(u===l&&d===n.HTML)return!0;if(u===e.BUTTON&&d===n.HTML||o(u,d))return!1}return!0}hasInTableScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]);if(this.treeAdapter.getNamespaceURI(this.items[c])===n.HTML){if(u===l)return!0;if(u===e.TABLE||u===e.TEMPLATE||u===e.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let l=this.stackTop;l>=0;l--){const c=this.treeAdapter.getTagName(this.items[l]);if(this.treeAdapter.getNamespaceURI(this.items[l])===n.HTML){if(c===e.TBODY||c===e.THEAD||c===e.TFOOT)return!0;if(c===e.TABLE||c===e.HTML)return!1}}return!0}hasInSelectScope(l){for(let c=this.stackTop;c>=0;c--){const u=this.treeAdapter.getTagName(this.items[c]);if(this.treeAdapter.getNamespaceURI(this.items[c])===n.HTML){if(u===l)return!0;if(u!==e.OPTION&&u!==e.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;r(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;i(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(l){for(;r(this.currentTagName)&&this.currentTagName!==l;)this.pop()}}return Ig=s,Ig}var kg,GN;function jPn(){if(GN)return kg;GN=1;const t=3;class e{constructor(r){this.length=0,this.entries=[],this.treeAdapter=r,this.bookmark=null}_getNoahArkConditionCandidates(r){const i=[];if(this.length>=t){const o=this.treeAdapter.getAttrList(r).length,s=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);for(let l=this.length-1;l>=0;l--){const c=this.entries[l];if(c.type===e.MARKER_ENTRY)break;const u=c.element,d=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===s&&this.treeAdapter.getNamespaceURI(u)===a&&d.length===o&&i.push({idx:l,attrs:d})}}return i.length=t-1;c--)this.entries.splice(i[c].idx,1),this.length--}}insertMarker(){this.entries.push({type:e.MARKER_ENTRY}),this.length++}pushElement(r,i){this._ensureNoahArkCondition(r),this.entries.push({type:e.ELEMENT_ENTRY,element:r,token:i}),this.length++}insertElementAfterBookmark(r,i){let o=this.length-1;for(;o>=0&&this.entries[o]!==this.bookmark;o--);this.entries.splice(o+1,0,{type:e.ELEMENT_ENTRY,element:r,token:i}),this.length++}removeEntry(r){for(let i=this.length-1;i>=0;i--)if(this.entries[i]===r){this.entries.splice(i,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const r=this.entries.pop();if(this.length--,r.type===e.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(r){for(let i=this.length-1;i>=0;i--){const o=this.entries[i];if(o.type===e.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(o.element)===r)return o}return null}getElementEntry(r){for(let i=this.length-1;i>=0;i--){const o=this.entries[i];if(o.type===e.ELEMENT_ENTRY&&o.element===r)return o}return null}}return e.MARKER_ENTRY="MARKER_ENTRY",e.ELEMENT_ENTRY="ELEMENT_ENTRY",kg=e,kg}var Pg,qN;function oa(){if(qN)return Pg;qN=1;class t{constructor(n){const r={},i=this._getOverriddenMethods(this,r);for(const o of Object.keys(i))typeof i[o]=="function"&&(r[o]=n[o],n[o]=i[o])}_getOverriddenMethods(){throw new Error("Not implemented")}}return t.install=function(e,n,r){e.__mixins||(e.__mixins=[]);for(let o=0;o{const c=e.MODE[l];a[c]=function(u){o.ctLoc=o._getCurrentLocation(),s[c].call(this,u)}}),a}}return Vg=r,Vg}var Fg,WN;function WPn(){if(WN)return Fg;WN=1;const t=oa();class e extends t{constructor(r,i){super(r),this.onItemPop=i.onItemPop}_getOverriddenMethods(r,i){return{pop(){r.onItemPop(this.current),i.pop.call(this)},popAllUpToHtmlElement(){for(let o=this.stackTop;o>0;o--)r.onItemPop(this.items[o]);i.popAllUpToHtmlElement.call(this)},remove(o){r.onItemPop(this.current),i.remove.call(this,o)}}}}return Fg=e,Fg}var Bg,YN;function YPn(){if(YN)return Bg;YN=1;const t=oa(),e=M9(),n=B$(),r=WPn(),o=a1().TAG_NAMES;class s extends t{constructor(l){super(l),this.parser=l,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(l){let c=null;this.lastStartTagToken&&(c=Object.assign({},this.lastStartTagToken.location),c.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(l,c)}_setEndLocation(l,c){if(this.treeAdapter.getNodeSourceCodeLocation(l)&&c.location){const d=c.location,h=this.treeAdapter.getTagName(l),f=c.type===e.END_TAG_TOKEN&&h===c.tagName,m={};f?(m.endTag=Object.assign({},d),m.endLine=d.endLine,m.endCol=d.endCol,m.endOffset=d.endOffset):(m.endLine=d.startLine,m.endCol=d.startCol,m.endOffset=d.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(l,m)}}_getOverriddenMethods(l,c){return{_bootstrap(u,d){c._bootstrap.call(this,u,d),l.lastStartTagToken=null,l.lastFosterParentingLocation=null,l.currentToken=null;const h=t.install(this.tokenizer,n);l.posTracker=h.posTracker,t.install(this.openElements,r,{onItemPop:function(f){l._setEndLocation(f,l.currentToken)}})},_runParsingLoop(u){c._runParsingLoop.call(this,u);for(let d=this.openElements.stackTop;d>=0;d--)l._setEndLocation(this.openElements.items[d],l.currentToken)},_processTokenInForeignContent(u){l.currentToken=u,c._processTokenInForeignContent.call(this,u)},_processToken(u){if(l.currentToken=u,c._processToken.call(this,u),u.type===e.END_TAG_TOKEN&&(u.tagName===o.HTML||u.tagName===o.BODY&&this.openElements.hasInScope(o.BODY)))for(let h=this.openElements.stackTop;h>=0;h--){const f=this.openElements.items[h];if(this.treeAdapter.getTagName(f)===u.tagName){l._setEndLocation(f,u);break}}},_setDocumentType(u){c._setDocumentType.call(this,u);const d=this.treeAdapter.getChildNodes(this.document),h=d.length;for(let f=0;f(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))}),zg}var d4={},nD;function Nb(){if(nD)return d4;nD=1;const{DOCUMENT_MODE:t}=a1(),e="html",n="about:legacy-compat",r="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],a=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],l=a.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function c(d){const h=d.indexOf('"')!==-1?"'":'"';return h+d+h}function u(d,h){for(let f=0;f-1)return t.QUIRKS;let m=h===null?o:i;if(u(f,m))return t.QUIRKS;if(m=h===null?a:l,u(f,m))return t.LIMITED_QUIRKS}return t.NO_QUIRKS},d4.serializeContent=function(d,h,f){let m="!DOCTYPE ";return d&&(m+=d),h?m+=" PUBLIC "+c(h):f&&(m+=" SYSTEM"),f!==null&&(m+=" "+c(f)),m},d4}var Ls={},rD;function JPn(){if(rD)return Ls;rD=1;const t=M9(),e=a1(),n=e.TAG_NAMES,r=e.NAMESPACES,i=e.ATTRS,o={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},s="definitionurl",a="definitionURL",l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},c={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:r.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:r.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:r.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:r.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:r.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:r.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:r.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:r.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:r.XML},"xml:space":{prefix:"xml",name:"space",namespace:r.XML},xmlns:{prefix:"",name:"xmlns",namespace:r.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:r.XMLNS}},u=Ls.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},d={[n.B]:!0,[n.BIG]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.CENTER]:!0,[n.CODE]:!0,[n.DD]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EM]:!0,[n.EMBED]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HR]:!0,[n.I]:!0,[n.IMG]:!0,[n.LI]:!0,[n.LISTING]:!0,[n.MENU]:!0,[n.META]:!0,[n.NOBR]:!0,[n.OL]:!0,[n.P]:!0,[n.PRE]:!0,[n.RUBY]:!0,[n.S]:!0,[n.SMALL]:!0,[n.SPAN]:!0,[n.STRONG]:!0,[n.STRIKE]:!0,[n.SUB]:!0,[n.SUP]:!0,[n.TABLE]:!0,[n.TT]:!0,[n.U]:!0,[n.UL]:!0,[n.VAR]:!0};Ls.causesExit=function(m){const T=m.tagName;return T===n.FONT&&(t.getTokenAttr(m,i.COLOR)!==null||t.getTokenAttr(m,i.SIZE)!==null||t.getTokenAttr(m,i.FACE)!==null)?!0:d[T]},Ls.adjustTokenMathMLAttrs=function(m){for(let T=0;T0);for(let Mt=D;Mt=0;O--){let Ze=this.openElements.items[O];O===0&&(D=!0,this.fragmentContext&&(Ze=this.fragmentContext));const Mt=this.treeAdapter.getTagName(Ze),Qn=z[Mt];if(Qn){this.insertionMode=Qn;break}else if(!D&&(Mt===f.TD||Mt===f.TH)){this.insertionMode=G;break}else if(!D&&Mt===f.HEAD){this.insertionMode=L;break}else if(Mt===f.SELECT){this._resetInsertionModeForSelect(O);break}else if(Mt===f.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(Mt===f.HTML){this.insertionMode=this.headElement?C:x;break}else if(D){this.insertionMode=A;break}}}_resetInsertionModeForSelect(O){if(O>0)for(let D=O-1;D>0;D--){const Ze=this.openElements.items[D],Mt=this.treeAdapter.getTagName(Ze);if(Mt===f.TEMPLATE)break;if(Mt===f.TABLE){this.insertionMode=Y;return}}this.insertionMode=Z}_pushTmplInsertionMode(O){this.tmplInsertionModeStack.push(O),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=O}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(O){const D=this.treeAdapter.getTagName(O);return D===f.TABLE||D===f.TBODY||D===f.TFOOT||D===f.THEAD||D===f.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const O={parent:null,beforeElement:null};for(let D=this.openElements.stackTop;D>=0;D--){const Ze=this.openElements.items[D],Mt=this.treeAdapter.getTagName(Ze),Qn=this.treeAdapter.getNamespaceURI(Ze);if(Mt===f.TEMPLATE&&Qn===m.HTML){O.parent=this.treeAdapter.getTemplateContent(Ze);break}else if(Mt===f.TABLE){O.parent=this.treeAdapter.getParentNode(Ze),O.parent?O.beforeElement=Ze:O.parent=this.openElements.items[D-1];break}}return O.parent||(O.parent=this.openElements.items[0]),O}_fosterParentElement(O){const D=this._findFosterParentingLocation();D.beforeElement?this.treeAdapter.insertBefore(D.parent,O,D.beforeElement):this.treeAdapter.appendChild(D.parent,O)}_fosterParentText(O){const D=this._findFosterParentingLocation();D.beforeElement?this.treeAdapter.insertTextBefore(D.parent,O,D.beforeElement):this.treeAdapter.insertText(D.parent,O)}_isSpecialElement(O){const D=this.treeAdapter.getTagName(O),Ze=this.treeAdapter.getNamespaceURI(O);return h.SPECIAL_ELEMENTS[Ze][D]}}jg=Se;function we(w,O){let D=w.activeFormattingElements.getElementEntryInScopeWithTagName(O.tagName);return D?w.openElements.contains(D.element)?w.openElements.hasInScope(O.tagName)||(D=null):(w.activeFormattingElements.removeEntry(D),D=null):_n(w,O),D}function se(w,O){let D=null;for(let Ze=w.openElements.stackTop;Ze>=0;Ze--){const Mt=w.openElements.items[Ze];if(Mt===O.element)break;w._isSpecialElement(Mt)&&(D=Mt)}return D||(w.openElements.popUntilElementPopped(O.element),w.activeFormattingElements.removeEntry(O)),D}function W(w,O,D){let Ze=O,Mt=w.openElements.getCommonAncestor(O);for(let Qn=0,Rr=Mt;Rr!==D;Qn++,Rr=Mt){Mt=w.openElements.getCommonAncestor(Rr);const l3=w.activeFormattingElements.getElementEntry(Rr),GE=l3&&Qn>=y;!l3||GE?(GE&&w.activeFormattingElements.removeEntry(l3),w.openElements.remove(Rr)):(Rr=j(w,l3),Ze===O&&(w.activeFormattingElements.bookmark=l3),w.treeAdapter.detachNode(Ze),w.treeAdapter.appendChild(Rr,Ze),Ze=Rr)}return Ze}function j(w,O){const D=w.treeAdapter.getNamespaceURI(O.element),Ze=w.treeAdapter.createElement(O.token.tagName,D,O.token.attrs);return w.openElements.replace(O.element,Ze),O.element=Ze,Ze}function oe(w,O,D){if(w._isElementCausesFosterParenting(O))w._fosterParentElement(D);else{const Ze=w.treeAdapter.getTagName(O),Mt=w.treeAdapter.getNamespaceURI(O);Ze===f.TEMPLATE&&Mt===m.HTML&&(O=w.treeAdapter.getTemplateContent(O)),w.treeAdapter.appendChild(O,D)}}function _e(w,O,D){const Ze=w.treeAdapter.getNamespaceURI(D.element),Mt=D.token,Qn=w.treeAdapter.createElement(Mt.tagName,Ze,Mt.attrs);w._adoptNodes(O,Qn),w.treeAdapter.appendChild(O,Qn),w.activeFormattingElements.insertElementAfterBookmark(Qn,D.token),w.activeFormattingElements.removeEntry(D),w.openElements.remove(D.element),w.openElements.insertAfter(O,Qn)}function ye(w,O){let D;for(let Ze=0;Ze0?(w.openElements.generateImpliedEndTagsThoroughly(),w.openElements.currentTagName!==f.TEMPLATE&&w._err(u.closingOfElementWithOpenChildElements),w.openElements.popUntilTagNamePopped(f.TEMPLATE),w.activeFormattingElements.clearToLastMarker(),w._popTmplInsertionMode(),w._resetInsertionMode()):w._err(u.endTagWithoutMatchingOpenElement)}function Ot(w,O){w.openElements.pop(),w.insertionMode=C,w._processToken(O)}function pt(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.BASEFONT||D===f.BGSOUND||D===f.HEAD||D===f.LINK||D===f.META||D===f.NOFRAMES||D===f.STYLE?it(w,O):D===f.NOSCRIPT?w._err(u.nestedNoscriptInHead):Tt(w,O)}function ht(w,O){const D=O.tagName;D===f.NOSCRIPT?(w.openElements.pop(),w.insertionMode=L):D===f.BR?Tt(w,O):w._err(u.endTagWithoutMatchingOpenElement)}function Tt(w,O){const D=O.type===t.EOF_TOKEN?u.openElementsLeftAfterEof:u.disallowedContentInNoscriptInHead;w._err(D),w.openElements.pop(),w.insertionMode=L,w._processToken(O)}function rt(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.BODY?(w._insertElement(O,m.HTML),w.framesetOk=!1,w.insertionMode=A):D===f.FRAMESET?(w._insertElement(O,m.HTML),w.insertionMode=K):D===f.BASE||D===f.BASEFONT||D===f.BGSOUND||D===f.LINK||D===f.META||D===f.NOFRAMES||D===f.SCRIPT||D===f.STYLE||D===f.TEMPLATE||D===f.TITLE?(w._err(u.abandonedHeadElementChild),w.openElements.push(w.headElement),it(w,O),w.openElements.remove(w.headElement)):D===f.HEAD?w._err(u.misplacedStartTagForHeadElement):Qe(w,O)}function ut(w,O){const D=O.tagName;D===f.BODY||D===f.HTML||D===f.BR?Qe(w,O):D===f.TEMPLATE?$e(w,O):w._err(u.endTagWithoutMatchingOpenElement)}function Qe(w,O){w._insertFakeElement(f.BODY),w.insertionMode=A,w._processToken(O)}function Ue(w,O){w._reconstructActiveFormattingElements(),w._insertCharacters(O)}function Ge(w,O){w._reconstructActiveFormattingElements(),w._insertCharacters(O),w.framesetOk=!1}function Ve(w,O){w.openElements.tmplCount===0&&w.treeAdapter.adoptAttributes(w.openElements.items[0],O.attrs)}function Je(w,O){const D=w.openElements.tryPeekProperlyNestedBodyElement();D&&w.openElements.tmplCount===0&&(w.framesetOk=!1,w.treeAdapter.adoptAttributes(D,O.attrs))}function yt(w,O){const D=w.openElements.tryPeekProperlyNestedBodyElement();w.framesetOk&&D&&(w.treeAdapter.detachNode(D),w.openElements.popAllUpToHtmlElement(),w._insertElement(O,m.HTML),w.insertionMode=K)}function Rt(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML)}function wn(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement();const D=w.openElements.currentTagName;(D===f.H1||D===f.H2||D===f.H3||D===f.H4||D===f.H5||D===f.H6)&&w.openElements.pop(),w._insertElement(O,m.HTML)}function Bn(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),w.skipNextNewLine=!0,w.framesetOk=!1}function Xt(w,O){const D=w.openElements.tmplCount>0;(!w.formElement||D)&&(w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),D||(w.formElement=w.openElements.current))}function $n(w,O){w.framesetOk=!1;const D=O.tagName;for(let Ze=w.openElements.stackTop;Ze>=0;Ze--){const Mt=w.openElements.items[Ze],Qn=w.treeAdapter.getTagName(Mt);let Rr=null;if(D===f.LI&&Qn===f.LI?Rr=f.LI:(D===f.DD||D===f.DT)&&(Qn===f.DD||Qn===f.DT)&&(Rr=Qn),Rr){w.openElements.generateImpliedEndTagsWithExclusion(Rr),w.openElements.popUntilTagNamePopped(Rr);break}if(Qn!==f.ADDRESS&&Qn!==f.DIV&&Qn!==f.P&&w._isSpecialElement(Mt))break}w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML)}function hr(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),w.tokenizer.state=t.MODE.PLAINTEXT}function lr(w,O){w.openElements.hasInScope(f.BUTTON)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(f.BUTTON)),w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.framesetOk=!1}function $r(w,O){const D=w.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);D&&(ye(w,O),w.openElements.remove(D.element),w.activeFormattingElements.removeEntry(D)),w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.activeFormattingElements.pushElement(w.openElements.current,O)}function $t(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.activeFormattingElements.pushElement(w.openElements.current,O)}function oi(w,O){w._reconstructActiveFormattingElements(),w.openElements.hasInScope(f.NOBR)&&(ye(w,O),w._reconstructActiveFormattingElements()),w._insertElement(O,m.HTML),w.activeFormattingElements.pushElement(w.openElements.current,O)}function zn(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.activeFormattingElements.insertMarker(),w.framesetOk=!1}function Mr(w,O){w.treeAdapter.getDocumentMode(w.document)!==h.DOCUMENT_MODE.QUIRKS&&w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),w.framesetOk=!1,w.insertionMode=N}function gn(w,O){w._reconstructActiveFormattingElements(),w._appendElement(O,m.HTML),w.framesetOk=!1,O.ackSelfClosing=!0}function lo(w,O){w._reconstructActiveFormattingElements(),w._appendElement(O,m.HTML);const D=t.getTokenAttr(O,T.TYPE);(!D||D.toLowerCase()!==_)&&(w.framesetOk=!1),O.ackSelfClosing=!0}function co(w,O){w._appendElement(O,m.HTML),O.ackSelfClosing=!0}function Io(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._appendElement(O,m.HTML),w.framesetOk=!1,O.ackSelfClosing=!0}function ne(w,O){O.tagName=f.IMG,gn(w,O)}function Ae(w,O){w._insertElement(O,m.HTML),w.skipNextNewLine=!0,w.tokenizer.state=t.MODE.RCDATA,w.originalInsertionMode=w.insertionMode,w.framesetOk=!1,w.insertionMode=I}function me(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._reconstructActiveFormattingElements(),w.framesetOk=!1,w._switchToTextParsing(O,t.MODE.RAWTEXT)}function J(w,O){w.framesetOk=!1,w._switchToTextParsing(O,t.MODE.RAWTEXT)}function de(w,O){w._switchToTextParsing(O,t.MODE.RAWTEXT)}function Re(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.framesetOk=!1,w.insertionMode===N||w.insertionMode===R||w.insertionMode===F||w.insertionMode===U||w.insertionMode===G?w.insertionMode=Y:w.insertionMode=Z}function ke(w,O){w.openElements.currentTagName===f.OPTION&&w.openElements.pop(),w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML)}function H(w,O){w.openElements.hasInScope(f.RUBY)&&w.openElements.generateImpliedEndTags(),w._insertElement(O,m.HTML)}function je(w,O){w.openElements.hasInScope(f.RUBY)&&w.openElements.generateImpliedEndTagsWithExclusion(f.RTC),w._insertElement(O,m.HTML)}function ft(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML)}function dt(w,O){w._reconstructActiveFormattingElements(),c.adjustTokenMathMLAttrs(O),c.adjustTokenXMLAttrs(O),O.selfClosing?w._appendElement(O,m.MATHML):w._insertElement(O,m.MATHML),O.ackSelfClosing=!0}function mt(w,O){w._reconstructActiveFormattingElements(),c.adjustTokenSVGAttrs(O),c.adjustTokenXMLAttrs(O),O.selfClosing?w._appendElement(O,m.SVG):w._insertElement(O,m.SVG),O.ackSelfClosing=!0}function bt(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML)}function qt(w,O){const D=O.tagName;switch(D.length){case 1:D===f.I||D===f.S||D===f.B||D===f.U?$t(w,O):D===f.P?Rt(w,O):D===f.A?$r(w,O):bt(w,O);break;case 2:D===f.DL||D===f.OL||D===f.UL?Rt(w,O):D===f.H1||D===f.H2||D===f.H3||D===f.H4||D===f.H5||D===f.H6?wn(w,O):D===f.LI||D===f.DD||D===f.DT?$n(w,O):D===f.EM||D===f.TT?$t(w,O):D===f.BR?gn(w,O):D===f.HR?Io(w,O):D===f.RB?H(w,O):D===f.RT||D===f.RP?je(w,O):D!==f.TH&&D!==f.TD&&D!==f.TR&&bt(w,O);break;case 3:D===f.DIV||D===f.DIR||D===f.NAV?Rt(w,O):D===f.PRE?Bn(w,O):D===f.BIG?$t(w,O):D===f.IMG||D===f.WBR?gn(w,O):D===f.XMP?me(w,O):D===f.SVG?mt(w,O):D===f.RTC?H(w,O):D!==f.COL&&bt(w,O);break;case 4:D===f.HTML?Ve(w,O):D===f.BASE||D===f.LINK||D===f.META?it(w,O):D===f.BODY?Je(w,O):D===f.MAIN||D===f.MENU?Rt(w,O):D===f.FORM?Xt(w,O):D===f.CODE||D===f.FONT?$t(w,O):D===f.NOBR?oi(w,O):D===f.AREA?gn(w,O):D===f.MATH?dt(w,O):D===f.MENU?ft(w,O):D!==f.HEAD&&bt(w,O);break;case 5:D===f.STYLE||D===f.TITLE?it(w,O):D===f.ASIDE?Rt(w,O):D===f.SMALL?$t(w,O):D===f.TABLE?Mr(w,O):D===f.EMBED?gn(w,O):D===f.INPUT?lo(w,O):D===f.PARAM||D===f.TRACK?co(w,O):D===f.IMAGE?ne(w,O):D!==f.FRAME&&D!==f.TBODY&&D!==f.TFOOT&&D!==f.THEAD&&bt(w,O);break;case 6:D===f.SCRIPT?it(w,O):D===f.CENTER||D===f.FIGURE||D===f.FOOTER||D===f.HEADER||D===f.HGROUP||D===f.DIALOG?Rt(w,O):D===f.BUTTON?lr(w,O):D===f.STRIKE||D===f.STRONG?$t(w,O):D===f.APPLET||D===f.OBJECT?zn(w,O):D===f.KEYGEN?gn(w,O):D===f.SOURCE?co(w,O):D===f.IFRAME?J(w,O):D===f.SELECT?Re(w,O):D===f.OPTION?ke(w,O):bt(w,O);break;case 7:D===f.BGSOUND?it(w,O):D===f.DETAILS||D===f.ADDRESS||D===f.ARTICLE||D===f.SECTION||D===f.SUMMARY?Rt(w,O):D===f.LISTING?Bn(w,O):D===f.MARQUEE?zn(w,O):D===f.NOEMBED?de(w,O):D!==f.CAPTION&&bt(w,O);break;case 8:D===f.BASEFONT?it(w,O):D===f.FRAMESET?yt(w,O):D===f.FIELDSET?Rt(w,O):D===f.TEXTAREA?Ae(w,O):D===f.TEMPLATE?it(w,O):D===f.NOSCRIPT?w.options.scriptingEnabled?de(w,O):bt(w,O):D===f.OPTGROUP?ke(w,O):D!==f.COLGROUP&&bt(w,O);break;case 9:D===f.PLAINTEXT?hr(w,O):bt(w,O);break;case 10:D===f.BLOCKQUOTE||D===f.FIGCAPTION?Rt(w,O):bt(w,O);break;default:bt(w,O)}}function sn(w){w.openElements.hasInScope(f.BODY)&&(w.insertionMode=pe)}function Or(w,O){w.openElements.hasInScope(f.BODY)&&(w.insertionMode=pe,w._processToken(O))}function ln(w,O){const D=O.tagName;w.openElements.hasInScope(D)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(D))}function Ut(w){const O=w.openElements.tmplCount>0,D=w.formElement;O||(w.formElement=null),(D||O)&&w.openElements.hasInScope(f.FORM)&&(w.openElements.generateImpliedEndTags(),O?w.openElements.popUntilTagNamePopped(f.FORM):w.openElements.remove(D))}function I2(w){w.openElements.hasInButtonScope(f.P)||w._insertFakeElement(f.P),w._closePElement()}function Pn(w){w.openElements.hasInListItemScope(f.LI)&&(w.openElements.generateImpliedEndTagsWithExclusion(f.LI),w.openElements.popUntilTagNamePopped(f.LI))}function ko(w,O){const D=O.tagName;w.openElements.hasInScope(D)&&(w.openElements.generateImpliedEndTagsWithExclusion(D),w.openElements.popUntilTagNamePopped(D))}function o3(w){w.openElements.hasNumberedHeaderInScope()&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilNumberedHeaderPopped())}function ms(w,O){const D=O.tagName;w.openElements.hasInScope(D)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(D),w.activeFormattingElements.clearToLastMarker())}function k2(w){w._reconstructActiveFormattingElements(),w._insertFakeElement(f.BR),w.openElements.pop(),w.framesetOk=!1}function _n(w,O){const D=O.tagName;for(let Ze=w.openElements.stackTop;Ze>0;Ze--){const Mt=w.openElements.items[Ze];if(w.treeAdapter.getTagName(Mt)===D){w.openElements.generateImpliedEndTagsWithExclusion(D),w.openElements.popUntilElementPopped(Mt);break}if(w._isSpecialElement(Mt))break}}function ki(w,O){const D=O.tagName;switch(D.length){case 1:D===f.A||D===f.B||D===f.I||D===f.S||D===f.U?ye(w,O):D===f.P?I2(w):_n(w,O);break;case 2:D===f.DL||D===f.UL||D===f.OL?ln(w,O):D===f.LI?Pn(w):D===f.DD||D===f.DT?ko(w,O):D===f.H1||D===f.H2||D===f.H3||D===f.H4||D===f.H5||D===f.H6?o3(w):D===f.BR?k2(w):D===f.EM||D===f.TT?ye(w,O):_n(w,O);break;case 3:D===f.BIG?ye(w,O):D===f.DIR||D===f.DIV||D===f.NAV||D===f.PRE?ln(w,O):_n(w,O);break;case 4:D===f.BODY?sn(w):D===f.HTML?Or(w,O):D===f.FORM?Ut(w):D===f.CODE||D===f.FONT||D===f.NOBR?ye(w,O):D===f.MAIN||D===f.MENU?ln(w,O):_n(w,O);break;case 5:D===f.ASIDE?ln(w,O):D===f.SMALL?ye(w,O):_n(w,O);break;case 6:D===f.CENTER||D===f.FIGURE||D===f.FOOTER||D===f.HEADER||D===f.HGROUP||D===f.DIALOG?ln(w,O):D===f.APPLET||D===f.OBJECT?ms(w,O):D===f.STRIKE||D===f.STRONG?ye(w,O):_n(w,O);break;case 7:D===f.ADDRESS||D===f.ARTICLE||D===f.DETAILS||D===f.SECTION||D===f.SUMMARY||D===f.LISTING?ln(w,O):D===f.MARQUEE?ms(w,O):_n(w,O);break;case 8:D===f.FIELDSET?ln(w,O):D===f.TEMPLATE?$e(w,O):_n(w,O);break;case 10:D===f.BLOCKQUOTE||D===f.FIGCAPTION?ln(w,O):_n(w,O);break;default:_n(w,O)}}function si(w,O){w.tmplInsertionModeStackTop>-1?UE(w,O):w.stopped=!0}function Ur(w,O){O.tagName===f.SCRIPT&&(w.pendingScript=w.openElements.current),w.openElements.pop(),w.insertionMode=w.originalInsertionMode}function P2(w,O){w._err(u.eofInElementThatCanContainOnlyText),w.openElements.pop(),w.insertionMode=w.originalInsertionMode,w._processToken(O)}function Pi(w,O){const D=w.openElements.currentTagName;D===f.TABLE||D===f.TBODY||D===f.TFOOT||D===f.THEAD||D===f.TR?(w.pendingCharacterTokens=[],w.hasNonWhitespacePendingCharacterToken=!1,w.originalInsertionMode=w.insertionMode,w.insertionMode=V,w._processToken(O)):Gr(w,O)}function s3(w,O){w.openElements.clearBackToTableContext(),w.activeFormattingElements.insertMarker(),w._insertElement(O,m.HTML),w.insertionMode=R}function z9(w,O){w.openElements.clearBackToTableContext(),w._insertElement(O,m.HTML),w.insertionMode=B}function j9(w,O){w.openElements.clearBackToTableContext(),w._insertFakeElement(f.COLGROUP),w.insertionMode=B,w._processToken(O)}function W9(w,O){w.openElements.clearBackToTableContext(),w._insertElement(O,m.HTML),w.insertionMode=F}function Y9(w,O){w.openElements.clearBackToTableContext(),w._insertFakeElement(f.TBODY),w.insertionMode=F,w._processToken(O)}function K9(w,O){w.openElements.hasInTableScope(f.TABLE)&&(w.openElements.popUntilTagNamePopped(f.TABLE),w._resetInsertionMode(),w._processToken(O))}function Z9(w,O){const D=t.getTokenAttr(O,T.TYPE);D&&D.toLowerCase()===_?w._appendElement(O,m.HTML):Gr(w,O),O.ackSelfClosing=!0}function X9(w,O){!w.formElement&&w.openElements.tmplCount===0&&(w._insertElement(O,m.HTML),w.formElement=w.openElements.current,w.openElements.pop())}function H2(w,O){const D=O.tagName;switch(D.length){case 2:D===f.TD||D===f.TH||D===f.TR?Y9(w,O):Gr(w,O);break;case 3:D===f.COL?j9(w,O):Gr(w,O);break;case 4:D===f.FORM?X9(w,O):Gr(w,O);break;case 5:D===f.TABLE?K9(w,O):D===f.STYLE?it(w,O):D===f.TBODY||D===f.TFOOT||D===f.THEAD?W9(w,O):D===f.INPUT?Z9(w,O):Gr(w,O);break;case 6:D===f.SCRIPT?it(w,O):Gr(w,O);break;case 7:D===f.CAPTION?s3(w,O):Gr(w,O);break;case 8:D===f.COLGROUP?z9(w,O):D===f.TEMPLATE?it(w,O):Gr(w,O);break;default:Gr(w,O)}}function V2(w,O){const D=O.tagName;D===f.TABLE?w.openElements.hasInTableScope(f.TABLE)&&(w.openElements.popUntilTagNamePopped(f.TABLE),w._resetInsertionMode()):D===f.TEMPLATE?$e(w,O):D!==f.BODY&&D!==f.CAPTION&&D!==f.COL&&D!==f.COLGROUP&&D!==f.HTML&&D!==f.TBODY&&D!==f.TD&&D!==f.TFOOT&&D!==f.TH&&D!==f.THEAD&&D!==f.TR&&Gr(w,O)}function Gr(w,O){const D=w.fosterParentingEnabled;w.fosterParentingEnabled=!0,w._processTokenInBodyMode(O),w.fosterParentingEnabled=D}function J9(w,O){w.pendingCharacterTokens.push(O)}function ef(w,O){w.pendingCharacterTokens.push(O),w.hasNonWhitespacePendingCharacterToken=!0}function la(w,O){let D=0;if(w.hasNonWhitespacePendingCharacterToken)for(;D0?(w.openElements.popUntilTagNamePopped(f.TEMPLATE),w.activeFormattingElements.clearToLastMarker(),w._popTmplInsertionMode(),w._resetInsertionMode(),w._processToken(O)):w.stopped=!0}function Eq(w,O){O.tagName===f.HTML?qt(w,O):Q6(w,O)}function xq(w,O){O.tagName===f.HTML?w.fragmentContext||(w.insertionMode=ce):Q6(w,O)}function Q6(w,O){w.insertionMode=A,w._processToken(O)}function Sq(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.FRAMESET?w._insertElement(O,m.HTML):D===f.FRAME?(w._appendElement(O,m.HTML),O.ackSelfClosing=!0):D===f.NOFRAMES&&it(w,O)}function Lq(w,O){O.tagName===f.FRAMESET&&!w.openElements.isRootHtmlElementCurrent()&&(w.openElements.pop(),!w.fragmentContext&&w.openElements.currentTagName!==f.FRAMESET&&(w.insertionMode=$))}function Cq(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.NOFRAMES&&it(w,O)}function Aq(w,O){O.tagName===f.HTML&&(w.insertionMode=Ee)}function wq(w,O){O.tagName===f.HTML?qt(w,O):v6(w,O)}function v6(w,O){w.insertionMode=A,w._processToken(O)}function Mq(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.NOFRAMES&&it(w,O)}function Oq(w,O){O.chars=d.REPLACEMENT_CHARACTER,w._insertCharacters(O)}function Rq(w,O){w._insertCharacters(O),w.framesetOk=!1}function Nq(w,O){if(c.causesExit(O)&&!w.fragmentContext){for(;w.treeAdapter.getNamespaceURI(w.openElements.current)!==m.HTML&&!w._isIntegrationPoint(w.openElements.current);)w.openElements.pop();w._processToken(O)}else{const D=w._getAdjustedCurrentElement(),Ze=w.treeAdapter.getNamespaceURI(D);Ze===m.MATHML?c.adjustTokenMathMLAttrs(O):Ze===m.SVG&&(c.adjustTokenSVGTagName(O),c.adjustTokenSVGAttrs(O)),c.adjustTokenXMLAttrs(O),O.selfClosing?w._appendElement(O,Ze):w._insertElement(O,Ze),O.ackSelfClosing=!0}}function Dq(w,O){for(let D=w.openElements.stackTop;D>0;D--){const Ze=w.openElements.items[D];if(w.treeAdapter.getNamespaceURI(Ze)===m.HTML){w._processToken(O);break}if(w.treeAdapter.getTagName(Ze).toLowerCase()===O.tagName){w.openElements.popUntilElementPopped(Ze);break}}}return jg}var Wg,oD;function tHn(){if(oD)return Wg;oD=1;const t=$$(),e=U$(),n=Nb(),r=a1(),i=r.TAG_NAMES,o=r.NAMESPACES,s={treeAdapter:t},a=/&/g,l=/\u00a0/g,c=/"/g,u=//g;class h{constructor(m,T){this.options=e(s,T),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=m}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(m){const T=this.treeAdapter.getChildNodes(m);if(T)for(let Q=0,_=T.length;Q<_;Q++){const v=T[Q];this.treeAdapter.isElementNode(v)?this._serializeElement(v):this.treeAdapter.isTextNode(v)?this._serializeTextNode(v):this.treeAdapter.isCommentNode(v)?this._serializeCommentNode(v):this.treeAdapter.isDocumentTypeNode(v)&&this._serializeDocumentTypeNode(v)}}_serializeElement(m){const T=this.treeAdapter.getTagName(m),Q=this.treeAdapter.getNamespaceURI(m);if(this.html+="<"+T,this._serializeAttributes(m),this.html+=">",T!==i.AREA&&T!==i.BASE&&T!==i.BASEFONT&&T!==i.BGSOUND&&T!==i.BR&&T!==i.COL&&T!==i.EMBED&&T!==i.FRAME&&T!==i.HR&&T!==i.IMG&&T!==i.INPUT&&T!==i.KEYGEN&&T!==i.LINK&&T!==i.META&&T!==i.PARAM&&T!==i.SOURCE&&T!==i.TRACK&&T!==i.WBR){const _=T===i.TEMPLATE&&Q===o.HTML?this.treeAdapter.getTemplateContent(m):m;this._serializeChildNodes(_),this.html+=""}}_serializeAttributes(m){const T=this.treeAdapter.getAttrList(m);for(let Q=0,_=T.length;Q<_;Q++){const v=T[Q],y=h.escapeString(v.value,!0);this.html+=" ",v.namespace?v.namespace===o.XML?this.html+="xml:"+v.name:v.namespace===o.XMLNS?(v.name!=="xmlns"&&(this.html+="xmlns:"),this.html+=v.name):v.namespace===o.XLINK?this.html+="xlink:"+v.name:this.html+=v.prefix+":"+v.name:this.html+=v.name,this.html+='="'+y+'"'}}_serializeTextNode(m){const T=this.treeAdapter.getTextNodeContent(m),Q=this.treeAdapter.getParentNode(m);let _;Q&&this.treeAdapter.isElementNode(Q)&&(_=this.treeAdapter.getTagName(Q)),_===i.STYLE||_===i.SCRIPT||_===i.XMP||_===i.IFRAME||_===i.NOEMBED||_===i.NOFRAMES||_===i.PLAINTEXT||_===i.NOSCRIPT?this.html+=T:this.html+=h.escapeString(T,!1)}_serializeCommentNode(m){this.html+=""}_serializeDocumentTypeNode(m){const T=this.treeAdapter.getDocumentTypeNodeName(m);this.html+="<"+n.serializeContent(T,null,null)+">"}}return h.escapeString=function(f,m){return f=f.replace(a,"&").replace(l," "),m?f=f.replace(c,"""):f=f.replace(u,"<").replace(d,">"),f},Wg=h,Wg}var sD;function nHn(){if(sD)return u4;sD=1;const t=eHn(),e=tHn();return u4.parse=function(r,i){return new t(i).parse(r)},u4.parseFragment=function(r,i,o){return typeof r=="string"&&(o=i,i=r,r=null),new t(o).parseFragment(i,r)},u4.serialize=function(n,r){return new e(n,r).serialize()},u4}var tn={},aD;function rHn(){if(aD)return tn;aD=1;const t=Nb(),{DOCUMENT_MODE:e}=a1(),n={element:1,text:3,cdata:4,comment:8},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"};class i{constructor(c){for(const u of Object.keys(c))this[u]=c[u]}get firstChild(){const c=this.children;return c&&c[0]||null}get lastChild(){const c=this.children;return c&&c[c.length-1]||null}get nodeType(){return n[this.type]||n.element}}Object.keys(r).forEach(l=>{const c=r[l];Object.defineProperty(i.prototype,l,{get:function(){return this[c]||null},set:function(u){return this[c]=u,u}})}),tn.createDocument=function(){return new i({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":e.NO_QUIRKS})},tn.createDocumentFragment=function(){return new i({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},tn.createElement=function(l,c,u){const d=Object.create(null),h=Object.create(null),f=Object.create(null);for(let m=0;m"u"&&(l.attribs[d]=c[u].value,l["x-attribsNamespace"][d]=c[u].namespace,l["x-attribsPrefix"][d]=c[u].prefix)}},tn.getFirstChild=function(l){return l.children[0]},tn.getChildNodes=function(l){return l.children},tn.getParentNode=function(l){return l.parent},tn.getAttrList=function(l){const c=[];for(const u in l.attribs)c.push({name:u,value:l.attribs[u],namespace:l["x-attribsNamespace"][u],prefix:l["x-attribsPrefix"][u]});return c},tn.getTagName=function(l){return l.name},tn.getNamespaceURI=function(l){return l.namespace},tn.getTextNodeContent=function(l){return l.data},tn.getCommentNodeContent=function(l){return l.data},tn.getDocumentTypeNodeName=function(l){return l["x-name"]},tn.getDocumentTypeNodePublicId=function(l){return l["x-publicId"]},tn.getDocumentTypeNodeSystemId=function(l){return l["x-systemId"]},tn.isTextNode=function(l){return l.type==="text"},tn.isCommentNode=function(l){return l.type==="comment"},tn.isDocumentTypeNode=function(l){return l.type==="directive"&&l.name==="!doctype"},tn.isElementNode=function(l){return!!l.attribs},tn.setNodeSourceCodeLocation=function(l,c){l.sourceCodeLocation=c},tn.getNodeSourceCodeLocation=function(l){return l.sourceCodeLocation},tn.updateNodeSourceCodeLocation=function(l,c){l.sourceCodeLocation=Object.assign(l.sourceCodeLocation,c)},tn}var lD;function G$(){if(lD)return M1;lD=1,Object.defineProperty(M1,"__esModule",{value:!0}),M1.render=M1.parse=void 0;var t=s1,e=_i(),n=nHn(),r=t.__importDefault(rHn());function i(s,a,l){var c={scriptingEnabled:typeof a.scriptingEnabled=="boolean"?a.scriptingEnabled:!0,treeAdapter:r.default,sourceCodeLocationInfo:a.sourceCodeLocationInfo},u=a.context;return l?n.parse(s,c):n.parseFragment(u,s,c)}M1.parse=i;function o(s){for(var a,l=("length"in s)?s:[s],c=0;c/;function l(c){return a.test(c)}return br.isHtml=l,br}var Jn={},pD;function iHn(){if(pD)return Jn;pD=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.toggleClass=Jn.removeClass=Jn.addClass=Jn.hasClass=Jn.removeAttr=Jn.val=Jn.data=Jn.prop=Jn.attr=void 0;var t=d6(),e=Zc(),n=Object.prototype.hasOwnProperty,r=/\s+/,i="data-",o={null:null,true:!0,false:!1},s=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,a=/^{[^]*}$|^\[[^]*]$/;function l(C,A,I){var N;if(!(!C||!e.isTag(C))){if((N=C.attribs)!==null&&N!==void 0||(C.attribs={}),!A)return C.attribs;if(n.call(C.attribs,A))return!I&&s.test(A)?A:C.attribs[A];if(C.name==="option"&&A==="value")return t.text(C.children);if(C.name==="input"&&(C.attribs.type==="radio"||C.attribs.type==="checkbox")&&A==="value")return"on"}}function c(C,A,I){I===null?v(C,A):C.attribs[A]=""+I}function u(C,A){if(typeof C=="object"||A!==void 0){if(typeof A=="function"){if(typeof C!="string")throw new Error("Bad combination of arguments.");return e.domEach(this,function(I,N){e.isTag(I)&&c(I,C,A.call(I,N,I.attribs[C]))})}return e.domEach(this,function(I){e.isTag(I)&&(typeof C=="object"?Object.keys(C).forEach(function(N){var V=C[N];c(I,N,V)}):c(I,C,A))})}return arguments.length>1?this:l(this[0],C,this.options.xmlMode)}Jn.attr=u;function d(C,A,I){if(!(!C||!e.isTag(C)))return A in C?C[A]:!I&&s.test(A)?l(C,A,!1)!==void 0:l(C,A,I)}function h(C,A,I,N){A in C?C[A]=I:c(C,A,!N&&s.test(A)?I?"":null:""+I)}function f(C,A){var I=this;if(typeof C=="string"&&A===void 0)switch(C){case"style":{var N=this.css(),V=Object.keys(N);return V.forEach(function(B,F){N[F]=B}),N.length=V.length,N}case"tagName":case"nodeName":{var R=this[0];return e.isTag(R)?R.name.toUpperCase():void 0}case"outerHTML":return this.clone().wrap("").parent().html();case"innerHTML":return this.html();default:return d(this[0],C,this.options.xmlMode)}if(typeof C=="object"||A!==void 0){if(typeof A=="function"){if(typeof C=="object")throw new Error("Bad combination of arguments.");return e.domEach(this,function(B,F){e.isTag(B)&&h(B,C,A.call(B,F,d(B,C,I.options.xmlMode)),I.options.xmlMode)})}return e.domEach(this,function(B){e.isTag(B)&&(typeof C=="object"?Object.keys(C).forEach(function(F){var U=C[F];h(B,F,U,I.options.xmlMode)}):h(B,C,A,I.options.xmlMode))})}}Jn.prop=f;function m(C,A,I){var N,V=C;(N=V.data)!==null&&N!==void 0||(V.data={}),typeof A=="object"?Object.assign(V.data,A):typeof A=="string"&&I!==void 0&&(V.data[A]=I)}function T(C,A){var I,N,V;A==null?(I=Object.keys(C.attribs).filter(function(U){return U.startsWith(i)}),N=I.map(function(U){return e.camelCase(U.slice(i.length))})):(I=[i+e.cssCase(A)],N=[A]);for(var R=0;R-1;){var V=N+C.length;if((N===0||r.test(I[N-1]))&&(V===I.length||r.test(I[V])))return!0}return!1})}Jn.hasClass=E;function x(C){if(typeof C=="function")return e.domEach(this,function(G,Z){if(e.isTag(G)){var Y=G.attribs.class||"";x.call([G],C.call(G,Z,Y))}});if(!C||typeof C!="string")return this;for(var A=C.split(r),I=this.length,N=0;N=0&&(R.splice(U,1),B=!0,F--)}B&&(V.attribs.class=R.join(" "))}})}Jn.removeClass=L;function M(C,A){if(typeof C=="function")return e.domEach(this,function(Y,ee){e.isTag(Y)&&M.call([Y],C.call(Y,ee,Y.attribs.class||"",A),A)});if(!C||typeof C!="string")return this;for(var I=C.split(r),N=I.length,V=typeof A=="boolean"?A?1:-1:0,R=this.length,B=0;B=0&&Z<0?U.push(I[G]):V<=0&&Z>=0&&U.splice(Z,1)}F.attribs.class=U.join(" ")}}return this}return Jn.toggleClass=M,Jn}var _t={},hD;function oHn(){if(hD)return _t;hD=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.addBack=_t.add=_t.end=_t.slice=_t.index=_t.toArray=_t.get=_t.eq=_t.last=_t.first=_t.has=_t.not=_t.is=_t.filterArray=_t.filter=_t.map=_t.each=_t.contents=_t.children=_t.siblings=_t.prevUntil=_t.prevAll=_t.prev=_t.nextUntil=_t.nextAll=_t.next=_t.closest=_t.parentsUntil=_t.parents=_t.parent=_t.find=void 0;var t=s1,e=_i(),n=t.__importStar(P$()),r=Zc(),i=d6(),o=Kc(),s=o.DomUtils.uniqueSort,a=/^\s*[~+]/;function l(G){var Z;if(!G)return this._make([]);var Y=this.toArray();if(typeof G!="string"){var ee=r.isCheerio(G)?G.toArray():[G];return this._make(ee.filter(function($){return Y.some(function(ce){return i.contains(ce,$)})}))}var pe=a.test(G)?Y:this.children().toArray(),K={context:Y,root:(Z=this._root)===null||Z===void 0?void 0:Z[0],xmlMode:this.options.xmlMode};return this._make(n.select(G,pe,K))}_t.find=l;function c(G){return function(Z){for(var Y=[],ee=1;ee1&&$.length>1?Y.reduce(function(ce,Ee){return Ee(ce)},$):$)}}}var u=c(function(G,Z){for(var Y,ee=[],pe=0;pe0})}_t.has=L;function M(){return this.length>1?this._make(this[0]):this}_t.first=M;function C(){return this.length>0?this._make(this[this.length-1]):this}_t.last=C;function A(G){var Z;return G=+G,G===0&&this.length<=1?this:(G<0&&(G=this.length+G),this._make((Z=this[G])!==null&&Z!==void 0?Z:[]))}_t.eq=A;function I(G){return G==null?this.toArray():this[G<0?this.length+G:G]}_t.get=I;function N(){return Array.prototype.slice.call(this)}_t.toArray=N;function V(G){var Z,Y;return G==null?(Z=this.parent().children(),Y=this[0]):typeof G=="string"?(Z=this._make(G),Y=this[0]):(Z=this,Y=r.isCheerio(G)?G[0]:G),Array.prototype.indexOf.call(Z,Y)}_t.index=V;function R(G,Z){return this._make(Array.prototype.slice.call(this,G,Z))}_t.slice=R;function B(){var G;return(G=this.prevObject)!==null&&G!==void 0?G:this._make([])}_t.end=B;function F(G,Z){var Y=this._make(G,Z),ee=s(t.__spreadArray(t.__spreadArray([],this.get()),Y.get()));return this._make(ee)}_t.add=F;function U(G){return this.prevObject?this.add(G?this.prevObject.filter(G):this.prevObject):this}return _t.addBack=U,_t}var Vt={},TD;function sHn(){if(TD)return Vt;TD=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.clone=Vt.text=Vt.toString=Vt.html=Vt.empty=Vt.replaceWith=Vt.remove=Vt.insertBefore=Vt.before=Vt.insertAfter=Vt.after=Vt.wrapAll=Vt.unwrap=Vt.wrapInner=Vt.wrap=Vt.prepend=Vt.append=Vt.prependTo=Vt.appendTo=Vt._makeDomArray=void 0;var t=s1,e=_i(),n=_i(),r=t.__importStar(Db()),i=d6(),o=Zc(),s=Kc();function a(A,I){var N=this;return A==null?[]:o.isCheerio(A)?I?o.cloneDom(A.get()):A.get():Array.isArray(A)?A.reduce(function(V,R){return V.concat(N._makeDomArray(R,I))},[]):typeof A=="string"?r.default(A,this.options,!1).children:I?o.cloneDom([A]):[A]}Vt._makeDomArray=a;function l(A){return function(){for(var I=this,N=[],V=0;V-1&&(pe.children.splice(K,1),R===pe&&I>K&&U[0]--)}ee.parent=R,ee.prev&&(ee.prev.next=(B=ee.next)!==null&&B!==void 0?B:null),ee.next&&(ee.next.prev=(F=ee.prev)!==null&&F!==void 0?F:null),ee.prev=V[Y-1]||G,ee.next=V[Y+1]||Z}return G&&(G.next=V[0]),Z&&(Z.prev=V[V.length-1]),A.splice.apply(A,U)}function u(A){var I=o.isCheerio(A)?A:this._make(A);return I.append(this),this}Vt.appendTo=u;function d(A){var I=o.isCheerio(A)?A:this._make(A);return I.prepend(this),this}Vt.prependTo=d,Vt.append=l(function(A,I,N){c(I,I.length,0,A,N)}),Vt.prepend=l(function(A,I,N){c(I,0,0,A,N)});function h(A){return function(I){for(var N=this.length-1,V=this.parents().last(),R=0;R{const c=e.MODE[l];a[c]=function(u){o.ctLoc=o._getCurrentLocation(),s[c].call(this,u)}}),a}}return Vg=r,Vg}var Fg,WN;function WPn(){if(WN)return Fg;WN=1;const t=oa();class e extends t{constructor(r,i){super(r),this.onItemPop=i.onItemPop}_getOverriddenMethods(r,i){return{pop(){r.onItemPop(this.current),i.pop.call(this)},popAllUpToHtmlElement(){for(let o=this.stackTop;o>0;o--)r.onItemPop(this.items[o]);i.popAllUpToHtmlElement.call(this)},remove(o){r.onItemPop(this.current),i.remove.call(this,o)}}}}return Fg=e,Fg}var Bg,YN;function YPn(){if(YN)return Bg;YN=1;const t=oa(),e=M9(),n=B$(),r=WPn(),o=a1().TAG_NAMES;class s extends t{constructor(l){super(l),this.parser=l,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(l){let c=null;this.lastStartTagToken&&(c=Object.assign({},this.lastStartTagToken.location),c.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(l,c)}_setEndLocation(l,c){if(this.treeAdapter.getNodeSourceCodeLocation(l)&&c.location){const d=c.location,h=this.treeAdapter.getTagName(l),f=c.type===e.END_TAG_TOKEN&&h===c.tagName,m={};f?(m.endTag=Object.assign({},d),m.endLine=d.endLine,m.endCol=d.endCol,m.endOffset=d.endOffset):(m.endLine=d.startLine,m.endCol=d.startCol,m.endOffset=d.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(l,m)}}_getOverriddenMethods(l,c){return{_bootstrap(u,d){c._bootstrap.call(this,u,d),l.lastStartTagToken=null,l.lastFosterParentingLocation=null,l.currentToken=null;const h=t.install(this.tokenizer,n);l.posTracker=h.posTracker,t.install(this.openElements,r,{onItemPop:function(f){l._setEndLocation(f,l.currentToken)}})},_runParsingLoop(u){c._runParsingLoop.call(this,u);for(let d=this.openElements.stackTop;d>=0;d--)l._setEndLocation(this.openElements.items[d],l.currentToken)},_processTokenInForeignContent(u){l.currentToken=u,c._processTokenInForeignContent.call(this,u)},_processToken(u){if(l.currentToken=u,c._processToken.call(this,u),u.type===e.END_TAG_TOKEN&&(u.tagName===o.HTML||u.tagName===o.BODY&&this.openElements.hasInScope(o.BODY)))for(let h=this.openElements.stackTop;h>=0;h--){const f=this.openElements.items[h];if(this.treeAdapter.getTagName(f)===u.tagName){l._setEndLocation(f,u);break}}},_setDocumentType(u){c._setDocumentType.call(this,u);const d=this.treeAdapter.getChildNodes(this.document),h=d.length;for(let f=0;f(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))}),zg}var d4={},nD;function Nb(){if(nD)return d4;nD=1;const{DOCUMENT_MODE:t}=a1(),e="html",n="about:legacy-compat",r="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],a=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],l=a.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function c(d){const h=d.indexOf('"')!==-1?"'":'"';return h+d+h}function u(d,h){for(let f=0;f-1)return t.QUIRKS;let m=h===null?o:i;if(u(f,m))return t.QUIRKS;if(m=h===null?a:l,u(f,m))return t.LIMITED_QUIRKS}return t.NO_QUIRKS},d4.serializeContent=function(d,h,f){let m="!DOCTYPE ";return d&&(m+=d),h?m+=" PUBLIC "+c(h):f&&(m+=" SYSTEM"),f!==null&&(m+=" "+c(f)),m},d4}var Ls={},rD;function JPn(){if(rD)return Ls;rD=1;const t=M9(),e=a1(),n=e.TAG_NAMES,r=e.NAMESPACES,i=e.ATTRS,o={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},s="definitionurl",a="definitionURL",l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},c={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:r.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:r.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:r.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:r.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:r.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:r.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:r.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:r.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:r.XML},"xml:space":{prefix:"xml",name:"space",namespace:r.XML},xmlns:{prefix:"",name:"xmlns",namespace:r.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:r.XMLNS}},u=Ls.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},d={[n.B]:!0,[n.BIG]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.CENTER]:!0,[n.CODE]:!0,[n.DD]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EM]:!0,[n.EMBED]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HR]:!0,[n.I]:!0,[n.IMG]:!0,[n.LI]:!0,[n.LISTING]:!0,[n.MENU]:!0,[n.META]:!0,[n.NOBR]:!0,[n.OL]:!0,[n.P]:!0,[n.PRE]:!0,[n.RUBY]:!0,[n.S]:!0,[n.SMALL]:!0,[n.SPAN]:!0,[n.STRONG]:!0,[n.STRIKE]:!0,[n.SUB]:!0,[n.SUP]:!0,[n.TABLE]:!0,[n.TT]:!0,[n.U]:!0,[n.UL]:!0,[n.VAR]:!0};Ls.causesExit=function(m){const T=m.tagName;return T===n.FONT&&(t.getTokenAttr(m,i.COLOR)!==null||t.getTokenAttr(m,i.SIZE)!==null||t.getTokenAttr(m,i.FACE)!==null)?!0:d[T]},Ls.adjustTokenMathMLAttrs=function(m){for(let T=0;T0);for(let Mt=D;Mt=0;O--){let Ze=this.openElements.items[O];O===0&&(D=!0,this.fragmentContext&&(Ze=this.fragmentContext));const Mt=this.treeAdapter.getTagName(Ze),vn=z[Mt];if(vn){this.insertionMode=vn;break}else if(!D&&(Mt===f.TD||Mt===f.TH)){this.insertionMode=G;break}else if(!D&&Mt===f.HEAD){this.insertionMode=L;break}else if(Mt===f.SELECT){this._resetInsertionModeForSelect(O);break}else if(Mt===f.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(Mt===f.HTML){this.insertionMode=this.headElement?C:x;break}else if(D){this.insertionMode=A;break}}}_resetInsertionModeForSelect(O){if(O>0)for(let D=O-1;D>0;D--){const Ze=this.openElements.items[D],Mt=this.treeAdapter.getTagName(Ze);if(Mt===f.TEMPLATE)break;if(Mt===f.TABLE){this.insertionMode=Y;return}}this.insertionMode=Z}_pushTmplInsertionMode(O){this.tmplInsertionModeStack.push(O),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=O}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(O){const D=this.treeAdapter.getTagName(O);return D===f.TABLE||D===f.TBODY||D===f.TFOOT||D===f.THEAD||D===f.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const O={parent:null,beforeElement:null};for(let D=this.openElements.stackTop;D>=0;D--){const Ze=this.openElements.items[D],Mt=this.treeAdapter.getTagName(Ze),vn=this.treeAdapter.getNamespaceURI(Ze);if(Mt===f.TEMPLATE&&vn===m.HTML){O.parent=this.treeAdapter.getTemplateContent(Ze);break}else if(Mt===f.TABLE){O.parent=this.treeAdapter.getParentNode(Ze),O.parent?O.beforeElement=Ze:O.parent=this.openElements.items[D-1];break}}return O.parent||(O.parent=this.openElements.items[0]),O}_fosterParentElement(O){const D=this._findFosterParentingLocation();D.beforeElement?this.treeAdapter.insertBefore(D.parent,O,D.beforeElement):this.treeAdapter.appendChild(D.parent,O)}_fosterParentText(O){const D=this._findFosterParentingLocation();D.beforeElement?this.treeAdapter.insertTextBefore(D.parent,O,D.beforeElement):this.treeAdapter.insertText(D.parent,O)}_isSpecialElement(O){const D=this.treeAdapter.getTagName(O),Ze=this.treeAdapter.getNamespaceURI(O);return h.SPECIAL_ELEMENTS[Ze][D]}}jg=Se;function we(w,O){let D=w.activeFormattingElements.getElementEntryInScopeWithTagName(O.tagName);return D?w.openElements.contains(D.element)?w.openElements.hasInScope(O.tagName)||(D=null):(w.activeFormattingElements.removeEntry(D),D=null):Qn(w,O),D}function se(w,O){let D=null;for(let Ze=w.openElements.stackTop;Ze>=0;Ze--){const Mt=w.openElements.items[Ze];if(Mt===O.element)break;w._isSpecialElement(Mt)&&(D=Mt)}return D||(w.openElements.popUntilElementPopped(O.element),w.activeFormattingElements.removeEntry(O)),D}function W(w,O,D){let Ze=O,Mt=w.openElements.getCommonAncestor(O);for(let vn=0,Rr=Mt;Rr!==D;vn++,Rr=Mt){Mt=w.openElements.getCommonAncestor(Rr);const l3=w.activeFormattingElements.getElementEntry(Rr),GE=l3&&vn>=y;!l3||GE?(GE&&w.activeFormattingElements.removeEntry(l3),w.openElements.remove(Rr)):(Rr=j(w,l3),Ze===O&&(w.activeFormattingElements.bookmark=l3),w.treeAdapter.detachNode(Ze),w.treeAdapter.appendChild(Rr,Ze),Ze=Rr)}return Ze}function j(w,O){const D=w.treeAdapter.getNamespaceURI(O.element),Ze=w.treeAdapter.createElement(O.token.tagName,D,O.token.attrs);return w.openElements.replace(O.element,Ze),O.element=Ze,Ze}function oe(w,O,D){if(w._isElementCausesFosterParenting(O))w._fosterParentElement(D);else{const Ze=w.treeAdapter.getTagName(O),Mt=w.treeAdapter.getNamespaceURI(O);Ze===f.TEMPLATE&&Mt===m.HTML&&(O=w.treeAdapter.getTemplateContent(O)),w.treeAdapter.appendChild(O,D)}}function _e(w,O,D){const Ze=w.treeAdapter.getNamespaceURI(D.element),Mt=D.token,vn=w.treeAdapter.createElement(Mt.tagName,Ze,Mt.attrs);w._adoptNodes(O,vn),w.treeAdapter.appendChild(O,vn),w.activeFormattingElements.insertElementAfterBookmark(vn,D.token),w.activeFormattingElements.removeEntry(D),w.openElements.remove(D.element),w.openElements.insertAfter(O,vn)}function ye(w,O){let D;for(let Ze=0;Ze0?(w.openElements.generateImpliedEndTagsThoroughly(),w.openElements.currentTagName!==f.TEMPLATE&&w._err(u.closingOfElementWithOpenChildElements),w.openElements.popUntilTagNamePopped(f.TEMPLATE),w.activeFormattingElements.clearToLastMarker(),w._popTmplInsertionMode(),w._resetInsertionMode()):w._err(u.endTagWithoutMatchingOpenElement)}function Ot(w,O){w.openElements.pop(),w.insertionMode=C,w._processToken(O)}function pt(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.BASEFONT||D===f.BGSOUND||D===f.HEAD||D===f.LINK||D===f.META||D===f.NOFRAMES||D===f.STYLE?it(w,O):D===f.NOSCRIPT?w._err(u.nestedNoscriptInHead):Tt(w,O)}function ht(w,O){const D=O.tagName;D===f.NOSCRIPT?(w.openElements.pop(),w.insertionMode=L):D===f.BR?Tt(w,O):w._err(u.endTagWithoutMatchingOpenElement)}function Tt(w,O){const D=O.type===t.EOF_TOKEN?u.openElementsLeftAfterEof:u.disallowedContentInNoscriptInHead;w._err(D),w.openElements.pop(),w.insertionMode=L,w._processToken(O)}function rt(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.BODY?(w._insertElement(O,m.HTML),w.framesetOk=!1,w.insertionMode=A):D===f.FRAMESET?(w._insertElement(O,m.HTML),w.insertionMode=K):D===f.BASE||D===f.BASEFONT||D===f.BGSOUND||D===f.LINK||D===f.META||D===f.NOFRAMES||D===f.SCRIPT||D===f.STYLE||D===f.TEMPLATE||D===f.TITLE?(w._err(u.abandonedHeadElementChild),w.openElements.push(w.headElement),it(w,O),w.openElements.remove(w.headElement)):D===f.HEAD?w._err(u.misplacedStartTagForHeadElement):Qe(w,O)}function ut(w,O){const D=O.tagName;D===f.BODY||D===f.HTML||D===f.BR?Qe(w,O):D===f.TEMPLATE?$e(w,O):w._err(u.endTagWithoutMatchingOpenElement)}function Qe(w,O){w._insertFakeElement(f.BODY),w.insertionMode=A,w._processToken(O)}function Ue(w,O){w._reconstructActiveFormattingElements(),w._insertCharacters(O)}function Ge(w,O){w._reconstructActiveFormattingElements(),w._insertCharacters(O),w.framesetOk=!1}function Ve(w,O){w.openElements.tmplCount===0&&w.treeAdapter.adoptAttributes(w.openElements.items[0],O.attrs)}function Je(w,O){const D=w.openElements.tryPeekProperlyNestedBodyElement();D&&w.openElements.tmplCount===0&&(w.framesetOk=!1,w.treeAdapter.adoptAttributes(D,O.attrs))}function yt(w,O){const D=w.openElements.tryPeekProperlyNestedBodyElement();w.framesetOk&&D&&(w.treeAdapter.detachNode(D),w.openElements.popAllUpToHtmlElement(),w._insertElement(O,m.HTML),w.insertionMode=K)}function Rt(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML)}function wn(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement();const D=w.openElements.currentTagName;(D===f.H1||D===f.H2||D===f.H3||D===f.H4||D===f.H5||D===f.H6)&&w.openElements.pop(),w._insertElement(O,m.HTML)}function Bn(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),w.skipNextNewLine=!0,w.framesetOk=!1}function Xt(w,O){const D=w.openElements.tmplCount>0;(!w.formElement||D)&&(w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),D||(w.formElement=w.openElements.current))}function $n(w,O){w.framesetOk=!1;const D=O.tagName;for(let Ze=w.openElements.stackTop;Ze>=0;Ze--){const Mt=w.openElements.items[Ze],vn=w.treeAdapter.getTagName(Mt);let Rr=null;if(D===f.LI&&vn===f.LI?Rr=f.LI:(D===f.DD||D===f.DT)&&(vn===f.DD||vn===f.DT)&&(Rr=vn),Rr){w.openElements.generateImpliedEndTagsWithExclusion(Rr),w.openElements.popUntilTagNamePopped(Rr);break}if(vn!==f.ADDRESS&&vn!==f.DIV&&vn!==f.P&&w._isSpecialElement(Mt))break}w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML)}function hr(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),w.tokenizer.state=t.MODE.PLAINTEXT}function lr(w,O){w.openElements.hasInScope(f.BUTTON)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(f.BUTTON)),w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.framesetOk=!1}function $r(w,O){const D=w.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);D&&(ye(w,O),w.openElements.remove(D.element),w.activeFormattingElements.removeEntry(D)),w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.activeFormattingElements.pushElement(w.openElements.current,O)}function $t(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.activeFormattingElements.pushElement(w.openElements.current,O)}function oi(w,O){w._reconstructActiveFormattingElements(),w.openElements.hasInScope(f.NOBR)&&(ye(w,O),w._reconstructActiveFormattingElements()),w._insertElement(O,m.HTML),w.activeFormattingElements.pushElement(w.openElements.current,O)}function zn(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.activeFormattingElements.insertMarker(),w.framesetOk=!1}function Mr(w,O){w.treeAdapter.getDocumentMode(w.document)!==h.DOCUMENT_MODE.QUIRKS&&w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML),w.framesetOk=!1,w.insertionMode=N}function _n(w,O){w._reconstructActiveFormattingElements(),w._appendElement(O,m.HTML),w.framesetOk=!1,O.ackSelfClosing=!0}function lo(w,O){w._reconstructActiveFormattingElements(),w._appendElement(O,m.HTML);const D=t.getTokenAttr(O,T.TYPE);(!D||D.toLowerCase()!==_)&&(w.framesetOk=!1),O.ackSelfClosing=!0}function co(w,O){w._appendElement(O,m.HTML),O.ackSelfClosing=!0}function Io(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._appendElement(O,m.HTML),w.framesetOk=!1,O.ackSelfClosing=!0}function ne(w,O){O.tagName=f.IMG,_n(w,O)}function Ae(w,O){w._insertElement(O,m.HTML),w.skipNextNewLine=!0,w.tokenizer.state=t.MODE.RCDATA,w.originalInsertionMode=w.insertionMode,w.framesetOk=!1,w.insertionMode=I}function me(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._reconstructActiveFormattingElements(),w.framesetOk=!1,w._switchToTextParsing(O,t.MODE.RAWTEXT)}function J(w,O){w.framesetOk=!1,w._switchToTextParsing(O,t.MODE.RAWTEXT)}function de(w,O){w._switchToTextParsing(O,t.MODE.RAWTEXT)}function Re(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML),w.framesetOk=!1,w.insertionMode===N||w.insertionMode===R||w.insertionMode===F||w.insertionMode===U||w.insertionMode===G?w.insertionMode=Y:w.insertionMode=Z}function ke(w,O){w.openElements.currentTagName===f.OPTION&&w.openElements.pop(),w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML)}function H(w,O){w.openElements.hasInScope(f.RUBY)&&w.openElements.generateImpliedEndTags(),w._insertElement(O,m.HTML)}function je(w,O){w.openElements.hasInScope(f.RUBY)&&w.openElements.generateImpliedEndTagsWithExclusion(f.RTC),w._insertElement(O,m.HTML)}function ft(w,O){w.openElements.hasInButtonScope(f.P)&&w._closePElement(),w._insertElement(O,m.HTML)}function dt(w,O){w._reconstructActiveFormattingElements(),c.adjustTokenMathMLAttrs(O),c.adjustTokenXMLAttrs(O),O.selfClosing?w._appendElement(O,m.MATHML):w._insertElement(O,m.MATHML),O.ackSelfClosing=!0}function mt(w,O){w._reconstructActiveFormattingElements(),c.adjustTokenSVGAttrs(O),c.adjustTokenXMLAttrs(O),O.selfClosing?w._appendElement(O,m.SVG):w._insertElement(O,m.SVG),O.ackSelfClosing=!0}function bt(w,O){w._reconstructActiveFormattingElements(),w._insertElement(O,m.HTML)}function qt(w,O){const D=O.tagName;switch(D.length){case 1:D===f.I||D===f.S||D===f.B||D===f.U?$t(w,O):D===f.P?Rt(w,O):D===f.A?$r(w,O):bt(w,O);break;case 2:D===f.DL||D===f.OL||D===f.UL?Rt(w,O):D===f.H1||D===f.H2||D===f.H3||D===f.H4||D===f.H5||D===f.H6?wn(w,O):D===f.LI||D===f.DD||D===f.DT?$n(w,O):D===f.EM||D===f.TT?$t(w,O):D===f.BR?_n(w,O):D===f.HR?Io(w,O):D===f.RB?H(w,O):D===f.RT||D===f.RP?je(w,O):D!==f.TH&&D!==f.TD&&D!==f.TR&&bt(w,O);break;case 3:D===f.DIV||D===f.DIR||D===f.NAV?Rt(w,O):D===f.PRE?Bn(w,O):D===f.BIG?$t(w,O):D===f.IMG||D===f.WBR?_n(w,O):D===f.XMP?me(w,O):D===f.SVG?mt(w,O):D===f.RTC?H(w,O):D!==f.COL&&bt(w,O);break;case 4:D===f.HTML?Ve(w,O):D===f.BASE||D===f.LINK||D===f.META?it(w,O):D===f.BODY?Je(w,O):D===f.MAIN||D===f.MENU?Rt(w,O):D===f.FORM?Xt(w,O):D===f.CODE||D===f.FONT?$t(w,O):D===f.NOBR?oi(w,O):D===f.AREA?_n(w,O):D===f.MATH?dt(w,O):D===f.MENU?ft(w,O):D!==f.HEAD&&bt(w,O);break;case 5:D===f.STYLE||D===f.TITLE?it(w,O):D===f.ASIDE?Rt(w,O):D===f.SMALL?$t(w,O):D===f.TABLE?Mr(w,O):D===f.EMBED?_n(w,O):D===f.INPUT?lo(w,O):D===f.PARAM||D===f.TRACK?co(w,O):D===f.IMAGE?ne(w,O):D!==f.FRAME&&D!==f.TBODY&&D!==f.TFOOT&&D!==f.THEAD&&bt(w,O);break;case 6:D===f.SCRIPT?it(w,O):D===f.CENTER||D===f.FIGURE||D===f.FOOTER||D===f.HEADER||D===f.HGROUP||D===f.DIALOG?Rt(w,O):D===f.BUTTON?lr(w,O):D===f.STRIKE||D===f.STRONG?$t(w,O):D===f.APPLET||D===f.OBJECT?zn(w,O):D===f.KEYGEN?_n(w,O):D===f.SOURCE?co(w,O):D===f.IFRAME?J(w,O):D===f.SELECT?Re(w,O):D===f.OPTION?ke(w,O):bt(w,O);break;case 7:D===f.BGSOUND?it(w,O):D===f.DETAILS||D===f.ADDRESS||D===f.ARTICLE||D===f.SECTION||D===f.SUMMARY?Rt(w,O):D===f.LISTING?Bn(w,O):D===f.MARQUEE?zn(w,O):D===f.NOEMBED?de(w,O):D!==f.CAPTION&&bt(w,O);break;case 8:D===f.BASEFONT?it(w,O):D===f.FRAMESET?yt(w,O):D===f.FIELDSET?Rt(w,O):D===f.TEXTAREA?Ae(w,O):D===f.TEMPLATE?it(w,O):D===f.NOSCRIPT?w.options.scriptingEnabled?de(w,O):bt(w,O):D===f.OPTGROUP?ke(w,O):D!==f.COLGROUP&&bt(w,O);break;case 9:D===f.PLAINTEXT?hr(w,O):bt(w,O);break;case 10:D===f.BLOCKQUOTE||D===f.FIGCAPTION?Rt(w,O):bt(w,O);break;default:bt(w,O)}}function sn(w){w.openElements.hasInScope(f.BODY)&&(w.insertionMode=pe)}function Or(w,O){w.openElements.hasInScope(f.BODY)&&(w.insertionMode=pe,w._processToken(O))}function ln(w,O){const D=O.tagName;w.openElements.hasInScope(D)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(D))}function Ut(w){const O=w.openElements.tmplCount>0,D=w.formElement;O||(w.formElement=null),(D||O)&&w.openElements.hasInScope(f.FORM)&&(w.openElements.generateImpliedEndTags(),O?w.openElements.popUntilTagNamePopped(f.FORM):w.openElements.remove(D))}function I2(w){w.openElements.hasInButtonScope(f.P)||w._insertFakeElement(f.P),w._closePElement()}function Pn(w){w.openElements.hasInListItemScope(f.LI)&&(w.openElements.generateImpliedEndTagsWithExclusion(f.LI),w.openElements.popUntilTagNamePopped(f.LI))}function ko(w,O){const D=O.tagName;w.openElements.hasInScope(D)&&(w.openElements.generateImpliedEndTagsWithExclusion(D),w.openElements.popUntilTagNamePopped(D))}function o3(w){w.openElements.hasNumberedHeaderInScope()&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilNumberedHeaderPopped())}function ms(w,O){const D=O.tagName;w.openElements.hasInScope(D)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(D),w.activeFormattingElements.clearToLastMarker())}function k2(w){w._reconstructActiveFormattingElements(),w._insertFakeElement(f.BR),w.openElements.pop(),w.framesetOk=!1}function Qn(w,O){const D=O.tagName;for(let Ze=w.openElements.stackTop;Ze>0;Ze--){const Mt=w.openElements.items[Ze];if(w.treeAdapter.getTagName(Mt)===D){w.openElements.generateImpliedEndTagsWithExclusion(D),w.openElements.popUntilElementPopped(Mt);break}if(w._isSpecialElement(Mt))break}}function ki(w,O){const D=O.tagName;switch(D.length){case 1:D===f.A||D===f.B||D===f.I||D===f.S||D===f.U?ye(w,O):D===f.P?I2(w):Qn(w,O);break;case 2:D===f.DL||D===f.UL||D===f.OL?ln(w,O):D===f.LI?Pn(w):D===f.DD||D===f.DT?ko(w,O):D===f.H1||D===f.H2||D===f.H3||D===f.H4||D===f.H5||D===f.H6?o3(w):D===f.BR?k2(w):D===f.EM||D===f.TT?ye(w,O):Qn(w,O);break;case 3:D===f.BIG?ye(w,O):D===f.DIR||D===f.DIV||D===f.NAV||D===f.PRE?ln(w,O):Qn(w,O);break;case 4:D===f.BODY?sn(w):D===f.HTML?Or(w,O):D===f.FORM?Ut(w):D===f.CODE||D===f.FONT||D===f.NOBR?ye(w,O):D===f.MAIN||D===f.MENU?ln(w,O):Qn(w,O);break;case 5:D===f.ASIDE?ln(w,O):D===f.SMALL?ye(w,O):Qn(w,O);break;case 6:D===f.CENTER||D===f.FIGURE||D===f.FOOTER||D===f.HEADER||D===f.HGROUP||D===f.DIALOG?ln(w,O):D===f.APPLET||D===f.OBJECT?ms(w,O):D===f.STRIKE||D===f.STRONG?ye(w,O):Qn(w,O);break;case 7:D===f.ADDRESS||D===f.ARTICLE||D===f.DETAILS||D===f.SECTION||D===f.SUMMARY||D===f.LISTING?ln(w,O):D===f.MARQUEE?ms(w,O):Qn(w,O);break;case 8:D===f.FIELDSET?ln(w,O):D===f.TEMPLATE?$e(w,O):Qn(w,O);break;case 10:D===f.BLOCKQUOTE||D===f.FIGCAPTION?ln(w,O):Qn(w,O);break;default:Qn(w,O)}}function si(w,O){w.tmplInsertionModeStackTop>-1?UE(w,O):w.stopped=!0}function Ur(w,O){O.tagName===f.SCRIPT&&(w.pendingScript=w.openElements.current),w.openElements.pop(),w.insertionMode=w.originalInsertionMode}function P2(w,O){w._err(u.eofInElementThatCanContainOnlyText),w.openElements.pop(),w.insertionMode=w.originalInsertionMode,w._processToken(O)}function Pi(w,O){const D=w.openElements.currentTagName;D===f.TABLE||D===f.TBODY||D===f.TFOOT||D===f.THEAD||D===f.TR?(w.pendingCharacterTokens=[],w.hasNonWhitespacePendingCharacterToken=!1,w.originalInsertionMode=w.insertionMode,w.insertionMode=V,w._processToken(O)):Gr(w,O)}function s3(w,O){w.openElements.clearBackToTableContext(),w.activeFormattingElements.insertMarker(),w._insertElement(O,m.HTML),w.insertionMode=R}function z9(w,O){w.openElements.clearBackToTableContext(),w._insertElement(O,m.HTML),w.insertionMode=B}function j9(w,O){w.openElements.clearBackToTableContext(),w._insertFakeElement(f.COLGROUP),w.insertionMode=B,w._processToken(O)}function W9(w,O){w.openElements.clearBackToTableContext(),w._insertElement(O,m.HTML),w.insertionMode=F}function Y9(w,O){w.openElements.clearBackToTableContext(),w._insertFakeElement(f.TBODY),w.insertionMode=F,w._processToken(O)}function K9(w,O){w.openElements.hasInTableScope(f.TABLE)&&(w.openElements.popUntilTagNamePopped(f.TABLE),w._resetInsertionMode(),w._processToken(O))}function Z9(w,O){const D=t.getTokenAttr(O,T.TYPE);D&&D.toLowerCase()===_?w._appendElement(O,m.HTML):Gr(w,O),O.ackSelfClosing=!0}function X9(w,O){!w.formElement&&w.openElements.tmplCount===0&&(w._insertElement(O,m.HTML),w.formElement=w.openElements.current,w.openElements.pop())}function H2(w,O){const D=O.tagName;switch(D.length){case 2:D===f.TD||D===f.TH||D===f.TR?Y9(w,O):Gr(w,O);break;case 3:D===f.COL?j9(w,O):Gr(w,O);break;case 4:D===f.FORM?X9(w,O):Gr(w,O);break;case 5:D===f.TABLE?K9(w,O):D===f.STYLE?it(w,O):D===f.TBODY||D===f.TFOOT||D===f.THEAD?W9(w,O):D===f.INPUT?Z9(w,O):Gr(w,O);break;case 6:D===f.SCRIPT?it(w,O):Gr(w,O);break;case 7:D===f.CAPTION?s3(w,O):Gr(w,O);break;case 8:D===f.COLGROUP?z9(w,O):D===f.TEMPLATE?it(w,O):Gr(w,O);break;default:Gr(w,O)}}function V2(w,O){const D=O.tagName;D===f.TABLE?w.openElements.hasInTableScope(f.TABLE)&&(w.openElements.popUntilTagNamePopped(f.TABLE),w._resetInsertionMode()):D===f.TEMPLATE?$e(w,O):D!==f.BODY&&D!==f.CAPTION&&D!==f.COL&&D!==f.COLGROUP&&D!==f.HTML&&D!==f.TBODY&&D!==f.TD&&D!==f.TFOOT&&D!==f.TH&&D!==f.THEAD&&D!==f.TR&&Gr(w,O)}function Gr(w,O){const D=w.fosterParentingEnabled;w.fosterParentingEnabled=!0,w._processTokenInBodyMode(O),w.fosterParentingEnabled=D}function J9(w,O){w.pendingCharacterTokens.push(O)}function ef(w,O){w.pendingCharacterTokens.push(O),w.hasNonWhitespacePendingCharacterToken=!0}function la(w,O){let D=0;if(w.hasNonWhitespacePendingCharacterToken)for(;D0?(w.openElements.popUntilTagNamePopped(f.TEMPLATE),w.activeFormattingElements.clearToLastMarker(),w._popTmplInsertionMode(),w._resetInsertionMode(),w._processToken(O)):w.stopped=!0}function Eq(w,O){O.tagName===f.HTML?qt(w,O):Q6(w,O)}function xq(w,O){O.tagName===f.HTML?w.fragmentContext||(w.insertionMode=ce):Q6(w,O)}function Q6(w,O){w.insertionMode=A,w._processToken(O)}function Sq(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.FRAMESET?w._insertElement(O,m.HTML):D===f.FRAME?(w._appendElement(O,m.HTML),O.ackSelfClosing=!0):D===f.NOFRAMES&&it(w,O)}function Lq(w,O){O.tagName===f.FRAMESET&&!w.openElements.isRootHtmlElementCurrent()&&(w.openElements.pop(),!w.fragmentContext&&w.openElements.currentTagName!==f.FRAMESET&&(w.insertionMode=$))}function Cq(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.NOFRAMES&&it(w,O)}function Aq(w,O){O.tagName===f.HTML&&(w.insertionMode=Ee)}function wq(w,O){O.tagName===f.HTML?qt(w,O):v6(w,O)}function v6(w,O){w.insertionMode=A,w._processToken(O)}function Mq(w,O){const D=O.tagName;D===f.HTML?qt(w,O):D===f.NOFRAMES&&it(w,O)}function Oq(w,O){O.chars=d.REPLACEMENT_CHARACTER,w._insertCharacters(O)}function Rq(w,O){w._insertCharacters(O),w.framesetOk=!1}function Nq(w,O){if(c.causesExit(O)&&!w.fragmentContext){for(;w.treeAdapter.getNamespaceURI(w.openElements.current)!==m.HTML&&!w._isIntegrationPoint(w.openElements.current);)w.openElements.pop();w._processToken(O)}else{const D=w._getAdjustedCurrentElement(),Ze=w.treeAdapter.getNamespaceURI(D);Ze===m.MATHML?c.adjustTokenMathMLAttrs(O):Ze===m.SVG&&(c.adjustTokenSVGTagName(O),c.adjustTokenSVGAttrs(O)),c.adjustTokenXMLAttrs(O),O.selfClosing?w._appendElement(O,Ze):w._insertElement(O,Ze),O.ackSelfClosing=!0}}function Dq(w,O){for(let D=w.openElements.stackTop;D>0;D--){const Ze=w.openElements.items[D];if(w.treeAdapter.getNamespaceURI(Ze)===m.HTML){w._processToken(O);break}if(w.treeAdapter.getTagName(Ze).toLowerCase()===O.tagName){w.openElements.popUntilElementPopped(Ze);break}}}return jg}var Wg,oD;function tHn(){if(oD)return Wg;oD=1;const t=$$(),e=U$(),n=Nb(),r=a1(),i=r.TAG_NAMES,o=r.NAMESPACES,s={treeAdapter:t},a=/&/g,l=/\u00a0/g,c=/"/g,u=//g;class h{constructor(m,T){this.options=e(s,T),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=m}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(m){const T=this.treeAdapter.getChildNodes(m);if(T)for(let Q=0,_=T.length;Q<_;Q++){const v=T[Q];this.treeAdapter.isElementNode(v)?this._serializeElement(v):this.treeAdapter.isTextNode(v)?this._serializeTextNode(v):this.treeAdapter.isCommentNode(v)?this._serializeCommentNode(v):this.treeAdapter.isDocumentTypeNode(v)&&this._serializeDocumentTypeNode(v)}}_serializeElement(m){const T=this.treeAdapter.getTagName(m),Q=this.treeAdapter.getNamespaceURI(m);if(this.html+="<"+T,this._serializeAttributes(m),this.html+=">",T!==i.AREA&&T!==i.BASE&&T!==i.BASEFONT&&T!==i.BGSOUND&&T!==i.BR&&T!==i.COL&&T!==i.EMBED&&T!==i.FRAME&&T!==i.HR&&T!==i.IMG&&T!==i.INPUT&&T!==i.KEYGEN&&T!==i.LINK&&T!==i.META&&T!==i.PARAM&&T!==i.SOURCE&&T!==i.TRACK&&T!==i.WBR){const _=T===i.TEMPLATE&&Q===o.HTML?this.treeAdapter.getTemplateContent(m):m;this._serializeChildNodes(_),this.html+=""}}_serializeAttributes(m){const T=this.treeAdapter.getAttrList(m);for(let Q=0,_=T.length;Q<_;Q++){const v=T[Q],y=h.escapeString(v.value,!0);this.html+=" ",v.namespace?v.namespace===o.XML?this.html+="xml:"+v.name:v.namespace===o.XMLNS?(v.name!=="xmlns"&&(this.html+="xmlns:"),this.html+=v.name):v.namespace===o.XLINK?this.html+="xlink:"+v.name:this.html+=v.prefix+":"+v.name:this.html+=v.name,this.html+='="'+y+'"'}}_serializeTextNode(m){const T=this.treeAdapter.getTextNodeContent(m),Q=this.treeAdapter.getParentNode(m);let _;Q&&this.treeAdapter.isElementNode(Q)&&(_=this.treeAdapter.getTagName(Q)),_===i.STYLE||_===i.SCRIPT||_===i.XMP||_===i.IFRAME||_===i.NOEMBED||_===i.NOFRAMES||_===i.PLAINTEXT||_===i.NOSCRIPT?this.html+=T:this.html+=h.escapeString(T,!1)}_serializeCommentNode(m){this.html+=""}_serializeDocumentTypeNode(m){const T=this.treeAdapter.getDocumentTypeNodeName(m);this.html+="<"+n.serializeContent(T,null,null)+">"}}return h.escapeString=function(f,m){return f=f.replace(a,"&").replace(l," "),m?f=f.replace(c,"""):f=f.replace(u,"<").replace(d,">"),f},Wg=h,Wg}var sD;function nHn(){if(sD)return u4;sD=1;const t=eHn(),e=tHn();return u4.parse=function(r,i){return new t(i).parse(r)},u4.parseFragment=function(r,i,o){return typeof r=="string"&&(o=i,i=r,r=null),new t(o).parseFragment(i,r)},u4.serialize=function(n,r){return new e(n,r).serialize()},u4}var tn={},aD;function rHn(){if(aD)return tn;aD=1;const t=Nb(),{DOCUMENT_MODE:e}=a1(),n={element:1,text:3,cdata:4,comment:8},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"};class i{constructor(c){for(const u of Object.keys(c))this[u]=c[u]}get firstChild(){const c=this.children;return c&&c[0]||null}get lastChild(){const c=this.children;return c&&c[c.length-1]||null}get nodeType(){return n[this.type]||n.element}}Object.keys(r).forEach(l=>{const c=r[l];Object.defineProperty(i.prototype,l,{get:function(){return this[c]||null},set:function(u){return this[c]=u,u}})}),tn.createDocument=function(){return new i({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":e.NO_QUIRKS})},tn.createDocumentFragment=function(){return new i({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},tn.createElement=function(l,c,u){const d=Object.create(null),h=Object.create(null),f=Object.create(null);for(let m=0;m"u"&&(l.attribs[d]=c[u].value,l["x-attribsNamespace"][d]=c[u].namespace,l["x-attribsPrefix"][d]=c[u].prefix)}},tn.getFirstChild=function(l){return l.children[0]},tn.getChildNodes=function(l){return l.children},tn.getParentNode=function(l){return l.parent},tn.getAttrList=function(l){const c=[];for(const u in l.attribs)c.push({name:u,value:l.attribs[u],namespace:l["x-attribsNamespace"][u],prefix:l["x-attribsPrefix"][u]});return c},tn.getTagName=function(l){return l.name},tn.getNamespaceURI=function(l){return l.namespace},tn.getTextNodeContent=function(l){return l.data},tn.getCommentNodeContent=function(l){return l.data},tn.getDocumentTypeNodeName=function(l){return l["x-name"]},tn.getDocumentTypeNodePublicId=function(l){return l["x-publicId"]},tn.getDocumentTypeNodeSystemId=function(l){return l["x-systemId"]},tn.isTextNode=function(l){return l.type==="text"},tn.isCommentNode=function(l){return l.type==="comment"},tn.isDocumentTypeNode=function(l){return l.type==="directive"&&l.name==="!doctype"},tn.isElementNode=function(l){return!!l.attribs},tn.setNodeSourceCodeLocation=function(l,c){l.sourceCodeLocation=c},tn.getNodeSourceCodeLocation=function(l){return l.sourceCodeLocation},tn.updateNodeSourceCodeLocation=function(l,c){l.sourceCodeLocation=Object.assign(l.sourceCodeLocation,c)},tn}var lD;function G$(){if(lD)return M1;lD=1,Object.defineProperty(M1,"__esModule",{value:!0}),M1.render=M1.parse=void 0;var t=s1,e=_i(),n=nHn(),r=t.__importDefault(rHn());function i(s,a,l){var c={scriptingEnabled:typeof a.scriptingEnabled=="boolean"?a.scriptingEnabled:!0,treeAdapter:r.default,sourceCodeLocationInfo:a.sourceCodeLocationInfo},u=a.context;return l?n.parse(s,c):n.parseFragment(u,s,c)}M1.parse=i;function o(s){for(var a,l=("length"in s)?s:[s],c=0;c/;function l(c){return a.test(c)}return br.isHtml=l,br}var Jn={},pD;function iHn(){if(pD)return Jn;pD=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.toggleClass=Jn.removeClass=Jn.addClass=Jn.hasClass=Jn.removeAttr=Jn.val=Jn.data=Jn.prop=Jn.attr=void 0;var t=d6(),e=Zc(),n=Object.prototype.hasOwnProperty,r=/\s+/,i="data-",o={null:null,true:!0,false:!1},s=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,a=/^{[^]*}$|^\[[^]*]$/;function l(C,A,I){var N;if(!(!C||!e.isTag(C))){if((N=C.attribs)!==null&&N!==void 0||(C.attribs={}),!A)return C.attribs;if(n.call(C.attribs,A))return!I&&s.test(A)?A:C.attribs[A];if(C.name==="option"&&A==="value")return t.text(C.children);if(C.name==="input"&&(C.attribs.type==="radio"||C.attribs.type==="checkbox")&&A==="value")return"on"}}function c(C,A,I){I===null?v(C,A):C.attribs[A]=""+I}function u(C,A){if(typeof C=="object"||A!==void 0){if(typeof A=="function"){if(typeof C!="string")throw new Error("Bad combination of arguments.");return e.domEach(this,function(I,N){e.isTag(I)&&c(I,C,A.call(I,N,I.attribs[C]))})}return e.domEach(this,function(I){e.isTag(I)&&(typeof C=="object"?Object.keys(C).forEach(function(N){var V=C[N];c(I,N,V)}):c(I,C,A))})}return arguments.length>1?this:l(this[0],C,this.options.xmlMode)}Jn.attr=u;function d(C,A,I){if(!(!C||!e.isTag(C)))return A in C?C[A]:!I&&s.test(A)?l(C,A,!1)!==void 0:l(C,A,I)}function h(C,A,I,N){A in C?C[A]=I:c(C,A,!N&&s.test(A)?I?"":null:""+I)}function f(C,A){var I=this;if(typeof C=="string"&&A===void 0)switch(C){case"style":{var N=this.css(),V=Object.keys(N);return V.forEach(function(B,F){N[F]=B}),N.length=V.length,N}case"tagName":case"nodeName":{var R=this[0];return e.isTag(R)?R.name.toUpperCase():void 0}case"outerHTML":return this.clone().wrap("").parent().html();case"innerHTML":return this.html();default:return d(this[0],C,this.options.xmlMode)}if(typeof C=="object"||A!==void 0){if(typeof A=="function"){if(typeof C=="object")throw new Error("Bad combination of arguments.");return e.domEach(this,function(B,F){e.isTag(B)&&h(B,C,A.call(B,F,d(B,C,I.options.xmlMode)),I.options.xmlMode)})}return e.domEach(this,function(B){e.isTag(B)&&(typeof C=="object"?Object.keys(C).forEach(function(F){var U=C[F];h(B,F,U,I.options.xmlMode)}):h(B,C,A,I.options.xmlMode))})}}Jn.prop=f;function m(C,A,I){var N,V=C;(N=V.data)!==null&&N!==void 0||(V.data={}),typeof A=="object"?Object.assign(V.data,A):typeof A=="string"&&I!==void 0&&(V.data[A]=I)}function T(C,A){var I,N,V;A==null?(I=Object.keys(C.attribs).filter(function(U){return U.startsWith(i)}),N=I.map(function(U){return e.camelCase(U.slice(i.length))})):(I=[i+e.cssCase(A)],N=[A]);for(var R=0;R-1;){var V=N+C.length;if((N===0||r.test(I[N-1]))&&(V===I.length||r.test(I[V])))return!0}return!1})}Jn.hasClass=E;function x(C){if(typeof C=="function")return e.domEach(this,function(G,Z){if(e.isTag(G)){var Y=G.attribs.class||"";x.call([G],C.call(G,Z,Y))}});if(!C||typeof C!="string")return this;for(var A=C.split(r),I=this.length,N=0;N=0&&(R.splice(U,1),B=!0,F--)}B&&(V.attribs.class=R.join(" "))}})}Jn.removeClass=L;function M(C,A){if(typeof C=="function")return e.domEach(this,function(Y,ee){e.isTag(Y)&&M.call([Y],C.call(Y,ee,Y.attribs.class||"",A),A)});if(!C||typeof C!="string")return this;for(var I=C.split(r),N=I.length,V=typeof A=="boolean"?A?1:-1:0,R=this.length,B=0;B=0&&Z<0?U.push(I[G]):V<=0&&Z>=0&&U.splice(Z,1)}F.attribs.class=U.join(" ")}}return this}return Jn.toggleClass=M,Jn}var _t={},hD;function oHn(){if(hD)return _t;hD=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.addBack=_t.add=_t.end=_t.slice=_t.index=_t.toArray=_t.get=_t.eq=_t.last=_t.first=_t.has=_t.not=_t.is=_t.filterArray=_t.filter=_t.map=_t.each=_t.contents=_t.children=_t.siblings=_t.prevUntil=_t.prevAll=_t.prev=_t.nextUntil=_t.nextAll=_t.next=_t.closest=_t.parentsUntil=_t.parents=_t.parent=_t.find=void 0;var t=s1,e=_i(),n=t.__importStar(P$()),r=Zc(),i=d6(),o=Kc(),s=o.DomUtils.uniqueSort,a=/^\s*[~+]/;function l(G){var Z;if(!G)return this._make([]);var Y=this.toArray();if(typeof G!="string"){var ee=r.isCheerio(G)?G.toArray():[G];return this._make(ee.filter(function($){return Y.some(function(ce){return i.contains(ce,$)})}))}var pe=a.test(G)?Y:this.children().toArray(),K={context:Y,root:(Z=this._root)===null||Z===void 0?void 0:Z[0],xmlMode:this.options.xmlMode};return this._make(n.select(G,pe,K))}_t.find=l;function c(G){return function(Z){for(var Y=[],ee=1;ee1&&$.length>1?Y.reduce(function(ce,Ee){return Ee(ce)},$):$)}}}var u=c(function(G,Z){for(var Y,ee=[],pe=0;pe0})}_t.has=L;function M(){return this.length>1?this._make(this[0]):this}_t.first=M;function C(){return this.length>0?this._make(this[this.length-1]):this}_t.last=C;function A(G){var Z;return G=+G,G===0&&this.length<=1?this:(G<0&&(G=this.length+G),this._make((Z=this[G])!==null&&Z!==void 0?Z:[]))}_t.eq=A;function I(G){return G==null?this.toArray():this[G<0?this.length+G:G]}_t.get=I;function N(){return Array.prototype.slice.call(this)}_t.toArray=N;function V(G){var Z,Y;return G==null?(Z=this.parent().children(),Y=this[0]):typeof G=="string"?(Z=this._make(G),Y=this[0]):(Z=this,Y=r.isCheerio(G)?G[0]:G),Array.prototype.indexOf.call(Z,Y)}_t.index=V;function R(G,Z){return this._make(Array.prototype.slice.call(this,G,Z))}_t.slice=R;function B(){var G;return(G=this.prevObject)!==null&&G!==void 0?G:this._make([])}_t.end=B;function F(G,Z){var Y=this._make(G,Z),ee=s(t.__spreadArray(t.__spreadArray([],this.get()),Y.get()));return this._make(ee)}_t.add=F;function U(G){return this.prevObject?this.add(G?this.prevObject.filter(G):this.prevObject):this}return _t.addBack=U,_t}var Vt={},TD;function sHn(){if(TD)return Vt;TD=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.clone=Vt.text=Vt.toString=Vt.html=Vt.empty=Vt.replaceWith=Vt.remove=Vt.insertBefore=Vt.before=Vt.insertAfter=Vt.after=Vt.wrapAll=Vt.unwrap=Vt.wrapInner=Vt.wrap=Vt.prepend=Vt.append=Vt.prependTo=Vt.appendTo=Vt._makeDomArray=void 0;var t=s1,e=_i(),n=_i(),r=t.__importStar(Db()),i=d6(),o=Zc(),s=Kc();function a(A,I){var N=this;return A==null?[]:o.isCheerio(A)?I?o.cloneDom(A.get()):A.get():Array.isArray(A)?A.reduce(function(V,R){return V.concat(N._makeDomArray(R,I))},[]):typeof A=="string"?r.default(A,this.options,!1).children:I?o.cloneDom([A]):[A]}Vt._makeDomArray=a;function l(A){return function(){for(var I=this,N=[],V=0;V-1&&(pe.children.splice(K,1),R===pe&&I>K&&U[0]--)}ee.parent=R,ee.prev&&(ee.prev.next=(B=ee.next)!==null&&B!==void 0?B:null),ee.next&&(ee.next.prev=(F=ee.prev)!==null&&F!==void 0?F:null),ee.prev=V[Y-1]||G,ee.next=V[Y+1]||Z}return G&&(G.next=V[0]),Z&&(Z.prev=V[V.length-1]),A.splice.apply(A,U)}function u(A){var I=o.isCheerio(A)?A:this._make(A);return I.append(this),this}Vt.appendTo=u;function d(A){var I=o.isCheerio(A)?A:this._make(A);return I.prepend(this),this}Vt.prependTo=d,Vt.append=l(function(A,I,N){c(I,I.length,0,A,N)}),Vt.prepend=l(function(A,I,N){c(I,0,0,A,N)});function h(A){return function(I){for(var N=this.length-1,V=this.parents().last(),R=0;R0?G:!1}function y(U){return U===b(1)}function b(U){return r[a+(U||1)]}function E(){var U=d.pop();return u=d[d.length-1],U}function x(U){return u=U,d.push(u),d.length}function L(U){var G=u;return d[d.length-1]=u=U,G}function M(U){if((U||1)==1)r[a]==` @@ -213,13 +213,13 @@ Please report this to https://github.com/markedjs/marked.`,e){const i="

An err `+m.extraCss,n(f,T,m),f}function d(f,m){var T=[],Q=f("style"),_,v,y;return Q.each(function(){y=this;var b=!!y.childNodes;if(_=b?y.childNodes:y.children,_.length!==1){m.removeStyleTags&&f(y).remove();return}if(v=_[0].data,m.applyStyleTags&&f(y).attr("data-embed")===void 0&&T.push(v),m.removeStyleTags&&f(y).attr("data-embed")===void 0){var E=b?y.childNodes[0].nodeValue:y.children[0].data,x=ga.getPreservedText(E,{mediaQueries:m.preserveMediaQueries,fontFaces:m.preserveFontFaces,keyFrames:m.preserveKeyFrames,pseudos:m.preservePseudos},e.ignoredPseudos);x?b?y.childNodes[0].nodeValue=x:y.children[0].data=x:f(y).remove()}f(y).removeAttr("data-embed")}),T}function h(f,m){var T=d(f,m),Q=T.join(` `);return Q}return e},tU=yHn,EHn=bHn,Td=EHn(function(t,e){return tU(t,{xmlMode:e&&e.xmlMode},xHn,[e])}),xHn=function(t,e){return Td.juiceDocument(t,e)};Td.inlineContent=function(t,e,n){return tU(t,{xmlMode:n&&n.xmlMode},Td.inlineDocument,[e,n])};var SHn=Td,LHn=S&&S.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const CHn=g7,AHn=v7,wHn=jF(),MHn=Ba,OHn=K8,RHn=c9,NHn=Zo,DHn=LHn(SHn);function xD(t,e,n){const r=(0,MHn.liteAdaptor)(),i=(0,OHn.RegisterHTMLHandler)(r);(0,NHn.AssistiveMmlHandler)(i);const o=CHn.mathjax.document(t,e),s=r.outerHTML(o.convert(t,n)),a=r.outerHTML(e.OutputJax.styleSheet(o));return(0,DHn.default)(s+a)}function SD(t,e){let n=t.posMax,r=!0,i=!0;const o=e>0?t.src.charCodeAt(e-1):-1,s=e+1<=n?t.src.charCodeAt(e+1):-1;return(o===32||o===9||s>=48&&s<=57)&&(i=!1),(s===32||s===9)&&(r=!1),{can_open:r,can_close:i}}function IHn(t,e){if(t.src[t.pos]!=="$")return!1;let n=SD(t,t.pos);if(!n.can_open)return e||(t.pending+="$"),t.pos+=1,!0;const r=t.pos+1;let i=r;for(;(i=t.src.indexOf("$",i))!==-1;){let o=i-1;for(;t.src[o]==="\\";)o-=1;if((i-o)%2==1)break;i+=1}if(i===-1)return e||(t.pending+="$"),t.pos=r,!0;if(i-r===0)return e||(t.pending+="$$"),t.pos=r+1,!0;if(n=SD(t,i),!n.can_close)return e||(t.pending+="$"),t.pos=r,!0;if(!e){const o=t.push("math_inline","math",0);o.markup="$",o.content=t.src.slice(r,i)}return t.pos=i+1,!0}function kHn(t,e,n,r){let i,o,s=!1,a=t.bMarks[e]+t.tShift[e],l=t.eMarks[e],c="";if(a+2>l||t.src.slice(a,a+2)!=="$$")return!1;a+=2;let u=t.src.slice(a,l);if(r)return!0;for(u.trim().slice(-2)==="$$"&&(u=u.trim().slice(0,-2),s=!0),i=e;!s&&(i++,!(i>=n||(a=t.bMarks[i]+t.tShift[i],l=t.eMarks[i],a/g,">").replace(/"/g,""").replace(/'/g,"'")}const HHn={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:_6t,ThinkingBlock:M5t},setup(t){const e=(s,a,l,c)=>{let u=s.bMarks[a]+s.tShift[a],d=s.eMarks[a];if(!s.src.slice(u,d).trim().startsWith(""))return!1;let f=a+1,m=[],T=!1;for(;f"){T=!0;break}m.push(_),f++}if(c)return!0;let Q=s.push("thinking_open","div",1);return Q.markup="",Q.block=!0,Q.is_done=T,Q=s.push("thinking_content","",0),Q.content=m.join(` -`),Q.is_done=T,Q=s.push("thinking_close","div",-1),Q.markup="",Q.block=!0,Q.is_done=T,s.line=T?f+1:f,!0},n=new cMe({html:!0,breaks:!0,highlight:(s,a)=>{const l=a&&es.getLanguage(a)?a:"plaintext";return es.highlight(l,s).value}}).use(Tlt).use(Cl).use(_lt,{figcaption:!0}).use(Rlt);n.renderer.rules.thinking_open=()=>'

',n.renderer.rules.thinking_content=(s,a)=>`
${n.utils.escapeHtml(s[a].content)}
`,n.renderer.rules.thinking_close=()=>"
",n.block.ruler.before("fence","thinking",e);const r=At([]),i=()=>{if(t.markdownText){let s=n.parse(t.markdownText,{}),a=[];r.value=[];for(let l=0;l0&&(r.value.push({type:"html",html:n.renderer.render(a,n.options,{})}),a=[]);const u=s[l+1];u&&u.type==="thinking_content"&&r.value.push({type:"thinking",content:u.content,is_done:u.is_done}),l+=2}else c.type==="fence"?(a.length>0&&(r.value.push({type:"html",html:n.renderer.render(a,n.options,{})}),a=[]),r.value.push({type:"code",language:PHn(c.info),code:c.content})):a.push(c)}a.length>0&&r.value.push({type:"html",html:n.renderer.render(a,n.options,{})}),Ke(()=>{Xe.replace(),window.MathJax&&window.MathJax.typesetPromise()})}else r.value=[]},o=(s,a)=>{r.value[s].code=a};return Lr(()=>t.markdownText,i),ls(()=>{i()}),{markdownItems:r,updateCode:o}}},VHn={class:"break-all container w-full"},FHn={ref:"mdRender",class:"markdown-content"},BHn=["innerHTML"];function $Hn(t,e,n,r,i,o){const s=gt("code-block"),a=gt("thinking-block");return k(),P("div",VHn,[g("div",FHn,[(k(!0),P(ze,null,lt(r.markdownItems,(l,c)=>(k(),P("div",{key:c},[l.type==="code"?(k(),wt(s,{key:0,host:n.host,language:l.language,code:l.code,discussion_id:n.discussion_id,message_id:n.message_id,client_id:n.client_id,onUpdateCode:u=>r.updateCode(c,u)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):ie("",!0),l.type==="thinking"?(k(),wt(a,{key:1,content:l.content,"is-done":l.is_done},null,8,["content","is-done"])):(k(),P("div",{key:2,innerHTML:l.html},null,8,BHn))]))),128))],512)])}const O9=Et(HHn,[["render",$Hn]]),UHn={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:O9},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(t){this.message=t,this.has_button=!0,this.show=!0},showBlockingMessage(t){this.message=t,this.has_button=!1,this.show=!0},updateMessage(t){this.message=t,this.show=!0},hideMessage(){this.show=!1}}},GHn={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},qHn={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},zHn={class:"container max-h-500 overflow-y-auto"},jHn={class:"text-lg font-medium"},WHn={class:"mt-4 flex justify-center"},YHn={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 KHn(t,e,n,r,i,o){const s=gt("MarkdownRenderer");return i.show?(k(),P("div",GHn,[g("div",qHn,[g("div",zHn,[g("div",jHn,[ae(s,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),g("div",WHn,[i.has_button?(k(),P("button",{key:0,onClick:e[0]||(e[0]=(...a)=>o.hide&&o.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 ")):ie("",!0),i.has_button?ie("",!0):(k(),P("svg",YHn,e[1]||(e[1]=[g("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),g("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)])))])])])):ie("",!0)}const ZHn=Et(UHn,[["render",KHn]]),XHn={props:{progress:{type:Number,required:!0}}},JHn={class:"progress-bar-container"};function eVn(t,e,n,r,i,o){return k(),P("div",JHn,[g("div",{class:"progress-bar",style:bn({width:`${n.progress}%`})},null,4)])}const Hb=Et(XHn,[["render",eVn]]),tVn={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Ke(()=>{Xe.replace()})},methods:{btn_clicked(t){console.log(t)},hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,r){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let i=0;i{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})},openFileDialog(t){const e=document.createElement("input");e.type="file",t.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),t.accept&&(e.accept=t.accept),e.onchange=n=>{n.target.files.length>0&&(t.value=n.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(t){t.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Ke(()=>{Xe.replace()})}}},nVn={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"},rVn={class:"relative w-full max-w-md max-h-[80vh]"},iVn={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},oVn={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},sVn={class:"grow flex items-center"},aVn={class:"text-lg font-semibold select-none"},lVn={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},cVn={class:"space-y-2"},uVn={key:0},dVn={key:0},fVn={class:"text-base font-semibold"},pVn={key:0,class:"relative inline-flex"},hVn=["onUpdate:modelValue"],TVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},mVn=["onUpdate:modelValue"],gVn={key:1},_Vn={class:"text-base font-semibold"},QVn={key:0,class:"relative inline-flex"},vVn=["onUpdate:modelValue"],yVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},bVn=["onUpdate:modelValue"],EVn=["value","selected"],xVn={key:1},SVn={class:"",onclick:"btn_clicked(item)"},LVn={key:2},CVn={key:0},AVn={class:"text-base font-semibold"},wVn={key:0,class:"relative inline-flex"},MVn=["onUpdate:modelValue"],OVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},RVn=["onUpdate:modelValue"],NVn={key:1},DVn={class:"text-base font-semibold"},IVn={key:0,class:"relative inline-flex"},kVn=["onUpdate:modelValue"],PVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},HVn=["onUpdate:modelValue"],VVn=["value","selected"],FVn={key:3},BVn={class:"text-base font-semibold"},$Vn={key:0,class:"relative inline-flex"},UVn=["onUpdate:modelValue"],GVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},qVn=["onUpdate:modelValue"],zVn=["onUpdate:modelValue","min","max"],jVn={key:4},WVn={class:"text-base font-semibold"},YVn={key:0,class:"relative inline-flex"},KVn=["onUpdate:modelValue"],ZVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},XVn=["onUpdate:modelValue"],JVn=["onUpdate:modelValue","min","max"],eFn={key:5},tFn={class:"mb-2 relative flex items-center gap-2"},nFn={for:"default-checkbox",class:"text-base font-semibold"},rFn=["onUpdate:modelValue"],iFn={key:0,class:"relative inline-flex"},oFn=["onUpdate:modelValue"],sFn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},aFn={key:6},lFn={class:"text-base font-semibold"},cFn={key:0,class:"relative inline-flex"},uFn=["onUpdate:modelValue"],dFn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},fFn=["onUpdate:modelValue"],pFn={key:7,class:"space-y-2"},hFn={class:"flex items-center gap-2"},TFn={class:"text-base font-semibold"},mFn={key:0,class:"relative inline-flex"},gFn=["onUpdate:modelValue"],_Fn={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},QFn={class:"flex gap-2"},vFn=["onUpdate:modelValue","placeholder"],yFn=["onClick"],bFn={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},EFn={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function xFn(t,e,n,r,i,o){return i.show?(k(),P("div",nVn,[g("div",rVn,[g("div",iVn,[g("div",oVn,[g("div",sVn,[e[3]||(e[3]=g("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),g("h3",aVn,ue(i.title),1)]),g("button",{onClick:e[0]||(e[0]=ge(s=>o.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[g("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[g("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)]))]),g("div",lVn,[g("div",cVn,[(k(!0),P(ze,null,lt(i.controls_array,(s,a)=>(k(),P("div",{key:a,class:"p-1"},[s.type=="str"||s.type=="string"?(k(),P("div",uVn,[s.options?ie("",!0):(k(),P("div",dVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",fVn,ue(s.name)+": ",1),s.help?(k(),P("label",pVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,hVn),[[at,s.isHelp]]),e[5]||(e[5]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",TVn,ue(s.help),1)):ie("",!0),te(g("input",{type:"text","onUpdate:modelValue":l=>s.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,mVn),[[Ne,s.value]])])),s.options?(k(),P("div",gVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",_Vn,ue(s.name)+": ",1),s.help?(k(),P("label",QVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,vVn),[[at,s.isHelp]]),e[6]||(e[6]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",yVn,ue(s.help),1)):ie("",!0),te(g("select",{"onUpdate:modelValue":l=>s.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"},[(k(!0),P(ze,null,lt(s.options,l=>(k(),P("option",{value:l,selected:s.value===l},ue(l),9,EVn))),256))],8,bVn),[[hn,s.value]])])):ie("",!0)])):ie("",!0),s.type=="btn"?(k(),P("div",xVn,[g("button",SVn,ue(s.name),1)])):ie("",!0),s.type=="text"?(k(),P("div",LVn,[s.options?ie("",!0):(k(),P("div",CVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",AVn,ue(s.name)+": ",1),s.help?(k(),P("label",wVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,MVn),[[at,s.isHelp]]),e[7]||(e[7]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",OVn,ue(s.help),1)):ie("",!0),te(g("textarea",{"onUpdate:modelValue":l=>s.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,RVn),[[Ne,s.value]])])),s.options?(k(),P("div",NVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",DVn,ue(s.name)+": ",1),s.help?(k(),P("label",IVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,kVn),[[at,s.isHelp]]),e[8]||(e[8]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",PVn,ue(s.help),1)):ie("",!0),te(g("select",{"onUpdate:modelValue":l=>s.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"},[(k(!0),P(ze,null,lt(s.options,l=>(k(),P("option",{value:l,selected:s.value===l},ue(l),9,VVn))),256))],8,HVn),[[hn,s.value]])])):ie("",!0)])):ie("",!0),s.type=="int"?(k(),P("div",FVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",BVn,ue(s.name)+": ",1),s.help?(k(),P("label",$Vn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,UVn),[[at,s.isHelp]]),e[9]||(e[9]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",GVn,ue(s.help),1)):ie("",!0),te(g("input",{type:"number","onUpdate:modelValue":l=>s.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,qVn),[[Ne,s.value]]),s.min!=null&&s.max!=null?te((k(),P("input",{key:1,type:"range","onUpdate:modelValue":l=>s.value=l,min:s.min,max:s.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,zVn)),[[Ne,s.value]]):ie("",!0)])):ie("",!0),s.type=="float"?(k(),P("div",jVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",WVn,ue(s.name)+": ",1),s.help?(k(),P("label",YVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,KVn),[[at,s.isHelp]]),e[10]||(e[10]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",ZVn,ue(s.help),1)):ie("",!0),te(g("input",{type:"number","onUpdate:modelValue":l=>s.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,XVn),[[Ne,s.value]]),s.min!=null&&s.max!=null?te((k(),P("input",{key:1,type:"range","onUpdate:modelValue":l=>s.value=l,min:s.min,max:s.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,JVn)),[[Ne,s.value]]):ie("",!0)])):ie("",!0),s.type=="bool"?(k(),P("div",eFn,[g("div",tFn,[g("label",nFn,ue(s.name)+": ",1),te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.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,rFn),[[at,s.value]]),s.help?(k(),P("label",iFn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,oFn),[[at,s.isHelp]]),e[11]||(e[11]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)]),s.isHelp?(k(),P("p",sFn,ue(s.help),1)):ie("",!0)])):ie("",!0),s.type=="list"?(k(),P("div",aFn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",lFn,ue(s.name)+": ",1),s.help?(k(),P("label",cFn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,uFn),[[at,s.isHelp]]),e[12]||(e[12]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",dFn,ue(s.help),1)):ie("",!0),te(g("input",{type:"text","onUpdate:modelValue":l=>s.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,fFn),[[Ne,s.value]])])):ie("",!0),s.type==="file"||s.type==="folder"?(k(),P("div",pFn,[g("label",hFn,[g("span",TFn,ue(s.name)+":",1),s.help?(k(),P("label",mFn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,gFn),[[at,s.isHelp]]),e[13]||(e[13]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)]),s.isHelp?(k(),P("p",_Fn,ue(s.help),1)):ie("",!0),g("div",QFn,[te(g("input",{type:"text","onUpdate:modelValue":l=>s.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:s.type==="file"?"Select file...":"Select folder..."},null,8,vFn),[[Ne,s.value]]),g("button",{onClick:l=>o.openFileDialog(s),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,yFn)])])):ie("",!0),ao.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"},ue(i.ConfirmButtonText),1),g("button",{onClick:e[2]||(e[2]=ge(s=>o.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"},ue(i.DenyButtonText),1)])])])])):ie("",!0)}const nU=Et(tVn,[["render",xFn],["__scopeId","data-v-8a34bb65"]]),SFn={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),Ke(()=>{Xe.replace()})},showToast(t,e=3,n=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:r,log_type:n,message:t,show:!0};this.toastArr.push(i),Ke(()=>{Xe.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(o=>o.id!=r)},e*1e3)}},watch:{}},LFn={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},CFn={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"},AFn={class:"flex flex-row flex-grow items-center h-auto"},wFn={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"},MFn={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"},OFn={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"},RFn={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"},NFn=["title"],DFn={class:"flex"},IFn=["onClick"],kFn=["onClick"];function PFn(t,e,n,r,i,o){return k(),P("div",LFn,[ae(Gs,{name:"toastItem",tag:"div"},{default:Be(()=>[(k(!0),P(ze,null,lt(i.toastArr,s=>(k(),P("div",{key:s.id,class:"relative"},[g("div",CFn,[g("div",AFn,[s.log_type==0?(k(),P("div",wFn,e[0]||(e[0]=[g("i",{"data-feather":"x"},null,-1),g("span",{class:"sr-only"},"Cross icon",-1)]))):ie("",!0),s.log_type==1?(k(),P("div",MFn,e[1]||(e[1]=[g("i",{"data-feather":"check"},null,-1),g("span",{class:"sr-only"},"Check icon",-1)]))):ie("",!0),s.log_type==2?(k(),P("div",OFn,e[2]||(e[2]=[g("i",{"data-feather":"info"},null,-1),g("span",{class:"sr-only"},null,-1)]))):ie("",!0),s.log_type==3?(k(),P("div",RFn,e[3]||(e[3]=[g("i",{"data-feather":"alert-triangle"},null,-1),g("span",{class:"sr-only"},null,-1)]))):ie("",!0),g("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:s.message},ue(s.message),9,NFn)]),g("div",DFn,[g("button",{type:"button",onClick:ge(a=>o.copyToClipBoard(s.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]=[g("span",{class:"sr-only"},"Copy message",-1),g("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,IFn),g("button",{type:"button",onClick:a=>o.close(s.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]=[g("span",{class:"sr-only"},"Close",-1),g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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,kFn)])])]))),128))]),_:1})])}const Vb=Et(SFn,[["render",PFn],["__scopeId","data-v-46f379e5"]]),HFn={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(r=>{this.message=t,this.show=!0,this.resolve=r})}}},VFn={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},FFn={class:"relative w-full max-w-md max-h-full"},BFn={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},$Fn={class:"p-4 text-center"},UFn={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function GFn(t,e,n,r,i,o){return i.show?(k(),P("div",VFn,[g("div",FFn,[g("div",BFn,[g("button",{type:"button",onClick:e[0]||(e[0]=s=>o.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]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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),g("span",{class:"sr-only"},"Close modal",-1)])),g("div",$Fn,[e[4]||(e[4]=g("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"},[g("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)),g("h3",UFn,ue(i.message),1),g("button",{onClick:e[1]||(e[1]=s=>o.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"},ue(i.ConfirmButtonText),1),g("button",{onClick:e[2]||(e[2]=s=>o.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"},ue(i.DenyButtonText),1)])])])])):ie("",!0)}const qFn=Et(HFn,[["render",GFn]]),zFn={name:"TopBar",components:{Navigation:UZ,ActionButton:gV,SocialIcon:_V,Toast:Vb,MessageBox:ZHn,ProgressBar:Hb,UniversalForm:nU,YesNoDialog:qFn},data(){return{starCount:null,themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:[],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:JSON.parse(localStorage.getItem("isPinned")||"false"),selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,isDarkMode:!1}},computed:{isModelOK(){return this.$store.state.isModelOk},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(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{this.isVisible=this.isPinned,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 t=localStorage.getItem("preferred-theme");t&&this.availableThemes.includes(t)&&(this.currentTheme=t);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(t){this.error="Failed to initialize theme system",console.error(t)}try{const e=await(await fetch("https://api.github.com/repos/ParisNeo/lollms-webui")).json();this.starCount=e.stargazers_count}catch(t){console.error("Error fetching GitHub stars:",t)}},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.fetchThemes(),this.themeCheck(),this.$nextTick(()=>{Xe.replace()})},methods:{async fetchThemes(){try{const t=await xe.get("/get_themes");this.availableThemes=t.data}catch(t){console.error("Error fetching themes:",t),this.availableThemes=["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"]}},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(t){this.$el.contains(t.target)||(this.themeDropdownOpen=!1,console.log("Outside click detected"))},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(t){return console.warn("Failed to access localStorage:",t),null}},saveTheme(t){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",t)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const t=["preferred-theme"];for(let e=0;e{Xe.replace()})}catch(e){console.error(`Failed to load theme: ${t}`,e),this.error=`Failed to load theme: ${t}`}finally{this.isLoading=!1}},reloadTheme(){return this.loadTheme(this.currentTheme)},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light";return}bf(()=>Promise.resolve().then(()=>Qlt),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",window.dispatchEvent(new Event("themeChanged")),this.isDarkMode=document.documentElement.classList.contains("dark"),this.$nextTick(()=>{Xe.replace()})},async selectLanguage(t){await this.$store.dispatch("changeLanguage",t);const e=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];let n=this.$store.state.personalities.find(r=>r.full_path===e);if(console.log("personality",n),console.log("this.$store.state.language",n.language),console.log("personality.language",n.language),this.$store.state.language!=n.language){console.log("getting personality");const r=await xe.get("/get_personality");console.log(r),n=r.data,console.log(n),this.$store.commit("updatePersonality",n)}console.log("personality:",n),this.toggleLanguageMenu(),this.language=t},async deleteLanguage(t){await this.$store.dispatch("deleteLanguage",t),this.toggleLanguageMenu(),this.language=t},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Xe.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Xe.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned,localStorage.setItem("isPinned",JSON.stringify(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(()=>{Xe.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{bf(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{bf(()=>Promise.resolve({}),__vite__mapDeps([1]))})},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(t){console.log("Input text:",t)}}},jFn={class:"topbar-content"},WFn=["title"],YFn=["fill"],KFn={href:"https://github.com/ParisNeo/lollms-webui",target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2 px-3 py-1.5 text-sm text-gray-700 hover:text-gray-900 bg-gray-100 hover:bg-gray-200 rounded-md transition-colors duration-200 my-4 mx-2"},ZFn={key:0,class:"font-medium"},XFn={class:"relative"},JFn={class:"absolute pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200 -bottom-12 left-1/2 transform -translate-x-1/2 bg-gray-900 text-white px-3 py-1.5 rounded-lg text-sm whitespace-nowrap shadow-xl z-50"},eBn={class:"relative ml-2"},tBn=["aria-expanded"],nBn={class:"font-medium"},rBn={key:0,ref:"languageMenu",class:"absolute left-0 mt-1 w-64 rounded-lg shadow-lg bg-white border border-gray-200 z-10",role:"menu"},iBn={class:"py-2 max-h-72 overflow-y-auto"},oBn=["onClick","aria-label"],sBn=["onClick"],aBn={class:"px-3 py-2 border-t border-gray-100"},lBn={class:"relative inline-flex ml-2"},cBn={class:"flex items-center space-x-2 overflow-hidden"},uBn={class:"font-medium truncate"},dBn={key:0,class:"absolute left-0 z-50 w-48 mt-2 context-menu overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg"},fBn={class:"max-h-60 overflow-y-auto scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100"},pBn=["onClick"],hBn={class:"font-medium truncate"},TBn={class:"relative inline-block"},mBn={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},gBn={class:"flex gap-3 flex-1 items-center justify-end"},_Bn={key:0,title:"Model is ok",class:"btn-on cursor-pointer transition-transform hover:scale-110"},QBn={key:1,title:"Model is not ok",class:"btn-off cursor-pointer transition-transform hover:scale-110"},vBn={key:2,title:"Text is not being generated. Ready to generate",class:"btn-on cursor-pointer transition-transform hover:scale-110"},yBn={key:3,title:"Generation in progress...",class:"svg-button cursor-pointer transition-transform hover:scale-110"},bBn={key:4,title:"Connection status: Connected",class:"btn-on cursor-pointer transition-transform hover:scale-110"},EBn={key:5,title:"Connection status: Not connected",class:"btn-off cursor-pointer transition-transform hover:scale-110"},xBn={class:"flex items-center space-x-4"},SBn={class:"relative group",title:"Lollms News"},LBn={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"},CBn={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"};function ABn(t,e,n,r,i,o){const s=gt("Navigation"),a=gt("ActionButton"),l=gt("SocialIcon"),c=gt("ProgressBar"),u=gt("InputBox"),d=gt("Toast"),h=gt("MessageBox"),f=gt("YesNoDialog"),m=gt("UniversalForm");return k(),P(ze,null,[g("div",{ref:"topbar-container",class:We(["topbar-container",{"h-0":!i.isPinned}])},[g("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...T)=>o.show&&o.show(...T)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),g("div",{class:We(["topbar",{"topbar-hidden":!i.isVisible}]),onMouseleave:e[14]||(e[14]=(...T)=>o.hide&&o.hide(...T))},[g("div",jFn,[er(t.$slots,"navigation",{},void 0,!0),g("button",{class:"pin-button",onClick:e[1]||(e[1]=(...T)=>o.togglePin&&o.togglePin(...T)),title:i.isPinned?"Unpin":"Pin"},[(k(),P("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]=[g("g",null,[g("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 +`),Q.is_done=T,Q=s.push("thinking_close","div",-1),Q.markup="",Q.block=!0,Q.is_done=T,s.line=T?f+1:f,!0},n=new cMe({html:!0,breaks:!0,highlight:(s,a)=>{const l=a&&es.getLanguage(a)?a:"plaintext";return es.highlight(l,s).value}}).use(Tlt).use(Cl).use(_lt,{figcaption:!0}).use(Rlt);n.renderer.rules.thinking_open=()=>'
',n.renderer.rules.thinking_content=(s,a)=>`
${n.utils.escapeHtml(s[a].content)}
`,n.renderer.rules.thinking_close=()=>"
",n.block.ruler.before("fence","thinking",e);const r=At([]),i=()=>{if(t.markdownText){let s=n.parse(t.markdownText,{}),a=[];r.value=[];for(let l=0;l0&&(r.value.push({type:"html",html:n.renderer.render(a,n.options,{})}),a=[]);const u=s[l+1];u&&u.type==="thinking_content"&&r.value.push({type:"thinking",content:u.content,is_done:u.is_done}),l+=2}else c.type==="fence"?(a.length>0&&(r.value.push({type:"html",html:n.renderer.render(a,n.options,{})}),a=[]),r.value.push({type:"code",language:PHn(c.info),code:c.content})):a.push(c)}a.length>0&&r.value.push({type:"html",html:n.renderer.render(a,n.options,{})}),Ke(()=>{Xe.replace(),window.MathJax&&window.MathJax.typesetPromise()})}else r.value=[]},o=(s,a)=>{r.value[s].code=a};return Lr(()=>t.markdownText,i),ls(()=>{i()}),{markdownItems:r,updateCode:o}}},VHn={class:"break-all container w-full"},FHn={ref:"mdRender",class:"markdown-content"},BHn=["innerHTML"];function $Hn(t,e,n,r,i,o){const s=gt("code-block"),a=gt("thinking-block");return k(),P("div",VHn,[g("div",FHn,[(k(!0),P(ze,null,lt(r.markdownItems,(l,c)=>(k(),P("div",{key:c},[l.type==="code"?(k(),wt(s,{key:0,host:n.host,language:l.language,code:l.code,discussion_id:n.discussion_id,message_id:n.message_id,client_id:n.client_id,onUpdateCode:u=>r.updateCode(c,u)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):ie("",!0),l.type==="thinking"?(k(),wt(a,{key:1,content:l.content,"is-done":l.is_done},null,8,["content","is-done"])):(k(),P("div",{key:2,innerHTML:l.html},null,8,BHn))]))),128))],512)])}const O9=Et(HHn,[["render",$Hn]]),UHn={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:O9},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(t){this.message=t,this.has_button=!0,this.show=!0},showBlockingMessage(t){this.message=t,this.has_button=!1,this.show=!0},updateMessage(t){this.message=t,this.show=!0},hideMessage(){this.show=!1}}},GHn={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},qHn={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},zHn={class:"container max-h-500 overflow-y-auto"},jHn={class:"text-lg font-medium"},WHn={class:"mt-4 flex justify-center"},YHn={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 KHn(t,e,n,r,i,o){const s=gt("MarkdownRenderer");return i.show?(k(),P("div",GHn,[g("div",qHn,[g("div",zHn,[g("div",jHn,[ae(s,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),g("div",WHn,[i.has_button?(k(),P("button",{key:0,onClick:e[0]||(e[0]=(...a)=>o.hide&&o.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 ")):ie("",!0),i.has_button?ie("",!0):(k(),P("svg",YHn,e[1]||(e[1]=[g("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),g("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)])))])])])):ie("",!0)}const ZHn=Et(UHn,[["render",KHn]]),XHn={props:{progress:{type:Number,required:!0}}},JHn={class:"progress-bar-container"};function eVn(t,e,n,r,i,o){return k(),P("div",JHn,[g("div",{class:"progress-bar",style:gn({width:`${n.progress}%`})},null,4)])}const Hb=Et(XHn,[["render",eVn]]),tVn={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Ke(()=>{Xe.replace()})},methods:{btn_clicked(t){console.log(t)},hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,r){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let i=0;i{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})},openFileDialog(t){const e=document.createElement("input");e.type="file",t.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),t.accept&&(e.accept=t.accept),e.onchange=n=>{n.target.files.length>0&&(t.value=n.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(t){t.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Ke(()=>{Xe.replace()})}}},nVn={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"},rVn={class:"relative w-full max-w-md max-h-[80vh]"},iVn={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},oVn={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},sVn={class:"grow flex items-center"},aVn={class:"text-lg font-semibold select-none"},lVn={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},cVn={class:"space-y-2"},uVn={key:0},dVn={key:0},fVn={class:"text-base font-semibold"},pVn={key:0,class:"relative inline-flex"},hVn=["onUpdate:modelValue"],TVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},mVn=["onUpdate:modelValue"],gVn={key:1},_Vn={class:"text-base font-semibold"},QVn={key:0,class:"relative inline-flex"},vVn=["onUpdate:modelValue"],yVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},bVn=["onUpdate:modelValue"],EVn=["value","selected"],xVn={key:1},SVn={class:"",onclick:"btn_clicked(item)"},LVn={key:2},CVn={key:0},AVn={class:"text-base font-semibold"},wVn={key:0,class:"relative inline-flex"},MVn=["onUpdate:modelValue"],OVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},RVn=["onUpdate:modelValue"],NVn={key:1},DVn={class:"text-base font-semibold"},IVn={key:0,class:"relative inline-flex"},kVn=["onUpdate:modelValue"],PVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},HVn=["onUpdate:modelValue"],VVn=["value","selected"],FVn={key:3},BVn={class:"text-base font-semibold"},$Vn={key:0,class:"relative inline-flex"},UVn=["onUpdate:modelValue"],GVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},qVn=["onUpdate:modelValue"],zVn=["onUpdate:modelValue","min","max"],jVn={key:4},WVn={class:"text-base font-semibold"},YVn={key:0,class:"relative inline-flex"},KVn=["onUpdate:modelValue"],ZVn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},XVn=["onUpdate:modelValue"],JVn=["onUpdate:modelValue","min","max"],eFn={key:5},tFn={class:"mb-2 relative flex items-center gap-2"},nFn={for:"default-checkbox",class:"text-base font-semibold"},rFn=["onUpdate:modelValue"],iFn={key:0,class:"relative inline-flex"},oFn=["onUpdate:modelValue"],sFn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},aFn={key:6},lFn={class:"text-base font-semibold"},cFn={key:0,class:"relative inline-flex"},uFn=["onUpdate:modelValue"],dFn={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},fFn=["onUpdate:modelValue"],pFn={key:7,class:"space-y-2"},hFn={class:"flex items-center gap-2"},TFn={class:"text-base font-semibold"},mFn={key:0,class:"relative inline-flex"},gFn=["onUpdate:modelValue"],_Fn={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},QFn={class:"flex gap-2"},vFn=["onUpdate:modelValue","placeholder"],yFn=["onClick"],bFn={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},EFn={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function xFn(t,e,n,r,i,o){return i.show?(k(),P("div",nVn,[g("div",rVn,[g("div",iVn,[g("div",oVn,[g("div",sVn,[e[3]||(e[3]=g("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),g("h3",aVn,ue(i.title),1)]),g("button",{onClick:e[0]||(e[0]=ge(s=>o.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[g("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[g("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)]))]),g("div",lVn,[g("div",cVn,[(k(!0),P(ze,null,lt(i.controls_array,(s,a)=>(k(),P("div",{key:a,class:"p-1"},[s.type=="str"||s.type=="string"?(k(),P("div",uVn,[s.options?ie("",!0):(k(),P("div",dVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",fVn,ue(s.name)+": ",1),s.help?(k(),P("label",pVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,hVn),[[at,s.isHelp]]),e[5]||(e[5]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",TVn,ue(s.help),1)):ie("",!0),te(g("input",{type:"text","onUpdate:modelValue":l=>s.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,mVn),[[Ne,s.value]])])),s.options?(k(),P("div",gVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",_Vn,ue(s.name)+": ",1),s.help?(k(),P("label",QVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,vVn),[[at,s.isHelp]]),e[6]||(e[6]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",yVn,ue(s.help),1)):ie("",!0),te(g("select",{"onUpdate:modelValue":l=>s.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"},[(k(!0),P(ze,null,lt(s.options,l=>(k(),P("option",{value:l,selected:s.value===l},ue(l),9,EVn))),256))],8,bVn),[[hn,s.value]])])):ie("",!0)])):ie("",!0),s.type=="btn"?(k(),P("div",xVn,[g("button",SVn,ue(s.name),1)])):ie("",!0),s.type=="text"?(k(),P("div",LVn,[s.options?ie("",!0):(k(),P("div",CVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",AVn,ue(s.name)+": ",1),s.help?(k(),P("label",wVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,MVn),[[at,s.isHelp]]),e[7]||(e[7]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",OVn,ue(s.help),1)):ie("",!0),te(g("textarea",{"onUpdate:modelValue":l=>s.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,RVn),[[Ne,s.value]])])),s.options?(k(),P("div",NVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",DVn,ue(s.name)+": ",1),s.help?(k(),P("label",IVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,kVn),[[at,s.isHelp]]),e[8]||(e[8]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",PVn,ue(s.help),1)):ie("",!0),te(g("select",{"onUpdate:modelValue":l=>s.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"},[(k(!0),P(ze,null,lt(s.options,l=>(k(),P("option",{value:l,selected:s.value===l},ue(l),9,VVn))),256))],8,HVn),[[hn,s.value]])])):ie("",!0)])):ie("",!0),s.type=="int"?(k(),P("div",FVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",BVn,ue(s.name)+": ",1),s.help?(k(),P("label",$Vn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,UVn),[[at,s.isHelp]]),e[9]||(e[9]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",GVn,ue(s.help),1)):ie("",!0),te(g("input",{type:"number","onUpdate:modelValue":l=>s.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,qVn),[[Ne,s.value]]),s.min!=null&&s.max!=null?te((k(),P("input",{key:1,type:"range","onUpdate:modelValue":l=>s.value=l,min:s.min,max:s.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,zVn)),[[Ne,s.value]]):ie("",!0)])):ie("",!0),s.type=="float"?(k(),P("div",jVn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",WVn,ue(s.name)+": ",1),s.help?(k(),P("label",YVn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,KVn),[[at,s.isHelp]]),e[10]||(e[10]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",ZVn,ue(s.help),1)):ie("",!0),te(g("input",{type:"number","onUpdate:modelValue":l=>s.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,XVn),[[Ne,s.value]]),s.min!=null&&s.max!=null?te((k(),P("input",{key:1,type:"range","onUpdate:modelValue":l=>s.value=l,min:s.min,max:s.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,JVn)),[[Ne,s.value]]):ie("",!0)])):ie("",!0),s.type=="bool"?(k(),P("div",eFn,[g("div",tFn,[g("label",nFn,ue(s.name)+": ",1),te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.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,rFn),[[at,s.value]]),s.help?(k(),P("label",iFn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,oFn),[[at,s.isHelp]]),e[11]||(e[11]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)]),s.isHelp?(k(),P("p",sFn,ue(s.help),1)):ie("",!0)])):ie("",!0),s.type=="list"?(k(),P("div",aFn,[g("label",{class:We(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",s.help?"cursor-pointer ":""])},[g("div",lFn,ue(s.name)+": ",1),s.help?(k(),P("label",cFn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,uFn),[[at,s.isHelp]]),e[12]||(e[12]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)],2),s.isHelp?(k(),P("p",dFn,ue(s.help),1)):ie("",!0),te(g("input",{type:"text","onUpdate:modelValue":l=>s.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,fFn),[[Ne,s.value]])])):ie("",!0),s.type==="file"||s.type==="folder"?(k(),P("div",pFn,[g("label",hFn,[g("span",TFn,ue(s.name)+":",1),s.help?(k(),P("label",mFn,[te(g("input",{type:"checkbox","onUpdate:modelValue":l=>s.isHelp=l,class:"sr-only peer"},null,8,gFn),[[at,s.isHelp]]),e[13]||(e[13]=g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[g("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):ie("",!0)]),s.isHelp?(k(),P("p",_Fn,ue(s.help),1)):ie("",!0),g("div",QFn,[te(g("input",{type:"text","onUpdate:modelValue":l=>s.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:s.type==="file"?"Select file...":"Select folder..."},null,8,vFn),[[Ne,s.value]]),g("button",{onClick:l=>o.openFileDialog(s),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,yFn)])])):ie("",!0),ao.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"},ue(i.ConfirmButtonText),1),g("button",{onClick:e[2]||(e[2]=ge(s=>o.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"},ue(i.DenyButtonText),1)])])])])):ie("",!0)}const nU=Et(tVn,[["render",xFn],["__scopeId","data-v-8a34bb65"]]),SFn={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),Ke(()=>{Xe.replace()})},showToast(t,e=3,n=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:r,log_type:n,message:t,show:!0};this.toastArr.push(i),Ke(()=>{Xe.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(o=>o.id!=r)},e*1e3)}},watch:{}},LFn={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},CFn={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"},AFn={class:"flex flex-row flex-grow items-center h-auto"},wFn={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"},MFn={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"},OFn={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"},RFn={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"},NFn=["title"],DFn={class:"flex"},IFn=["onClick"],kFn=["onClick"];function PFn(t,e,n,r,i,o){return k(),P("div",LFn,[ae(Gs,{name:"toastItem",tag:"div"},{default:Be(()=>[(k(!0),P(ze,null,lt(i.toastArr,s=>(k(),P("div",{key:s.id,class:"relative"},[g("div",CFn,[g("div",AFn,[s.log_type==0?(k(),P("div",wFn,e[0]||(e[0]=[g("i",{"data-feather":"x"},null,-1),g("span",{class:"sr-only"},"Cross icon",-1)]))):ie("",!0),s.log_type==1?(k(),P("div",MFn,e[1]||(e[1]=[g("i",{"data-feather":"check"},null,-1),g("span",{class:"sr-only"},"Check icon",-1)]))):ie("",!0),s.log_type==2?(k(),P("div",OFn,e[2]||(e[2]=[g("i",{"data-feather":"info"},null,-1),g("span",{class:"sr-only"},null,-1)]))):ie("",!0),s.log_type==3?(k(),P("div",RFn,e[3]||(e[3]=[g("i",{"data-feather":"alert-triangle"},null,-1),g("span",{class:"sr-only"},null,-1)]))):ie("",!0),g("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:s.message},ue(s.message),9,NFn)]),g("div",DFn,[g("button",{type:"button",onClick:ge(a=>o.copyToClipBoard(s.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]=[g("span",{class:"sr-only"},"Copy message",-1),g("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,IFn),g("button",{type:"button",onClick:a=>o.close(s.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]=[g("span",{class:"sr-only"},"Close",-1),g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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,kFn)])])]))),128))]),_:1})])}const Vb=Et(SFn,[["render",PFn],["__scopeId","data-v-46f379e5"]]),HFn={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(r=>{this.message=t,this.show=!0,this.resolve=r})}}},VFn={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},FFn={class:"relative w-full max-w-md max-h-full"},BFn={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},$Fn={class:"p-4 text-center"},UFn={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function GFn(t,e,n,r,i,o){return i.show?(k(),P("div",VFn,[g("div",FFn,[g("div",BFn,[g("button",{type:"button",onClick:e[0]||(e[0]=s=>o.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]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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),g("span",{class:"sr-only"},"Close modal",-1)])),g("div",$Fn,[e[4]||(e[4]=g("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"},[g("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)),g("h3",UFn,ue(i.message),1),g("button",{onClick:e[1]||(e[1]=s=>o.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"},ue(i.ConfirmButtonText),1),g("button",{onClick:e[2]||(e[2]=s=>o.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"},ue(i.DenyButtonText),1)])])])])):ie("",!0)}const qFn=Et(HFn,[["render",GFn]]),zFn={name:"TopBar",components:{Navigation:UZ,ActionButton:gV,SocialIcon:_V,Toast:Vb,MessageBox:ZHn,ProgressBar:Hb,UniversalForm:nU,YesNoDialog:qFn},data(){return{starCount:null,themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:[],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:JSON.parse(localStorage.getItem("isPinned")||"false"),selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,isDarkMode:!1}},computed:{isModelOK(){return this.$store.state.isModelOk},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(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{this.isVisible=this.isPinned,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 t=localStorage.getItem("preferred-theme");t&&this.availableThemes.includes(t)&&(this.currentTheme=t);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(t){this.error="Failed to initialize theme system",console.error(t)}try{const e=await(await fetch("https://api.github.com/repos/ParisNeo/lollms-webui")).json();this.starCount=e.stargazers_count}catch(t){console.error("Error fetching GitHub stars:",t)}},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.fetchThemes(),this.themeCheck(),this.$nextTick(()=>{Xe.replace()})},methods:{async fetchThemes(){try{const t=await xe.get("/get_themes");this.availableThemes=t.data}catch(t){console.error("Error fetching themes:",t),this.availableThemes=["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"]}},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(t){this.$el.contains(t.target)||(this.themeDropdownOpen=!1,console.log("Outside click detected"))},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(t){return console.warn("Failed to access localStorage:",t),null}},saveTheme(t){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",t)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const t=["preferred-theme"];for(let e=0;e{Xe.replace()})}catch(e){console.error(`Failed to load theme: ${t}`,e),this.error=`Failed to load theme: ${t}`}finally{this.isLoading=!1}},reloadTheme(){return this.loadTheme(this.currentTheme)},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light";return}bf(()=>Promise.resolve().then(()=>Qlt),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",window.dispatchEvent(new Event("themeChanged")),this.isDarkMode=document.documentElement.classList.contains("dark"),this.$nextTick(()=>{Xe.replace()})},async selectLanguage(t){await this.$store.dispatch("changeLanguage",t);const e=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];let n=this.$store.state.personalities.find(r=>r.full_path===e);if(console.log("personality",n),console.log("this.$store.state.language",n.language),console.log("personality.language",n.language),this.$store.state.language!=n.language){console.log("getting personality");const r=await xe.get("/get_personality");console.log(r),n=r.data,console.log(n),this.$store.commit("updatePersonality",n)}console.log("personality:",n),this.toggleLanguageMenu(),this.language=t},async deleteLanguage(t){await this.$store.dispatch("deleteLanguage",t),this.toggleLanguageMenu(),this.language=t},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Xe.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Xe.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned,localStorage.setItem("isPinned",JSON.stringify(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(()=>{Xe.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{bf(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{bf(()=>Promise.resolve({}),__vite__mapDeps([1]))})},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(t){console.log("Input text:",t)}}},jFn={class:"topbar-content"},WFn=["title"],YFn=["fill"],KFn={href:"https://github.com/ParisNeo/lollms-webui",target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2 px-3 py-1.5 text-sm text-gray-700 hover:text-gray-900 bg-gray-100 hover:bg-gray-200 rounded-md transition-colors duration-200 my-4 mx-2"},ZFn={key:0,class:"font-medium"},XFn={class:"relative"},JFn={class:"absolute pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200 -bottom-12 left-1/2 transform -translate-x-1/2 bg-gray-900 text-white px-3 py-1.5 rounded-lg text-sm whitespace-nowrap shadow-xl z-50"},eBn={class:"relative ml-2"},tBn=["aria-expanded"],nBn={class:"font-medium"},rBn={key:0,ref:"languageMenu",class:"absolute left-0 mt-1 w-64 rounded-lg shadow-lg bg-white border border-gray-200 z-10",role:"menu"},iBn={class:"py-2 max-h-72 overflow-y-auto"},oBn=["onClick","aria-label"],sBn=["onClick"],aBn={class:"px-3 py-2 border-t border-gray-100"},lBn={class:"relative inline-flex ml-2"},cBn={class:"flex items-center space-x-2 overflow-hidden"},uBn={class:"font-medium truncate"},dBn={key:0,class:"absolute left-0 z-50 w-48 mt-2 context-menu overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg"},fBn={class:"max-h-60 overflow-y-auto scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100"},pBn=["onClick"],hBn={class:"font-medium truncate"},TBn={class:"relative inline-block"},mBn={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},gBn={class:"flex gap-3 flex-1 items-center justify-end"},_Bn={key:0,title:"Model is ok",class:"btn-on cursor-pointer transition-transform hover:scale-110"},QBn={key:1,title:"Model is not ok",class:"btn-off cursor-pointer transition-transform hover:scale-110"},vBn={key:2,title:"Text is not being generated. Ready to generate",class:"btn-on cursor-pointer transition-transform hover:scale-110"},yBn={key:3,title:"Generation in progress...",class:"svg-button cursor-pointer transition-transform hover:scale-110"},bBn={key:4,title:"Connection status: Connected",class:"btn-on cursor-pointer transition-transform hover:scale-110"},EBn={key:5,title:"Connection status: Not connected",class:"btn-off cursor-pointer transition-transform hover:scale-110"},xBn={class:"flex items-center space-x-4"},SBn={class:"relative group",title:"Lollms News"},LBn={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"},CBn={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"};function ABn(t,e,n,r,i,o){const s=gt("Navigation"),a=gt("ActionButton"),l=gt("SocialIcon"),c=gt("ProgressBar"),u=gt("InputBox"),d=gt("Toast"),h=gt("MessageBox"),f=gt("YesNoDialog"),m=gt("UniversalForm");return k(),P(ze,null,[g("div",{ref:"topbar-container",class:We(["topbar-container",{"h-0":!i.isPinned}])},[g("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...T)=>o.show&&o.show(...T)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),g("div",{class:We(["topbar",{"topbar-hidden":!i.isVisible}]),onMouseleave:e[14]||(e[14]=(...T)=>o.hide&&o.hide(...T))},[g("div",jFn,[er(t.$slots,"navigation",{},void 0,!0),g("button",{class:"pin-button",onClick:e[1]||(e[1]=(...T)=>o.togglePin&&o.togglePin(...T)),title:i.isPinned?"Unpin":"Pin"},[(k(),P("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]=[g("g",null,[g("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,YFn))],8,WFn),ae(s),g("div",null,[g("a",KFn,[e[16]||(e[16]=g("svg",{class:"w-5 h-5",viewBox:"0 0 16 16",fill:"currentColor"},[g("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})],-1)),i.starCount?(k(),P("span",ZFn,ue(i.starCount),1)):ie("",!0)])]),g("div",XFn,[o.is_fun_mode?(k(),P("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-10 h-10 cursor-pointer transform transition-all duration-300 hover:scale-110 active:scale-95 bg-yellow-400 rounded-full p-1 hover:bg-yellow-300 dark:hover:bg-yellow-500",onClick:e[2]||(e[2]=T=>o.fun_mode_off())},e[17]||(e[17]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"w-full h-full text-white animate-bounce"},[g("circle",{cx:"12",cy:"12",r:"10",stroke:"black","stroke-width":"1.5"}),g("path",{d:"M7 14c0 3 4 4 5 4s5-1 5-4M9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z",stroke:"black","stroke-width":"1.5"})],-1)]))):(k(),P("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-10 h-10 cursor-pointer rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transform transition-all duration-300 hover:scale-110 active:scale-95 p-1",onClick:e[3]||(e[3]=T=>o.fun_mode_on())},e[18]||(e[18]=[jl('',1)]))),g("div",JFn,[e[19]||(e[19]=g("div",{class:"absolute -top-2 left-1/2 transform -translate-x-1/2 border-solid border-4 border-transparent border-b-gray-900"},null,-1)),nt(" "+ue(o.is_fun_mode?"Disable fun mode":"Enable fun mode"),1)])]),i.isDarkMode?(k(),P("div",{key:0,class:"text-2xl svg-button hover:text-primary duration-150 cursor-pointer w-50 h-50 ml-2",title:"Switch to Light theme",onClick:e[4]||(e[4]=T=>o.themeSwitch())},e[20]||(e[20]=[g("i",{"data-feather":"sun"},null,-1)]))):(k(),P("div",{key:1,class:"text-2xl svg-button hover:text-primary duration-150 cursor-pointer w-50 h-50 ml-2",title:"Switch to Dark theme",onClick:e[5]||(e[5]=T=>o.themeSwitch())},e[21]||(e[21]=[g("i",{"data-feather":"moon"},null,-1)]))),g("div",eBn,[g("button",{onClick:e[6]||(e[6]=(...T)=>o.toggleLanguageMenu&&o.toggleLanguageMenu(...T)),class:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-gray-100 transition-colors","aria-haspopup":"true","aria-expanded":i.isLanguageMenuVisible},[g("span",nBn,ue(t.$store.state.language.slice(0,2)),1),(k(),P("svg",{class:We(["w-4 h-4 transition-transform",{"rotate-180":i.isLanguageMenuVisible}]),viewBox:"0 0 24 24"},e[22]||(e[22]=[g("path",{d:"M7 10l5 5 5-5z",fill:"currentColor"},null,-1)]),2))],8,tBn),ae(Ai,{"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-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Be(()=>[i.isLanguageMenuVisible?(k(),P("div",rBn,[g("ul",iBn,[(k(!0),P(ze,null,lt(o.languages,T=>(k(),P("li",{key:T,class:"group flex items-center px-3 py-2 hover:bg-gray-50"},[g("button",{onClick:Q=>o.deleteLanguage(T),class:"p-1 rounded-full opacity-0 group-hover:opacity-100 transition-opacity text-gray-400 hover:text-red-500 hover:bg-red-50","aria-label":`Delete ${T}`},e[23]||(e[23]=[g("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[g("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"currentColor"})],-1)]),8,oBn),g("div",{onClick:Q=>o.selectLanguage(T),class:We(["flex-grow px-3 py-1 cursor-pointer rounded-md transition-colors",T===t.$store.state.language?"bg-blue-50 text-blue-600":"hover:bg-gray-100"]),role:"menuitem"},ue(T),11,sBn)]))),128)),g("li",aBn,[te(g("input",{type:"text","onUpdate:modelValue":e[7]||(e[7]=T=>t.customLanguage=T),onKeyup:e[8]||(e[8]=ri(ge((...T)=>o.addCustomLanguage&&o.addCustomLanguage(...T),["prevent"]),["enter"])),placeholder:"Add new language...",class:"w-full px-3 py-2 rounded-md border border-gray-200 focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none transition-all"},null,544),[[Ne,t.customLanguage]])])])],512)):ie("",!0)]),_:1})]),g("div",lBn,[g("button",{onClick:e[9]||(e[9]=ge((...T)=>o.toggleThemeDropDown&&o.toggleThemeDropDown(...T),["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 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"},[g("div",cBn,[e[24]||(e[24]=g("svg",{class:"w-5 h-5 flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)),g("span",uBn,ue(i.currentTheme),1)]),(k(),P("svg",{class:We(["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[25]||(e[25]=[g("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))]),ae(Ai,{"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:Be(()=>[i.themeDropdownOpen?(k(),P("div",dBn,[g("div",fBn,[(k(!0),P(ze,null,lt(i.availableThemes,T=>(k(),P("a",{key:T,onClick:Q=>{o.loadTheme(T),i.currentTheme=T,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[26]||(e[26]=g("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),g("span",hBn,ue(T),1)],8,pBn))),128))])])):ie("",!0)]),_:1})]),g("div",{class:"toolbar-button",onMouseleave:e[13]||(e[13]=(...T)=>o.hideInfosMenu&&o.hideInfosMenu(...T))},[g("div",TBn,[i.isInfosMenuVisible?(k(),P("div",{key:0,onMouseenter:e[11]||(e[11]=(...T)=>o.showInfosMenu&&o.showInfosMenu(...T)),class:"absolute context-menu m-0 p-0 z-50 top-full right-0 transform rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[g("div",mBn,[g("div",gBn,[o.isModelOK?(k(),P("div",_Bn,e[27]||(e[27]=[g("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(k(),P("div",QBn,e[28]||(e[28]=[g("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),o.isGenerating?(k(),P("div",yBn,e[30]||(e[30]=[g("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)]))):(k(),P("div",vBn,e[29]||(e[29]=[g("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)]))),o.isConnected?(k(),P("div",bBn,e[31]||(e[31]=[g("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(k(),P("div",EBn,e[32]||(e[32]=[g("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])))]),g("div",xBn,[ae(a,{onClick:t.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),ae(a,{onClick:o.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),ae(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),ae(l,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),ae(l,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),ae(l,{href:"https://x.com/ParisNeo_AI",icon:"x"}),ae(l,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),g("div",SBn,[g("div",{onClick:e[10]||(e[10]=T=>o.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 svg-button"},e[33]||(e[33]=[g("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"},[g("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[34]||(e[34]=g("span",{class:"absolute hidden group-hover:block 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)):ie("",!0),g("div",{onMouseenter:e[12]||(e[12]=(...T)=>o.showInfosMenu&&o.showInfosMenu(...T)),class:"infos-hover-area"},e[35]||(e[35]=[jl('',1)]),32)])],32)])],34)],2),te(g("div",LBn,[ae(c,{ref:"progress",progress:t.progress_value,class:"w-full h-4"},null,8,["progress"]),g("p",CBn,ue(t.loading_infos)+" ...",1)],512),[[Ht,t.progress_visibility]]),ae(u,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:t.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),ae(d,{ref:"toast"},null,512),ae(h,{ref:"messageBox"},null,512),ae(f,{ref:"yesNoDialog",class:"z-20"},null,512),ae(m,{ref:"universalForm",class:"z-20"},null,512)],64)}const wBn=Et(zFn,[["render",ABn],["__scopeId","data-v-a223fde0"]]),MBn={class:"flex overflow-hidden flex-grow w-full"},OBn={__name:"App",setup(t){return(e,n)=>(k(),P("div",{class:We([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"])},[ae(wBn),g("div",MBn,[ae(Ft(mV),null,{default:Be(({Component:r})=>[(k(),wt(Gz,null,[(k(),wt(jd(r)))],1024))]),_:1})])],2))}},ss=Object.create(null);ss.open="0";ss.close="1";ss.ping="2";ss.pong="3";ss.message="4";ss.upgrade="5";ss.noop="6";const cu=Object.create(null);Object.keys(ss).forEach(t=>{cu[ss[t]]=t});const KQ={type:"error",data:"parser error"},rU=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",iU=typeof ArrayBuffer=="function",oU=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Fb=({type:t,data:e},n,r)=>rU&&e instanceof Blob?n?r(e):CD(e,r):iU&&(e instanceof ArrayBuffer||oU(e))?n?r(e):CD(new Blob([e]),r):r(ss[t]+(e||"")),CD=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function AD(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Xg;function RBn(t,e){if(rU&&t.data instanceof Blob)return t.data.arrayBuffer().then(AD).then(e);if(iU&&(t.data instanceof ArrayBuffer||oU(t.data)))return e(AD(t.data));Fb(t,!1,n=>{Xg||(Xg=new TextEncoder),e(Xg.encode(n))})}const wD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C4=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(r=0;r>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|l&63;return c},DBn=typeof ArrayBuffer=="function",Bb=(t,e)=>{if(typeof t!="string")return{type:"message",data:sU(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:IBn(t.substring(1),e)}:cu[n]?t.length>1?{type:cu[n],data:t.substring(1)}:{type:cu[n]}:KQ},IBn=(t,e)=>{if(DBn){const n=NBn(t);return sU(n,e)}else return{base64:!0,data:t}},sU=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},aU="",kBn=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{Fb(o,!1,a=>{r[s]=a,++i===n&&e(r.join(aU))})})},PBn=(t,e)=>{const n=t.split(aU),r=[];for(let i=0;i{const r=n.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 o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let Jg;function g5(t){return t.reduce((e,n)=>e+n.length,0)}function _5(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(KQ);break}i=u*Math.pow(2,32)+c.getUint32(4),r=3}else{if(g5(n)t){a.enqueue(KQ);break}}}})}const lU=4;function ir(t){if(t)return FBn(t)}function FBn(t){for(var e in ir.prototype)t[e]=ir.prototype[e];return t}ir.prototype.on=ir.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};ir.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};ir.prototype.off=ir.prototype.removeListener=ir.prototype.removeAllListeners=ir.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;iPromise.resolve().then(e):(e,n)=>n(e,0),Gi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),BBn="arraybuffer";function cU(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const $Bn=Gi.setTimeout,UBn=Gi.clearTimeout;function N9(t,e){e.useNativeTimers?(t.setTimeoutFn=$Bn.bind(Gi),t.clearTimeoutFn=UBn.bind(Gi)):(t.setTimeoutFn=Gi.setTimeout.bind(Gi),t.clearTimeoutFn=Gi.clearTimeout.bind(Gi))}const GBn=1.33;function qBn(t){return typeof t=="string"?zBn(t):Math.ceil((t.byteLength||t.size)*GBn)}function zBn(t){let e=0,n=0;for(let r=0,i=t.length;r=57344?n+=3:(r++,n+=4);return n}function uU(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function jBn(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function WBn(t){let e={},n=t.split("&");for(let r=0,i=n.length;r{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=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)};PBn(e,this.socket.binaryType).forEach(n),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,kBn(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=uU()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let dU=!1;try{dU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ZBn=dU;function XBn(){}class JBn extends KBn{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}let $l=class uu extends ir{constructor(e,n,r){super(),this.createRequest=e,N9(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const n=cU(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);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=uu.requestsCount++,uu.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=XBn,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete uu.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",MD);else if(typeof addEventListener=="function"){const t="onpagehide"in Gi?"pagehide":"unload";addEventListener(t,MD,!1)}}function MD(){for(let t in $l.requests)$l.requests.hasOwnProperty(t)&&$l.requests[t].abort()}const e$n=function(){const t=fU({xdomain:!1});return t&&t.responseType!==null}();class t$n extends JBn{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=e$n&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new $l(fU,this.uri(),e)}}function fU(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ZBn))return new XMLHttpRequest}catch{}if(!e)try{return new Gi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const pU=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class n$n extends $b{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,r=pU?{}:cU(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,n,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 n=0;n{try{this.doWrite(r,o)}catch{}i&&R9(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=uU()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const e_=Gi.WebSocket||Gi.MozWebSocket;class r$n extends n$n{createSocket(e,n,r){return pU?new e_(e,n,r):n?new e_(e,n):new e_(e)}doWrite(e,n){this.ws.send(n)}}class i$n extends $b{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 n=VBn(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=HBn();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n{i&&R9(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const o$n={websocket:r$n,webtransport:i$n,polling:t$n},s$n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a$n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ZQ(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=s$n.exec(t||""),o={},s=14;for(;s--;)o[a$n[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=l$n(o,o.path),o.queryKey=c$n(o,o.query),o}function l$n(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function c$n(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const XQ=typeof addEventListener=="function"&&typeof removeEventListener=="function",du=[];XQ&&addEventListener("offline",()=>{du.forEach(t=>t())},!1);class $a extends ir{constructor(e,n){if(super(),this.binaryType=BBn,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const r=ZQ(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ZQ(n.host).host);N9(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=WBn(this.opts.query)),XQ&&(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"})},du.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=lU,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,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&&$a.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",$a.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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,R9(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};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($a.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,n){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(),XQ&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=du.indexOf(this._offlineEventListener);r!==-1&&du.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}$a.protocol=lU;class u$n extends $a{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;$a.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function o(){r||(r=!0,u(),n.close(),n=null)}const s=d=>{const h=new Error("probe error: "+d);h.transport=n.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){n&&d.name!==n.name&&o()}const u=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let r=0;ro$n[i]).filter(i=>!!i)),super(e,r)}};function f$n(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=ZQ(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const p$n=typeof ArrayBuffer=="function",h$n=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,hU=Object.prototype.toString,T$n=typeof Blob=="function"||typeof Blob<"u"&&hU.call(Blob)==="[object BlobConstructor]",m$n=typeof File=="function"||typeof File<"u"&&hU.call(File)==="[object FileConstructor]";function Ub(t){return p$n&&(t instanceof ArrayBuffer||h$n(t))||T$n&&t instanceof Blob||m$n&&t instanceof File}function fu(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:rn.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),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 rn.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 rn.EVENT:case rn.BINARY_EVENT:this.onevent(e);break;case rn.ACK:case rn.BINARY_ACK:this.onack(e);break;case rn.DISCONNECT:this.ondisconnect();break;case rn.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 n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)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 n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:rn.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:rn.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 n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Xc.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Xc.prototype.reset=function(){this.attempts=0};Xc.prototype.setMin=function(t){this.ms=t};Xc.prototype.setMax=function(t){this.max=t};Xc.prototype.setJitter=function(t){this.jitter=t};class tv extends ir{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,N9(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||E$n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 d$n(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=mo(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=mo(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(mo(e,"ping",this.onping.bind(this)),mo(e,"data",this.ondata.bind(this)),mo(e,"error",this.onerror.bind(this)),mo(e,"close",this.onclose.bind(this)),mo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){R9(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new TU(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=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,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=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()}))},n);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 h4={};function pu(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=f$n(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=h4[i]&&o in h4[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new tv(r,e):(h4[i]||(h4[i]=new tv(r,e)),l=h4[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(pu,{Manager:tv,Socket:TU,io:pu,connect:pu});const mU="/";console.log(mU);const et=new pu(mU,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),S$n={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){Ke(()=>{Xe.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.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(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},L$n={class:"flex items-center space-x-2"},C$n=["value","type","placeholder"],A$n=["value","min","max"],w$n=["accept"];function M$n(t,e,n,r,i,o){return k(),P("div",L$n,[t.useSlider?(k(),P("input",{key:1,type:"range",value:parseInt(i.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...s)=>o.handleSliderInput&&o.handleSliderInput(...s)),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,A$n)):(k(),P("input",{key:0,value:i.inputValue,type:n.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...s)=>o.handleInput&&o.handleInput(...s)),onPaste:e[1]||(e[1]=(...s)=>o.handlePaste&&o.handlePaste(...s)),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,C$n)),g("button",{onClick:e[3]||(e[3]=(...s)=>o.pasteFromClipboard&&o.pasteFromClipboard(...s)),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]=[g("i",{"data-feather":"clipboard"},null,-1)])),n.inputType==="file"?(k(),P("button",{key:2,onClick:e[4]||(e[4]=(...s)=>o.openFileInput&&o.openFileInput(...s)),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]=[g("i",{"data-feather":"upload"},null,-1)]))):ie("",!0),n.inputType==="file"?(k(),P("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...s)=>o.handleFileInputChange&&o.handleFileInputChange(...s))},null,40,w$n)):ie("",!0)])}const qb=Et(S$n,[["render",M$n]]),O$n={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"]}}},R$n={class:"w-full"},N$n={class:"break-words"},D$n={class:"break-words mt-2"},I$n={class:"mt-4"};function k$n(t,e,n,r,i,o){return k(),P("div",R$n,[g("div",N$n,[(k(!0),P(ze,null,lt(n.namedTokens,(s,a)=>(k(),P("span",{key:a},[g("span",{class:"inline-block whitespace-pre-wrap",style:bn({backgroundColor:i.colors[a%i.colors.length]})},ue(s[0]),5)]))),128))]),g("div",D$n,[(k(!0),P(ze,null,lt(n.namedTokens,(s,a)=>(k(),P("span",{key:a},[g("span",{class:"inline-block px-1 whitespace-pre-wrap",style:bn({backgroundColor:i.colors[a%i.colors.length]})},ue(s[1]),5)]))),128))]),g("div",I$n,[g("strong",null,"Total Tokens: "+ue(n.namedTokens.length),1)])])}const P$n=Et(O$n,[["render",k$n]]),H$n={name:"ChatBarButton"};function V$n(t,e,n,r,i,o){return k(),P("button",uH({class:"svg-button"},t.$attrs,ej(t.$listeners)),[er(t.$slots,"icon"),er(t.$slots,"default")],16)}const D9=Et(H$n,[["render",V$n]]),F$n={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)}}},B$n={key:1,class:"flex flex-wrap"},$$n={key:2,class:"mb-2"};function U$n(t,e,n,r,i,o){return k(),P("div",null,[i.isActive?(k(),P("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...s)=>o.toggleCard&&o.toggleCard(...s))})):ie("",!0),te(g("div",{class:We(["border-blue-300 rounded-lg shadow-lg p-2",o.cardWidthClass,"m-2",{subcard:n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=s=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=s=>i.isHovered=!1),onClick:e[4]||(e[4]=ge((...s)=>o.toggleCard&&o.toggleCard(...s),["self"])),style:bn({cursor:this.disableFocus?"":"pointer"})},[n.title?(k(),P("div",{key:0,onClick:e[1]||(e[1]=s=>i.shrink=!0),class:We([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},ue(n.title),3)):ie("",!0),n.isHorizontal?(k(),P("div",B$n,[er(t.$slots,"default")])):(k(),P("div",$$n,[er(t.$slots,"default")]))],38),[[Ht,i.shrink===!1]]),n.is_subcard?te((k(),P("div",{key:1,onClick:e[5]||(e[5]=s=>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"},ue(n.title),513)),[[Ht,i.shrink===!0]]):te((k(),P("div",{key:2,onClick:e[6]||(e[6]=s=>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)),[[Ht,i.shrink===!0]])])}const I9=Et(F$n,[["render",U$n]]),gU="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",_U="/assets/python_block-Bt12VGEE.png",QU="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",vU="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==",yU="/assets/cpp_block-kkmuBJ_E.png",bU="/assets/html5_block-beC_-Wtz.png",EU="/assets/LaTeX_block-BNFNi2yr.png",xU="/assets/bash_block-DZNRrwlz.png",G$n="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",q$n="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",z$n="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",j$n="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",W$n="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",SU="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",Y$n={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""}}}},K$n=["title"],Z$n={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"},X$n=["innerHTML"];function J$n(t,e,n,r,i,o){return k(),P("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:n.title,onClick:e[0]||(e[0]=s=>t.$emit("click"))},[(k(),P("svg",Z$n,[g("g",{innerHTML:o.iconPath},null,8,X$n)]))],8,K$n)}const zb=Et(Y$n,[["render",J$n]]);var Ti="top",oo="bottom",so="right",mi="left",jb="auto",f6=[Ti,oo,so,mi],dc="start",T0="end",eUn="clippingParents",LU="viewport",T4="popper",tUn="reference",RD=f6.reduce(function(t,e){return t.concat([e+"-"+dc,e+"-"+T0])},[]),CU=[].concat(f6,[jb]).reduce(function(t,e){return t.concat([e,e+"-"+dc,e+"-"+T0])},[]),nUn="beforeRead",rUn="read",iUn="afterRead",oUn="beforeMain",sUn="main",aUn="afterMain",lUn="beforeWrite",cUn="write",uUn="afterWrite",dUn=[nUn,rUn,iUn,oUn,sUn,aUn,lUn,cUn,uUn];function as(t){return t?(t.nodeName||"").toLowerCase():null}function Ni(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function y2(t){var e=Ni(t).Element;return t instanceof e||t instanceof Element}function eo(t){var e=Ni(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Wb(t){if(typeof ShadowRoot>"u")return!1;var e=Ni(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fUn(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!eo(o)||!as(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function pUn(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!eo(i)||!as(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const hUn={name:"applyStyles",enabled:!0,phase:"write",fn:fUn,effect:pUn,requires:["computeStyles"]};function is(t){return t.split("-")[0]}var r2=Math.max,md=Math.min,fc=Math.round;function nv(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function AU(){return!/^((?!chrome|android).)*safari/i.test(nv())}function pc(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&eo(t)&&(i=t.offsetWidth>0&&fc(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&fc(r.height)/t.offsetHeight||1);var s=y2(t)?Ni(t):window,a=s.visualViewport,l=!AU()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,d=r.width/i,h=r.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Yb(t){var e=pc(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function wU(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Wb(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Js(t){return Ni(t).getComputedStyle(t)}function TUn(t){return["table","td","th"].indexOf(as(t))>=0}function l1(t){return((y2(t)?t.ownerDocument:t.document)||window.document).documentElement}function k9(t){return as(t)==="html"?t:t.assignedSlot||t.parentNode||(Wb(t)?t.host:null)||l1(t)}function ND(t){return!eo(t)||Js(t).position==="fixed"?null:t.offsetParent}function mUn(t){var e=/firefox/i.test(nv()),n=/Trident/i.test(nv());if(n&&eo(t)){var r=Js(t);if(r.position==="fixed")return null}var i=k9(t);for(Wb(i)&&(i=i.host);eo(i)&&["html","body"].indexOf(as(i))<0;){var o=Js(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function p6(t){for(var e=Ni(t),n=ND(t);n&&TUn(n)&&Js(n).position==="static";)n=ND(n);return n&&(as(n)==="html"||as(n)==="body"&&Js(n).position==="static")?e:n||mUn(t)||e}function Kb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function F4(t,e,n){return r2(t,md(e,n))}function gUn(t,e,n){var r=F4(t,e,n);return r>n?n:r}function MU(){return{top:0,right:0,bottom:0,left:0}}function OU(t){return Object.assign({},MU(),t)}function RU(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var _Un=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,OU(typeof e!="number"?e:RU(e,f6))};function QUn(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=is(n.placement),l=Kb(a),c=[mi,so].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=_Un(i.padding,n),h=Yb(o),f=l==="y"?Ti:mi,m=l==="y"?oo:so,T=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],Q=s[l]-n.rects.reference[l],_=p6(o),v=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,y=T/2-Q/2,b=d[f],E=v-h[u]-d[m],x=v/2-h[u]/2+y,L=F4(b,x,E),M=l;n.modifiersData[r]=(e={},e[M]=L,e.centerOffset=L-x,e)}}function vUn(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||wU(e.elements.popper,i)&&(e.elements.arrow=i))}const yUn={name:"arrow",enabled:!0,phase:"main",fn:QUn,effect:vUn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hc(t){return t.split("-")[1]}var bUn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function EUn(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:fc(n*i)/i||0,y:fc(r*i)/i||0}}function DD(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=s.x,f=h===void 0?0:h,m=s.y,T=m===void 0?0:m,Q=typeof u=="function"?u({x:f,y:T}):{x:f,y:T};f=Q.x,T=Q.y;var _=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=mi,b=Ti,E=window;if(c){var x=p6(n),L="clientHeight",M="clientWidth";if(x===Ni(n)&&(x=l1(n),Js(x).position!=="static"&&a==="absolute"&&(L="scrollHeight",M="scrollWidth")),x=x,i===Ti||(i===mi||i===so)&&o===T0){b=oo;var C=d&&x===E&&E.visualViewport?E.visualViewport.height:x[L];T-=C-r.height,T*=l?1:-1}if(i===mi||(i===Ti||i===oo)&&o===T0){y=so;var A=d&&x===E&&E.visualViewport?E.visualViewport.width:x[M];f-=A-r.width,f*=l?1:-1}}var I=Object.assign({position:a},c&&bUn),N=u===!0?EUn({x:f,y:T},Ni(n)):{x:f,y:T};if(f=N.x,T=N.y,l){var V;return Object.assign({},I,(V={},V[b]=v?"0":"",V[y]=_?"0":"",V.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+T+"px)":"translate3d("+f+"px, "+T+"px, 0)",V))}return Object.assign({},I,(e={},e[b]=v?T+"px":"",e[y]=_?f+"px":"",e.transform="",e))}function xUn(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:is(e.placement),variation:hc(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,DD(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,DD(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const SUn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xUn,data:{}};var Q5={passive:!0};function LUn(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=Ni(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Q5)}),a&&l.addEventListener("resize",n.update,Q5),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Q5)}),a&&l.removeEventListener("resize",n.update,Q5)}}const CUn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LUn,data:{}};var AUn={left:"right",right:"left",bottom:"top",top:"bottom"};function hu(t){return t.replace(/left|right|bottom|top/g,function(e){return AUn[e]})}var wUn={start:"end",end:"start"};function ID(t){return t.replace(/start|end/g,function(e){return wUn[e]})}function Zb(t){var e=Ni(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Xb(t){return pc(l1(t)).left+Zb(t).scrollLeft}function MUn(t,e){var n=Ni(t),r=l1(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=AU();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+Xb(t),y:l}}function OUn(t){var e,n=l1(t),r=Zb(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=r2(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=r2(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Xb(t),l=-r.scrollTop;return Js(i||n).direction==="rtl"&&(a+=r2(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Jb(t){var e=Js(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function NU(t){return["html","body","#document"].indexOf(as(t))>=0?t.ownerDocument.body:eo(t)&&Jb(t)?t:NU(k9(t))}function B4(t,e){var n;e===void 0&&(e=[]);var r=NU(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Ni(r),s=i?[o].concat(o.visualViewport||[],Jb(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(B4(k9(s)))}function rv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function RUn(t,e){var n=pc(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function kD(t,e,n){return e===LU?rv(MUn(t,n)):y2(e)?RUn(e,n):rv(OUn(l1(t)))}function NUn(t){var e=B4(k9(t)),n=["absolute","fixed"].indexOf(Js(t).position)>=0,r=n&&eo(t)?p6(t):t;return y2(r)?e.filter(function(i){return y2(i)&&wU(i,r)&&as(i)!=="body"}):[]}function DUn(t,e,n,r){var i=e==="clippingParents"?NUn(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=kD(t,c,r);return l.top=r2(u.top,l.top),l.right=md(u.right,l.right),l.bottom=md(u.bottom,l.bottom),l.left=r2(u.left,l.left),l},kD(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function DU(t){var e=t.reference,n=t.element,r=t.placement,i=r?is(r):null,o=r?hc(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Ti:l={x:s,y:e.y-n.height};break;case oo:l={x:s,y:e.y+e.height};break;case so:l={x:e.x+e.width,y:a};break;case mi:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?Kb(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case dc:l[c]=l[c]-(e[u]/2-n[u]/2);break;case T0:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function m0(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,a=n.boundary,l=a===void 0?eUn:a,c=n.rootBoundary,u=c===void 0?LU:c,d=n.elementContext,h=d===void 0?T4:d,f=n.altBoundary,m=f===void 0?!1:f,T=n.padding,Q=T===void 0?0:T,_=OU(typeof Q!="number"?Q:RU(Q,f6)),v=h===T4?tUn:T4,y=t.rects.popper,b=t.elements[m?v:h],E=DUn(y2(b)?b:b.contextElement||l1(t.elements.popper),l,u,s),x=pc(t.elements.reference),L=DU({reference:x,element:y,strategy:"absolute",placement:i}),M=rv(Object.assign({},y,L)),C=h===T4?M:x,A={top:E.top-C.top+_.top,bottom:C.bottom-E.bottom+_.bottom,left:E.left-C.left+_.left,right:C.right-E.right+_.right},I=t.modifiersData.offset;if(h===T4&&I){var N=I[i];Object.keys(A).forEach(function(V){var R=[so,oo].indexOf(V)>=0?1:-1,B=[Ti,oo].indexOf(V)>=0?"y":"x";A[V]+=N[B]*R})}return A}function IUn(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?CU:l,u=hc(r),d=u?a?RD:RD.filter(function(m){return hc(m)===u}):f6,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var f=h.reduce(function(m,T){return m[T]=m0(t,{placement:T,boundary:i,rootBoundary:o,padding:s})[is(T)],m},{});return Object.keys(f).sort(function(m,T){return f[m]-f[T]})}function kUn(t){if(is(t)===jb)return[];var e=hu(t);return[ID(t),e,ID(e)]}function PUn(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,T=n.allowedAutoPlacements,Q=e.options.placement,_=is(Q),v=_===Q,y=l||(v||!m?[hu(Q)]:kUn(Q)),b=[Q].concat(y).reduce(function($,ce){return $.concat(is(ce)===jb?IUn(e,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:T}):ce)},[]),E=e.rects.reference,x=e.rects.popper,L=new Map,M=!0,C=b[0],A=0;A=0,B=R?"width":"height",F=m0(e,{placement:I,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),U=R?V?so:mi:V?oo:Ti;E[B]>x[B]&&(U=hu(U));var G=hu(U),Z=[];if(o&&Z.push(F[N]<=0),a&&Z.push(F[U]<=0,F[G]<=0),Z.every(function($){return $})){C=I,M=!1;break}L.set(I,Z)}if(M)for(var Y=m?3:1,ee=function(ce){var Ee=b.find(function(z){var re=L.get(z);if(re)return re.slice(0,ce).every(function(he){return he})});if(Ee)return C=Ee,"break"},pe=Y;pe>0;pe--){var K=ee(pe);if(K==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const HUn={name:"flip",enabled:!0,phase:"main",fn:PUn,requiresIfExists:["offset"],data:{_skip:!1}};function PD(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function HD(t){return[Ti,so,oo,mi].some(function(e){return t[e]>=0})}function VUn(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=m0(e,{elementContext:"reference"}),a=m0(e,{altBoundary:!0}),l=PD(s,r),c=PD(a,i,o),u=HD(l),d=HD(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const FUn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VUn};function BUn(t,e,n){var r=is(t),i=[mi,Ti].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[mi,so].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function $Un(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=CU.reduce(function(u,d){return u[d]=BUn(d,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const UUn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$Un};function GUn(t){var e=t.state,n=t.name;e.modifiersData[n]=DU({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const qUn={name:"popperOffsets",enabled:!0,phase:"read",fn:GUn,data:{}};function zUn(t){return t==="x"?"y":"x"}function jUn(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,f=h===void 0?!0:h,m=n.tetherOffset,T=m===void 0?0:m,Q=m0(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),_=is(e.placement),v=hc(e.placement),y=!v,b=Kb(_),E=zUn(b),x=e.modifiersData.popperOffsets,L=e.rects.reference,M=e.rects.popper,C=typeof T=="function"?T(Object.assign({},e.rects,{placement:e.placement})):T,A=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(x){if(o){var V,R=b==="y"?Ti:mi,B=b==="y"?oo:so,F=b==="y"?"height":"width",U=x[b],G=U+Q[R],Z=U-Q[B],Y=f?-M[F]/2:0,ee=v===dc?L[F]:M[F],pe=v===dc?-M[F]:-L[F],K=e.elements.arrow,$=f&&K?Yb(K):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:MU(),Ee=ce[R],z=ce[B],re=F4(0,L[F],$[F]),he=y?L[F]/2-Y-re-Ee-A.mainAxis:ee-re-Ee-A.mainAxis,Se=y?-L[F]/2+Y+re+z+A.mainAxis:pe+re+z+A.mainAxis,we=e.elements.arrow&&p6(e.elements.arrow),se=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,W=(V=I==null?void 0:I[b])!=null?V:0,j=U+he-W-se,oe=U+Se-W,_e=F4(f?md(G,j):G,U,f?r2(Z,oe):Z);x[b]=_e,N[b]=_e-U}if(a){var ye,le=b==="x"?Ti:mi,De=b==="x"?oo:so,Ce=x[E],Oe=E==="y"?"height":"width",He=Ce+Q[le],X=Ce-Q[De],q=[Ti,mi].indexOf(_)!==-1,Te=(ye=I==null?void 0:I[E])!=null?ye:0,fe=q?He:Ce-L[Oe]-M[Oe]-Te+A.altAxis,ve=q?Ce+L[Oe]+M[Oe]-Te-A.altAxis:X,Me=f&&q?gUn(fe,Ce,ve):F4(f?fe:He,Ce,f?ve:X);x[E]=Me,N[E]=Me-Ce}e.modifiersData[r]=N}}const WUn={name:"preventOverflow",enabled:!0,phase:"main",fn:jUn,requiresIfExists:["offset"]};function YUn(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function KUn(t){return t===Ni(t)||!eo(t)?Zb(t):YUn(t)}function ZUn(t){var e=t.getBoundingClientRect(),n=fc(e.width)/t.offsetWidth||1,r=fc(e.height)/t.offsetHeight||1;return n!==1||r!==1}function XUn(t,e,n){n===void 0&&(n=!1);var r=eo(e),i=eo(e)&&ZUn(e),o=l1(e),s=pc(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((as(e)!=="body"||Jb(o))&&(a=KUn(e)),eo(e)?(l=pc(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Xb(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function JUn(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function eGn(t){var e=JUn(t);return dUn.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function tGn(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function nGn(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var VD={placement:"bottom",modifiers:[],strategy:"absolute"};function FD(){for(var t=arguments.length,e=new Array(t),n=0;n{this.createPopper()})},closeMenu(t){var e;!this.$el.contains(t.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(t.target))&&(this.isOpen=!1)},createPopper(){const t=this.$el.querySelector("button"),e=this.$refs.dropdown;t&&e&&(this.popperInstance=P9(t,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},sGn={class:"relative inline-block text-left"},aGn={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"},lGn={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function cGn(t,e,n,r,i,o){const s=gt("ToolbarButton");return k(),P("div",sGn,[g("div",null,[ae(s,{onClick:ge(o.toggleMenu,["stop"]),title:n.title,icon:"code"},null,8,["onClick","title"])]),(k(),wt(Fz,{to:"body"},[i.isOpen?(k(),P("div",aGn,[g("div",lGn,[er(t.$slots,"default",{},void 0,!0)])],512)):ie("",!0)]))])}const IU=Et(oGn,[["render",cGn],["__scopeId","data-v-6c3ea3a5"]]);async function BD(t,e="",n=[]){return new Promise((r,i)=>{const o=document.createElement("div");o.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?o.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,YFn))],8,WFn),ae(s),g("div",null,[g("a",KFn,[e[16]||(e[16]=g("svg",{class:"w-5 h-5",viewBox:"0 0 16 16",fill:"currentColor"},[g("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})],-1)),i.starCount?(k(),P("span",ZFn,ue(i.starCount),1)):ie("",!0)])]),g("div",XFn,[o.is_fun_mode?(k(),P("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-10 h-10 cursor-pointer transform transition-all duration-300 hover:scale-110 active:scale-95 bg-yellow-400 rounded-full p-1 hover:bg-yellow-300 dark:hover:bg-yellow-500",onClick:e[2]||(e[2]=T=>o.fun_mode_off())},e[17]||(e[17]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"w-full h-full text-white animate-bounce"},[g("circle",{cx:"12",cy:"12",r:"10",stroke:"black","stroke-width":"1.5"}),g("path",{d:"M7 14c0 3 4 4 5 4s5-1 5-4M9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z",stroke:"black","stroke-width":"1.5"})],-1)]))):(k(),P("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-10 h-10 cursor-pointer rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transform transition-all duration-300 hover:scale-110 active:scale-95 p-1",onClick:e[3]||(e[3]=T=>o.fun_mode_on())},e[18]||(e[18]=[jl('',1)]))),g("div",JFn,[e[19]||(e[19]=g("div",{class:"absolute -top-2 left-1/2 transform -translate-x-1/2 border-solid border-4 border-transparent border-b-gray-900"},null,-1)),nt(" "+ue(o.is_fun_mode?"Disable fun mode":"Enable fun mode"),1)])]),i.isDarkMode?(k(),P("div",{key:0,class:"text-2xl svg-button hover:text-primary duration-150 cursor-pointer w-50 h-50 ml-2",title:"Switch to Light theme",onClick:e[4]||(e[4]=T=>o.themeSwitch())},e[20]||(e[20]=[g("i",{"data-feather":"sun"},null,-1)]))):(k(),P("div",{key:1,class:"text-2xl svg-button hover:text-primary duration-150 cursor-pointer w-50 h-50 ml-2",title:"Switch to Dark theme",onClick:e[5]||(e[5]=T=>o.themeSwitch())},e[21]||(e[21]=[g("i",{"data-feather":"moon"},null,-1)]))),g("div",eBn,[g("button",{onClick:e[6]||(e[6]=(...T)=>o.toggleLanguageMenu&&o.toggleLanguageMenu(...T)),class:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-gray-100 transition-colors","aria-haspopup":"true","aria-expanded":i.isLanguageMenuVisible},[g("span",nBn,ue(t.$store.state.language.slice(0,2)),1),(k(),P("svg",{class:We(["w-4 h-4 transition-transform",{"rotate-180":i.isLanguageMenuVisible}]),viewBox:"0 0 24 24"},e[22]||(e[22]=[g("path",{d:"M7 10l5 5 5-5z",fill:"currentColor"},null,-1)]),2))],8,tBn),ae(Ai,{"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-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:Be(()=>[i.isLanguageMenuVisible?(k(),P("div",rBn,[g("ul",iBn,[(k(!0),P(ze,null,lt(o.languages,T=>(k(),P("li",{key:T,class:"group flex items-center px-3 py-2 hover:bg-gray-50"},[g("button",{onClick:Q=>o.deleteLanguage(T),class:"p-1 rounded-full opacity-0 group-hover:opacity-100 transition-opacity text-gray-400 hover:text-red-500 hover:bg-red-50","aria-label":`Delete ${T}`},e[23]||(e[23]=[g("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[g("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"currentColor"})],-1)]),8,oBn),g("div",{onClick:Q=>o.selectLanguage(T),class:We(["flex-grow px-3 py-1 cursor-pointer rounded-md transition-colors",T===t.$store.state.language?"bg-blue-50 text-blue-600":"hover:bg-gray-100"]),role:"menuitem"},ue(T),11,sBn)]))),128)),g("li",aBn,[te(g("input",{type:"text","onUpdate:modelValue":e[7]||(e[7]=T=>t.customLanguage=T),onKeyup:e[8]||(e[8]=ri(ge((...T)=>o.addCustomLanguage&&o.addCustomLanguage(...T),["prevent"]),["enter"])),placeholder:"Add new language...",class:"w-full px-3 py-2 rounded-md border border-gray-200 focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none transition-all"},null,544),[[Ne,t.customLanguage]])])])],512)):ie("",!0)]),_:1})]),g("div",lBn,[g("button",{onClick:e[9]||(e[9]=ge((...T)=>o.toggleThemeDropDown&&o.toggleThemeDropDown(...T),["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 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"},[g("div",cBn,[e[24]||(e[24]=g("svg",{class:"w-5 h-5 flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)),g("span",uBn,ue(i.currentTheme),1)]),(k(),P("svg",{class:We(["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[25]||(e[25]=[g("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))]),ae(Ai,{"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:Be(()=>[i.themeDropdownOpen?(k(),P("div",dBn,[g("div",fBn,[(k(!0),P(ze,null,lt(i.availableThemes,T=>(k(),P("a",{key:T,onClick:Q=>{o.loadTheme(T),i.currentTheme=T,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[26]||(e[26]=g("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),g("span",hBn,ue(T),1)],8,pBn))),128))])])):ie("",!0)]),_:1})]),g("div",{class:"toolbar-button",onMouseleave:e[13]||(e[13]=(...T)=>o.hideInfosMenu&&o.hideInfosMenu(...T))},[g("div",TBn,[i.isInfosMenuVisible?(k(),P("div",{key:0,onMouseenter:e[11]||(e[11]=(...T)=>o.showInfosMenu&&o.showInfosMenu(...T)),class:"absolute context-menu m-0 p-0 z-50 top-full right-0 transform rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[g("div",mBn,[g("div",gBn,[o.isModelOK?(k(),P("div",_Bn,e[27]||(e[27]=[g("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(k(),P("div",QBn,e[28]||(e[28]=[g("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),o.isGenerating?(k(),P("div",yBn,e[30]||(e[30]=[g("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)]))):(k(),P("div",vBn,e[29]||(e[29]=[g("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)]))),o.isConnected?(k(),P("div",bBn,e[31]||(e[31]=[g("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(k(),P("div",EBn,e[32]||(e[32]=[g("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])))]),g("div",xBn,[ae(a,{onClick:t.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),ae(a,{onClick:o.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),ae(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),ae(l,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),ae(l,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),ae(l,{href:"https://x.com/ParisNeo_AI",icon:"x"}),ae(l,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),g("div",SBn,[g("div",{onClick:e[10]||(e[10]=T=>o.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 svg-button"},e[33]||(e[33]=[g("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"},[g("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[34]||(e[34]=g("span",{class:"absolute hidden group-hover:block 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)):ie("",!0),g("div",{onMouseenter:e[12]||(e[12]=(...T)=>o.showInfosMenu&&o.showInfosMenu(...T)),class:"infos-hover-area"},e[35]||(e[35]=[jl('',1)]),32)])],32)])],34)],2),te(g("div",LBn,[ae(c,{ref:"progress",progress:t.progress_value,class:"w-full h-4"},null,8,["progress"]),g("p",CBn,ue(t.loading_infos)+" ...",1)],512),[[Ht,t.progress_visibility]]),ae(u,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:t.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),ae(d,{ref:"toast"},null,512),ae(h,{ref:"messageBox"},null,512),ae(f,{ref:"yesNoDialog",class:"z-20"},null,512),ae(m,{ref:"universalForm",class:"z-20"},null,512)],64)}const wBn=Et(zFn,[["render",ABn],["__scopeId","data-v-a223fde0"]]),MBn={class:"flex overflow-hidden flex-grow w-full"},OBn={__name:"App",setup(t){return(e,n)=>(k(),P("div",{class:We([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"])},[ae(wBn),g("div",MBn,[ae(Ft(mV),null,{default:Be(({Component:r})=>[(k(),wt(Gz,null,[(k(),wt(jd(r)))],1024))]),_:1})])],2))}},ss=Object.create(null);ss.open="0";ss.close="1";ss.ping="2";ss.pong="3";ss.message="4";ss.upgrade="5";ss.noop="6";const cu=Object.create(null);Object.keys(ss).forEach(t=>{cu[ss[t]]=t});const KQ={type:"error",data:"parser error"},rU=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",iU=typeof ArrayBuffer=="function",oU=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Fb=({type:t,data:e},n,r)=>rU&&e instanceof Blob?n?r(e):CD(e,r):iU&&(e instanceof ArrayBuffer||oU(e))?n?r(e):CD(new Blob([e]),r):r(ss[t]+(e||"")),CD=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function AD(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Xg;function RBn(t,e){if(rU&&t.data instanceof Blob)return t.data.arrayBuffer().then(AD).then(e);if(iU&&(t.data instanceof ArrayBuffer||oU(t.data)))return e(AD(t.data));Fb(t,!1,n=>{Xg||(Xg=new TextEncoder),e(Xg.encode(n))})}const wD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C4=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(r=0;r>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|l&63;return c},DBn=typeof ArrayBuffer=="function",Bb=(t,e)=>{if(typeof t!="string")return{type:"message",data:sU(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:IBn(t.substring(1),e)}:cu[n]?t.length>1?{type:cu[n],data:t.substring(1)}:{type:cu[n]}:KQ},IBn=(t,e)=>{if(DBn){const n=NBn(t);return sU(n,e)}else return{base64:!0,data:t}},sU=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},aU="",kBn=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{Fb(o,!1,a=>{r[s]=a,++i===n&&e(r.join(aU))})})},PBn=(t,e)=>{const n=t.split(aU),r=[];for(let i=0;i{const r=n.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 o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let Jg;function g5(t){return t.reduce((e,n)=>e+n.length,0)}function _5(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(KQ);break}i=u*Math.pow(2,32)+c.getUint32(4),r=3}else{if(g5(n)t){a.enqueue(KQ);break}}}})}const lU=4;function ir(t){if(t)return FBn(t)}function FBn(t){for(var e in ir.prototype)t[e]=ir.prototype[e];return t}ir.prototype.on=ir.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};ir.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};ir.prototype.off=ir.prototype.removeListener=ir.prototype.removeAllListeners=ir.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;iPromise.resolve().then(e):(e,n)=>n(e,0),Gi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),BBn="arraybuffer";function cU(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const $Bn=Gi.setTimeout,UBn=Gi.clearTimeout;function N9(t,e){e.useNativeTimers?(t.setTimeoutFn=$Bn.bind(Gi),t.clearTimeoutFn=UBn.bind(Gi)):(t.setTimeoutFn=Gi.setTimeout.bind(Gi),t.clearTimeoutFn=Gi.clearTimeout.bind(Gi))}const GBn=1.33;function qBn(t){return typeof t=="string"?zBn(t):Math.ceil((t.byteLength||t.size)*GBn)}function zBn(t){let e=0,n=0;for(let r=0,i=t.length;r=57344?n+=3:(r++,n+=4);return n}function uU(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function jBn(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function WBn(t){let e={},n=t.split("&");for(let r=0,i=n.length;r{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=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)};PBn(e,this.socket.binaryType).forEach(n),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,kBn(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=uU()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let dU=!1;try{dU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ZBn=dU;function XBn(){}class JBn extends KBn{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}let $l=class uu extends ir{constructor(e,n,r){super(),this.createRequest=e,N9(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const n=cU(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);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=uu.requestsCount++,uu.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=XBn,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete uu.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",MD);else if(typeof addEventListener=="function"){const t="onpagehide"in Gi?"pagehide":"unload";addEventListener(t,MD,!1)}}function MD(){for(let t in $l.requests)$l.requests.hasOwnProperty(t)&&$l.requests[t].abort()}const e$n=function(){const t=fU({xdomain:!1});return t&&t.responseType!==null}();class t$n extends JBn{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=e$n&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new $l(fU,this.uri(),e)}}function fU(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ZBn))return new XMLHttpRequest}catch{}if(!e)try{return new Gi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const pU=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class n$n extends $b{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,r=pU?{}:cU(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,n,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 n=0;n{try{this.doWrite(r,o)}catch{}i&&R9(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=uU()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const e_=Gi.WebSocket||Gi.MozWebSocket;class r$n extends n$n{createSocket(e,n,r){return pU?new e_(e,n,r):n?new e_(e,n):new e_(e)}doWrite(e,n){this.ws.send(n)}}class i$n extends $b{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 n=VBn(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=HBn();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n{i&&R9(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const o$n={websocket:r$n,webtransport:i$n,polling:t$n},s$n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a$n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ZQ(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=s$n.exec(t||""),o={},s=14;for(;s--;)o[a$n[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=l$n(o,o.path),o.queryKey=c$n(o,o.query),o}function l$n(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function c$n(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const XQ=typeof addEventListener=="function"&&typeof removeEventListener=="function",du=[];XQ&&addEventListener("offline",()=>{du.forEach(t=>t())},!1);class $a extends ir{constructor(e,n){if(super(),this.binaryType=BBn,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const r=ZQ(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ZQ(n.host).host);N9(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=WBn(this.opts.query)),XQ&&(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"})},du.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=lU,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,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&&$a.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",$a.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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,R9(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};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($a.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,n){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(),XQ&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=du.indexOf(this._offlineEventListener);r!==-1&&du.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}$a.protocol=lU;class u$n extends $a{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;$a.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function o(){r||(r=!0,u(),n.close(),n=null)}const s=d=>{const h=new Error("probe error: "+d);h.transport=n.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){n&&d.name!==n.name&&o()}const u=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let r=0;ro$n[i]).filter(i=>!!i)),super(e,r)}};function f$n(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=ZQ(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const p$n=typeof ArrayBuffer=="function",h$n=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,hU=Object.prototype.toString,T$n=typeof Blob=="function"||typeof Blob<"u"&&hU.call(Blob)==="[object BlobConstructor]",m$n=typeof File=="function"||typeof File<"u"&&hU.call(File)==="[object FileConstructor]";function Ub(t){return p$n&&(t instanceof ArrayBuffer||h$n(t))||T$n&&t instanceof Blob||m$n&&t instanceof File}function fu(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:rn.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),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 rn.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 rn.EVENT:case rn.BINARY_EVENT:this.onevent(e);break;case rn.ACK:case rn.BINARY_ACK:this.onack(e);break;case rn.DISCONNECT:this.ondisconnect();break;case rn.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 n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)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 n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:rn.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:rn.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 n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Xc.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Xc.prototype.reset=function(){this.attempts=0};Xc.prototype.setMin=function(t){this.ms=t};Xc.prototype.setMax=function(t){this.max=t};Xc.prototype.setJitter=function(t){this.jitter=t};class tv extends ir{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,N9(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||E$n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 d$n(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=mo(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=mo(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(mo(e,"ping",this.onping.bind(this)),mo(e,"data",this.ondata.bind(this)),mo(e,"error",this.onerror.bind(this)),mo(e,"close",this.onclose.bind(this)),mo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){R9(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new TU(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=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,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=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()}))},n);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 h4={};function pu(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=f$n(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=h4[i]&&o in h4[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new tv(r,e):(h4[i]||(h4[i]=new tv(r,e)),l=h4[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(pu,{Manager:tv,Socket:TU,io:pu,connect:pu});const mU="/";console.log(mU);const et=new pu(mU,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),S$n={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){Ke(()=>{Xe.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.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(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},L$n={class:"flex items-center space-x-2"},C$n=["value","type","placeholder"],A$n=["value","min","max"],w$n=["accept"];function M$n(t,e,n,r,i,o){return k(),P("div",L$n,[t.useSlider?(k(),P("input",{key:1,type:"range",value:parseInt(i.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...s)=>o.handleSliderInput&&o.handleSliderInput(...s)),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,A$n)):(k(),P("input",{key:0,value:i.inputValue,type:n.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...s)=>o.handleInput&&o.handleInput(...s)),onPaste:e[1]||(e[1]=(...s)=>o.handlePaste&&o.handlePaste(...s)),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,C$n)),g("button",{onClick:e[3]||(e[3]=(...s)=>o.pasteFromClipboard&&o.pasteFromClipboard(...s)),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]=[g("i",{"data-feather":"clipboard"},null,-1)])),n.inputType==="file"?(k(),P("button",{key:2,onClick:e[4]||(e[4]=(...s)=>o.openFileInput&&o.openFileInput(...s)),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]=[g("i",{"data-feather":"upload"},null,-1)]))):ie("",!0),n.inputType==="file"?(k(),P("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...s)=>o.handleFileInputChange&&o.handleFileInputChange(...s))},null,40,w$n)):ie("",!0)])}const qb=Et(S$n,[["render",M$n]]),O$n={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"]}}},R$n={class:"w-full"},N$n={class:"break-words"},D$n={class:"break-words mt-2"},I$n={class:"mt-4"};function k$n(t,e,n,r,i,o){return k(),P("div",R$n,[g("div",N$n,[(k(!0),P(ze,null,lt(n.namedTokens,(s,a)=>(k(),P("span",{key:a},[g("span",{class:"inline-block whitespace-pre-wrap",style:gn({backgroundColor:i.colors[a%i.colors.length]})},ue(s[0]),5)]))),128))]),g("div",D$n,[(k(!0),P(ze,null,lt(n.namedTokens,(s,a)=>(k(),P("span",{key:a},[g("span",{class:"inline-block px-1 whitespace-pre-wrap",style:gn({backgroundColor:i.colors[a%i.colors.length]})},ue(s[1]),5)]))),128))]),g("div",I$n,[g("strong",null,"Total Tokens: "+ue(n.namedTokens.length),1)])])}const P$n=Et(O$n,[["render",k$n]]),H$n={name:"ChatBarButton"};function V$n(t,e,n,r,i,o){return k(),P("button",uH({class:"svg-button"},t.$attrs,ej(t.$listeners)),[er(t.$slots,"icon"),er(t.$slots,"default")],16)}const D9=Et(H$n,[["render",V$n]]),F$n={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)}}},B$n={key:1,class:"flex flex-wrap"},$$n={key:2,class:"mb-2"};function U$n(t,e,n,r,i,o){return k(),P("div",null,[i.isActive?(k(),P("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...s)=>o.toggleCard&&o.toggleCard(...s))})):ie("",!0),te(g("div",{class:We(["border-blue-300 rounded-lg shadow-lg p-2",o.cardWidthClass,"m-2",{subcard:n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=s=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=s=>i.isHovered=!1),onClick:e[4]||(e[4]=ge((...s)=>o.toggleCard&&o.toggleCard(...s),["self"])),style:gn({cursor:this.disableFocus?"":"pointer"})},[n.title?(k(),P("div",{key:0,onClick:e[1]||(e[1]=s=>i.shrink=!0),class:We([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},ue(n.title),3)):ie("",!0),n.isHorizontal?(k(),P("div",B$n,[er(t.$slots,"default")])):(k(),P("div",$$n,[er(t.$slots,"default")]))],38),[[Ht,i.shrink===!1]]),n.is_subcard?te((k(),P("div",{key:1,onClick:e[5]||(e[5]=s=>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"},ue(n.title),513)),[[Ht,i.shrink===!0]]):te((k(),P("div",{key:2,onClick:e[6]||(e[6]=s=>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)),[[Ht,i.shrink===!0]])])}const I9=Et(F$n,[["render",U$n]]),gU="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",_U="/assets/python_block-Bt12VGEE.png",QU="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",vU="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==",yU="/assets/cpp_block-kkmuBJ_E.png",bU="/assets/html5_block-beC_-Wtz.png",EU="/assets/LaTeX_block-BNFNi2yr.png",xU="/assets/bash_block-DZNRrwlz.png",G$n="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",q$n="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",z$n="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",j$n="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",W$n="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",SU="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",Y$n={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""}}}},K$n=["title"],Z$n={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"},X$n=["innerHTML"];function J$n(t,e,n,r,i,o){return k(),P("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:n.title,onClick:e[0]||(e[0]=s=>t.$emit("click"))},[(k(),P("svg",Z$n,[g("g",{innerHTML:o.iconPath},null,8,X$n)]))],8,K$n)}const zb=Et(Y$n,[["render",J$n]]);var Ti="top",oo="bottom",so="right",mi="left",jb="auto",f6=[Ti,oo,so,mi],dc="start",T0="end",eUn="clippingParents",LU="viewport",T4="popper",tUn="reference",RD=f6.reduce(function(t,e){return t.concat([e+"-"+dc,e+"-"+T0])},[]),CU=[].concat(f6,[jb]).reduce(function(t,e){return t.concat([e,e+"-"+dc,e+"-"+T0])},[]),nUn="beforeRead",rUn="read",iUn="afterRead",oUn="beforeMain",sUn="main",aUn="afterMain",lUn="beforeWrite",cUn="write",uUn="afterWrite",dUn=[nUn,rUn,iUn,oUn,sUn,aUn,lUn,cUn,uUn];function as(t){return t?(t.nodeName||"").toLowerCase():null}function Ni(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function y2(t){var e=Ni(t).Element;return t instanceof e||t instanceof Element}function eo(t){var e=Ni(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Wb(t){if(typeof ShadowRoot>"u")return!1;var e=Ni(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fUn(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!eo(o)||!as(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function pUn(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!eo(i)||!as(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const hUn={name:"applyStyles",enabled:!0,phase:"write",fn:fUn,effect:pUn,requires:["computeStyles"]};function is(t){return t.split("-")[0]}var r2=Math.max,md=Math.min,fc=Math.round;function nv(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function AU(){return!/^((?!chrome|android).)*safari/i.test(nv())}function pc(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&eo(t)&&(i=t.offsetWidth>0&&fc(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&fc(r.height)/t.offsetHeight||1);var s=y2(t)?Ni(t):window,a=s.visualViewport,l=!AU()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,d=r.width/i,h=r.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Yb(t){var e=pc(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function wU(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Wb(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Js(t){return Ni(t).getComputedStyle(t)}function TUn(t){return["table","td","th"].indexOf(as(t))>=0}function l1(t){return((y2(t)?t.ownerDocument:t.document)||window.document).documentElement}function k9(t){return as(t)==="html"?t:t.assignedSlot||t.parentNode||(Wb(t)?t.host:null)||l1(t)}function ND(t){return!eo(t)||Js(t).position==="fixed"?null:t.offsetParent}function mUn(t){var e=/firefox/i.test(nv()),n=/Trident/i.test(nv());if(n&&eo(t)){var r=Js(t);if(r.position==="fixed")return null}var i=k9(t);for(Wb(i)&&(i=i.host);eo(i)&&["html","body"].indexOf(as(i))<0;){var o=Js(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function p6(t){for(var e=Ni(t),n=ND(t);n&&TUn(n)&&Js(n).position==="static";)n=ND(n);return n&&(as(n)==="html"||as(n)==="body"&&Js(n).position==="static")?e:n||mUn(t)||e}function Kb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function F4(t,e,n){return r2(t,md(e,n))}function gUn(t,e,n){var r=F4(t,e,n);return r>n?n:r}function MU(){return{top:0,right:0,bottom:0,left:0}}function OU(t){return Object.assign({},MU(),t)}function RU(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var _Un=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,OU(typeof e!="number"?e:RU(e,f6))};function QUn(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=is(n.placement),l=Kb(a),c=[mi,so].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=_Un(i.padding,n),h=Yb(o),f=l==="y"?Ti:mi,m=l==="y"?oo:so,T=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],Q=s[l]-n.rects.reference[l],_=p6(o),v=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,y=T/2-Q/2,b=d[f],E=v-h[u]-d[m],x=v/2-h[u]/2+y,L=F4(b,x,E),M=l;n.modifiersData[r]=(e={},e[M]=L,e.centerOffset=L-x,e)}}function vUn(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||wU(e.elements.popper,i)&&(e.elements.arrow=i))}const yUn={name:"arrow",enabled:!0,phase:"main",fn:QUn,effect:vUn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hc(t){return t.split("-")[1]}var bUn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function EUn(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:fc(n*i)/i||0,y:fc(r*i)/i||0}}function DD(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=s.x,f=h===void 0?0:h,m=s.y,T=m===void 0?0:m,Q=typeof u=="function"?u({x:f,y:T}):{x:f,y:T};f=Q.x,T=Q.y;var _=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=mi,b=Ti,E=window;if(c){var x=p6(n),L="clientHeight",M="clientWidth";if(x===Ni(n)&&(x=l1(n),Js(x).position!=="static"&&a==="absolute"&&(L="scrollHeight",M="scrollWidth")),x=x,i===Ti||(i===mi||i===so)&&o===T0){b=oo;var C=d&&x===E&&E.visualViewport?E.visualViewport.height:x[L];T-=C-r.height,T*=l?1:-1}if(i===mi||(i===Ti||i===oo)&&o===T0){y=so;var A=d&&x===E&&E.visualViewport?E.visualViewport.width:x[M];f-=A-r.width,f*=l?1:-1}}var I=Object.assign({position:a},c&&bUn),N=u===!0?EUn({x:f,y:T},Ni(n)):{x:f,y:T};if(f=N.x,T=N.y,l){var V;return Object.assign({},I,(V={},V[b]=v?"0":"",V[y]=_?"0":"",V.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+T+"px)":"translate3d("+f+"px, "+T+"px, 0)",V))}return Object.assign({},I,(e={},e[b]=v?T+"px":"",e[y]=_?f+"px":"",e.transform="",e))}function xUn(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:is(e.placement),variation:hc(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,DD(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,DD(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const SUn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xUn,data:{}};var Q5={passive:!0};function LUn(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=Ni(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Q5)}),a&&l.addEventListener("resize",n.update,Q5),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Q5)}),a&&l.removeEventListener("resize",n.update,Q5)}}const CUn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LUn,data:{}};var AUn={left:"right",right:"left",bottom:"top",top:"bottom"};function hu(t){return t.replace(/left|right|bottom|top/g,function(e){return AUn[e]})}var wUn={start:"end",end:"start"};function ID(t){return t.replace(/start|end/g,function(e){return wUn[e]})}function Zb(t){var e=Ni(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Xb(t){return pc(l1(t)).left+Zb(t).scrollLeft}function MUn(t,e){var n=Ni(t),r=l1(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=AU();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+Xb(t),y:l}}function OUn(t){var e,n=l1(t),r=Zb(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=r2(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=r2(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Xb(t),l=-r.scrollTop;return Js(i||n).direction==="rtl"&&(a+=r2(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Jb(t){var e=Js(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function NU(t){return["html","body","#document"].indexOf(as(t))>=0?t.ownerDocument.body:eo(t)&&Jb(t)?t:NU(k9(t))}function B4(t,e){var n;e===void 0&&(e=[]);var r=NU(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Ni(r),s=i?[o].concat(o.visualViewport||[],Jb(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(B4(k9(s)))}function rv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function RUn(t,e){var n=pc(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function kD(t,e,n){return e===LU?rv(MUn(t,n)):y2(e)?RUn(e,n):rv(OUn(l1(t)))}function NUn(t){var e=B4(k9(t)),n=["absolute","fixed"].indexOf(Js(t).position)>=0,r=n&&eo(t)?p6(t):t;return y2(r)?e.filter(function(i){return y2(i)&&wU(i,r)&&as(i)!=="body"}):[]}function DUn(t,e,n,r){var i=e==="clippingParents"?NUn(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=kD(t,c,r);return l.top=r2(u.top,l.top),l.right=md(u.right,l.right),l.bottom=md(u.bottom,l.bottom),l.left=r2(u.left,l.left),l},kD(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function DU(t){var e=t.reference,n=t.element,r=t.placement,i=r?is(r):null,o=r?hc(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Ti:l={x:s,y:e.y-n.height};break;case oo:l={x:s,y:e.y+e.height};break;case so:l={x:e.x+e.width,y:a};break;case mi:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?Kb(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case dc:l[c]=l[c]-(e[u]/2-n[u]/2);break;case T0:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function m0(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,a=n.boundary,l=a===void 0?eUn:a,c=n.rootBoundary,u=c===void 0?LU:c,d=n.elementContext,h=d===void 0?T4:d,f=n.altBoundary,m=f===void 0?!1:f,T=n.padding,Q=T===void 0?0:T,_=OU(typeof Q!="number"?Q:RU(Q,f6)),v=h===T4?tUn:T4,y=t.rects.popper,b=t.elements[m?v:h],E=DUn(y2(b)?b:b.contextElement||l1(t.elements.popper),l,u,s),x=pc(t.elements.reference),L=DU({reference:x,element:y,strategy:"absolute",placement:i}),M=rv(Object.assign({},y,L)),C=h===T4?M:x,A={top:E.top-C.top+_.top,bottom:C.bottom-E.bottom+_.bottom,left:E.left-C.left+_.left,right:C.right-E.right+_.right},I=t.modifiersData.offset;if(h===T4&&I){var N=I[i];Object.keys(A).forEach(function(V){var R=[so,oo].indexOf(V)>=0?1:-1,B=[Ti,oo].indexOf(V)>=0?"y":"x";A[V]+=N[B]*R})}return A}function IUn(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?CU:l,u=hc(r),d=u?a?RD:RD.filter(function(m){return hc(m)===u}):f6,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var f=h.reduce(function(m,T){return m[T]=m0(t,{placement:T,boundary:i,rootBoundary:o,padding:s})[is(T)],m},{});return Object.keys(f).sort(function(m,T){return f[m]-f[T]})}function kUn(t){if(is(t)===jb)return[];var e=hu(t);return[ID(t),e,ID(e)]}function PUn(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,T=n.allowedAutoPlacements,Q=e.options.placement,_=is(Q),v=_===Q,y=l||(v||!m?[hu(Q)]:kUn(Q)),b=[Q].concat(y).reduce(function($,ce){return $.concat(is(ce)===jb?IUn(e,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:T}):ce)},[]),E=e.rects.reference,x=e.rects.popper,L=new Map,M=!0,C=b[0],A=0;A=0,B=R?"width":"height",F=m0(e,{placement:I,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),U=R?V?so:mi:V?oo:Ti;E[B]>x[B]&&(U=hu(U));var G=hu(U),Z=[];if(o&&Z.push(F[N]<=0),a&&Z.push(F[U]<=0,F[G]<=0),Z.every(function($){return $})){C=I,M=!1;break}L.set(I,Z)}if(M)for(var Y=m?3:1,ee=function(ce){var Ee=b.find(function(z){var re=L.get(z);if(re)return re.slice(0,ce).every(function(he){return he})});if(Ee)return C=Ee,"break"},pe=Y;pe>0;pe--){var K=ee(pe);if(K==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const HUn={name:"flip",enabled:!0,phase:"main",fn:PUn,requiresIfExists:["offset"],data:{_skip:!1}};function PD(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function HD(t){return[Ti,so,oo,mi].some(function(e){return t[e]>=0})}function VUn(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=m0(e,{elementContext:"reference"}),a=m0(e,{altBoundary:!0}),l=PD(s,r),c=PD(a,i,o),u=HD(l),d=HD(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const FUn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VUn};function BUn(t,e,n){var r=is(t),i=[mi,Ti].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[mi,so].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function $Un(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=CU.reduce(function(u,d){return u[d]=BUn(d,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const UUn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$Un};function GUn(t){var e=t.state,n=t.name;e.modifiersData[n]=DU({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const qUn={name:"popperOffsets",enabled:!0,phase:"read",fn:GUn,data:{}};function zUn(t){return t==="x"?"y":"x"}function jUn(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,f=h===void 0?!0:h,m=n.tetherOffset,T=m===void 0?0:m,Q=m0(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),_=is(e.placement),v=hc(e.placement),y=!v,b=Kb(_),E=zUn(b),x=e.modifiersData.popperOffsets,L=e.rects.reference,M=e.rects.popper,C=typeof T=="function"?T(Object.assign({},e.rects,{placement:e.placement})):T,A=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(x){if(o){var V,R=b==="y"?Ti:mi,B=b==="y"?oo:so,F=b==="y"?"height":"width",U=x[b],G=U+Q[R],Z=U-Q[B],Y=f?-M[F]/2:0,ee=v===dc?L[F]:M[F],pe=v===dc?-M[F]:-L[F],K=e.elements.arrow,$=f&&K?Yb(K):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:MU(),Ee=ce[R],z=ce[B],re=F4(0,L[F],$[F]),he=y?L[F]/2-Y-re-Ee-A.mainAxis:ee-re-Ee-A.mainAxis,Se=y?-L[F]/2+Y+re+z+A.mainAxis:pe+re+z+A.mainAxis,we=e.elements.arrow&&p6(e.elements.arrow),se=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,W=(V=I==null?void 0:I[b])!=null?V:0,j=U+he-W-se,oe=U+Se-W,_e=F4(f?md(G,j):G,U,f?r2(Z,oe):Z);x[b]=_e,N[b]=_e-U}if(a){var ye,le=b==="x"?Ti:mi,De=b==="x"?oo:so,Ce=x[E],Oe=E==="y"?"height":"width",He=Ce+Q[le],X=Ce-Q[De],q=[Ti,mi].indexOf(_)!==-1,Te=(ye=I==null?void 0:I[E])!=null?ye:0,fe=q?He:Ce-L[Oe]-M[Oe]-Te+A.altAxis,ve=q?Ce+L[Oe]+M[Oe]-Te-A.altAxis:X,Me=f&&q?gUn(fe,Ce,ve):F4(f?fe:He,Ce,f?ve:X);x[E]=Me,N[E]=Me-Ce}e.modifiersData[r]=N}}const WUn={name:"preventOverflow",enabled:!0,phase:"main",fn:jUn,requiresIfExists:["offset"]};function YUn(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function KUn(t){return t===Ni(t)||!eo(t)?Zb(t):YUn(t)}function ZUn(t){var e=t.getBoundingClientRect(),n=fc(e.width)/t.offsetWidth||1,r=fc(e.height)/t.offsetHeight||1;return n!==1||r!==1}function XUn(t,e,n){n===void 0&&(n=!1);var r=eo(e),i=eo(e)&&ZUn(e),o=l1(e),s=pc(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((as(e)!=="body"||Jb(o))&&(a=KUn(e)),eo(e)?(l=pc(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Xb(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function JUn(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function eGn(t){var e=JUn(t);return dUn.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function tGn(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function nGn(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var VD={placement:"bottom",modifiers:[],strategy:"absolute"};function FD(){for(var t=arguments.length,e=new Array(t),n=0;n{this.createPopper()})},closeMenu(t){var e;!this.$el.contains(t.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(t.target))&&(this.isOpen=!1)},createPopper(){const t=this.$el.querySelector("button"),e=this.$refs.dropdown;t&&e&&(this.popperInstance=P9(t,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},sGn={class:"relative inline-block text-left"},aGn={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"},lGn={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function cGn(t,e,n,r,i,o){const s=gt("ToolbarButton");return k(),P("div",sGn,[g("div",null,[ae(s,{onClick:ge(o.toggleMenu,["stop"]),title:n.title,icon:"code"},null,8,["onClick","title"])]),(k(),wt(Fz,{to:"body"},[i.isOpen?(k(),P("div",aGn,[g("div",lGn,[er(t.$slots,"default",{},void 0,!0)])],512)):ie("",!0)]))])}const IU=Et(oGn,[["render",cGn],["__scopeId","data-v-6c3ea3a5"]]);async function BD(t,e="",n=[]){return new Promise((r,i)=>{const o=document.createElement("div");o.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?o.innerHTML=`

${t}

@@ -244,7 +244,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const i="

An err `?(this.text=this.text.slice(0,e)+"```"+t+` `+this.text.slice(e,n)+"\n```\n"+this.text.slice(n),e=e+4+t.length):(this.text=this.text.slice(0,e)+"\n```"+t+` `+this.text.slice(e,n)+"\n```\n"+this.text.slice(n),e=e+3+t.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,i=e.value.substring(0,n),o=e.value.substring(r),s=i+" "+o;this.text=s,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,xe.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(t=>{console.log(t),t.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(t=>{this.$refs.toast.showToast(`Error ${t}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let t=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,n=this.text;t!=e&&(n=n.slice(t,e)),xe.post("./text2Wave",{client_id:this.$store.state.client_id,text:n}).then(r=>{console.log(r.data.url);let i=r.data.url;this.audio_url=i,this.isSynthesizingVoice=!1,Ke(()=>{Xe.replace()})}).catch(r=>{this.$refs.toast.showToast(`Error: ${r}`,4,!1),this.isSynthesizingVoice=!1,Ke(()=>{Xe.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(i=>i.name===this.$store.state.config.audio_out_voice)[0]);const n=i=>{let o=this.text.substring(i,i+e);const s=[".","!","?",` -`];let a=-1;return s.forEach(l=>{const c=o.lastIndexOf(l);c>a&&(a=c)}),a==-1&&(a=o.length),console.log(a),a+i+1},r=()=>{const i=n(t),o=this.text.substring(t,i);this.msg.text=o,t=i+1,this.msg.onend=s=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",i))},this.speechSynthesis.speak(this.msg)};r()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(t){this.pre_text+=t,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let t=this.text.indexOf("@@");if(t<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,t)+this.text.substring(t+26,this.text.length),this.pre_text=this.text.substring(0,t),this.post_text=this.text.substring(t,this.text.length);var e=this.text.substring(0,t);console.log(e),et.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const t=await xe.post("/lollms_tokenize",{prompt:this.text,return_named:!0},{headers:this.posts_headers});console.log(t.data),this.namedTokens=t.data},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var t=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${t}`),et.emit("generate_text",{prompt:t,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){et.emit("cancel_text_generation",{})},exportText(){const t=this.text,e=document.createElement("a"),n=new Blob([t],{type:"text/plain"});e.href=URL.createObjectURL(n),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const t=document.getElementById("import-input");t&&(t.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const n=new FileReader;n.onload=()=>{this.text=n.result},n.readAsText(e.target.files[0])}else alert("Please select a file.")}),t.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=uGn(this.selectedPreset.content,t=>{console.log("Done"),console.log(t),this.text=t})},addPreset(){let t=prompt("Enter the title of the preset:");this.presets[t]={client_id:this.$store.state.client_id,name:t,content:this.text},xe.post("./add_preset",this.presets[t]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){xe.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?xe.post("/stop_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!1,this.pending=!1,console.log(t),this.text+=t.data,console.log("text"),console.log(this.text),console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):xe.post("/start_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!0,this.pending=!1,console.log(t.data)}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?xe.get("/stop_recording").then(t=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=t.data.text,this.read()}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):xe.get("/start_recording").then(t=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},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.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=t=>{this.generated="";for(let e=t.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},fGn={class:"container w-full background-color shadow-lg 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"},pGn={class:"container flex flex-row m-2 w-full"},hGn={class:"flex-grow w-full m-2"},TGn={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},mGn={class:"flex items-center space-x-2"},gGn=["src"],_Gn=["src"],QGn=["src"],vGn=["src"],yGn=["src"],bGn={key:1,class:"w-6 h-6"},EGn={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},xGn={key:0},SGn=["src"],LGn={key:2},CGn={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},AGn=["value"],wGn={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},MGn=["value"],OGn={class:"slider-container ml-2 mr-2"},RGn={class:"slider-value text-gray-500"},NGn={class:"slider-container ml-2 mr-2"},DGn={class:"slider-value text-gray-500"},IGn={class:"slider-container ml-2 mr-2"},kGn={class:"slider-value text-gray-500"},PGn={class:"slider-container ml-2 mr-2"},HGn={class:"slider-value text-gray-500"},VGn={class:"slider-container ml-2 mr-2"},FGn={class:"slider-value text-gray-500"},BGn={class:"slider-container ml-2 mr-2"},$Gn={class:"slider-value text-gray-500"},UGn={class:"slider-container ml-2 mr-2"},GGn={class:"slider-value text-gray-500"},qGn={class:"slider-container ml-2 mr-2"},zGn={class:"slider-value text-gray-500"};function jGn(t,e,n,r,i,o){const s=gt("ChatBarButton"),a=gt("ToolbarButton"),l=gt("DropdownSubmenu"),c=gt("DropdownMenu"),u=gt("tokens-hilighter"),d=gt("MarkdownRenderer"),h=gt("Card"),f=gt("Toast");return k(),P(ze,null,[g("div",fGn,[g("div",pGn,[g("div",hGn,[g("div",TGn,[g("div",mGn,[te(ae(s,{onClick:o.generate,title:"Generate from the current cursor position"},{icon:Be(()=>e[54]||(e[54]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),te(ae(s,{onClick:o.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Be(()=>e[55]||(e[55]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),te(ae(s,{onClick:o.tokenize_text,title:"Tokenize the text"},{icon:Be(()=>[g("img",{src:i.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,gGn)]),_:1},8,["onClick"]),[[Ht,!i.generating]]),e[65]||(e[65]=g("span",{class:"w-80"},null,-1)),te(ae(s,{onClick:o.stopGeneration,title:"Stop generation"},{icon:Be(()=>e[56]||(e[56]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),_:1},8,["onClick"]),[[Ht,i.generating]]),ae(s,{onClick:o.startSpeechRecognition,class:We({"text-red-500":t.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Be(()=>e[57]||(e[57]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.speak,class:We({"text-red-500":o.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Be(()=>e[58]||(e[58]=[nt(" 🪶 ")])),_:1},8,["onClick","class"]),ae(s,{onClick:o.triggerFileUpload,title:"Upload a voice"},{icon:Be(()=>e[59]||(e[59]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.startRecordingAndTranscribing,class:We({"text-green-500":i.isLesteningToVoice}),title:"Start audio to audio"},{icon:Be(()=>[i.pending?(k(),P("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,QGn)):(k(),P("img",{key:0,src:i.is_deaf_transcribing?i.deaf_on:i.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,_Gn))]),_:1},8,["onClick","class"]),ae(s,{onClick:o.startRecording,class:We({"text-green-500":i.isLesteningToVoice}),title:"Start audio recording"},{icon:Be(()=>[i.pending?(k(),P("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,yGn)):(k(),P("img",{key:0,src:i.is_recording?i.rec_on:i.rec_off,alt:"Record",class:"h-5 w-5"},null,8,vGn))]),_:1},8,["onClick","class"]),i.isSynthesizingVoice?(k(),P("div",bGn,e[61]||(e[61]=[g("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[g("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),g("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)]))):(k(),wt(s,{key:0,onClick:o.read,title:"Generate audio from text"},{icon:Be(()=>e[60]||(e[60]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"])),te(ae(s,{onClick:o.exportText,title:"Export text"},{icon:Be(()=>e[62]||(e[62]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),te(ae(s,{onClick:o.importText,title:"Import text"},{icon:Be(()=>e[63]||(e[63]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),ae(s,{onClick:e[0]||(e[0]=m=>i.showSettings=!i.showSettings),title:"Settings"},{icon:Be(()=>e[64]||(e[64]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"}),g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1})]),g("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(...m)=>o.handleFileUpload&&o.handleFileUpload(...m)),style:{display:"none"},accept:".wav"},null,544),g("div",EGn,[g("button",{class:We(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="source"}]),onClick:e[2]||(e[2]=m=>i.tab_id="source")}," Source ",2),g("button",{class:We(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="render"}]),onClick:e[3]||(e[3]=m=>i.tab_id="render")}," Render ",2)]),e[66]||(e[66]=g("input",{type:"file",id:"import-input",class:"hidden"},null,-1))]),g("div",{class:We(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":i.generating}])},[i.tab_id==="source"?(k(),P("div",xGn,[ae(c,{title:"Add Block"},{default:Be(()=>[ae(l,{title:"Programming Languages",icon:"code"},{default:Be(()=>[ae(a,{onClick:e[4]||(e[4]=ge(m=>o.addBlock("python"),["stop"])),title:"Python",icon:"python"}),ae(a,{onClick:e[5]||(e[5]=ge(m=>o.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),ae(a,{onClick:e[6]||(e[6]=ge(m=>o.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),ae(a,{onClick:e[7]||(e[7]=ge(m=>o.addBlock("java"),["stop"])),title:"Java",icon:"java"}),ae(a,{onClick:e[8]||(e[8]=ge(m=>o.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),ae(a,{onClick:e[9]||(e[9]=ge(m=>o.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),ae(a,{onClick:e[10]||(e[10]=ge(m=>o.addBlock("go"),["stop"])),title:"Go",icon:"go"}),ae(a,{onClick:e[11]||(e[11]=ge(m=>o.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),ae(a,{onClick:e[12]||(e[12]=ge(m=>o.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),ae(a,{onClick:e[13]||(e[13]=ge(m=>o.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),ae(a,{onClick:e[14]||(e[14]=ge(m=>o.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),ae(l,{title:"Web Technologies",icon:"web"},{default:Be(()=>[ae(a,{onClick:e[15]||(e[15]=ge(m=>o.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),ae(a,{onClick:e[16]||(e[16]=ge(m=>o.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),ae(a,{onClick:e[17]||(e[17]=ge(m=>o.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),ae(a,{onClick:e[18]||(e[18]=ge(m=>o.addBlock("react"),["stop"])),title:"React",icon:"react"}),ae(a,{onClick:e[19]||(e[19]=ge(m=>o.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),ae(l,{title:"Markup and Data",icon:"file-code"},{default:Be(()=>[ae(a,{onClick:e[20]||(e[20]=ge(m=>o.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),ae(a,{onClick:e[21]||(e[21]=ge(m=>o.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),ae(a,{onClick:e[22]||(e[22]=ge(m=>o.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),ae(a,{onClick:e[23]||(e[23]=ge(m=>o.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),ae(a,{onClick:e[24]||(e[24]=ge(m=>o.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),ae(l,{title:"Scripting and Shell",icon:"terminal"},{default:Be(()=>[ae(a,{onClick:e[25]||(e[25]=ge(m=>o.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),ae(a,{onClick:e[26]||(e[26]=ge(m=>o.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),ae(a,{onClick:e[27]||(e[27]=ge(m=>o.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),ae(l,{title:"Diagramming",icon:"sitemap"},{default:Be(()=>[ae(a,{onClick:e[28]||(e[28]=ge(m=>o.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),ae(a,{onClick:e[29]||(e[29]=ge(m=>o.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),ae(a,{onClick:e[30]||(e[30]=ge(m=>o.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),ae(l,{title:"Database",icon:"database"},{default:Be(()=>[ae(a,{onClick:e[31]||(e[31]=ge(m=>o.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),ae(a,{onClick:e[32]||(e[32]=ge(m=>o.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),ae(a,{onClick:e[33]||(e[33]=ge(m=>o.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),ae(a,{onClick:e[34]||(e[34]=ge(m=>t.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),te(g("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=ri(ge((...m)=>o.insertTab&&o.insertTab(...m),["prevent"]),["tab"])),class:"block min-h-500 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,style:bn({minHeight:i.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=m=>i.text=m),onClick:e[37]||(e[37]=ge((...m)=>o.mdTextarea_clicked&&o.mdTextarea_clicked(...m),["prevent"])),onChange:e[38]||(e[38]=ge((...m)=>o.mdTextarea_changed&&o.mdTextarea_changed(...m),["prevent"]))}," ",36),[[Ne,i.text]]),g("span",null,"Cursor position "+ue(i.cursorPosition),1)])):ie("",!0),i.audio_url!=null?(k(),P("audio",{controls:"",key:i.audio_url},[g("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,SGn),e[67]||(e[67]=nt(" Your browser does not support the audio element. "))])):ie("",!0),ae(u,{namedTokens:i.namedTokens},null,8,["namedTokens"]),i.tab_id==="render"?(k(),P("div",LGn,[ae(d,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":i.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):ie("",!0)],2)]),i.showSettings?(k(),P("div",CGn,[e[82]||(e[82]=g("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1)),ae(h,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[te(g("select",{"onUpdate:modelValue":e[39]||(e[39]=m=>this.$store.state.selectedModel=m),onChange:e[40]||(e[40]=(...m)=>o.setModel&&o.setModel(...m)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(k(!0),P(ze,null,lt(o.models,m=>(k(),P("option",{key:m,value:m},ue(m),9,AGn))),128))],544),[[hn,this.$store.state.selectedModel]]),i.selecting_model?(k(),P("div",wGn,e[68]||(e[68]=[g("div",{role:"status"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Selecting model...")],-1)]))):ie("",!0)]),_:1}),ae(h,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[te(g("select",{"onUpdate:modelValue":e[41]||(e[41]=m=>i.selectedPreset=m),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(k(!0),P(ze,null,lt(i.presets,m=>(k(),P("option",{key:m,value:m},ue(m.name),9,MGn))),128))],512),[[hn,i.selectedPreset]]),e[73]||(e[73]=g("br",null,null,-1)),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(...m)=>o.setPreset&&o.setPreset(...m)),title:"Use preset"},e[69]||(e[69]=[g("i",{"data-feather":"check"},null,-1)])),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(...m)=>o.addPreset&&o.addPreset(...m)),title:"Add this text as a preset"},e[70]||(e[70]=[g("i",{"data-feather":"plus"},null,-1)])),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(...m)=>o.removePreset&&o.removePreset(...m)),title:"Remove preset"},e[71]||(e[71]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(...m)=>o.reloadPresets&&o.reloadPresets(...m)),title:"Reload presets list"},e[72]||(e[72]=[g("i",{"data-feather":"refresh-ccw"},null,-1)]))]),_:1}),ae(h,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[g("div",OGn,[e[74]||(e[74]=g("h3",{class:"text-gray-600"},"Temperature",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=m=>i.temperature=m),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[Ne,i.temperature]]),g("span",RGn,"Current value: "+ue(i.temperature),1)]),g("div",NGn,[e[75]||(e[75]=g("h3",{class:"text-gray-600"},"Top K",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=m=>i.top_k=m),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[Ne,i.top_k]]),g("span",DGn,"Current value: "+ue(i.top_k),1)]),g("div",IGn,[e[76]||(e[76]=g("h3",{class:"text-gray-600"},"Top P",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=m=>i.top_p=m),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[Ne,i.top_p]]),g("span",kGn,"Current value: "+ue(i.top_p),1)]),g("div",PGn,[e[77]||(e[77]=g("h3",{class:"text-gray-600"},"Repeat Penalty",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=m=>i.repeat_penalty=m),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.repeat_penalty]]),g("span",HGn,"Current value: "+ue(i.repeat_penalty),1)]),g("div",VGn,[e[78]||(e[78]=g("h3",{class:"text-gray-600"},"Repeat Last N",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=m=>i.repeat_last_n=m),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.repeat_last_n]]),g("span",FGn,"Current value: "+ue(i.repeat_last_n),1)]),g("div",BGn,[e[79]||(e[79]=g("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1)),te(g("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=m=>i.n_crop=m),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.n_crop]]),g("span",$Gn,"Current value: "+ue(i.n_crop),1)]),g("div",UGn,[e[80]||(e[80]=g("h3",{class:"text-gray-600"},"Number of tokens to generate",-1)),te(g("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=m=>i.n_predicts=m),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.n_predicts]]),g("span",GGn,"Current value: "+ue(i.n_predicts),1)]),g("div",qGn,[e[81]||(e[81]=g("h3",{class:"text-gray-600"},"Seed",-1)),te(g("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=m=>i.seed=m),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.seed]]),g("span",zGn,"Current value: "+ue(i.seed),1)])]),_:1})])):ie("",!0)])]),ae(f,{ref:"toast"},null,512)],64)}const WGn=Et(dGn,[["render",jGn]]),YGn={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(hq(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},KGn={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full 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"},ZGn={key:0},XGn=["onClick"],JGn={key:0},eqn=["src"],tqn={key:1};function nqn(t,e,n,r,i,o){return k(),P("div",KGn,[o.activeExtensions.length>0?(k(),P("div",ZGn,[(k(!0),P(ze,null,lt(o.activeExtensions,s=>(k(),P("div",{key:s.name,onClick:a=>o.showExtensionPage(s)},[g("div",{class:We({"active-tab":s===i.activeExtension})},ue(s.name),3)],8,XGn))),128)),i.activeExtension?(k(),P("div",JGn,[g("iframe",{src:i.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,eqn)])):ie("",!0)])):(k(),P("div",tqn,e[0]||(e[0]=[g("p",null,"No extension is active. Please install and activate an extension.",-1)])))])}const rqn=Et(YGn,[["render",nqn]]),iqn={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(t){this.helpSections[t].isOpen=!this.helpSections[t].isOpen},async loadMarkdownFile(t){try{const n=await(await fetch(`/help/${t}`)).text();return cn(n)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const t=[{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 t){const n=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:n,isOpen:!1})}}},mounted(){this.loadHelpSections()}},oqn={class:"help-view background-color p-6 w-full"},sqn={class:"big-card w-full"},aqn={class:"help-sections-container"},lqn={class:"help-sections space-y-4"},cqn=["onClick"],uqn={class:"toggle-icon"},dqn={key:0,class:"help-content mt-4"},fqn=["innerHTML"];function pqn(t,e,n,r,i,o){return k(),P("div",oqn,[g("div",sqn,[e[0]||(e[0]=g("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),g("div",aqn,[g("div",lqn,[(k(!0),P(ze,null,lt(i.helpSections,(s,a)=>(k(),P("div",{key:a,class:"help-section message"},[g("h2",{onClick:l=>o.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[nt(ue(s.title)+" ",1),g("span",uqn,ue(s.isOpen?"▼":"▶"),1)],8,cqn),s.isOpen?(k(),P("div",dqn,[g("div",{innerHTML:s.content,class:"prose dark:prose-invert"},null,8,fqn)])):ie("",!0)]))),128))])])])])}const hqn=Et(iqn,[["render",pqn],["__scopeId","data-v-8c1798f3"]]);function Xo(t,e=!0,n=1){const r=e?1e3:1024;if(Math.abs(t)=r&&o{Xe.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected",t),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ke(()=>{Xe.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},mqn={class:"menu-container"},gqn=["title"],_qn=["src"],Qqn=["data-feather"],vqn={key:2,class:"w-5 h-5"},yqn={key:3,"data-feather":"menu"},bqn={class:"flex-grow menu-ul"},Eqn=["onClick"],xqn={key:0,"data-feather":"check"},Sqn=["src","alt"],Lqn=["data-feather"],Cqn={key:3,class:"menu-icon"};function Aqn(t,e,n,r,i,o){return k(),P("div",mqn,[g("button",{onClick:e[0]||(e[0]=ge((...s)=>o.toggleMenu&&o.toggleMenu(...s),["prevent"])),title:n.title,class:We([n.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"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(k(),P("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,_qn)):n.icon&&n.icon.includes("feather")?(k(),P("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,Qqn)):n.icon&&n.icon.includes("#")?(k(),P("p",vqn,ue(n.icon.split("#")[1]),1)):(k(),P("i",yqn))],10,gqn),ae(Ai,{name:"slide"},{default:Be(()=>[i.isMenuOpen?(k(),P("div",{key:0,class:"menu-list flex-grow",style:bn(i.menuPosition),ref:"menu"},[g("ul",bqn,[(k(!0),P(ze,null,lt(n.commands,(s,a)=>(k(),P("li",{key:a,onClick:ge(l=>o.executeCommand(s),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==s.name?(k(),P("i",xqn)):s.icon&&!s.icon.includes("feather")&&!s.is_file?(k(),P("img",{key:1,src:s.icon,alt:s.name,class:"menu-icon"},null,8,Sqn)):ie("",!0),s.icon&&s.icon.includes("feather")&&!s.is_file?(k(),P("i",{key:2,"data-feather":s.icon.split(":")[1],class:"mr-2"},null,8,Lqn)):(k(),P("span",Cqn)),g("span",null,ue(s.name),1)],8,Eqn))),128))])],4)):ie("",!0)]),_:1})])}const eE=Et(Tqn,[["render",Aqn]]),wqn={components:{InteractiveMenu:eE},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(){Ke(()=>{Xe.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return Xo(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?ui:this.model.icon},defaultImg(t){t.target.src=ui},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t){if(console.log("event.target.tagName.toLowerCase()"),console.log(t.target.tagName.toLowerCase()),t.target.tagName.toLowerCase()==="button"||t.target.tagName.toLowerCase()==="svg"){t.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Ke(()=>{Xe.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 t=[{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&&t.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return Xo(this.speed)},total_size_computed(){return Xo(this.total_size)},downloaded_size_computed(){return Xo(this.downloaded_size)}},watch:{linkNotValid(){Ke(()=>{Xe.replace()})}}},Mqn=["title"],Oqn={key:0,class:"flex flex-row"},Rqn={class:"max-w-[300px] overflow-x-auto"},Nqn={class:"flex gap-3 items-center grow"},Dqn=["href"],Iqn=["src"],kqn={class:"flex-1 overflow-hidden"},Pqn={class:"font-bold font-large text-lg truncate"},Hqn={key:1,class:"flex items-center flex-row gap-2 my-1"},Vqn={class:"flex grow items-center"},Fqn={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"},Bqn={class:"relative flex flex-col items-center justify-center flex-grow h-full"},$qn={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Uqn={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Gqn={class:"flex justify-between mb-1"},qqn={class:"text-sm font-medium text-blue-700 dark:text-white"},zqn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},jqn={class:"flex justify-between mb-1"},Wqn={class:"text-base font-medium text-blue-700 dark:text-white"},Yqn={class:"text-sm font-medium text-blue-700 dark:text-white"},Kqn={class:"flex flex-grow"},Zqn={class:"flex flex-row flex-grow gap-3"},Xqn={class:"p-2 text-center grow"},Jqn={key:3},ezn={class:"flex flex-row items-center gap-3"},tzn=["src"],nzn={class:"font-bold font-large text-lg truncate"},rzn={class:"flex items-center flex-row-reverse gap-2 my-1"},izn={class:"flex flex-row items-center"},ozn={key:0,class:"text-base text-red-600 flex items-center mt-1"},szn=["title"],azn={class:""},lzn={class:"flex flex-row items-center"},czn=["href","title"],uzn={class:"flex items-center"},dzn={class:"flex items-center"},fzn={key:0,class:"flex items-center"},pzn=["href"],hzn={class:"flex items-center"},Tzn=["href"],mzn={class:"flex items-center"},gzn={class:"flex items-center"},_zn=["href"];function Qzn(t,e,n,r,i,o){const s=gt("InteractiveMenu");return k(),P("div",{class:We(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",o.computed_classes]),title:n.model.name,onClick:e[10]||(e[10]=ge(a=>o.toggleSelected(a),["prevent"]))},[n.model.isCustomModel?(k(),P("div",Oqn,[g("div",Rqn,[g("div",Nqn,[g("a",{href:n.model.model_creator_link,target:"_blank"},[g("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Iqn)],8,Dqn),g("div",kqn,[g("h3",Pqn,ue(n.model.name),1)])])])])):ie("",!0),n.model.isCustomModel?(k(),P("div",Hqn,[g("div",Vqn,[g("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]=ge(()=>{},["stop"]))},e[11]||(e[11]=[g("i",{"data-feather":"box",class:"w-5"},null,-1),g("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=nt(" Custom model "))]),g("div",null,[n.model.isInstalled?(k(),P("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=ge((...a)=>o.uninstall&&o.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]=[nt(" Uninstall "),g("span",{class:"sr-only"},"Remove",-1)]))):ie("",!0)])])):ie("",!0),i.installing?(k(),P("div",Fqn,[g("div",Bqn,[e[15]||(e[15]=g("div",{role:"status",class:"justify-center"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)),g("div",$qn,[g("div",Uqn,[g("div",Gqn,[e[14]||(e[14]=g("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),g("span",qqn,ue(Math.floor(i.progress))+"%",1)]),g("div",zqn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:bn({width:i.progress+"%"})},null,4)]),g("div",jqn,[g("span",Wqn,"Download speed: "+ue(o.speed_computed)+"/s",1),g("span",Yqn,ue(o.downloaded_size_computed)+"/"+ue(o.total_size_computed),1)])])]),g("div",Kqn,[g("div",Zqn,[g("div",Xqn,[g("button",{onClick:e[3]||(e[3]=ge((...a)=>o.toggleCancelInstall&&o.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 ")])])])])])):ie("",!0),n.model.isCustomModel?ie("",!0):(k(),P("div",Jqn,[g("div",ezn,[g("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[4]||(e[4]=a=>o.defaultImg(a)),class:We(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,tzn),g("h3",nzn,ue(n.model.name),1),e[16]||(e[16]=g("div",{class:"grow"},null,-1)),ae(s,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),g("div",rzn,[g("div",izn,[i.linkNotValid?(k(),P("div",ozn,e[17]||(e[17]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),nt(" Link is not valid ")]))):ie("",!0)])]),g("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[g("div",azn,[g("div",lzn,[e[19]||(e[19]=g("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=g("b",null,"Card: ",-1)),g("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[5]||(e[5]=ge(()=>{},["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,czn),e[21]||(e[21]=g("div",{class:"grow"},null,-1)),g("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]=ge(a=>o.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[g("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),g("div",uzn,[g("div",{class:We(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=g("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=g("b",null,"File size: ",-1)),nt(" "+ue(o.fileSize),1)],2)]),g("div",dzn,[e[24]||(e[24]=g("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=g("b",null,"License: ",-1)),nt(" "+ue(n.model.license),1)]),n.model.quantizer!="None"&&n.model.type!="transformers"?(k(),P("div",fzn,[e[26]||(e[26]=g("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=g("b",null,"quantizer: ",-1)),g("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=ge(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},ue(n.model.quantizer),9,pzn)])):ie("",!0),g("div",hzn,[e[28]||(e[28]=g("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=g("b",null,"Model creator: ",-1)),g("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=ge(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},ue(n.model.model_creator),9,Tzn)]),g("div",mzn,[e[30]||(e[30]=g("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=g("b",null,"Release date: ",-1)),nt(" "+ue(n.model.last_commit_time),1)]),g("div",gzn,[e[32]||(e[32]=g("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=g("b",null,"Category: ",-1)),g("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=ge(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},ue(n.model.category),9,_zn)])])],8,szn)]))],10,Mqn)}const vzn=Et(wqn,[["render",Qzn]]),yzn={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}}},bzn={class:"p-4"},Ezn={class:"flex items-center mb-4"},xzn=["src"],Szn={class:"text-lg font-semibold"},Lzn={key:0};function Czn(t,e,n,r,i,o){return k(),P("div",bzn,[g("div",Ezn,[g("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,xzn),g("h2",Szn,ue(i.personalityName),1)]),g("p",null,[e[2]||(e[2]=g("strong",null,"Author:",-1)),nt(" "+ue(i.personalityAuthor),1)]),g("p",null,[e[3]||(e[3]=g("strong",null,"Description:",-1)),nt(" "+ue(i.personalityDescription),1)]),g("p",null,[e[4]||(e[4]=g("strong",null,"Category:",-1)),nt(" "+ue(i.personalityCategory),1)]),i.disclaimer?(k(),P("p",Lzn,[e[5]||(e[5]=g("strong",null,"Disclaimer:",-1)),nt(" "+ue(i.disclaimer),1)])):ie("",!0),g("p",null,[e[6]||(e[6]=g("strong",null,"Conditioning Text:",-1)),nt(" "+ue(i.conditioningText),1)]),g("p",null,[e[7]||(e[7]=g("strong",null,"AI Prefix:",-1)),nt(" "+ue(i.aiPrefix),1)]),g("p",null,[e[8]||(e[8]=g("strong",null,"User Prefix:",-1)),nt(" "+ue(i.userPrefix),1)]),g("div",null,[e[9]||(e[9]=g("strong",null,"Antiprompts:",-1)),g("ul",null,[(k(!0),P(ze,null,lt(i.antipromptsList,s=>(k(),P("li",{key:s.id},ue(s.text),1))),128))])]),g("button",{onClick:e[0]||(e[0]=s=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(k(),P("button",{key:1,onClick:e[1]||(e[1]=(...s)=>o.commitChanges&&o.commitChanges(...s)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):ie("",!0)])}const Azn=Et(yzn,[["render",Czn]]),tE="/assets/logo-CQZwS0X1.svg",wzn="/",Mzn={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:eE},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0},showHelpPopup:!1,renderedHelp:""}},computed:{commandsList(){let t=[{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"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,console.log(this.personality),Ke(()=>{Xe.replace()})},methods:{formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return wzn+this.personality.avatar},defaultImg(t){t.target.src=tE},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)},showHelp(){this.renderedHelp=cn(this.personality.help),this.showHelpPopup=!0},closeHelp(){this.showHelpPopup=!1}},watch:{selected(){Ke(()=>{Xe.replace()})}}},Ozn=["title"],Rzn={class:"flex-grow"},Nzn={class:"flex items-center mb-4"},Dzn=["src"],Izn={class:"text-sm text-gray-600"},kzn={class:"text-sm text-gray-600"},Pzn={class:"text-sm text-gray-600"},Hzn={key:0,class:"text-sm text-gray-600"},Vzn={key:1,class:"text-sm text-gray-600"},Fzn={class:"mb-4"},Bzn=["innerHTML"],$zn={class:"mt-auto pt-4 border-t"},Uzn={class:"flex justify-between items-center flex-wrap"},Gzn=["title"],qzn=["fill"],zzn=["src"],jzn={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center"},Wzn={class:"bg-white p-4 rounded-lg shadow-lg w-[500px] h-[400px] flex flex-col"},Yzn={class:"flex justify-between items-center mb-2"},Kzn={class:"flex-grow overflow-auto"},Zzn=["innerHTML"];function Xzn(t,e,n,r,i,o){const s=gt("InteractiveMenu");return k(),P("div",{class:We(["app-card flex flex-col h-full",o.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:n.personality.installed?"":"Not installed"},[g("div",Rzn,[g("div",Nzn,[g("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.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)=>o.toggleSelected&&o.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>o.showThumbnail&&o.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>o.updateThumbnailPosition&&o.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>o.hideThumbnail&&o.hideThumbnail(...a))},null,40,Dzn),g("div",null,[g("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>o.toggleSelected&&o.toggleSelected(...a))},ue(n.personality.name),1),g("p",Izn,"Author: "+ue(n.personality.author),1),g("p",kzn,"Version: "+ue(n.personality.version),1),g("p",Pzn,"Category: "+ue(n.personality.category),1),n.personality.creation_date?(k(),P("p",Hzn,"Creation Date: "+ue(o.formatDate(n.personality.creation_date)),1)):ie("",!0),n.personality.last_update_date?(k(),P("p",Vzn,"Last update Date: "+ue(o.formatDate(n.personality.last_update_date)),1)):ie("",!0)]),n.personality.help?(k(),P("button",{key:0,onClick:e[6]||(e[6]=(...a)=>o.showHelp&&o.showHelp(...a)),class:"ml-2 text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Help"},e[12]||(e[12]=[g("i",{"data-feather":"help-circle",class:"h-6 w-6"},null,-1)]))):ie("",!0)]),g("div",Fzn,[e[13]||(e[13]=g("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),g("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:n.personality.description},null,8,Bzn)])]),g("div",$zn,[g("div",Uzn,[g("button",{onClick:e[7]||(e[7]=(...a)=>o.toggleFavorite&&o.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(k(),P("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[14]||(e[14]=[g("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,qzn))],8,Gzn),i.isMounted?(k(),P("button",{key:0,onClick:e[8]||(e[8]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[15]||(e[15]=[g("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):ie("",!0),i.isMounted?(k(),P("button",{key:1,onClick:e[9]||(e[9]=(...a)=>o.toggleTalk&&o.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[16]||(e[16]=[g("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):ie("",!0),g("button",{onClick:e[10]||(e[10]=(...a)=>o.showFolder&&o.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[17]||(e[17]=[g("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),ae(s,{commands:o.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?(k(),P("div",{key:0,style:bn({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[g("img",{src:o.getImgUrl(),class:"w-full h-full object-fill"},null,8,zzn)],4)):ie("",!0),i.showHelpPopup?(k(),P("div",jzn,[g("div",Wzn,[g("div",Yzn,[e[18]||(e[18]=g("h2",{class:"text-lg font-bold"},"Help",-1)),g("button",{onClick:e[11]||(e[11]=(...a)=>o.closeHelp&&o.closeHelp(...a)),class:"text-red-500 hover:text-red-600"},"Close")]),g("div",Kzn,[g("div",{innerHTML:i.renderedHelp},null,8,Zzn)])])])):ie("",!0)],10,Ozn)}const kU=Et(Mzn,[["render",Xzn]]),Jzn={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(t){console.log(`UI prop changed for instance ${this.instanceId}:`,t),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const t=this.$refs.container,n=new DOMParser().parseFromString(this.ui,"text/html"),r=n.getElementsByTagName("style");Array.from(r).forEach(o=>{const s=document.createElement("style");s.textContent=this.scopeCSS(o.textContent),document.head.appendChild(s)}),t.innerHTML=n.body.innerHTML;const i=n.getElementsByTagName("script");Array.from(i).forEach(o=>{const s=document.createElement("script");s.textContent=o.textContent,t.appendChild(s)})},scopeCSS(t){return t.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},ejn=["id"];function tjn(t,e,n,r,i,o){return k(),P("div",{id:i.containerId,ref:"container"},null,8,ejn)}const PU=Et(Jzn,[["render",tjn]]),njn="/",rjn={components:{DynamicUIRenderer:PU},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ke(()=>{Xe.replace()})},methods:{copyToClipBoard(t){console.log("Copying to clipboard :",t),navigator.clipboard.writeText(t)},getImgUrl(){return njn+this.binding.icon},defaultImg(t){t.target.src=tE},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(){Ke(()=>{Xe.replace()})}}},ijn=["title"],ojn={class:"flex flex-row items-center gap-3"},sjn=["src"],ajn={class:"font-bold font-large text-lg truncate"},ljn={class:"flex-none gap-1"},cjn={class:"flex items-center flex-row-reverse gap-2 my-1"},ujn={class:""},djn={class:""},fjn={class:"flex items-center"},pjn={class:"flex items-center"},hjn={class:"flex items-center"},Tjn={class:"flex items-center"},mjn=["href"],gjn=["title","innerHTML"];function _jn(t,e,n,r,i,o){const s=gt("DynamicUIRenderer");return k(),P("div",{class:We(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=ge((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[g("div",null,[g("div",ojn,[g("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,sjn),g("h3",ajn,ue(n.binding.name),1),e[10]||(e[10]=g("div",{class:"grow"},null,-1)),g("div",ljn,[n.selected?(k(),P("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>o.toggleReloadBinding&&o.toggleReloadBinding(...a)),e[2]||(e[2]=ge(()=>{},["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]=[g("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),g("span",{class:"sr-only"},"Help",-1)]))):ie("",!0)])]),g("div",cjn,[n.binding.installed?ie("",!0):(k(),P("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=ge((...a)=>o.toggleInstall&&o.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]=[nt(" Install "),g("span",{class:"sr-only"},"Click to install",-1)]))),n.binding.installed?(k(),P("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=ge((...a)=>o.toggleReinstall&&o.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]=[nt(" Reinstall "),g("span",{class:"sr-only"},"Reinstall",-1)]))):ie("",!0),n.binding.installed?(k(),P("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=ge((...a)=>o.toggleUnInstall&&o.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]=[nt(" Uninstall "),g("span",{class:"sr-only"},"UnInstall",-1)]))):ie("",!0),n.selected?(k(),P("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=ge((...a)=>o.toggleSettings&&o.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]=[nt(" Settings "),g("span",{class:"sr-only"},"Settings",-1)]))):ie("",!0)]),n.binding.ui?(k(),wt(s,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):ie("",!0),g("div",ujn,[g("div",djn,[g("div",fjn,[e[15]||(e[15]=g("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=g("b",null,"Author: ",-1)),nt(" "+ue(n.binding.author),1)]),g("div",pjn,[e[18]||(e[18]=g("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=g("b",null,"Folder: ",-1)),nt(" "+ue(n.binding.folder)+" ",1),e[20]||(e[20]=g("div",{class:"grow"},null,-1)),g("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]=ge(a=>o.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[g("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),g("div",hjn,[e[21]||(e[21]=g("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=g("b",null,"Version: ",-1)),nt(" "+ue(n.binding.version),1)]),g("div",Tjn,[e[23]||(e[23]=g("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=g("b",null,"Link: ",-1)),g("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},ue(n.binding.link),9,mjn)])]),e[25]||(e[25]=g("div",{class:"flex items-center"},[g("i",{"data-feather":"info",class:"w-5 m-1"}),g("b",null,"Description: "),g("br")],-1)),g("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description,innerHTML:n.binding.description},null,8,gjn)])])],10,ijn)}const Qjn=Et(rjn,[["render",_jn]]),vo="/assets/logo-PFou_X4V.png",vjn={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},yjn={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},bjn={class:"relative w-full max-w-md max-h-full"},Ejn={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},xjn={class:"p-4 text-center"},Sjn={class:"p-4 text-center mx-auto mb-4"};function Ljn(t,e,n,r,i,o){return i.show?(k(),P("div",yjn,[g("div",bjn,[g("div",Ejn,[g("button",{type:"button",onClick:e[0]||(e[0]=s=>o.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]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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),g("span",{class:"sr-only"},"Close modal",-1)])),g("div",xjn,[e[6]||(e[6]=g("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"},[g("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)),g("div",Sjn,[e[5]||(e[5]=g("label",{class:"mr-2"},"Model path",-1)),te(g("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>i.model_path=s),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[Ne,i.model_path]])]),g("button",{onClick:e[2]||(e[2]=s=>o.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 "),g("button",{onClick:e[3]||(e[3]=s=>o.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")])])])])):ie("",!0)}const Cjn=Et(vjn,[["render",Ljn]]),Ajn={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(t){return typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){const e=["bytes","KB","MB","GB"];let n=0;for(;t>=1024&&n[n.show?(k(),P("div",wjn,[g("div",Mjn,[g("h2",Ojn,[e[5]||(e[5]=g("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)),nt(" "+ue(n.title),1)]),g("div",Rjn,[g("ul",null,[(k(!0),P(ze,null,lt(n.choices,(s,a)=>(k(),P("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[g("div",Njn,[g("div",Djn,[s.isEditing?te((k(),P("input",{key:1,"onUpdate:modelValue":l=>s.editName=l,onBlur:l=>o.finishEditing(s),onKeyup:ri(l=>o.finishEditing(s),["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,kjn)),[[Ne,s.editName]]):(k(),P("span",{key:0,onClick:l=>o.selectChoice(s),class:We([{"font-semibold":s===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},ue(o.displayName(s)),11,Ijn)),s.size?(k(),P("span",Pjn,ue(o.formatSize(s.size)),1)):ie("",!0)]),g("div",Hjn,[g("button",{onClick:l=>o.editChoice(s),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[g("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,Vjn),n.can_remove?(k(),P("button",{key:0,onClick:l=>o.removeChoice(s,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[g("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,Fjn)):ie("",!0)])])]))),128))])]),i.showInput?(k(),P("div",Bjn,[te(g("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>i.newFilename=s),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),[[Ne,i.newFilename]]),g("button",{onClick:e[1]||(e[1]=(...s)=>o.addNewFilename&&o.addNewFilename(...s)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):ie("",!0),g("div",$jn,[g("button",{onClick:e[2]||(e[2]=(...s)=>o.closeDialog&&o.closeDialog(...s)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),g("button",{onClick:e[3]||(e[3]=(...s)=>o.validateChoice&&o.validateChoice(...s)),disabled:!i.selectedChoice,class:We([{"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,Ujn),g("button",{onClick:e[4]||(e[4]=(...s)=>o.toggleInput&&o.toggleInput(...s)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):ie("",!0)]),_:1})}const nE=Et(Ajn,[["render",Gjn],["__scopeId","data-v-f43216be"]]),qjn={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const t=this.radioOptions.find(e=>e.value===this.selectedValue);return t?t.label:""}},watch:{selectedValue(t,e){this.$emit("radio-selected",t)}},methods:{handleRadioChange(){}}},zjn={class:"flex space-x-4"},jjn=["value","aria-checked"],Wjn={class:"text-gray-700"};function Yjn(t,e,n,r,i,o){return k(),P("div",zjn,[(k(!0),P(ze,null,lt(n.radioOptions,(s,a)=>(k(),P("label",{key:s.value,class:"flex items-center space-x-2"},[te(g("input",{type:"radio",value:s.value,"onUpdate:modelValue":e[0]||(e[0]=l=>i.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>o.handleRadioChange&&o.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===s.value.toString(),role:"radio"},null,40,jjn),[[hW,i.selectedValue]]),g("span",Wjn,ue(s.label),1)]))),128))])}const Kjn=Et(qjn,[["render",Yjn]]),Zjn="/assets/gpu-BWVOYg-D.svg",Xjn={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 t=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",t),this.$emit("change"),this.newItem=""}},removeItem(t){const e=this.modelValue.filter((n,r)=>r!==t);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(t){this.draggingIndex=t},dragItem(t){if(this.draggingIndex!==null){const e=[...this.modelValue],n=e.splice(this.draggingIndex,1)[0];e.splice(t,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(t){if(t>0){const e=[...this.modelValue],n=e.splice(t,1)[0];e.splice(t-1,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(t){if(ti.newItem=s),placeholder:n.placeholder,onKeyup:e[1]||(e[1]=ri((...s)=>o.addItem&&o.addItem(...s),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,eWn),[[Ne,i.newItem]]),g("button",{onClick:e[2]||(e[2]=(...s)=>o.addItem&&o.addItem(...s)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),n.modelValue.length>0?(k(),P("ul",tWn,[(k(!0),P(ze,null,lt(n.modelValue,(s,a)=>(k(),P("li",{key:a,class:We(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[g("span",nWn,ue(s),1),g("div",rWn,[g("button",{onClick:l=>o.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,iWn),a>0?(k(),P("button",{key:0,onClick:l=>o.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,oWn)):ie("",!0),ao.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,sWn)):ie("",!0)]),i.draggingIndex===a?(k(),P("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:l=>o.startDragging(a),onMousemove:l=>o.dragItem(a),onMouseup:e[3]||(e[3]=(...l)=>o.stopDragging&&o.stopDragging(...l))},null,40,aWn)):ie("",!0)],2))),128))])):ie("",!0),n.modelValue.length>0?(k(),P("div",lWn,[g("button",{onClick:e[4]||(e[4]=(...s)=>o.removeAll&&o.removeAll(...s)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):ie("",!0)])}const uWn=Et(Xjn,[["render",cWn]]),dWn={name:"DictionaryManager",props:{modelValue:{type:Object,default:()=>({})},keyName:{type:String,default:"Key"},valueName:{type:String,default:"Value"}},emits:["update:modelValue","change"],data(){return{newKey:"",newValue:"",draggingKey:null}},methods:{addItem(){if(this.newKey.trim()){const t={...this.modelValue};t[this.newKey.trim()]=this.newValue,this.$emit("update:modelValue",t),this.$emit("change"),this.newKey="",this.newValue=""}},removeItem(t){const e={...this.modelValue};delete e[t],this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",{}),this.$emit("change")},updateKey(t,e){if(e.trim()&&e!==t){const n={...this.modelValue};n[e.trim()]=n[t],delete n[t],this.$emit("update:modelValue",n),this.$emit("change")}},updateValue(t,e){const n={...this.modelValue};n[t]=e,this.$emit("update:modelValue",n),this.$emit("change")},moveUp(t){const e=Object.keys(this.modelValue),n=e.indexOf(t);if(n>0){const r={};e.forEach((i,o)=>{o===n-1&&(r[t]=this.modelValue[t]),i!==t&&(r[i]=this.modelValue[i])}),this.$emit("update:modelValue",r),this.$emit("change")}},moveDown(t){const e=Object.keys(this.modelValue),n=e.indexOf(t);if(n{i!==t&&(r[i]=this.modelValue[i]),o===n+1&&(r[t]=this.modelValue[t])}),this.$emit("update:modelValue",r),this.$emit("change")}}}},fWn={class:"max-w-4xl mx-auto p-4"},pWn={class:"flex flex-col sm:flex-row mb-4 gap-2"},hWn=["placeholder"],TWn=["placeholder"],mWn={key:0,class:"space-y-4"},gWn={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},_Wn=["for"],QWn=["id","value","onInput"],vWn={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},yWn=["for"],bWn=["id","value","onInput"],EWn={class:"flex items-center space-x-2"},xWn=["onClick"],SWn=["onClick"],LWn=["onClick"],CWn={key:1,class:"mt-6"};function AWn(t,e,n,r,i,o){return k(),P("div",fWn,[g("div",pWn,[te(g("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=s=>i.newKey=s),placeholder:n.keyName,onKeyup:e[1]||(e[1]=ri((...s)=>o.addItem&&o.addItem(...s),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,hWn),[[Ne,i.newKey]]),te(g("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=s=>i.newValue=s),placeholder:n.valueName,onKeyup:e[3]||(e[3]=ri((...s)=>o.addItem&&o.addItem(...s),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,TWn),[[Ne,i.newValue]]),g("button",{onClick:e[4]||(e[4]=(...s)=>o.addItem&&o.addItem(...s)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg transition duration-300 ease-in-out"},"Add")]),Object.keys(n.modelValue).length>0?(k(),P("ul",mWn,[(k(!0),P(ze,null,lt(n.modelValue,(s,a)=>(k(),P("li",{key:a,class:We(["flex flex-col sm:flex-row items-center p-4 bg-white dark:bg-gray-800 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out",{"bg-gray-100 dark:bg-gray-700":i.draggingKey===a}])},[g("div",gWn,[g("label",{for:"key-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},ue(n.keyName),9,_Wn),g("input",{id:"key-"+a,value:a,onInput:l=>o.updateKey(a,l.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,QWn)]),g("div",vWn,[g("label",{for:"value-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},ue(n.valueName),9,yWn),g("input",{id:"value-"+a,value:s,onInput:l=>o.updateValue(a,l.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,bWn)]),g("div",EWn,[g("button",{onClick:l=>o.removeItem(a),class:"text-red-500 hover:text-red-700 p-2 rounded-full hover:bg-red-100 dark:hover:bg-red-900 transition duration-300 ease-in-out"},e[6]||(e[6]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,xWn),g("button",{onClick:l=>o.moveUp(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[7]||(e[7]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,SWn),g("button",{onClick:l=>o.moveDown(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[8]||(e[8]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,LWn)])],2))),128))])):ie("",!0),Object.keys(n.modelValue).length>0?(k(),P("div",CWn,[g("button",{onClick:e[5]||(e[5]=(...s)=>o.removeAll&&o.removeAll(...s)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg transition duration-300 ease-in-out"},"Remove All")])):ie("",!0)])}const wWn=Et(dWn,[["render",AWn]]),MWn="/";xe.defaults.baseURL="/";const OWn={components:{AddModelDialog:Cjn,ModelEntry:vzn,PersonalityViewer:Azn,PersonalityEntry:kU,BindingEntry:Qjn,ChoiceDialog:nE,Card:I9,StringListManager:uWn,DictManager:wWn,RadioOptions:Kjn},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},isUploading:!1,defaultModelImgPlaceholder:ui,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:vo,binding_changed:!1,SVGGPU:Zjn,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:MWn,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(t){console.log("Error cought:",t)}et.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{triggerFileInput(){this.$refs.fileInput.click()},async handleFileUpload(t){const e=t.target.files;if(!e.length)return;this.isUploading=!0;const n=new FormData;n.append("database_name",this.databaseName),Array.from(e).forEach(r=>{n.append("files",r)});try{const r=await xe.post("/upload_files_2_rag_db",n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:i=>{const o=Math.round(i.loaded*100/i.total);this.$emit("upload-progress",o)}});this.$emit("upload-success",r.data)}catch(r){console.error("Upload failed:",r),this.$emit("upload-error",r)}finally{this.isUploading=!1,t.target.value=""}},updateRagDatabase(t,e,n){n&&(n==="mounted"?this.configFile.datalakes[t][n]=!!e:this.configFile.datalakes[t][n]=e,this.settingsChanged=!0)},getServedDatabaseAlias(t){return this.configFile.rag_local_services[t].alias},getServedDatabaseType(t){return this.configFile.rag_local_services[t].type},getServedDatabaseUrl(t){return this.configFile.rag_local_services[t].url},getServedDatabaseStatus(t){return this.configFile.rag_local_services[t].start_at_startup||!1},getServedDatabaseKey(t){return this.configFile.rag_local_services[t].key||""},getDataLakeAlias(t){return this.configFile.datalakes[t].alias},getDataLakeType(t){return this.configFile.datalakes[t].type},getDataLakeUrl(t){return this.configFile.datalakes[t].url},getDataLakePath(t){return this.configFile.datalakes[t].path},getDataLakeKey(t){return this.configFile.datalakes[t].key||""},getDataLakeStatus(t){return this.configFile.datalakes[t].mounted||!1},updateAlias(t,e){this.configFile.datalakes[t].alias=e,this.settingsChanged=!0},updateDatabaseType(t,e){this.configFile.datalakes[t].type=e,this.settingsChanged=!0},updateDataLakeUrl(t,e){this.configFile.datalakes[t].url=e,this.settingsChanged=!0},updateDataLakePath(t,e){this.configFile.datalakes[t].path=e,this.settingsChanged=!0},updateDatabaseKey(t,e){this.configFile.datalakes[t].key=e,this.settingsChanged=!0},updateMounted(t,e){this.configFile.datalakes[t].mounted=e,this.settingsChanged=!0},updateStartAtStartup(t,e){this.configFile.datalakes[t].start_at_startup=e,this.settingsChanged=!0},addDatabaseService(){this.configFile.rag_local_services||(this.configFile.rag_local_services=[]),this.configFile.rag_local_services.push({alias:"datalake",type:"lightrag",url:"http://localhost:9621/",path:"",input_path:"",working_path:"",key:"",start_at_startup:!1}),this.settingsChanged=!0},addDataLake(){this.configFile.datalakes||(this.configFile.datalakes=[]),this.configFile.datalakes.push({alias:"datalake",type:"lightrag",url:"http://localhost:9621/",path:"",key:"",mounted:!1}),this.settingsChanged=!0},removeDataLake(t){console.log("Removing remote database"),this.configFile.datalakes.splice(t,1),console.log(this.configFile.datalakes),this.settingsChanged=!0},removeServedDataBase(t){console.log("Removing remote database"),this.configFile.rag_local_services.splice(t,1),console.log(this.configFile.rag_local_services),this.settingsChanged=!0},fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(t=>t.json()).then(t=>{this.voices=t.voices}).catch(t=>console.error("Error fetching voices:",t))},async refreshHardwareUsage(t){await t.dispatch("refreshDiskUsage"),await t.dispatch("refreshRamUsage"),await t.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.datalakes.push({alias:"",is_local:!0,path:"",mounted:!1,key:""}),this.settingsChanged=!0},removeDataSource(t){this.$store.state.config.datalakes.splice(t,1),this.settingsChanged=!0},async vectorize_folder(t){await xe.post("/vectorize_folder",{client_id:this.$store.state.client_id,rag_database:this.$store.state.config.datalakes[t]},this.posts_headers)},async lightrag_select_input_folder(t){try{et.on("lightrag_input_folder_added",e=>{console.log("lightrag_input_folder_added"),console.log(e),e?(console.log(this.$store.state.config.rag_local_services),console.log(t),this.$store.state.config.rag_local_services[t].input_path=e.path,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await xe.post("/select_lightrag_input_folder",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},async lightrag_select_output_folder(t){try{et.on("lightrag_output_folder_added",e=>{console.log("lightrag_output_folder_added"),console.log(e),e?(console.log(this.$store.state.config.rag_local_services),console.log(t),this.$store.state.config.rag_local_services[t].working_path=e.path,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await xe.post("/select_lightrag_output_folder",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},async lollms_vectordb_select_folder(t){try{et.on("lollmsvectordb_datalake_added",e=>{console.log("lollmsvectordb_datalake_added"),console.log(e),e?(console.log(this.$store.state.config.datalakes),console.log(t),this.$store.state.config.datalakes[t]={alias:e.datalake_name,type:"lollmsvectordb",path:e.path,mounted:!1,key:""},this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await xe.post("/select_lollmsvectordb_input_folder",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(t){console.log("handleTemplateSelection");const e=t.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=` +`];let a=-1;return s.forEach(l=>{const c=o.lastIndexOf(l);c>a&&(a=c)}),a==-1&&(a=o.length),console.log(a),a+i+1},r=()=>{const i=n(t),o=this.text.substring(t,i);this.msg.text=o,t=i+1,this.msg.onend=s=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",i))},this.speechSynthesis.speak(this.msg)};r()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(t){this.pre_text+=t,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let t=this.text.indexOf("@@");if(t<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,t)+this.text.substring(t+26,this.text.length),this.pre_text=this.text.substring(0,t),this.post_text=this.text.substring(t,this.text.length);var e=this.text.substring(0,t);console.log(e),et.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const t=await xe.post("/lollms_tokenize",{prompt:this.text,return_named:!0},{headers:this.posts_headers});console.log(t.data),this.namedTokens=t.data},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var t=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${t}`),et.emit("generate_text",{prompt:t,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){et.emit("cancel_text_generation",{})},exportText(){const t=this.text,e=document.createElement("a"),n=new Blob([t],{type:"text/plain"});e.href=URL.createObjectURL(n),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const t=document.getElementById("import-input");t&&(t.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const n=new FileReader;n.onload=()=>{this.text=n.result},n.readAsText(e.target.files[0])}else alert("Please select a file.")}),t.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=uGn(this.selectedPreset.content,t=>{console.log("Done"),console.log(t),this.text=t})},addPreset(){let t=prompt("Enter the title of the preset:");this.presets[t]={client_id:this.$store.state.client_id,name:t,content:this.text},xe.post("./add_preset",this.presets[t]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){xe.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?xe.post("/stop_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!1,this.pending=!1,console.log(t),this.text+=t.data,console.log("text"),console.log(this.text),console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):xe.post("/start_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!0,this.pending=!1,console.log(t.data)}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?xe.get("/stop_recording").then(t=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=t.data.text,this.read()}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):xe.get("/start_recording").then(t=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},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.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=t=>{this.generated="";for(let e=t.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},fGn={class:"container w-full background-color shadow-lg 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"},pGn={class:"container flex flex-row m-2 w-full"},hGn={class:"flex-grow w-full m-2"},TGn={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},mGn={class:"flex items-center space-x-2"},gGn=["src"],_Gn=["src"],QGn=["src"],vGn=["src"],yGn=["src"],bGn={key:1,class:"w-6 h-6"},EGn={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},xGn={key:0},SGn=["src"],LGn={key:2},CGn={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},AGn=["value"],wGn={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},MGn=["value"],OGn={class:"slider-container ml-2 mr-2"},RGn={class:"slider-value text-gray-500"},NGn={class:"slider-container ml-2 mr-2"},DGn={class:"slider-value text-gray-500"},IGn={class:"slider-container ml-2 mr-2"},kGn={class:"slider-value text-gray-500"},PGn={class:"slider-container ml-2 mr-2"},HGn={class:"slider-value text-gray-500"},VGn={class:"slider-container ml-2 mr-2"},FGn={class:"slider-value text-gray-500"},BGn={class:"slider-container ml-2 mr-2"},$Gn={class:"slider-value text-gray-500"},UGn={class:"slider-container ml-2 mr-2"},GGn={class:"slider-value text-gray-500"},qGn={class:"slider-container ml-2 mr-2"},zGn={class:"slider-value text-gray-500"};function jGn(t,e,n,r,i,o){const s=gt("ChatBarButton"),a=gt("ToolbarButton"),l=gt("DropdownSubmenu"),c=gt("DropdownMenu"),u=gt("tokens-hilighter"),d=gt("MarkdownRenderer"),h=gt("Card"),f=gt("Toast");return k(),P(ze,null,[g("div",fGn,[g("div",pGn,[g("div",hGn,[g("div",TGn,[g("div",mGn,[te(ae(s,{onClick:o.generate,title:"Generate from the current cursor position"},{icon:Be(()=>e[54]||(e[54]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),te(ae(s,{onClick:o.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Be(()=>e[55]||(e[55]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),te(ae(s,{onClick:o.tokenize_text,title:"Tokenize the text"},{icon:Be(()=>[g("img",{src:i.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,gGn)]),_:1},8,["onClick"]),[[Ht,!i.generating]]),e[65]||(e[65]=g("span",{class:"w-80"},null,-1)),te(ae(s,{onClick:o.stopGeneration,title:"Stop generation"},{icon:Be(()=>e[56]||(e[56]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),_:1},8,["onClick"]),[[Ht,i.generating]]),ae(s,{onClick:o.startSpeechRecognition,class:We({"text-red-500":t.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Be(()=>e[57]||(e[57]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.speak,class:We({"text-red-500":o.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Be(()=>e[58]||(e[58]=[nt(" 🪶 ")])),_:1},8,["onClick","class"]),ae(s,{onClick:o.triggerFileUpload,title:"Upload a voice"},{icon:Be(()=>e[59]||(e[59]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.startRecordingAndTranscribing,class:We({"text-green-500":i.isLesteningToVoice}),title:"Start audio to audio"},{icon:Be(()=>[i.pending?(k(),P("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,QGn)):(k(),P("img",{key:0,src:i.is_deaf_transcribing?i.deaf_on:i.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,_Gn))]),_:1},8,["onClick","class"]),ae(s,{onClick:o.startRecording,class:We({"text-green-500":i.isLesteningToVoice}),title:"Start audio recording"},{icon:Be(()=>[i.pending?(k(),P("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,yGn)):(k(),P("img",{key:0,src:i.is_recording?i.rec_on:i.rec_off,alt:"Record",class:"h-5 w-5"},null,8,vGn))]),_:1},8,["onClick","class"]),i.isSynthesizingVoice?(k(),P("div",bGn,e[61]||(e[61]=[g("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[g("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),g("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)]))):(k(),wt(s,{key:0,onClick:o.read,title:"Generate audio from text"},{icon:Be(()=>e[60]||(e[60]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"])),te(ae(s,{onClick:o.exportText,title:"Export text"},{icon:Be(()=>e[62]||(e[62]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),te(ae(s,{onClick:o.importText,title:"Import text"},{icon:Be(()=>e[63]||(e[63]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)])),_:1},8,["onClick"]),[[Ht,!i.generating]]),ae(s,{onClick:e[0]||(e[0]=m=>i.showSettings=!i.showSettings),title:"Settings"},{icon:Be(()=>e[64]||(e[64]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"}),g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1})]),g("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(...m)=>o.handleFileUpload&&o.handleFileUpload(...m)),style:{display:"none"},accept:".wav"},null,544),g("div",EGn,[g("button",{class:We(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="source"}]),onClick:e[2]||(e[2]=m=>i.tab_id="source")}," Source ",2),g("button",{class:We(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="render"}]),onClick:e[3]||(e[3]=m=>i.tab_id="render")}," Render ",2)]),e[66]||(e[66]=g("input",{type:"file",id:"import-input",class:"hidden"},null,-1))]),g("div",{class:We(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":i.generating}])},[i.tab_id==="source"?(k(),P("div",xGn,[ae(c,{title:"Add Block"},{default:Be(()=>[ae(l,{title:"Programming Languages",icon:"code"},{default:Be(()=>[ae(a,{onClick:e[4]||(e[4]=ge(m=>o.addBlock("python"),["stop"])),title:"Python",icon:"python"}),ae(a,{onClick:e[5]||(e[5]=ge(m=>o.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),ae(a,{onClick:e[6]||(e[6]=ge(m=>o.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),ae(a,{onClick:e[7]||(e[7]=ge(m=>o.addBlock("java"),["stop"])),title:"Java",icon:"java"}),ae(a,{onClick:e[8]||(e[8]=ge(m=>o.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),ae(a,{onClick:e[9]||(e[9]=ge(m=>o.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),ae(a,{onClick:e[10]||(e[10]=ge(m=>o.addBlock("go"),["stop"])),title:"Go",icon:"go"}),ae(a,{onClick:e[11]||(e[11]=ge(m=>o.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),ae(a,{onClick:e[12]||(e[12]=ge(m=>o.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),ae(a,{onClick:e[13]||(e[13]=ge(m=>o.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),ae(a,{onClick:e[14]||(e[14]=ge(m=>o.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),ae(l,{title:"Web Technologies",icon:"web"},{default:Be(()=>[ae(a,{onClick:e[15]||(e[15]=ge(m=>o.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),ae(a,{onClick:e[16]||(e[16]=ge(m=>o.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),ae(a,{onClick:e[17]||(e[17]=ge(m=>o.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),ae(a,{onClick:e[18]||(e[18]=ge(m=>o.addBlock("react"),["stop"])),title:"React",icon:"react"}),ae(a,{onClick:e[19]||(e[19]=ge(m=>o.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),ae(l,{title:"Markup and Data",icon:"file-code"},{default:Be(()=>[ae(a,{onClick:e[20]||(e[20]=ge(m=>o.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),ae(a,{onClick:e[21]||(e[21]=ge(m=>o.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),ae(a,{onClick:e[22]||(e[22]=ge(m=>o.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),ae(a,{onClick:e[23]||(e[23]=ge(m=>o.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),ae(a,{onClick:e[24]||(e[24]=ge(m=>o.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),ae(l,{title:"Scripting and Shell",icon:"terminal"},{default:Be(()=>[ae(a,{onClick:e[25]||(e[25]=ge(m=>o.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),ae(a,{onClick:e[26]||(e[26]=ge(m=>o.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),ae(a,{onClick:e[27]||(e[27]=ge(m=>o.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),ae(l,{title:"Diagramming",icon:"sitemap"},{default:Be(()=>[ae(a,{onClick:e[28]||(e[28]=ge(m=>o.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),ae(a,{onClick:e[29]||(e[29]=ge(m=>o.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),ae(a,{onClick:e[30]||(e[30]=ge(m=>o.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),ae(l,{title:"Database",icon:"database"},{default:Be(()=>[ae(a,{onClick:e[31]||(e[31]=ge(m=>o.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),ae(a,{onClick:e[32]||(e[32]=ge(m=>o.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),ae(a,{onClick:e[33]||(e[33]=ge(m=>o.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),ae(a,{onClick:e[34]||(e[34]=ge(m=>t.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),te(g("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=ri(ge((...m)=>o.insertTab&&o.insertTab(...m),["prevent"]),["tab"])),class:"block min-h-500 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,style:gn({minHeight:i.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=m=>i.text=m),onClick:e[37]||(e[37]=ge((...m)=>o.mdTextarea_clicked&&o.mdTextarea_clicked(...m),["prevent"])),onChange:e[38]||(e[38]=ge((...m)=>o.mdTextarea_changed&&o.mdTextarea_changed(...m),["prevent"]))}," ",36),[[Ne,i.text]]),g("span",null,"Cursor position "+ue(i.cursorPosition),1)])):ie("",!0),i.audio_url!=null?(k(),P("audio",{controls:"",key:i.audio_url},[g("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,SGn),e[67]||(e[67]=nt(" Your browser does not support the audio element. "))])):ie("",!0),ae(u,{namedTokens:i.namedTokens},null,8,["namedTokens"]),i.tab_id==="render"?(k(),P("div",LGn,[ae(d,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":i.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):ie("",!0)],2)]),i.showSettings?(k(),P("div",CGn,[e[82]||(e[82]=g("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1)),ae(h,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[te(g("select",{"onUpdate:modelValue":e[39]||(e[39]=m=>this.$store.state.selectedModel=m),onChange:e[40]||(e[40]=(...m)=>o.setModel&&o.setModel(...m)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(k(!0),P(ze,null,lt(o.models,m=>(k(),P("option",{key:m,value:m},ue(m),9,AGn))),128))],544),[[hn,this.$store.state.selectedModel]]),i.selecting_model?(k(),P("div",wGn,e[68]||(e[68]=[g("div",{role:"status"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Selecting model...")],-1)]))):ie("",!0)]),_:1}),ae(h,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[te(g("select",{"onUpdate:modelValue":e[41]||(e[41]=m=>i.selectedPreset=m),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(k(!0),P(ze,null,lt(i.presets,m=>(k(),P("option",{key:m,value:m},ue(m.name),9,MGn))),128))],512),[[hn,i.selectedPreset]]),e[73]||(e[73]=g("br",null,null,-1)),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(...m)=>o.setPreset&&o.setPreset(...m)),title:"Use preset"},e[69]||(e[69]=[g("i",{"data-feather":"check"},null,-1)])),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(...m)=>o.addPreset&&o.addPreset(...m)),title:"Add this text as a preset"},e[70]||(e[70]=[g("i",{"data-feather":"plus"},null,-1)])),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(...m)=>o.removePreset&&o.removePreset(...m)),title:"Remove preset"},e[71]||(e[71]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(...m)=>o.reloadPresets&&o.reloadPresets(...m)),title:"Reload presets list"},e[72]||(e[72]=[g("i",{"data-feather":"refresh-ccw"},null,-1)]))]),_:1}),ae(h,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[g("div",OGn,[e[74]||(e[74]=g("h3",{class:"text-gray-600"},"Temperature",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=m=>i.temperature=m),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[Ne,i.temperature]]),g("span",RGn,"Current value: "+ue(i.temperature),1)]),g("div",NGn,[e[75]||(e[75]=g("h3",{class:"text-gray-600"},"Top K",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=m=>i.top_k=m),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[Ne,i.top_k]]),g("span",DGn,"Current value: "+ue(i.top_k),1)]),g("div",IGn,[e[76]||(e[76]=g("h3",{class:"text-gray-600"},"Top P",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=m=>i.top_p=m),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[Ne,i.top_p]]),g("span",kGn,"Current value: "+ue(i.top_p),1)]),g("div",PGn,[e[77]||(e[77]=g("h3",{class:"text-gray-600"},"Repeat Penalty",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=m=>i.repeat_penalty=m),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.repeat_penalty]]),g("span",HGn,"Current value: "+ue(i.repeat_penalty),1)]),g("div",VGn,[e[78]||(e[78]=g("h3",{class:"text-gray-600"},"Repeat Last N",-1)),te(g("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=m=>i.repeat_last_n=m),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.repeat_last_n]]),g("span",FGn,"Current value: "+ue(i.repeat_last_n),1)]),g("div",BGn,[e[79]||(e[79]=g("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1)),te(g("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=m=>i.n_crop=m),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.n_crop]]),g("span",$Gn,"Current value: "+ue(i.n_crop),1)]),g("div",UGn,[e[80]||(e[80]=g("h3",{class:"text-gray-600"},"Number of tokens to generate",-1)),te(g("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=m=>i.n_predicts=m),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.n_predicts]]),g("span",GGn,"Current value: "+ue(i.n_predicts),1)]),g("div",qGn,[e[81]||(e[81]=g("h3",{class:"text-gray-600"},"Seed",-1)),te(g("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=m=>i.seed=m),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Ne,i.seed]]),g("span",zGn,"Current value: "+ue(i.seed),1)])]),_:1})])):ie("",!0)])]),ae(f,{ref:"toast"},null,512)],64)}const WGn=Et(dGn,[["render",jGn]]),YGn={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(hq(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},KGn={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full 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"},ZGn={key:0},XGn=["onClick"],JGn={key:0},eqn=["src"],tqn={key:1};function nqn(t,e,n,r,i,o){return k(),P("div",KGn,[o.activeExtensions.length>0?(k(),P("div",ZGn,[(k(!0),P(ze,null,lt(o.activeExtensions,s=>(k(),P("div",{key:s.name,onClick:a=>o.showExtensionPage(s)},[g("div",{class:We({"active-tab":s===i.activeExtension})},ue(s.name),3)],8,XGn))),128)),i.activeExtension?(k(),P("div",JGn,[g("iframe",{src:i.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,eqn)])):ie("",!0)])):(k(),P("div",tqn,e[0]||(e[0]=[g("p",null,"No extension is active. Please install and activate an extension.",-1)])))])}const rqn=Et(YGn,[["render",nqn]]),iqn={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(t){this.helpSections[t].isOpen=!this.helpSections[t].isOpen},async loadMarkdownFile(t){try{const n=await(await fetch(`/help/${t}`)).text();return cn(n)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const t=[{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 t){const n=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:n,isOpen:!1})}}},mounted(){this.loadHelpSections()}},oqn={class:"help-view background-color p-6 w-full"},sqn={class:"big-card w-full"},aqn={class:"help-sections-container"},lqn={class:"help-sections space-y-4"},cqn=["onClick"],uqn={class:"toggle-icon"},dqn={key:0,class:"help-content mt-4"},fqn=["innerHTML"];function pqn(t,e,n,r,i,o){return k(),P("div",oqn,[g("div",sqn,[e[0]||(e[0]=g("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),g("div",aqn,[g("div",lqn,[(k(!0),P(ze,null,lt(i.helpSections,(s,a)=>(k(),P("div",{key:a,class:"help-section message"},[g("h2",{onClick:l=>o.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[nt(ue(s.title)+" ",1),g("span",uqn,ue(s.isOpen?"▼":"▶"),1)],8,cqn),s.isOpen?(k(),P("div",dqn,[g("div",{innerHTML:s.content,class:"prose dark:prose-invert"},null,8,fqn)])):ie("",!0)]))),128))])])])])}const hqn=Et(iqn,[["render",pqn],["__scopeId","data-v-8c1798f3"]]);function Xo(t,e=!0,n=1){const r=e?1e3:1024;if(Math.abs(t)=r&&o{Xe.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected",t),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ke(()=>{Xe.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},mqn={class:"menu-container"},gqn=["title"],_qn=["src"],Qqn=["data-feather"],vqn={key:2,class:"w-5 h-5"},yqn={key:3,"data-feather":"menu"},bqn={class:"flex-grow menu-ul"},Eqn=["onClick"],xqn={key:0,"data-feather":"check"},Sqn=["src","alt"],Lqn=["data-feather"],Cqn={key:3,class:"menu-icon"};function Aqn(t,e,n,r,i,o){return k(),P("div",mqn,[g("button",{onClick:e[0]||(e[0]=ge((...s)=>o.toggleMenu&&o.toggleMenu(...s),["prevent"])),title:n.title,class:We([n.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"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(k(),P("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,_qn)):n.icon&&n.icon.includes("feather")?(k(),P("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,Qqn)):n.icon&&n.icon.includes("#")?(k(),P("p",vqn,ue(n.icon.split("#")[1]),1)):(k(),P("i",yqn))],10,gqn),ae(Ai,{name:"slide"},{default:Be(()=>[i.isMenuOpen?(k(),P("div",{key:0,class:"menu-list flex-grow",style:gn(i.menuPosition),ref:"menu"},[g("ul",bqn,[(k(!0),P(ze,null,lt(n.commands,(s,a)=>(k(),P("li",{key:a,onClick:ge(l=>o.executeCommand(s),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==s.name?(k(),P("i",xqn)):s.icon&&!s.icon.includes("feather")&&!s.is_file?(k(),P("img",{key:1,src:s.icon,alt:s.name,class:"menu-icon"},null,8,Sqn)):ie("",!0),s.icon&&s.icon.includes("feather")&&!s.is_file?(k(),P("i",{key:2,"data-feather":s.icon.split(":")[1],class:"mr-2"},null,8,Lqn)):(k(),P("span",Cqn)),g("span",null,ue(s.name),1)],8,Eqn))),128))])],4)):ie("",!0)]),_:1})])}const eE=Et(Tqn,[["render",Aqn]]),wqn={components:{InteractiveMenu:eE},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(){Ke(()=>{Xe.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return Xo(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?ui:this.model.icon},defaultImg(t){t.target.src=ui},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t){if(console.log("event.target.tagName.toLowerCase()"),console.log(t.target.tagName.toLowerCase()),t.target.tagName.toLowerCase()==="button"||t.target.tagName.toLowerCase()==="svg"){t.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Ke(()=>{Xe.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 t=[{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&&t.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return Xo(this.speed)},total_size_computed(){return Xo(this.total_size)},downloaded_size_computed(){return Xo(this.downloaded_size)}},watch:{linkNotValid(){Ke(()=>{Xe.replace()})}}},Mqn=["title"],Oqn={key:0,class:"flex flex-row"},Rqn={class:"max-w-[300px] overflow-x-auto"},Nqn={class:"flex gap-3 items-center grow"},Dqn=["href"],Iqn=["src"],kqn={class:"flex-1 overflow-hidden"},Pqn={class:"font-bold font-large text-lg truncate"},Hqn={key:1,class:"flex items-center flex-row gap-2 my-1"},Vqn={class:"flex grow items-center"},Fqn={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"},Bqn={class:"relative flex flex-col items-center justify-center flex-grow h-full"},$qn={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Uqn={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Gqn={class:"flex justify-between mb-1"},qqn={class:"text-sm font-medium text-blue-700 dark:text-white"},zqn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},jqn={class:"flex justify-between mb-1"},Wqn={class:"text-base font-medium text-blue-700 dark:text-white"},Yqn={class:"text-sm font-medium text-blue-700 dark:text-white"},Kqn={class:"flex flex-grow"},Zqn={class:"flex flex-row flex-grow gap-3"},Xqn={class:"p-2 text-center grow"},Jqn={key:3},ezn={class:"flex flex-row items-center gap-3"},tzn=["src"],nzn={class:"font-bold font-large text-lg truncate"},rzn={class:"flex items-center flex-row-reverse gap-2 my-1"},izn={class:"flex flex-row items-center"},ozn={key:0,class:"text-base text-red-600 flex items-center mt-1"},szn=["title"],azn={class:""},lzn={class:"flex flex-row items-center"},czn=["href","title"],uzn={class:"flex items-center"},dzn={class:"flex items-center"},fzn={key:0,class:"flex items-center"},pzn=["href"],hzn={class:"flex items-center"},Tzn=["href"],mzn={class:"flex items-center"},gzn={class:"flex items-center"},_zn=["href"];function Qzn(t,e,n,r,i,o){const s=gt("InteractiveMenu");return k(),P("div",{class:We(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",o.computed_classes]),title:n.model.name,onClick:e[10]||(e[10]=ge(a=>o.toggleSelected(a),["prevent"]))},[n.model.isCustomModel?(k(),P("div",Oqn,[g("div",Rqn,[g("div",Nqn,[g("a",{href:n.model.model_creator_link,target:"_blank"},[g("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Iqn)],8,Dqn),g("div",kqn,[g("h3",Pqn,ue(n.model.name),1)])])])])):ie("",!0),n.model.isCustomModel?(k(),P("div",Hqn,[g("div",Vqn,[g("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]=ge(()=>{},["stop"]))},e[11]||(e[11]=[g("i",{"data-feather":"box",class:"w-5"},null,-1),g("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=nt(" Custom model "))]),g("div",null,[n.model.isInstalled?(k(),P("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=ge((...a)=>o.uninstall&&o.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]=[nt(" Uninstall "),g("span",{class:"sr-only"},"Remove",-1)]))):ie("",!0)])])):ie("",!0),i.installing?(k(),P("div",Fqn,[g("div",Bqn,[e[15]||(e[15]=g("div",{role:"status",class:"justify-center"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)),g("div",$qn,[g("div",Uqn,[g("div",Gqn,[e[14]||(e[14]=g("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),g("span",qqn,ue(Math.floor(i.progress))+"%",1)]),g("div",zqn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:gn({width:i.progress+"%"})},null,4)]),g("div",jqn,[g("span",Wqn,"Download speed: "+ue(o.speed_computed)+"/s",1),g("span",Yqn,ue(o.downloaded_size_computed)+"/"+ue(o.total_size_computed),1)])])]),g("div",Kqn,[g("div",Zqn,[g("div",Xqn,[g("button",{onClick:e[3]||(e[3]=ge((...a)=>o.toggleCancelInstall&&o.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 ")])])])])])):ie("",!0),n.model.isCustomModel?ie("",!0):(k(),P("div",Jqn,[g("div",ezn,[g("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[4]||(e[4]=a=>o.defaultImg(a)),class:We(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,tzn),g("h3",nzn,ue(n.model.name),1),e[16]||(e[16]=g("div",{class:"grow"},null,-1)),ae(s,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),g("div",rzn,[g("div",izn,[i.linkNotValid?(k(),P("div",ozn,e[17]||(e[17]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),nt(" Link is not valid ")]))):ie("",!0)])]),g("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[g("div",azn,[g("div",lzn,[e[19]||(e[19]=g("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=g("b",null,"Card: ",-1)),g("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[5]||(e[5]=ge(()=>{},["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,czn),e[21]||(e[21]=g("div",{class:"grow"},null,-1)),g("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]=ge(a=>o.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[g("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),g("div",uzn,[g("div",{class:We(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=g("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=g("b",null,"File size: ",-1)),nt(" "+ue(o.fileSize),1)],2)]),g("div",dzn,[e[24]||(e[24]=g("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=g("b",null,"License: ",-1)),nt(" "+ue(n.model.license),1)]),n.model.quantizer!="None"&&n.model.type!="transformers"?(k(),P("div",fzn,[e[26]||(e[26]=g("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=g("b",null,"quantizer: ",-1)),g("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=ge(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},ue(n.model.quantizer),9,pzn)])):ie("",!0),g("div",hzn,[e[28]||(e[28]=g("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=g("b",null,"Model creator: ",-1)),g("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=ge(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},ue(n.model.model_creator),9,Tzn)]),g("div",mzn,[e[30]||(e[30]=g("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=g("b",null,"Release date: ",-1)),nt(" "+ue(n.model.last_commit_time),1)]),g("div",gzn,[e[32]||(e[32]=g("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=g("b",null,"Category: ",-1)),g("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=ge(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},ue(n.model.category),9,_zn)])])],8,szn)]))],10,Mqn)}const vzn=Et(wqn,[["render",Qzn]]),yzn={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}}},bzn={class:"p-4"},Ezn={class:"flex items-center mb-4"},xzn=["src"],Szn={class:"text-lg font-semibold"},Lzn={key:0};function Czn(t,e,n,r,i,o){return k(),P("div",bzn,[g("div",Ezn,[g("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,xzn),g("h2",Szn,ue(i.personalityName),1)]),g("p",null,[e[2]||(e[2]=g("strong",null,"Author:",-1)),nt(" "+ue(i.personalityAuthor),1)]),g("p",null,[e[3]||(e[3]=g("strong",null,"Description:",-1)),nt(" "+ue(i.personalityDescription),1)]),g("p",null,[e[4]||(e[4]=g("strong",null,"Category:",-1)),nt(" "+ue(i.personalityCategory),1)]),i.disclaimer?(k(),P("p",Lzn,[e[5]||(e[5]=g("strong",null,"Disclaimer:",-1)),nt(" "+ue(i.disclaimer),1)])):ie("",!0),g("p",null,[e[6]||(e[6]=g("strong",null,"Conditioning Text:",-1)),nt(" "+ue(i.conditioningText),1)]),g("p",null,[e[7]||(e[7]=g("strong",null,"AI Prefix:",-1)),nt(" "+ue(i.aiPrefix),1)]),g("p",null,[e[8]||(e[8]=g("strong",null,"User Prefix:",-1)),nt(" "+ue(i.userPrefix),1)]),g("div",null,[e[9]||(e[9]=g("strong",null,"Antiprompts:",-1)),g("ul",null,[(k(!0),P(ze,null,lt(i.antipromptsList,s=>(k(),P("li",{key:s.id},ue(s.text),1))),128))])]),g("button",{onClick:e[0]||(e[0]=s=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(k(),P("button",{key:1,onClick:e[1]||(e[1]=(...s)=>o.commitChanges&&o.commitChanges(...s)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):ie("",!0)])}const Azn=Et(yzn,[["render",Czn]]),tE="/assets/logo-CQZwS0X1.svg",wzn="/",Mzn={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:eE},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0},showHelpPopup:!1,renderedHelp:""}},computed:{commandsList(){let t=[{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"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,console.log(this.personality),Ke(()=>{Xe.replace()})},methods:{formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return wzn+this.personality.avatar},defaultImg(t){t.target.src=tE},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)},showHelp(){this.renderedHelp=cn(this.personality.help),this.showHelpPopup=!0},closeHelp(){this.showHelpPopup=!1}},watch:{selected(){Ke(()=>{Xe.replace()})}}},Ozn=["title"],Rzn={class:"flex-grow"},Nzn={class:"flex items-center mb-4"},Dzn=["src"],Izn={class:"text-sm text-gray-600"},kzn={class:"text-sm text-gray-600"},Pzn={class:"text-sm text-gray-600"},Hzn={key:0,class:"text-sm text-gray-600"},Vzn={key:1,class:"text-sm text-gray-600"},Fzn={class:"mb-4"},Bzn=["innerHTML"],$zn={class:"mt-auto pt-4 border-t"},Uzn={class:"flex justify-between items-center flex-wrap"},Gzn=["title"],qzn=["fill"],zzn=["src"],jzn={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center"},Wzn={class:"bg-white p-4 rounded-lg shadow-lg w-[500px] h-[400px] flex flex-col"},Yzn={class:"flex justify-between items-center mb-2"},Kzn={class:"flex-grow overflow-auto"},Zzn=["innerHTML"];function Xzn(t,e,n,r,i,o){const s=gt("InteractiveMenu");return k(),P("div",{class:We(["app-card flex flex-col h-full",o.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:n.personality.installed?"":"Not installed"},[g("div",Rzn,[g("div",Nzn,[g("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.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)=>o.toggleSelected&&o.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>o.showThumbnail&&o.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>o.updateThumbnailPosition&&o.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>o.hideThumbnail&&o.hideThumbnail(...a))},null,40,Dzn),g("div",null,[g("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>o.toggleSelected&&o.toggleSelected(...a))},ue(n.personality.name),1),g("p",Izn,"Author: "+ue(n.personality.author),1),g("p",kzn,"Version: "+ue(n.personality.version),1),g("p",Pzn,"Category: "+ue(n.personality.category),1),n.personality.creation_date?(k(),P("p",Hzn,"Creation Date: "+ue(o.formatDate(n.personality.creation_date)),1)):ie("",!0),n.personality.last_update_date?(k(),P("p",Vzn,"Last update Date: "+ue(o.formatDate(n.personality.last_update_date)),1)):ie("",!0)]),n.personality.help?(k(),P("button",{key:0,onClick:e[6]||(e[6]=(...a)=>o.showHelp&&o.showHelp(...a)),class:"ml-2 text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Help"},e[12]||(e[12]=[g("i",{"data-feather":"help-circle",class:"h-6 w-6"},null,-1)]))):ie("",!0)]),g("div",Fzn,[e[13]||(e[13]=g("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),g("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:n.personality.description},null,8,Bzn)])]),g("div",$zn,[g("div",Uzn,[g("button",{onClick:e[7]||(e[7]=(...a)=>o.toggleFavorite&&o.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(k(),P("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[14]||(e[14]=[g("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,qzn))],8,Gzn),i.isMounted?(k(),P("button",{key:0,onClick:e[8]||(e[8]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[15]||(e[15]=[g("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):ie("",!0),i.isMounted?(k(),P("button",{key:1,onClick:e[9]||(e[9]=(...a)=>o.toggleTalk&&o.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[16]||(e[16]=[g("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):ie("",!0),g("button",{onClick:e[10]||(e[10]=(...a)=>o.showFolder&&o.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[17]||(e[17]=[g("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),ae(s,{commands:o.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?(k(),P("div",{key:0,style:gn({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[g("img",{src:o.getImgUrl(),class:"w-full h-full object-fill"},null,8,zzn)],4)):ie("",!0),i.showHelpPopup?(k(),P("div",jzn,[g("div",Wzn,[g("div",Yzn,[e[18]||(e[18]=g("h2",{class:"text-lg font-bold"},"Help",-1)),g("button",{onClick:e[11]||(e[11]=(...a)=>o.closeHelp&&o.closeHelp(...a)),class:"text-red-500 hover:text-red-600"},"Close")]),g("div",Kzn,[g("div",{innerHTML:i.renderedHelp},null,8,Zzn)])])])):ie("",!0)],10,Ozn)}const kU=Et(Mzn,[["render",Xzn]]),Jzn={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(t){console.log(`UI prop changed for instance ${this.instanceId}:`,t),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const t=this.$refs.container,n=new DOMParser().parseFromString(this.ui,"text/html"),r=n.getElementsByTagName("style");Array.from(r).forEach(o=>{const s=document.createElement("style");s.textContent=this.scopeCSS(o.textContent),document.head.appendChild(s)}),t.innerHTML=n.body.innerHTML;const i=n.getElementsByTagName("script");Array.from(i).forEach(o=>{const s=document.createElement("script");s.textContent=o.textContent,t.appendChild(s)})},scopeCSS(t){return t.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},ejn=["id"];function tjn(t,e,n,r,i,o){return k(),P("div",{id:i.containerId,ref:"container"},null,8,ejn)}const PU=Et(Jzn,[["render",tjn]]),njn="/",rjn={components:{DynamicUIRenderer:PU},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ke(()=>{Xe.replace()})},methods:{copyToClipBoard(t){console.log("Copying to clipboard :",t),navigator.clipboard.writeText(t)},getImgUrl(){return njn+this.binding.icon},defaultImg(t){t.target.src=tE},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(){Ke(()=>{Xe.replace()})}}},ijn=["title"],ojn={class:"flex flex-row items-center gap-3"},sjn=["src"],ajn={class:"font-bold font-large text-lg truncate"},ljn={class:"flex-none gap-1"},cjn={class:"flex items-center flex-row-reverse gap-2 my-1"},ujn={class:""},djn={class:""},fjn={class:"flex items-center"},pjn={class:"flex items-center"},hjn={class:"flex items-center"},Tjn={class:"flex items-center"},mjn=["href"],gjn=["title","innerHTML"];function _jn(t,e,n,r,i,o){const s=gt("DynamicUIRenderer");return k(),P("div",{class:We(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=ge((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[g("div",null,[g("div",ojn,[g("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,sjn),g("h3",ajn,ue(n.binding.name),1),e[10]||(e[10]=g("div",{class:"grow"},null,-1)),g("div",ljn,[n.selected?(k(),P("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>o.toggleReloadBinding&&o.toggleReloadBinding(...a)),e[2]||(e[2]=ge(()=>{},["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]=[g("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),g("span",{class:"sr-only"},"Help",-1)]))):ie("",!0)])]),g("div",cjn,[n.binding.installed?ie("",!0):(k(),P("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=ge((...a)=>o.toggleInstall&&o.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]=[nt(" Install "),g("span",{class:"sr-only"},"Click to install",-1)]))),n.binding.installed?(k(),P("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=ge((...a)=>o.toggleReinstall&&o.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]=[nt(" Reinstall "),g("span",{class:"sr-only"},"Reinstall",-1)]))):ie("",!0),n.binding.installed?(k(),P("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=ge((...a)=>o.toggleUnInstall&&o.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]=[nt(" Uninstall "),g("span",{class:"sr-only"},"UnInstall",-1)]))):ie("",!0),n.selected?(k(),P("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=ge((...a)=>o.toggleSettings&&o.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]=[nt(" Settings "),g("span",{class:"sr-only"},"Settings",-1)]))):ie("",!0)]),n.binding.ui?(k(),wt(s,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):ie("",!0),g("div",ujn,[g("div",djn,[g("div",fjn,[e[15]||(e[15]=g("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=g("b",null,"Author: ",-1)),nt(" "+ue(n.binding.author),1)]),g("div",pjn,[e[18]||(e[18]=g("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=g("b",null,"Folder: ",-1)),nt(" "+ue(n.binding.folder)+" ",1),e[20]||(e[20]=g("div",{class:"grow"},null,-1)),g("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]=ge(a=>o.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[g("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),g("div",hjn,[e[21]||(e[21]=g("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=g("b",null,"Version: ",-1)),nt(" "+ue(n.binding.version),1)]),g("div",Tjn,[e[23]||(e[23]=g("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=g("b",null,"Link: ",-1)),g("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},ue(n.binding.link),9,mjn)])]),e[25]||(e[25]=g("div",{class:"flex items-center"},[g("i",{"data-feather":"info",class:"w-5 m-1"}),g("b",null,"Description: "),g("br")],-1)),g("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description,innerHTML:n.binding.description},null,8,gjn)])])],10,ijn)}const Qjn=Et(rjn,[["render",_jn]]),vo="/assets/logo-PFou_X4V.png",vjn={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},yjn={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},bjn={class:"relative w-full max-w-md max-h-full"},Ejn={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},xjn={class:"p-4 text-center"},Sjn={class:"p-4 text-center mx-auto mb-4"};function Ljn(t,e,n,r,i,o){return i.show?(k(),P("div",yjn,[g("div",bjn,[g("div",Ejn,[g("button",{type:"button",onClick:e[0]||(e[0]=s=>o.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]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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),g("span",{class:"sr-only"},"Close modal",-1)])),g("div",xjn,[e[6]||(e[6]=g("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"},[g("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)),g("div",Sjn,[e[5]||(e[5]=g("label",{class:"mr-2"},"Model path",-1)),te(g("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>i.model_path=s),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[Ne,i.model_path]])]),g("button",{onClick:e[2]||(e[2]=s=>o.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 "),g("button",{onClick:e[3]||(e[3]=s=>o.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")])])])])):ie("",!0)}const Cjn=Et(vjn,[["render",Ljn]]),Ajn={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(t){return typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){const e=["bytes","KB","MB","GB"];let n=0;for(;t>=1024&&n[n.show?(k(),P("div",wjn,[g("div",Mjn,[g("h2",Ojn,[e[5]||(e[5]=g("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)),nt(" "+ue(n.title),1)]),g("div",Rjn,[g("ul",null,[(k(!0),P(ze,null,lt(n.choices,(s,a)=>(k(),P("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[g("div",Njn,[g("div",Djn,[s.isEditing?te((k(),P("input",{key:1,"onUpdate:modelValue":l=>s.editName=l,onBlur:l=>o.finishEditing(s),onKeyup:ri(l=>o.finishEditing(s),["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,kjn)),[[Ne,s.editName]]):(k(),P("span",{key:0,onClick:l=>o.selectChoice(s),class:We([{"font-semibold":s===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},ue(o.displayName(s)),11,Ijn)),s.size?(k(),P("span",Pjn,ue(o.formatSize(s.size)),1)):ie("",!0)]),g("div",Hjn,[g("button",{onClick:l=>o.editChoice(s),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[g("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,Vjn),n.can_remove?(k(),P("button",{key:0,onClick:l=>o.removeChoice(s,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[g("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,Fjn)):ie("",!0)])])]))),128))])]),i.showInput?(k(),P("div",Bjn,[te(g("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>i.newFilename=s),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),[[Ne,i.newFilename]]),g("button",{onClick:e[1]||(e[1]=(...s)=>o.addNewFilename&&o.addNewFilename(...s)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):ie("",!0),g("div",$jn,[g("button",{onClick:e[2]||(e[2]=(...s)=>o.closeDialog&&o.closeDialog(...s)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),g("button",{onClick:e[3]||(e[3]=(...s)=>o.validateChoice&&o.validateChoice(...s)),disabled:!i.selectedChoice,class:We([{"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,Ujn),g("button",{onClick:e[4]||(e[4]=(...s)=>o.toggleInput&&o.toggleInput(...s)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):ie("",!0)]),_:1})}const nE=Et(Ajn,[["render",Gjn],["__scopeId","data-v-f43216be"]]),qjn={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const t=this.radioOptions.find(e=>e.value===this.selectedValue);return t?t.label:""}},watch:{selectedValue(t,e){this.$emit("radio-selected",t)}},methods:{handleRadioChange(){}}},zjn={class:"flex space-x-4"},jjn=["value","aria-checked"],Wjn={class:"text-gray-700"};function Yjn(t,e,n,r,i,o){return k(),P("div",zjn,[(k(!0),P(ze,null,lt(n.radioOptions,(s,a)=>(k(),P("label",{key:s.value,class:"flex items-center space-x-2"},[te(g("input",{type:"radio",value:s.value,"onUpdate:modelValue":e[0]||(e[0]=l=>i.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>o.handleRadioChange&&o.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===s.value.toString(),role:"radio"},null,40,jjn),[[hW,i.selectedValue]]),g("span",Wjn,ue(s.label),1)]))),128))])}const Kjn=Et(qjn,[["render",Yjn]]),Zjn="/assets/gpu-BWVOYg-D.svg",Xjn={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 t=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",t),this.$emit("change"),this.newItem=""}},removeItem(t){const e=this.modelValue.filter((n,r)=>r!==t);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(t){this.draggingIndex=t},dragItem(t){if(this.draggingIndex!==null){const e=[...this.modelValue],n=e.splice(this.draggingIndex,1)[0];e.splice(t,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(t){if(t>0){const e=[...this.modelValue],n=e.splice(t,1)[0];e.splice(t-1,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(t){if(ti.newItem=s),placeholder:n.placeholder,onKeyup:e[1]||(e[1]=ri((...s)=>o.addItem&&o.addItem(...s),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,eWn),[[Ne,i.newItem]]),g("button",{onClick:e[2]||(e[2]=(...s)=>o.addItem&&o.addItem(...s)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),n.modelValue.length>0?(k(),P("ul",tWn,[(k(!0),P(ze,null,lt(n.modelValue,(s,a)=>(k(),P("li",{key:a,class:We(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[g("span",nWn,ue(s),1),g("div",rWn,[g("button",{onClick:l=>o.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,iWn),a>0?(k(),P("button",{key:0,onClick:l=>o.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,oWn)):ie("",!0),ao.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,sWn)):ie("",!0)]),i.draggingIndex===a?(k(),P("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:l=>o.startDragging(a),onMousemove:l=>o.dragItem(a),onMouseup:e[3]||(e[3]=(...l)=>o.stopDragging&&o.stopDragging(...l))},null,40,aWn)):ie("",!0)],2))),128))])):ie("",!0),n.modelValue.length>0?(k(),P("div",lWn,[g("button",{onClick:e[4]||(e[4]=(...s)=>o.removeAll&&o.removeAll(...s)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):ie("",!0)])}const uWn=Et(Xjn,[["render",cWn]]),dWn={name:"DictionaryManager",props:{modelValue:{type:Object,default:()=>({})},keyName:{type:String,default:"Key"},valueName:{type:String,default:"Value"}},emits:["update:modelValue","change"],data(){return{newKey:"",newValue:"",draggingKey:null}},methods:{addItem(){if(this.newKey.trim()){const t={...this.modelValue};t[this.newKey.trim()]=this.newValue,this.$emit("update:modelValue",t),this.$emit("change"),this.newKey="",this.newValue=""}},removeItem(t){const e={...this.modelValue};delete e[t],this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",{}),this.$emit("change")},updateKey(t,e){if(e.trim()&&e!==t){const n={...this.modelValue};n[e.trim()]=n[t],delete n[t],this.$emit("update:modelValue",n),this.$emit("change")}},updateValue(t,e){const n={...this.modelValue};n[t]=e,this.$emit("update:modelValue",n),this.$emit("change")},moveUp(t){const e=Object.keys(this.modelValue),n=e.indexOf(t);if(n>0){const r={};e.forEach((i,o)=>{o===n-1&&(r[t]=this.modelValue[t]),i!==t&&(r[i]=this.modelValue[i])}),this.$emit("update:modelValue",r),this.$emit("change")}},moveDown(t){const e=Object.keys(this.modelValue),n=e.indexOf(t);if(n{i!==t&&(r[i]=this.modelValue[i]),o===n+1&&(r[t]=this.modelValue[t])}),this.$emit("update:modelValue",r),this.$emit("change")}}}},fWn={class:"max-w-4xl mx-auto p-4"},pWn={class:"flex flex-col sm:flex-row mb-4 gap-2"},hWn=["placeholder"],TWn=["placeholder"],mWn={key:0,class:"space-y-4"},gWn={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},_Wn=["for"],QWn=["id","value","onInput"],vWn={class:"flex-grow mb-2 sm:mb-0 sm:mr-4 w-full sm:w-auto"},yWn=["for"],bWn=["id","value","onInput"],EWn={class:"flex items-center space-x-2"},xWn=["onClick"],SWn=["onClick"],LWn=["onClick"],CWn={key:1,class:"mt-6"};function AWn(t,e,n,r,i,o){return k(),P("div",fWn,[g("div",pWn,[te(g("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=s=>i.newKey=s),placeholder:n.keyName,onKeyup:e[1]||(e[1]=ri((...s)=>o.addItem&&o.addItem(...s),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,hWn),[[Ne,i.newKey]]),te(g("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=s=>i.newValue=s),placeholder:n.valueName,onKeyup:e[3]||(e[3]=ri((...s)=>o.addItem&&o.addItem(...s),["enter"])),class:"flex-grow px-4 py-2 border border-gray-300 rounded dark:bg-gray-700 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,TWn),[[Ne,i.newValue]]),g("button",{onClick:e[4]||(e[4]=(...s)=>o.addItem&&o.addItem(...s)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg transition duration-300 ease-in-out"},"Add")]),Object.keys(n.modelValue).length>0?(k(),P("ul",mWn,[(k(!0),P(ze,null,lt(n.modelValue,(s,a)=>(k(),P("li",{key:a,class:We(["flex flex-col sm:flex-row items-center p-4 bg-white dark:bg-gray-800 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out",{"bg-gray-100 dark:bg-gray-700":i.draggingKey===a}])},[g("div",gWn,[g("label",{for:"key-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},ue(n.keyName),9,_Wn),g("input",{id:"key-"+a,value:a,onInput:l=>o.updateKey(a,l.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,QWn)]),g("div",vWn,[g("label",{for:"value-"+a,class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},ue(n.valueName),9,yWn),g("input",{id:"value-"+a,value:s,onInput:l=>o.updateValue(a,l.target.value),class:"w-full px-3 py-2 border border-gray-300 rounded dark:bg-gray-600 dark:text-white text-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,40,bWn)]),g("div",EWn,[g("button",{onClick:l=>o.removeItem(a),class:"text-red-500 hover:text-red-700 p-2 rounded-full hover:bg-red-100 dark:hover:bg-red-900 transition duration-300 ease-in-out"},e[6]||(e[6]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,xWn),g("button",{onClick:l=>o.moveUp(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[7]||(e[7]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,SWn),g("button",{onClick:l=>o.moveDown(a),class:"bg-gray-200 dark:bg-gray-600 hover:bg-gray-300 dark:hover:bg-gray-500 p-2 rounded-full transition duration-300 ease-in-out"},e[8]||(e[8]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[g("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,LWn)])],2))),128))])):ie("",!0),Object.keys(n.modelValue).length>0?(k(),P("div",CWn,[g("button",{onClick:e[5]||(e[5]=(...s)=>o.removeAll&&o.removeAll(...s)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg transition duration-300 ease-in-out"},"Remove All")])):ie("",!0)])}const wWn=Et(dWn,[["render",AWn]]),MWn="/";xe.defaults.baseURL="/";const OWn={components:{AddModelDialog:Cjn,ModelEntry:vzn,PersonalityViewer:Azn,PersonalityEntry:kU,BindingEntry:Qjn,ChoiceDialog:nE,Card:I9,StringListManager:uWn,DictManager:wWn,RadioOptions:Kjn},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},isUploading:!1,defaultModelImgPlaceholder:ui,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:vo,binding_changed:!1,SVGGPU:Zjn,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:MWn,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(t){console.log("Error cought:",t)}et.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{triggerFileInput(){this.$refs.fileInput.click()},async handleFileUpload(t){const e=t.target.files;if(!e.length)return;this.isUploading=!0;const n=new FormData;n.append("database_name",this.databaseName),Array.from(e).forEach(r=>{n.append("files",r)});try{const r=await xe.post("/upload_files_2_rag_db",n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:i=>{const o=Math.round(i.loaded*100/i.total);this.$emit("upload-progress",o)}});this.$emit("upload-success",r.data)}catch(r){console.error("Upload failed:",r),this.$emit("upload-error",r)}finally{this.isUploading=!1,t.target.value=""}},updateRagDatabase(t,e,n){n&&(n==="mounted"?this.configFile.datalakes[t][n]=!!e:this.configFile.datalakes[t][n]=e,this.settingsChanged=!0)},getServedDatabaseAlias(t){return this.configFile.rag_local_services[t].alias},getServedDatabaseType(t){return this.configFile.rag_local_services[t].type},getServedDatabaseUrl(t){return this.configFile.rag_local_services[t].url},getServedDatabaseStatus(t){return this.configFile.rag_local_services[t].start_at_startup||!1},getServedDatabaseKey(t){return this.configFile.rag_local_services[t].key||""},getDataLakeAlias(t){return this.configFile.datalakes[t].alias},getDataLakeType(t){return this.configFile.datalakes[t].type},getDataLakeUrl(t){return this.configFile.datalakes[t].url},getDataLakePath(t){return this.configFile.datalakes[t].path},getDataLakeKey(t){return this.configFile.datalakes[t].key||""},getDataLakeStatus(t){return this.configFile.datalakes[t].mounted||!1},updateAlias(t,e){this.configFile.datalakes[t].alias=e,this.settingsChanged=!0},updateDatabaseType(t,e){this.configFile.datalakes[t].type=e,this.settingsChanged=!0},updateDataLakeUrl(t,e){this.configFile.datalakes[t].url=e,this.settingsChanged=!0},updateDataLakePath(t,e){this.configFile.datalakes[t].path=e,this.settingsChanged=!0},updateDatabaseKey(t,e){this.configFile.datalakes[t].key=e,this.settingsChanged=!0},updateMounted(t,e){this.configFile.datalakes[t].mounted=e,this.settingsChanged=!0},updateStartAtStartup(t,e){this.configFile.datalakes[t].start_at_startup=e,this.settingsChanged=!0},addDatabaseService(){this.configFile.rag_local_services||(this.configFile.rag_local_services=[]),this.configFile.rag_local_services.push({alias:"datalake",type:"lightrag",url:"http://localhost:9621/",path:"",input_path:"",working_path:"",key:"",start_at_startup:!1}),this.settingsChanged=!0},addDataLake(){this.configFile.datalakes||(this.configFile.datalakes=[]),this.configFile.datalakes.push({alias:"datalake",type:"lightrag",url:"http://localhost:9621/",path:"",key:"",mounted:!1}),this.settingsChanged=!0},removeDataLake(t){console.log("Removing remote database"),this.configFile.datalakes.splice(t,1),console.log(this.configFile.datalakes),this.settingsChanged=!0},removeServedDataBase(t){console.log("Removing remote database"),this.configFile.rag_local_services.splice(t,1),console.log(this.configFile.rag_local_services),this.settingsChanged=!0},fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(t=>t.json()).then(t=>{this.voices=t.voices}).catch(t=>console.error("Error fetching voices:",t))},async refreshHardwareUsage(t){await t.dispatch("refreshDiskUsage"),await t.dispatch("refreshRamUsage"),await t.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.datalakes.push({alias:"",is_local:!0,path:"",mounted:!1,key:""}),this.settingsChanged=!0},removeDataSource(t){this.$store.state.config.datalakes.splice(t,1),this.settingsChanged=!0},async vectorize_folder(t){await xe.post("/vectorize_folder",{client_id:this.$store.state.client_id,rag_database:this.$store.state.config.datalakes[t]},this.posts_headers)},async lightrag_select_input_folder(t){try{et.on("lightrag_input_folder_added",e=>{console.log("lightrag_input_folder_added"),console.log(e),e?(console.log(this.$store.state.config.rag_local_services),console.log(t),this.$store.state.config.rag_local_services[t].input_path=e.path,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await xe.post("/select_lightrag_input_folder",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},async lightrag_select_output_folder(t){try{et.on("lightrag_output_folder_added",e=>{console.log("lightrag_output_folder_added"),console.log(e),e?(console.log(this.$store.state.config.rag_local_services),console.log(t),this.$store.state.config.rag_local_services[t].working_path=e.path,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await xe.post("/select_lightrag_output_folder",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},async lollms_vectordb_select_folder(t){try{et.on("lollmsvectordb_datalake_added",e=>{console.log("lollmsvectordb_datalake_added"),console.log(e),e?(console.log(this.$store.state.config.datalakes),console.log(t),this.$store.state.config.datalakes[t]={alias:e.datalake_name,type:"lollmsvectordb",path:e.path,mounted:!1,key:""},this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await xe.post("/select_lollmsvectordb_input_folder",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(t){console.log("handleTemplateSelection");const e=t.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=` @@ -312,7 +312,7 @@ The possibilities are endless, they are now yours to mold and customize as you s 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(t){await this.unmountPersonality(t),await this.mountPersonality(t)},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,console.log("Personality path:",t.personality.path),xe.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:t.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}))},personalityImgPlacehodler(t){t.target.src=vo},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){this.filterModels()}},async mounted(){console.log("Getting voices"),this.getVoices(),console.log("Constructing"),this.load_everything(),this.getSeviceVoices();try{console.log("Loading input devices list");const t=await xe.get("/get_snd_input_devices");this.snd_input_devices=t.data.device_names,this.snd_input_devices_indexes=t.data.device_indexes}catch{console.log("Couldin't list input devices")}try{console.log("Loading output devices list");const t=await xe.get("/get_snd_output_devices");this.snd_output_devices=t.data.device_names,this.snd_output_devices_indexes=t.data.device_indexes}catch{console.log("Couldin't list output devices")}try{if(console.log("Getting comfyui models"),this.configFile.activate_lollms_tti_server&&this.configFile.active_tti_service=="comfyui"){const t=await xe.get("/list_comfyui_models");t.data.status&&(this.comfyui_models=t.data.models)}}catch{console.log("Couldin't list output devices")}this.fetchElevenLabsVoices()},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(` -`,"
")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(t=>t.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(t=>t.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return ui;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return ui}}},imgModel:{get(){try{let t=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return t>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[t].icon}`),this.$store.state.modelsZoo[t].icon):ui}catch{console.log("error")}if(!this.isMounted)return ui;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return ui}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(t){this.$store.state.config.audio_out_voice=t}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},userName:{get(){return this.$store.state.config.user_name},set(t){this.$store.state.config.user_name=t}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:vo},set(t){this.$store.state.config.user_avatar=t}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(t){this.$store.state.config.hardware_mode=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(t){this.$store.state.config.auto_speak=t}},auto_read:{get(){return this.$store.state.config.auto_read},set(t){this.$store.state.config.auto_read=t}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(t){console.log("Current xtts voice set to ",t),this.$store.state.config.xtts_current_language=t}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(t){t=="main_voice"||t===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",t),this.$store.state.config.xtts_current_voice=t)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(t){this.$store.state.config.audio_pitch=t}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(t){this.$store.state.config.audio_in_language=t}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(t){this.$store.state.config.use_user_name_in_discussions=t}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(t){this.$store.state.config.discussion_db_name=t}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(t){this.$store.commit("setbindingsZoo",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},installed_models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},diskUsage:{get(){return this.$store.state.diskUsage},set(t){this.$store.commit("setDiskUsage",t)}},ramUsage:{get(){return this.$store.state.ramUsage},set(t){this.$store.commit("setRamUsage",t)}},vramUsage:{get(){return this.$store.state.vramUsage},set(t){this.$store.commit("setVramUsage",t)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return null;const t=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return t>-1?this.bindingsZoo[t].name:null},active_pesonality(){if(!this.isMounted)return null;const t=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return t>-1?this.$store.state.personalities[t].name:null},speed_computed(){return Xo(this.addModel.speed)},total_size_computed(){return Xo(this.addModel.total_size)},downloaded_size_computed(){return Xo(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Ke(()=>{Xe.replace()})},pc_collapsed(){Ke(()=>{Xe.replace()})},mc_collapsed(){Ke(()=>{Xe.replace()})},sc_collapsed(){Ke(()=>{Xe.replace()})},showConfirmation(){Ke(()=>{Xe.replace()})},mzl_collapsed(){Ke(()=>{Xe.replace()})},pzl_collapsed(){Ke(()=>{Xe.replace()})},ezl_collapsed(){Ke(()=>{Xe.replace()})},bzl_collapsed(){Ke(()=>{Xe.replace()})},all_collapsed(t){this.collapseAll(t),Ke(()=>{Xe.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,Ke(()=>{Xe.replace()})},isLoading(){Ke(()=>{Xe.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},mzdc_collapsed(){Ke(()=>{Xe.replace()})}},async beforeRouteLeave(t){await this.$router.isReady()}},RWn={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color 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"},NWn={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},DWn={key:0,class:"flex gap-3 flex-1 items-center duration-75"},IWn={key:1,class:"flex gap-3 flex-1 items-center"},kWn={class:"flex gap-3 flex-1 items-center justify-end"},PWn={class:"flex gap-3 items-center"},HWn={key:0,class:"flex gap-3 items-center"},VWn={key:1,role:"status"},FWn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},BWn={class:"flex flex-row p-3"},$Wn={class:"text-base font-semibold cursor-pointer select-none items-center"},UWn={class:"flex gap-2 items-center"},GWn={key:0},qWn=["src"],zWn={class:"font-bold font-large text-lg"},jWn={key:1},WWn={class:"flex gap-2 items-center"},YWn=["src"],KWn={class:"font-bold font-large text-lg"},ZWn={class:"font-bold font-large text-lg"},XWn={class:"font-bold font-large text-lg"},JWn={class:"mb-2"},eYn={class:"flex flex-col mx-2"},tYn={class:"p-2"},nYn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},rYn={class:"mb-2"},iYn={class:"flex flex-col mx-2"},oYn={class:"p-2"},sYn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},aYn={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},lYn=["src"],cYn={class:"flex flex-col mx-2"},uYn={class:"p-2"},dYn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},fYn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},pYn={class:"flex flex-row p-3"},hYn={class:"flex flex-col mb-2 px-3 pb-2"},TYn={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"},mYn={class:"flex flex-col space-y-4"},gYn={class:"flex items-center"},_Yn={class:"flex items-center"},QYn={class:"flex items-center"},vYn={class:"flex items-start"},yYn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},bYn={class:"flex flex-row p-3"},EYn={class:"flex flex-col mb-2 px-3 pb-2"},xYn={class:"settings-container grid gap-6 p-6 bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-300 dark:border-gray-600"},SYn={class:"setting-section"},LYn={class:"settings-grid grid gap-4"},CYn={class:"setting-row flex items-center gap-4"},AYn={class:"setting-row flex items-center gap-4"},wYn={class:"setting-row flex items-center gap-4"},MYn={class:"setting-content flex items-center gap-4"},OYn={for:"avatar-upload",class:"cursor-pointer"},RYn=["src"],NYn={class:"setting-section"},DYn={class:"settings-grid grid gap-4"},IYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},kYn={class:"relative inline-block w-12 h-6"},PYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},HYn={class:"relative inline-block w-12 h-6"},VYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},FYn={class:"relative inline-block w-12 h-6"},BYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},$Yn={class:"relative inline-block w-12 h-6"},UYn={class:"setting-section"},GYn={class:"settings-grid grid gap-4"},qYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},zYn={class:"relative inline-block w-12 h-6"},jYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},WYn={class:"relative inline-block w-12 h-6"},YYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},KYn={class:"relative inline-block w-12 h-6"},ZYn={class:"setting-section"},XYn={class:"settings-grid grid gap-4"},JYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},eKn={class:"relative inline-block w-12 h-6"},tKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},nKn={class:"relative inline-block w-12 h-6"},rKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},iKn={class:"relative inline-block w-12 h-6"},oKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},sKn={class:"relative inline-block w-12 h-6"},aKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},lKn={class:"relative inline-block w-12 h-6"},cKn={class:"setting-section"},uKn={class:"settings-grid grid gap-4"},dKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},fKn={class:"flex items-center space-x-4"},pKn={class:"w-10 h-10 rounded-full overflow-hidden bg-gray-200 dark:bg-gray-700"},hKn=["src"],TKn=["src"],mKn={class:"flex items-center space-x-2"},gKn={class:"cursor-pointer bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg"},_Kn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},QKn={class:"relative inline-block w-12 h-6"},vKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},yKn={class:"relative inline-block w-12 h-6"},bKn={class:"setting-row flex flex-col p-4 bg-red-50 dark:bg-red-900/20 rounded-lg shadow-sm border-2 border-red-200 dark:border-red-800"},EKn={class:"flex items-center justify-between"},xKn={class:"relative inline-block w-12 h-6"},SKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},LKn={class:"relative inline-block w-12 h-6"},CKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},AKn={class:"relative inline-block w-12 h-6"},wKn={class:"grid gap-6 bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md"},MKn={class:"flex flex-col space-y-2"},OKn={class:"grid md:grid-cols-2 gap-4"},RKn={class:"space-y-2"},NKn={class:"space-y-2"},DKn={class:"grid md:grid-cols-2 gap-4"},IKn={class:"space-y-2"},kKn={class:"space-y-2"},PKn={class:"grid md:grid-cols-2 gap-4"},HKn={class:"space-y-2"},VKn={class:"space-y-2"},FKn={class:"grid md:grid-cols-2 gap-4"},BKn={class:"space-y-2"},$Kn={class:"space-y-2"},UKn={class:"space-y-2"},GKn={class:"space-y-2"},qKn={class:"space-y-2"},zKn={class:"p-4 bg-gray-100 dark:bg-gray-900 rounded-md"},jKn=["innerHTML"],WKn={class:"flex items-center space-x-4"},YKn={class:"relative inline-block w-10 mr-2 align-middle select-none transition duration-200 ease-in"},KKn={class:"grid gap-6 bg-gray-50 dark:bg-gray-700 p-6 rounded-lg shadow-md"},ZKn={class:"flex flex-col md:flex-row md:items-center gap-4"},XKn={class:"flex flex-col md:flex-row md:items-start gap-4"},JKn={class:"space-y-4"},eZn={class:"flex flex-col md:flex-row md:items-center gap-4"},tZn={class:"flex-1 space-y-3"},nZn={class:"flex items-center space-x-3 cursor-pointer"},rZn={class:"flex items-center space-x-3 cursor-pointer"},iZn={class:"flex items-center space-x-3 cursor-pointer"},oZn={class:"flex flex-col md:flex-row md:items-center gap-4"},sZn={class:"flex items-center gap-4"},aZn={for:"avatar-upload",class:"cursor-pointer"},lZn=["src"],cZn={class:"space-y-4"},uZn={class:"flex flex-col md:flex-row md:items-center gap-4"},dZn={class:"flex flex-col md:flex-row md:items-center gap-4"},fZn={class:"settings-container p-6 space-y-4 bg-gray-50 dark:bg-gray-800 rounded-xl shadow-md"},pZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},hZn={class:"relative"},TZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},mZn={class:"relative"},gZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},_Zn={class:"relative"},QZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},vZn={class:"relative"},yZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},bZn={class:"relative"},EZn={class:"bg-gray-50 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg p-4 space-y-4"},xZn={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},SZn={class:"flex items-center"},LZn={class:"relative inline-flex items-center cursor-pointer"},CZn={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},AZn={class:"flex-1"},wZn={class:"p-4 bg-gray-50 dark:bg-gray-700 rounded-lg shadow-sm border border-gray-200 dark:border-gray-600"},MZn={class:"flex flex-col sm:flex-row items-start sm:items-center gap-2"},OZn={class:"flex-1 w-full"},RZn={class:"settings-container bg-gray-50 dark:bg-gray-700 p-6 rounded-lg shadow-md"},NZn={class:"setting-row mb-4"},DZn={class:"flex items-center justify-between"},IZn={class:"w-64"},kZn={class:"setting-row mb-4"},PZn={class:"flex items-center justify-between"},HZn={class:"w-64"},VZn={class:"setting-row"},FZn={class:"flex items-center justify-between"},BZn={class:"w-64"},$Zn={class:"inline-flex items-center cursor-pointer"},UZn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},GZn={class:"flex flex-row p-3"},qZn={class:"space-y-6"},zZn={class:"space-y-4"},jZn={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-4"},WZn={class:"flex flex-col"},YZn=["value","onInput"],KZn={class:"flex flex-col"},ZZn=["value","onInput"],XZn={class:"flex flex-col lg:col-span-2"},JZn={class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},eXn=["value","onInput"],tXn=["value","onInput"],nXn={key:0,class:"flex flex-col lg:col-span-2"},rXn=["value","onInput"],iXn={class:"flex flex-wrap items-center justify-between mt-4 pt-3 border-t border-gray-200 dark:border-gray-700 gap-2"},oXn={class:"flex flex-wrap items-center gap-3"},sXn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},aXn={class:"relative inline-block w-12 h-6"},lXn=["onUpdate:modelValue"],cXn={key:0,class:"flex gap-2"},uXn=["onClick"],dXn=["onClick"],fXn={class:"inline-flex"},pXn=["onClick"],hXn={class:"space-y-6"},TXn={class:"space-y-4"},mXn={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"},gXn={class:"flex flex-col"},_Xn=["value","onInput"],QXn={class:"flex flex-col"},vXn=["value","onInput"],yXn={class:"flex flex-col lg:col-span-2"},bXn=["value","onInput"],EXn={class:"flex flex-col lg:col-span-2"},xXn=["value","onInput"],SXn={class:"flex flex-col lg:col-span-2"},LXn=["onUpdate:modelValue"],CXn={class:"flex flex-col lg:col-span-2"},AXn=["onUpdate:modelValue"],wXn={class:"flex items-center justify-between mt-4 pt-3 border-t border-gray-200 dark:border-gray-700"},MXn={class:"flex items-center space-x-4"},OXn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},RXn={class:"relative inline-block w-12 h-6"},NXn=["onUpdate:modelValue"],DXn=["onClick"],IXn=["onClick"],kXn=["onClick"],PXn={class:"bg-gray-50 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg p-6 space-y-6"},HXn={class:"flex flex-col md:flex-row md:items-center gap-4"},VXn={class:"flex flex-col md:flex-row md:items-center gap-4"},FXn={class:"flex-1"},BXn={class:"inline-flex items-center"},$Xn={class:"flex flex-col md:flex-row md:items-start gap-4"},UXn={class:"flex-1 space-y-2"},GXn=["disabled"],qXn={key:0,label:"Semantic Models"},zXn={key:1,label:"OpenAI Models"},jXn={key:2,label:"Ollama Models"},WXn={key:3,disabled:""},YXn={class:"flex flex-col md:flex-row md:items-start gap-4"},KXn={class:"space-y-6"},ZXn={class:"flex flex-col md:flex-row md:items-start gap-4"},XXn={class:"flex-1 space-y-2"},JXn={class:"space-y-4"},eJn={class:"flex items-center gap-4"},tJn={class:"flex-1"},nJn={class:"inline-flex items-center"},rJn={class:"space-y-4 bg-gray-50 dark:bg-gray-800 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-gray-700"},iJn={class:"flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-700 p-3 rounded-lg transition-colors"},oJn={class:"flex items-center"},sJn={class:"relative inline-flex items-center cursor-pointer"},aJn={class:"flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-700 p-3 rounded-lg transition-colors"},lJn={class:"flex items-center"},cJn={class:"relative inline-flex items-center cursor-pointer"},uJn={class:"flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-700 p-3 rounded-lg transition-colors"},dJn={class:"flex items-center"},fJn={class:"relative inline-flex items-center cursor-pointer"},pJn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},hJn={class:"flex flex-row p-3"},TJn={class:"grid gap-6 bg-gray-50 dark:bg-gray-700 rounded-lg p-6 border border-gray-300 dark:border-gray-600"},mJn={class:"flex items-center justify-between"},gJn={class:"relative inline-flex items-center cursor-pointer"},_Jn={class:"flex items-center justify-between"},QJn={class:"relative inline-flex items-center cursor-pointer"},vJn={class:"flex items-center justify-between"},yJn={class:"relative inline-flex items-center cursor-pointer"},bJn={class:"flex items-center justify-between"},EJn={class:"relative inline-flex items-center cursor-pointer"},xJn={class:"space-y-6"},SJn={class:"flex flex-col gap-2"},LJn={class:"flex flex-col gap-4"},CJn={class:"flex flex-col gap-2"},AJn={class:"flex flex-col gap-4"},wJn={class:"flex flex-col gap-2"},MJn={class:"flex flex-col gap-4"},OJn={class:"flex flex-col gap-2"},RJn={class:"flex flex-col gap-4"},NJn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},DJn={class:"flex flex-row p-3"},IJn={class:"grid gap-6 p-6 bg-white dark:bg-gray-800 rounded-xl shadow-lg"},kJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},PJn={class:"w-full md:w-2/3"},HJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},VJn={class:"w-full md:w-2/3"},FJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},BJn={class:"w-full md:w-2/3"},$Jn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},UJn={class:"w-full md:w-2/3"},GJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},qJn={class:"w-full md:w-2/3"},zJn={class:"space-y-6 bg-gray-50 dark:bg-gray-800 p-6 rounded-lg shadow-md"},jJn={class:"flex items-center space-x-4"},WJn={class:"w-2/3"},YJn={class:"inline-flex items-center cursor-pointer"},KJn={class:"flex items-center space-x-4"},ZJn={class:"w-2/3"},XJn={class:"inline-flex items-center cursor-pointer"},JJn={class:"flex items-center space-x-4"},eer={class:"w-2/3"},ter={class:"flex items-center space-x-4"},ner={class:"w-2/3"},rer={class:"grid gap-6 p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md"},ier={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},oer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},ser={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},aer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},ler={class:"space-y-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg"},cer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},uer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},der={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},fer={class:"space-y-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg"},per={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},her={class:"flex items-center"},Ter={class:"relative inline-flex items-center cursor-pointer"},mer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},ger={class:"space-y-4 p-4 bg-white dark:bg-gray-800 rounded-lg shadow-md"},_er={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-4"},Qer={class:"md:w-2/3"},ver=["value"],yer={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-4 pt-4 border-t dark:border-gray-700"},ber={class:"md:w-2/3"},Eer=["value"],xer={class:"grid gap-4 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-md"},Ser={class:"grid grid-cols-[200px,1fr] items-center gap-4"},Ler={class:"grid grid-cols-[200px,1fr] items-center gap-4"},Cer={class:"grid grid-cols-[200px,1fr] items-center gap-4"},Aer={class:"grid grid-cols-[200px,1fr] items-center gap-4"},wer={class:"space-y-3"},Mer={class:"flex items-center space-x-2 cursor-pointer"},Oer={class:"flex items-center space-x-2 cursor-pointer"},Rer={class:"pl-6 space-y-2 border-l-2 border-gray-200 dark:border-gray-600"},Ner=["id","onUpdate:modelValue"],Der={class:"text-sm text-gray-600 dark:text-gray-300"},Ier={class:"grid grid-cols-[200px,1fr] items-center gap-4"},ker={class:"space-y-3"},Per=["id","onUpdate:modelValue"],Her={class:"text-sm text-gray-600 dark:text-gray-300"},Ver={class:"space-y-6 p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md"},Fer={class:"flex items-center justify-between"},Ber={class:"relative inline-flex items-center cursor-pointer"},$er={class:"flex items-center justify-between"},Uer={class:"relative inline-flex items-center cursor-pointer"},Ger={class:"space-y-2"},qer={for:"audio_silenceTimer",class:"text-sm font-medium text-gray-700 dark:text-gray-200"},zer={class:"flex flex-col gap-4"},jer={class:"space-y-2"},Wer=["value"],Yer={class:"bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 space-y-6"},Ker={class:"flex items-center justify-between p-4 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-lg transition-all"},Zer={class:"relative inline-flex items-center cursor-pointer"},Xer={class:"p-4"},Jer={class:"p-4"},etr={class:"relative"},ttr=["value"],ntr={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"},rtr={class:"flex flex-row"},itr={class:"flex flex-row"},otr=["value"],str={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"},atr={class:"flex flex-row"},ltr=["value"],ctr={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"},utr={class:"flex flex-row"},dtr=["value"],ftr={class:"flex flex-row"},ptr=["value"],htr={class:"flex flex-row"},Ttr={class:"flex flex-row"},mtr={class:"flex flex-row"},gtr={class:"flex flex-row"},_tr={class:"flex flex-row"},Qtr={class:"flex flex-row"},vtr={class:"flex flex-row"},ytr={class:"flex flex-row"},btr={class:"flex flex-row"},Etr={class:"flex flex-row"},xtr={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"},Str={class:"flex flex-row"},Ltr={class:"flex flex-row"},Ctr={class:"flex flex-row"},Atr={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"},wtr={class:"flex flex-row"},Mtr={class:"flex flex-row"},Otr={class:"flex flex-row"},Rtr={class:"flex flex-row"},Ntr={class:"flex flex-row"},Dtr=["value"],Itr={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"},ktr={class:"flex flex-row"},Ptr={class:"flex flex-row"},Htr={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"},Vtr={class:"flex flex-row"},Ftr={class:"flex flex-row"},Btr={class:"flex flex-row"},$tr={class:"flex flex-row"},Utr={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"},Gtr={class:"flex flex-row"},qtr={class:"flex flex-row"},ztr={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"},jtr={class:"flex flex-row"},Wtr={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"},Ytr={class:"flex flex-row"},Ktr={class:"flex flex-row"},Ztr={class:"flex flex-row"},Xtr={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"},Jtr={class:"flex flex-row"},enr={class:"flex flex-row"},tnr={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"},nnr={class:"flex flex-row"},rnr={class:"flex flex-row"},inr=["value"],onr={class:"flex flex-row"},snr={class:"flex flex-row"},anr={class:"flex flex-row"},lnr={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"},cnr={class:"flex flex-row"},unr={class:"flex flex-row"},dnr={class:"flex flex-row"},fnr={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"},pnr={class:"flex flex-row"},hnr={class:"flex flex-row"},Tnr={class:"flex flex-row"},mnr={class:"flex flex-col align-bottom"},gnr={class:"relative"},_nr={class:"absolute right-0"},Qnr={class:"flex flex-row"},vnr={class:"flex flex-row"},ynr={class:"flex flex-row"},bnr={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"},Enr={class:"flex flex-row"},xnr={class:"flex flex-row"},Snr={class:"flex flex-row"},Lnr={class:"bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 max-w-2xl mx-auto"},Cnr={class:"flex flex-col md:flex-row items-start md:items-center space-y-4 md:space-y-0 md:space-x-6"},Anr={class:"w-full md:w-2/3"},wnr={class:"relative"},Mnr={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"},Onr={class:"flex flex-row"},Rnr={class:"flex flex-row"},Nnr={class:"flex flex-row"},Dnr={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Inr={class:"flex flex-row p-3"},knr={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Pnr={key:1,class:"mr-2"},Hnr={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Vnr={class:"flex gap-1 items-center"},Fnr=["src"],Bnr={class:"font-bold font-large text-lg line-clamp-1"},$nr={key:0,class:"mb-2"},Unr={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Gnr={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},qnr={class:"flex flex-row p-3"},znr={class:"flex flex-row items-center"},jnr={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Wnr={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Ynr={key:2,class:"mr-2"},Knr={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Znr={class:"flex gap-1 items-center"},Xnr=["src"],Jnr={class:"font-bold font-large text-lg line-clamp-1"},err={class:"mx-2 mb-4"},trr={class:"relative"},nrr={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},rrr={key:0},irr={key:1},orr={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},srr={key:1,class:"mb-2"},arr={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},lrr={class:"mb-2"},crr={class:"p-2"},urr={class:"mb-3"},drr={key:0},frr={class:"mb-3"},prr={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},hrr={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Trr={class:"w-full p-2"},mrr={class:"flex justify-between mb-1"},grr={class:"text-sm font-medium text-blue-700 dark:text-white"},_rr=["title"],Qrr={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},vrr={class:"flex justify-between mb-1"},yrr={class:"text-base font-medium text-blue-700 dark:text-white"},brr={class:"text-sm font-medium text-blue-700 dark:text-white"},Err={class:"flex flex-grow"},xrr={class:"flex flex-row flex-grow gap-3"},Srr={class:"p-2 text-center grow"},Lrr={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Crr={class:"flex flex-row p-3 items-center"},Arr={key:0,class:"mr-2"},wrr={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Mrr={key:1,class:"mr-2"},Orr={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Rrr={key:0,class:"flex -space-x-4 items-center"},Nrr={class:"group items-center flex flex-row"},Drr=["onClick"],Irr=["src","title"],krr=["onClick"],Prr={class:"mx-2 mb-4"},Hrr={class:"relative"},Vrr={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Frr={key:0},Brr={key:1},$rr={key:0,class:"mx-2 mb-4"},Urr={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Grr=["selected"],qrr={key:0,class:"mb-2"},zrr={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},jrr={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wrr={class:"flex flex-row"},Yrr={class:"m-2"},Krr={class:"flex flex-row gap-2 items-center"},Zrr={class:"m-2"},Xrr={class:"m-2"},Jrr={class:"flex flex-col align-bottom"},eir={class:"relative"},tir={class:"absolute right-0"},nir={class:"m-2"},rir={class:"flex flex-col align-bottom"},iir={class:"relative"},oir={class:"absolute right-0"},sir={class:"m-2"},air={class:"flex flex-col align-bottom"},lir={class:"relative"},cir={class:"absolute right-0"},uir={class:"m-2"},dir={class:"flex flex-col align-bottom"},fir={class:"relative"},pir={class:"absolute right-0"},hir={class:"m-2"},Tir={class:"flex flex-col align-bottom"},mir={class:"relative"},gir={class:"absolute right-0"},_ir={class:"m-2"},Qir={class:"flex flex-col align-bottom"},vir={class:"relative"},yir={class:"absolute right-0"};function bir(t,e,n,r,i,o){const s=gt("DictManager"),a=gt("Card"),l=gt("StringListManager"),c=gt("BindingEntry"),u=gt("RadioOptions"),d=gt("model-entry"),h=gt("personality-entry"),f=gt("AddModelDialog"),m=gt("ChoiceDialog");return k(),P(ze,null,[g("div",RWn,[g("div",NWn,[i.showConfirmation?(k(),P("div",DWn,[g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=ge(T=>i.showConfirmation=!1,["stop"]))},e[435]||(e[435]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=ge(T=>o.save_configuration(),["stop"]))},e[436]||(e[436]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),i.showConfirmation?ie("",!0):(k(),P("div",IWn,[g("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=T=>o.reset_configuration())},e[437]||(e[437]=[g("i",{"data-feather":"refresh-ccw"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=ge(T=>i.all_collapsed=!i.all_collapsed,["stop"]))},e[438]||(e[438]=[g("i",{"data-feather":"list"},null,-1)]))])),g("div",kWn,[g("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=T=>o.api_get_req("clear_uploads").then(Q=>{Q.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[439]||(e[439]=[g("i",{"data-feather":"trash-2"},null,-1)])),g("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=T=>o.api_post_req("restart_program").then(Q=>{Q.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[440]||(e[440]=[g("i",{"data-feather":"refresh-ccw"},null,-1)])),i.has_updates?(k(),P("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=T=>o.api_post_req("update_software").then(Q=>{Q.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[441]||(e[441]=[g("i",{"data-feather":"arrow-up-circle"},null,-1),g("i",{"data-feather":"alert-circle"},null,-1)]))):ie("",!0),g("div",PWn,[i.settingsChanged?(k(),P("div",HWn,[i.isLoading?ie("",!0):(k(),P("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=ge(T=>o.applyConfiguration(),["stop"]))},e[442]||(e[442]=[g("div",{class:"flex flex-row"},[g("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),g("i",{"data-feather":"check"})],-1)]))),i.isLoading?ie("",!0):(k(),P("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=ge(T=>o.cancelConfiguration(),["stop"]))},e[443]||(e[443]=[g("div",{class:"flex flex-row"},[g("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),g("i",{"data-feather":"x"})],-1)])))])):ie("",!0),i.isLoading?(k(),P("div",VWn,[g("p",null,ue(i.loading_text),1),e[444]||(e[444]=g("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"},[g("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"}),g("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)),e[445]||(e[445]=g("span",{class:"sr-only"},"Loading...",-1))])):ie("",!0)])])]),g("div",{class:We(i.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[g("div",FWn,[g("div",BWn,[g("button",{onClick:e[9]||(e[9]=ge(T=>i.sc_collapsed=!i.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[446]||(e[446]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.sc_collapsed]]),te(g("div",null,e[447]||(e[447]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.sc_collapsed]]),e[450]||(e[450]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[451]||(e[451]=g("div",{class:"mr-2"},"|",-1)),g("div",$Wn,[g("div",UWn,[g("div",null,[o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length==1?(k(),P("div",GWn,[(k(!0),P(ze,null,lt(o.vramUsage.gpus,T=>(k(),P("div",{class:"flex gap-2 items-center",key:T},[g("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,qWn),g("p",zWn,[g("div",null,ue(o.computedFileSize(T.used_vram))+" / "+ue(o.computedFileSize(T.total_vram))+" ("+ue(T.percentage)+"%) ",1)])]))),128))])):ie("",!0),o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length>1?(k(),P("div",jWn,[g("div",WWn,[g("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,YWn),g("p",KWn,[g("div",null,ue(o.vramUsage.gpus.length)+"x ",1)])])])):ie("",!0)]),e[448]||(e[448]=g("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),g("p",ZWn,[g("div",null,ue(o.ram_usage)+" / "+ue(o.ram_total_space)+" ("+ue(o.ram_percent_usage)+"%)",1)]),e[449]||(e[449]=g("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),g("p",XWn,[g("div",null,ue(o.disk_binding_models_usage)+" / "+ue(o.disk_total_space)+" ("+ue(o.disk_percent_usage)+"%)",1)])])])])]),g("div",{class:We([{hidden:i.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",JWn,[e[454]||(e[454]=g("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[g("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),nt(" CPU Ram usage: ")],-1)),g("div",eYn,[g("div",null,[e[452]||(e[452]=g("b",null,"Avaliable ram: ",-1)),nt(ue(o.ram_available_space),1)]),g("div",null,[e[453]||(e[453]=g("b",null,"Ram usage: ",-1)),nt(" "+ue(o.ram_usage)+" / "+ue(o.ram_total_space)+" ("+ue(o.ram_percent_usage)+")% ",1)])]),g("div",tYn,[g("div",nYn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:bn("width: "+o.ram_percent_usage+"%;")},null,4)])])]),g("div",rYn,[e[457]||(e[457]=g("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[g("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),nt(" Disk usage: ")],-1)),g("div",iYn,[g("div",null,[e[455]||(e[455]=g("b",null,"Avaliable disk space: ",-1)),nt(ue(o.disk_available_space),1)]),g("div",null,[e[456]||(e[456]=g("b",null,"Disk usage: ",-1)),nt(" "+ue(o.disk_binding_models_usage)+" / "+ue(o.disk_total_space)+" ("+ue(o.disk_percent_usage)+"%)",1)])]),g("div",oYn,[g("div",sYn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:bn("width: "+o.disk_percent_usage+"%;")},null,4)])])]),(k(!0),P(ze,null,lt(o.vramUsage.gpus,T=>(k(),P("div",{class:"mb-2",key:T},[g("label",aYn,[g("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,lYn),e[458]||(e[458]=nt(" GPU usage: "))]),g("div",cYn,[g("div",null,[e[459]||(e[459]=g("b",null,"Model: ",-1)),nt(ue(T.gpu_model),1)]),g("div",null,[e[460]||(e[460]=g("b",null,"Avaliable vram: ",-1)),nt(ue(this.computedFileSize(T.available_space)),1)]),g("div",null,[e[461]||(e[461]=g("b",null,"GPU usage: ",-1)),nt(" "+ue(this.computedFileSize(T.used_vram))+" / "+ue(this.computedFileSize(T.total_vram))+" ("+ue(T.percentage)+"%)",1)])]),g("div",uYn,[g("div",dYn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:bn("width: "+T.percentage+"%;")},null,4)])])]))),128))],2)]),g("div",fYn,[g("div",pYn,[g("button",{onClick:e[10]||(e[10]=ge(T=>i.smartrouterconf_collapsed=!i.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[462]||(e[462]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.smartrouterconf_collapsed]]),te(g("div",null,e[463]||(e[463]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.smartrouterconf_collapsed]]),e[464]||(e[464]=g("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),g("div",{class:We([{hidden:i.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",hYn,[ae(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",TYn,[g("div",mYn,[g("div",gYn,[e[465]||(e[465]=g("label",{for:"use_smart_routing",class:"text-sm font-bold w-64"},"Use Smart Routing:",-1)),te(g("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=T=>o.configFile.use_smart_routing=T),onChange:e[12]||(e[12]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.use_smart_routing]])]),g("div",_Yn,[e[466]||(e[466]=g("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold w-64"},"Restore model after smart routing:",-1)),te(g("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=T=>o.configFile.restore_model_after_smart_routing=T),onChange:e[14]||(e[14]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.restore_model_after_smart_routing]])]),g("div",QYn,[e[467]||(e[467]=g("label",{for:"smart_routing_router_model",class:"text-sm font-bold w-64"},"Router Model:",-1)),te(g("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=T=>o.configFile.smart_routing_router_model=T),onChange:e[16]||(e[16]=T=>i.settingsChanged=!0),class:"flex-grow mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.smart_routing_router_model]])]),g("div",vYn,[e[468]||(e[468]=g("label",{for:"smart_routing_models_description",class:"text-sm font-bold w-64 mt-1"},"Models with description:",-1)),ae(s,{modelValue:o.configFile.smart_routing_models_description,"onUpdate:modelValue":e[17]||(e[17]=T=>o.configFile.smart_routing_models_description=T),onChange:e[18]||(e[18]=T=>i.settingsChanged=!0),"key-name":"Model Path","value-name":"Model description",placeholder:"Enter model name",class:"flex-grow"},null,8,["modelValue"])])])])]),_:1})])],2)]),g("div",yYn,[g("div",bYn,[g("button",{onClick:e[19]||(e[19]=ge(T=>i.mainconf_collapsed=!i.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[469]||(e[469]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.mainconf_collapsed]]),te(g("div",null,e[470]||(e[470]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.mainconf_collapsed]]),e[471]||(e[471]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),g("div",{class:We([{hidden:i.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",EYn,[ae(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",xYn,[g("div",SYn,[e[476]||(e[476]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"User Information",-1)),g("div",LYn,[g("div",CYn,[e[472]||(e[472]=g("div",{class:"setting-label w-64"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Username:")],-1)),te(g("input",{type:"text","onUpdate:modelValue":e[20]||(e[20]=T=>o.configFile.user_name=T),onChange:e[21]||(e[21]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500"},null,544),[[Ne,o.configFile.user_name]])]),g("div",AYn,[e[473]||(e[473]=g("div",{class:"setting-label w-64"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"User Description:")],-1)),te(g("textarea",{"onUpdate:modelValue":e[22]||(e[22]=T=>o.configFile.user_description=T),onChange:e[23]||(e[23]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500",rows:"3"}," ",544),[[Ne,o.configFile.user_description]])]),g("div",wYn,[e[475]||(e[475]=g("div",{class:"setting-label w-64"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"User Avatar:")],-1)),g("div",MYn,[g("label",OYn,[g("img",{src:o.configFile.user_avatar?`/user_infos/${o.configFile.user_avatar}`:t.defaultAvatar,class:"w-12 h-12 rounded-full object-cover border-2 border-gray-300 hover:border-blue-500 transition-all"},null,8,RYn)]),g("input",{type:"file",id:"avatar-upload",class:"hidden",onChange:e[24]||(e[24]=(...T)=>o.uploadAvatar&&o.uploadAvatar(...T))},null,32),g("button",{onClick:e[25]||(e[25]=ge(T=>o.resetAvatar(),["stop"])),class:"text-gray-500 hover:text-red-600 p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-600 transition-all",title:"Remove avatar"},e[474]||(e[474]=[g("i",{"data-feather":"x"},null,-1)]))])])])]),g("div",NYn,[e[485]||(e[485]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Discussion Settings",-1)),g("div",DYn,[g("div",IYn,[e[478]||(e[478]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use username in discussions",-1)),g("div",kYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[26]||(e[26]=T=>o.configFile.use_user_name_in_discussions=T),onChange:e[27]||(e[27]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_user_name_in_discussions]]),e[477]||(e[477]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",PYn,[e[480]||(e[480]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use assistant name in discussion",-1)),g("div",HYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[28]||(e[28]=T=>o.configFile.use_assistant_name_in_discussion=T),onChange:e[29]||(e[29]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_assistant_name_in_discussion]]),e[479]||(e[479]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",VYn,[e[482]||(e[482]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use model name in discussions",-1)),g("div",FYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[30]||(e[30]=T=>o.configFile.use_model_name_in_discussions=T),onChange:e[31]||(e[31]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_model_name_in_discussions]]),e[481]||(e[481]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",BYn,[e[484]||(e[484]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use user information in discussions",-1)),g("div",$Yn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[32]||(e[32]=T=>o.configFile.use_user_informations_in_discussion=T),onChange:e[33]||(e[33]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_user_informations_in_discussion]]),e[483]||(e[483]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),g("div",UYn,[e[492]||(e[492]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Debug Settings",-1)),g("div",GYn,[g("div",qYn,[e[487]||(e[487]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Enable Debug Mode",-1)),g("div",zYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[34]||(e[34]=T=>o.configFile.debug=T),onChange:e[35]||(e[35]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.debug]]),e[486]||(e[486]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",jYn,[e[489]||(e[489]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Show Final Full Prompt",-1)),g("div",WYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[36]||(e[36]=T=>o.configFile.debug_show_final_full_prompt=T),onChange:e[37]||(e[37]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.debug_show_final_full_prompt]]),e[488]||(e[488]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",YYn,[e[491]||(e[491]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Show Chunks",-1)),g("div",KYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[38]||(e[38]=T=>o.configFile.debug_show_chunks=T),onChange:e[39]||(e[39]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.debug_show_chunks]]),e[490]||(e[490]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),g("div",ZYn,[e[503]||(e[503]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Auto-sync Settings",-1)),g("div",XYn,[g("div",JYn,[e[494]||(e[494]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Update",-1)),g("div",eKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[40]||(e[40]=T=>o.configFile.auto_update=T),onChange:e[41]||(e[41]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_update]]),e[493]||(e[493]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",tKn,[e[496]||(e[496]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Personalities",-1)),g("div",nKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[42]||(e[42]=T=>o.configFile.auto_sync_personalities=T),onChange:e[43]||(e[43]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_personalities]]),e[495]||(e[495]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",rKn,[e[498]||(e[498]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Extensions",-1)),g("div",iKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[44]||(e[44]=T=>o.configFile.auto_sync_extensions=T),onChange:e[45]||(e[45]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_extensions]]),e[497]||(e[497]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",oKn,[e[500]||(e[500]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Bindings",-1)),g("div",sKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[46]||(e[46]=T=>o.configFile.auto_sync_bindings=T),onChange:e[47]||(e[47]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_bindings]]),e[499]||(e[499]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",aKn,[e[502]||(e[502]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Models",-1)),g("div",lKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[48]||(e[48]=T=>o.configFile.auto_sync_models=T),onChange:e[49]||(e[49]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_models]]),e[501]||(e[501]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),g("div",cKn,[e[517]||(e[517]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Webui Settings",-1)),g("div",uKn,[g("div",dKn,[g("div",fKn,[e[504]||(e[504]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Application Logo",-1)),g("div",pKn,[o.configFile.app_custom_logo?(k(),P("img",{key:0,src:"/user_infos/"+o.configFile.app_custom_logo,class:"w-full h-full object-cover",alt:"Custom Logo"},null,8,hKn)):(k(),P("img",{key:1,src:t.defaultImgPlaceholder,class:"w-full h-full object-cover",alt:"Default Logo"},null,8,TKn))])]),g("div",mKn,[o.configFile.app_custom_logo?(k(),P("button",{key:0,onClick:e[50]||(e[50]=(...T)=>o.removeLogo&&o.removeLogo(...T)),class:"bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg"}," Remove Logo ")):ie("",!0),g("label",gKn,[e[505]||(e[505]=nt(" Upload Logo ")),g("input",{type:"file",onChange:e[51]||(e[51]=(...T)=>o.uploadLogo&&o.uploadLogo(...T)),accept:"image/*",class:"hidden"},null,32)])])]),g("div",_Kn,[e[507]||(e[507]=g("div",{class:"flex items-center space-x-2"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Automatic Discussion Naming"),g("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"(Let AI name your discussions automatically)")],-1)),g("div",QKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[52]||(e[52]=T=>o.configFile.auto_title=T),onChange:e[53]||(e[53]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_title]]),e[506]||(e[506]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",vKn,[e[509]||(e[509]=g("div",{class:"flex items-center space-x-2"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto-launch Browser"),g("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"(Open browser automatically when starting LOLLMS)")],-1)),g("div",yKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[54]||(e[54]=T=>o.configFile.auto_show_browser=T),onChange:e[55]||(e[55]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_show_browser]]),e[508]||(e[508]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",bKn,[g("div",EKn,[e[511]||(e[511]=g("div",{class:"flex items-center space-x-2"},[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),g("label",{class:"font-bold text-sm text-red-700 dark:text-red-400"},"Remote Access")],-1)),g("div",xKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[56]||(e[56]=T=>o.configFile.force_accept_remote_access=T),onChange:e[57]||(e[57]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-red-500"},null,544),[[at,o.configFile.force_accept_remote_access]]),e[510]||(e[510]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),e[512]||(e[512]=g("p",{class:"mt-2 text-sm text-red-600 dark:text-red-400"},[g("strong",null,"Security Warning:"),nt(" Enabling remote access poses significant security risks. Only enable this if you: "),g("ul",{class:"list-disc ml-6 mt-1"},[g("li",null,"Fully understand the security implications"),g("li",null,"Have proper network security measures in place"),g("li",null,"Are in a trusted network environment")])],-1))]),g("div",SKn,[e[514]||(e[514]=g("div",{class:"flex items-center space-x-2"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Enhanced Message Copy"),g("div",{class:"text-xs text-gray-500 dark:text-gray-400"}," (Include metadata like sender name and model info when copying messages) ")],-1)),g("div",LKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[58]||(e[58]=T=>o.configFile.copy_to_clipboard_add_all_details=T),onChange:e[59]||(e[59]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.copy_to_clipboard_add_all_details]]),e[513]||(e[513]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",CKn,[e[516]||(e[516]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Headless server mode (DEACTIVATES the WEBUI)",-1)),g("div",AKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[60]||(e[60]=T=>o.configFile.headless_server_mode=T),onChange:e[61]||(e[61]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.headless_server_mode]]),e[515]||(e[515]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])])])]),_:1}),ae(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",wKn,[g("div",MKn,[e[519]||(e[519]=g("label",{class:"text-sm font-semibold text-gray-700 dark:text-gray-300"},"Template Type",-1)),g("select",{onChange:e[62]||(e[62]=(...T)=>o.handleTemplateSelection&&o.handleTemplateSelection(...T)),class:"form-select w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},e[518]||(e[518]=[g("option",{value:"lollms"},"Lollms communication template",-1),g("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),g("option",{value:"bare"},"Bare, useful when in chat mode",-1),g("option",{value:"llama3"},"LLama3 communication template",-1),g("option",{value:"mistral"},"Mistral communication template",-1),g("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)]),g("div",OKn,[g("div",RKn,[e[520]||(e[520]=g("label",{for:"start_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Start Header Template ",-1)),te(g("input",{type:"text",id:"start_header_id_template","onUpdate:modelValue":e[63]||(e[63]=T=>o.configFile.start_header_id_template=T),onChange:e[64]||(e[64]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.start_header_id_template]])]),g("div",NKn,[e[521]||(e[521]=g("label",{for:"end_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End Header Template ",-1)),te(g("input",{type:"text",id:"end_header_id_template","onUpdate:modelValue":e[65]||(e[65]=T=>o.configFile.end_header_id_template=T),onChange:e[66]||(e[66]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_header_id_template]])])]),g("div",DKn,[g("div",IKn,[e[522]||(e[522]=g("label",{for:"start_user_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Start User Header Template ",-1)),te(g("input",{type:"text",id:"start_user_header_id_template","onUpdate:modelValue":e[67]||(e[67]=T=>o.configFile.start_user_header_id_template=T),onChange:e[68]||(e[68]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.start_user_header_id_template]])]),g("div",kKn,[e[523]||(e[523]=g("label",{for:"end_user_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End User Header Template ",-1)),te(g("input",{type:"text",id:"end_user_header_id_template","onUpdate:modelValue":e[69]||(e[69]=T=>o.configFile.end_user_header_id_template=T),onChange:e[70]||(e[70]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_user_header_id_template]])])]),g("div",PKn,[g("div",HKn,[e[524]||(e[524]=g("label",{for:"start_ai_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Start AI Header Template ",-1)),te(g("input",{type:"text",id:"start_ai_header_id_template","onUpdate:modelValue":e[71]||(e[71]=T=>o.configFile.start_ai_header_id_template=T),onChange:e[72]||(e[72]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.start_ai_header_id_template]])]),g("div",VKn,[e[525]||(e[525]=g("label",{for:"end_ai_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End AI Header Template ",-1)),te(g("input",{type:"text",id:"end_ai_header_id_template","onUpdate:modelValue":e[73]||(e[73]=T=>o.configFile.end_ai_header_id_template=T),onChange:e[74]||(e[74]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_ai_header_id_template]])])]),g("div",FKn,[g("div",BKn,[e[526]||(e[526]=g("label",{for:"end_user_message_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End User Message Template ",-1)),te(g("input",{type:"text",id:"end_user_message_id_template","onUpdate:modelValue":e[75]||(e[75]=T=>o.configFile.end_user_message_id_template=T),onChange:e[76]||(e[76]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_user_message_id_template]])]),g("div",$Kn,[e[527]||(e[527]=g("label",{for:"end_ai_message_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End AI Message Template ",-1)),te(g("input",{type:"text",id:"end_ai_message_id_template","onUpdate:modelValue":e[77]||(e[77]=T=>o.configFile.end_ai_message_id_template=T),onChange:e[78]||(e[78]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_ai_message_id_template]])])]),g("div",UKn,[e[528]||(e[528]=g("label",{for:"separator_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Separator Template ",-1)),te(g("textarea",{id:"separator_template","onUpdate:modelValue":e[79]||(e[79]=T=>o.configFile.separator_template=T),onChange:e[80]||(e[80]=T=>i.settingsChanged=!0),class:"w-full h-24 rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"}," ",544),[[Ne,o.configFile.separator_template]])]),g("div",GKn,[e[529]||(e[529]=g("label",{for:"system_message_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," System Template ",-1)),te(g("input",{type:"text",id:"system_message_template","onUpdate:modelValue":e[81]||(e[81]=T=>o.configFile.system_message_template=T),onChange:e[82]||(e[82]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.system_message_template]])]),g("div",qKn,[e[530]||(e[530]=g("label",{class:"text-sm font-semibold text-gray-700 dark:text-gray-300"},"Full Template Preview",-1)),g("div",zKn,[g("div",{innerHTML:o.full_template},null,8,jKn)])]),g("div",WKn,[e[532]||(e[532]=g("label",{for:"use_continue_message",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Use Continue Message ",-1)),g("div",YKn,[te(g("input",{type:"checkbox",id:"use_continue_message","onUpdate:modelValue":e[83]||(e[83]=T=>o.configFile.use_continue_message=T),onChange:e[84]||(e[84]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"},null,544),[[at,o.configFile.use_continue_message]]),e[531]||(e[531]=g("label",{for:"use_continue_message",class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),_:1}),ae(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",KKn,[g("div",ZKn,[e[533]||(e[533]=g("label",{for:"user_name",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," User Name ",-1)),te(g("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[85]||(e[85]=T=>o.configFile.user_name=T),onChange:e[86]||(e[86]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.user_name]])]),g("div",XKn,[e[534]||(e[534]=g("label",{for:"user_description",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," User Description ",-1)),te(g("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[87]||(e[87]=T=>o.configFile.user_description=T),onChange:e[88]||(e[88]=T=>i.settingsChanged=!0),class:"flex-1 h-[300px] px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white resize-none"},null,544),[[Ne,o.configFile.user_description]])]),g("div",JKn,[g("div",eZn,[e[538]||(e[538]=g("label",{class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," Discussion Settings ",-1)),g("div",tZn,[g("label",nZn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[89]||(e[89]=T=>o.configFile.use_user_informations_in_discussion=T),onChange:e[90]||(e[90]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.use_user_informations_in_discussion]]),e[535]||(e[535]=g("span",{class:"text-sm text-gray-700 dark:text-gray-200"},"Use user description in discussion",-1))]),g("label",rZn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[91]||(e[91]=T=>o.configFile.use_model_name_in_discussions=T),onChange:e[92]||(e[92]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.use_model_name_in_discussions]]),e[536]||(e[536]=g("span",{class:"text-sm text-gray-700 dark:text-gray-200"},"Use model name in discussion",-1))]),g("label",iZn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[93]||(e[93]=T=>o.configFile.use_user_name_in_discussions=T),onChange:e[94]||(e[94]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.use_user_name_in_discussions]]),e[537]||(e[537]=g("span",{class:"text-sm text-gray-700 dark:text-gray-200"},"Use User Name in discussions",-1))])])])]),g("div",oZn,[e[540]||(e[540]=g("label",{class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," User Avatar ",-1)),g("div",sZn,[g("label",aZn,[g("img",{src:o.configFile.user_avatar!=null&&o.configFile.user_avatar!=""?"/user_infos/"+o.configFile.user_avatar:i.storeLogo,class:"w-16 h-16 rounded-full object-cover border-2 border-gray-300 hover:border-blue-500"},null,8,lZn)]),g("input",{type:"file",id:"avatar-upload",class:"hidden",onChange:e[95]||(e[95]=(...T)=>o.uploadAvatar&&o.uploadAvatar(...T))},null,32),g("button",{onClick:e[96]||(e[96]=ge(T=>o.resetAvatar(),["stop"])),class:"p-2 text-gray-500 hover:text-red-500 transition-colors duration-200",title:"Remove avatar"},e[539]||(e[539]=[g("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]))])]),g("div",cZn,[g("div",uZn,[e[541]||(e[541]=g("label",{for:"max_n_predict",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," Maximum Token Space ",-1)),te(g("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[97]||(e[97]=T=>o.configFile.max_n_predict=T),onChange:e[98]||(e[98]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.max_n_predict]])]),g("div",dZn,[e[542]||(e[542]=g("label",{for:"min_n_predict",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," Minimum Token Space ",-1)),te(g("input",{type:"number",id:"min_n_predict",required:"","onUpdate:modelValue":e[99]||(e[99]=T=>o.configFile.min_n_predict=T),onChange:e[100]||(e[100]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.min_n_predict]])])])])]),_:1}),ae(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",fZn,[g("div",pZn,[e[543]||(e[543]=g("label",{for:"turn_on_code_execution",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Turn on code execution ",-1)),g("div",hZn,[te(g("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[101]||(e[101]=T=>o.configFile.turn_on_code_execution=T),onChange:e[102]||(e[102]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_code_execution]])])]),g("div",TZn,[e[544]||(e[544]=g("label",{for:"turn_on_code_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"},[nt(" Turn on code validation "),g("span",{class:"block text-xs text-gray-500 dark:text-gray-400"},"Very recommended for security reasons")],-1)),g("div",mZn,[te(g("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[103]||(e[103]=T=>o.configFile.turn_on_code_validation=T),onChange:e[104]||(e[104]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_code_validation]])])]),g("div",gZn,[e[545]||(e[545]=g("label",{for:"turn_on_setting_update_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"},[nt(" Turn on apply settings validation "),g("span",{class:"block text-xs text-gray-500 dark:text-gray-400"},"Very recommended for security reasons")],-1)),g("div",_Zn,[te(g("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[105]||(e[105]=T=>o.configFile.turn_on_setting_update_validation=T),onChange:e[106]||(e[106]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_setting_update_validation]])])]),g("div",QZn,[e[546]||(e[546]=g("label",{for:"turn_on_open_file_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Turn on open file/folder validation ",-1)),g("div",vZn,[te(g("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[107]||(e[107]=T=>o.configFile.turn_on_open_file_validation=T),onChange:e[108]||(e[108]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_open_file_validation]])])]),g("div",yZn,[e[547]||(e[547]=g("label",{for:"turn_on_send_file_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Turn on send file validation ",-1)),g("div",bZn,[te(g("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[109]||(e[109]=T=>o.configFile.turn_on_send_file_validation=T),onChange:e[110]||(e[110]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_send_file_validation]])])])])]),_:1}),ae(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",EZn,[g("div",xZn,[e[549]||(e[549]=g("label",{for:"activate_skills_lib",class:"text-sm font-bold text-gray-900 dark:text-white min-w-[200px]"}," Activate Skills library: ",-1)),g("div",SZn,[g("label",LZn,[te(g("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[111]||(e[111]=T=>o.configFile.activate_skills_lib=T),onChange:e[112]||(e[112]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_skills_lib]]),e[548]||(e[548]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",CZn,[e[550]||(e[550]=g("label",{for:"skills_lib_database_name",class:"text-sm font-bold text-gray-900 dark:text-white min-w-[200px]"}," Skills library database name: ",-1)),g("div",AZn,[te(g("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[113]||(e[113]=T=>o.configFile.skills_lib_database_name=T),onChange:e[114]||(e[114]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-blue-500 dark:focus:border-blue-500 text-gray-900 dark:text-white transition-colors duration-200",placeholder:"Enter database name"},null,544),[[Ne,o.configFile.skills_lib_database_name]])])])])]),_:1}),ae(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",wZn,[g("div",MZn,[e[551]||(e[551]=g("div",{class:"min-w-[200px]"},[g("label",{for:"pdf_latex_path",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200"}," PDF LaTeX Path: ")],-1)),g("div",OZn,[te(g("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[115]||(e[115]=T=>o.configFile.pdf_latex_path=T),onChange:e[116]||(e[116]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 text-sm bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:text-white dark:placeholder-gray-400 transition-colors duration-200",placeholder:"Enter PDF LaTeX path..."},null,544),[[Ne,o.configFile.pdf_latex_path]])])])])]),_:1}),ae(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",RZn,[g("div",NZn,[g("div",DZn,[e[552]||(e[552]=g("label",{for:"positive_boost",class:"text-sm font-bold text-gray-700 dark:text-gray-200"}," Positive Boost ",-1)),g("div",IZn,[te(g("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[117]||(e[117]=T=>o.configFile.positive_boost=T),onChange:e[118]||(e[118]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white transition-all duration-200"},null,544),[[Ne,o.configFile.positive_boost]])])])]),g("div",kZn,[g("div",PZn,[e[553]||(e[553]=g("label",{for:"negative_boost",class:"text-sm font-bold text-gray-700 dark:text-gray-200"}," Negative Boost ",-1)),g("div",HZn,[te(g("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[119]||(e[119]=T=>o.configFile.negative_boost=T),onChange:e[120]||(e[120]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white transition-all duration-200"},null,544),[[Ne,o.configFile.negative_boost]])])])]),g("div",VZn,[g("div",FZn,[e[555]||(e[555]=g("label",{for:"fun_mode",class:"text-sm font-bold text-gray-700 dark:text-gray-200"}," Fun Mode ",-1)),g("div",BZn,[g("label",$Zn,[te(g("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[121]||(e[121]=T=>o.configFile.fun_mode=T),onChange:e[122]||(e[122]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.fun_mode]]),e[554]||(e[554]=g("div",{class:"relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])])])])]),_:1})])],2)]),g("div",UZn,[g("div",GZn,[g("button",{onClick:e[123]||(e[123]=ge(T=>i.data_conf_collapsed=!i.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[556]||(e[556]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.data_conf_collapsed]]),te(g("div",null,e[557]||(e[557]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.data_conf_collapsed]]),e[558]||(e[558]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),g("div",{class:We([{hidden:i.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[ae(a,{title:"Data Lakes",is_subcard:!0,class:"p-4 m-2"},{default:Be(()=>[g("div",qZn,[e[570]||(e[570]=g("div",{class:"flex items-center mb-4"},[g("h3",{class:"text-lg font-semibold dark:text-white"},"Data Lakes Configuration")],-1)),g("div",zZn,[(k(!0),P(ze,null,lt(o.configFile.datalakes,(T,Q)=>(k(),P("div",{key:Q,class:"p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},[g("div",jZn,[g("div",WZn,[e[559]||(e[559]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Data Lake Alias",-1)),g("input",{type:"text",value:o.getDataLakeAlias(Q),onInput:_=>o.updateAlias(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter alias"},null,40,YZn)]),g("div",KZn,[e[561]||(e[561]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Type",-1)),g("select",{required:"",value:o.getDataLakeType(Q),onInput:_=>o.updateDatabaseType(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},e[560]||(e[560]=[g("option",{value:"lollmsvectordb"},"Lollms VectorDB Folder",-1),g("option",{value:"lightrag"},"Light Rag",-1),g("option",{value:"elasticdsearch"},"Elastic Search",-1)]),40,ZZn)]),g("div",XZn,[g("label",JZn,ue(T.type==="lightrag"?"DataLake URL":"DataLake Path"),1),T.type==="lightrag"?(k(),P("input",{key:0,type:"text",value:o.getDataLakeUrl(Q),onInput:_=>o.updateDataLakeUrl(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter DataLake URL"},null,40,eXn)):ie("",!0),T.type==="lollmsvectordb"?(k(),P("input",{key:1,type:"text",value:o.getDataLakePath(Q),onInput:_=>o.updateDataLakePath(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter DataLake Path"},null,40,tXn)):ie("",!0)]),T.type==="lightrag"?(k(),P("div",nXn,[e[562]||(e[562]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"API Key",-1)),g("input",{type:"text",value:o.getDataLakeKey(Q),onInput:_=>o.updateDatabaseKey(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter API key"},null,40,rXn)])):ie("",!0)]),g("div",iXn,[g("div",oXn,[g("div",sXn,[e[564]||(e[564]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200 mr-4"},"Mounted",-1)),g("div",aXn,[te(g("input",{type:"checkbox","onUpdate:modelValue":_=>o.configFile.datalakes[Q].mounted=_,onChange:e[124]||(e[124]=_=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,40,lXn),[[at,o.configFile.datalakes[Q].mounted]]),e[563]||(e[563]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),T.type==="lollmsvectordb"?(k(),P("div",cXn,[g("button",{onClick:_=>o.vectorize_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 focus:ring-2 focus:ring-offset-2 focus:ring-green-500",title:"Vectorize or re-vectorize the selected folder"},e[565]||(e[565]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),nt(" Vectorize ")]),8,uXn),g("button",{onClick:_=>o.lollms_vectordb_select_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Select a folder as data source"},e[566]||(e[566]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),nt(" Select Folder ")]),8,dXn)])):ie("",!0),g("div",fXn,[g("input",{type:"file",ref_for:!0,ref:"fileInput",onChange:e[125]||(e[125]=(..._)=>o.handleFileUpload&&o.handleFileUpload(..._)),accept:".pdf,.txt,.doc,.docx,.csv,.md",class:"hidden",multiple:""},null,544),g("button",{onClick:e[126]||(e[126]=(..._)=>o.triggerFileInput&&o.triggerFileInput(..._)),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 focus:ring-2 focus:ring-offset-2 focus:ring-green-500"},e[567]||(e[567]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1),nt(" Upload Files ")]))])]),g("button",{onClick:_=>o.removeDataLake(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-red-600 rounded-md hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500"},e[568]||(e[568]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),nt(" Remove Data Lake ")]),8,pXn)])]))),128))]),g("button",{onClick:e[127]||(e[127]=(...T)=>o.addDataLake&&o.addDataLake(...T)),class:"inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[569]||(e[569]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),nt(" Add New Data Lake ")]))])]),_:1}),ae(a,{title:"Data Servers",is_subcard:!0,class:"p-4 m-2"},{default:Be(()=>[g("div",hXn,[e[585]||(e[585]=g("div",{class:"flex items-center mb-4"},[g("h3",{class:"text-lg font-semibold dark:text-white"},"Database Servers")],-1)),g("div",TXn,[(k(!0),P(ze,null,lt(o.configFile.rag_local_services,(T,Q)=>(k(),P("div",{key:Q,class:"p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},[g("div",mXn,[g("div",gXn,[e[571]||(e[571]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Database Alias",-1)),g("input",{type:"text",value:o.getServedDatabaseAlias(Q),onInput:_=>o.updateAlias(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter alias"},null,40,_Xn)]),g("div",QXn,[e[573]||(e[573]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Type",-1)),g("select",{required:"",value:o.getServedDatabaseType(Q),onInput:_=>o.updateDatabaseType(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},e[572]||(e[572]=[g("option",{value:"lightrag"},"Light Rag",-1),g("option",{value:"elasticdsearch"},"Elastic Search",-1)]),40,vXn)]),g("div",yXn,[e[574]||(e[574]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Database URL",-1)),g("input",{type:"text",value:o.getServedDatabaseUrl(Q),onInput:_=>o.updateDataLakeUrl(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter database URL"},null,40,bXn)]),g("div",EXn,[e[575]||(e[575]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"API Key",-1)),g("input",{type:"text",value:o.getServedDatabaseKey(Q),onInput:_=>o.updateDatabaseKey(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter API key"},null,40,xXn)]),g("div",SXn,[e[576]||(e[576]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Input folder",-1)),te(g("input",{type:"text","onUpdate:modelValue":_=>o.configFile.rag_local_services[Q].input_path=_,onChange:e[128]||(e[128]=_=>i.settingsChanged=!0),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Input folder"},null,40,LXn),[[Ne,o.configFile.rag_local_services[Q].input_path]])]),g("div",CXn,[e[577]||(e[577]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Input folder",-1)),te(g("input",{type:"text","onUpdate:modelValue":_=>o.configFile.rag_local_services[Q].working_path=_,onChange:e[129]||(e[129]=_=>i.settingsChanged=!0),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Output folder"},null,40,AXn),[[Ne,o.configFile.rag_local_services[Q].working_path]])])]),g("div",wXn,[g("div",MXn,[g("div",OXn,[e[579]||(e[579]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200 mr-4"},"Start at Startup",-1)),g("div",RXn,[te(g("input",{type:"checkbox","onUpdate:modelValue":_=>o.configFile.rag_local_services[Q].start_at_startup=_,onChange:e[130]||(e[130]=_=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,40,NXn),[[at,o.configFile.rag_local_services[Q].start_at_startup]]),e[578]||(e[578]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("input",{type:"file",ref_for:!0,ref:"fileInput",onChange:e[131]||(e[131]=(..._)=>o.handleFileUpload&&o.handleFileUpload(..._)),accept:".pdf,.txt,.doc,.docx,.csv,.md",class:"hidden",multiple:""},null,544),g("button",{onClick:e[132]||(e[132]=(..._)=>o.triggerFileInput&&o.triggerFileInput(..._)),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 focus:ring-2 focus:ring-offset-2 focus:ring-green-500"},e[580]||(e[580]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1),nt(" Upload Files ")]))]),g("button",{onClick:_=>o.lightrag_select_input_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Select a folder as data source"},e[581]||(e[581]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),nt(" Select input Folder ")]),8,DXn),g("button",{onClick:_=>o.lightrag_select_output_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Select a folder as data source"},e[582]||(e[582]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),nt(" Select work Folder ")]),8,IXn),g("button",{onClick:_=>o.removeServedDataBase(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-red-600 rounded-md hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500"},e[583]||(e[583]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),nt(" Remove Database ")]),8,kXn)])]))),128))]),g("button",{onClick:e[133]||(e[133]=(...T)=>o.addDatabaseService&&o.addDatabaseService(...T)),class:"inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[584]||(e[584]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),nt(" Add New Database Server ")]))])]),_:1}),ae(a,{title:"LollmsVectordb Configuration",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",PXn,[g("div",HXn,[e[587]||(e[587]=g("label",{for:"rag_vectorizer",class:"text-sm font-bold w-64"},"RAG Vectorizer:",-1)),te(g("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[134]||(e[134]=T=>o.configFile.rag_vectorizer=T),onChange:e[135]||(e[135]=T=>i.settingsChanged=!0),class:"flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},e[586]||(e[586]=[g("option",{value:"semantic"},"Semantic Vectorizer",-1),g("option",{value:"tfidf"},"TFIDF Vectorizer",-1),g("option",{value:"openai"},"OpenAI Vectorizer",-1),g("option",{value:"ollama"},"Ollama Vectorizer",-1)]),544),[[hn,o.configFile.rag_vectorizer]])]),g("div",VXn,[e[588]||(e[588]=g("label",{class:"text-sm font-bold w-64"},"Allow executing remote code:",-1)),g("div",FXn,[g("label",BXn,[te(g("input",{"onUpdate:modelValue":e[136]||(e[136]=T=>o.configFile.rag_vectorizer_execute_remote_code=T),type:"checkbox",onChange:e[137]||(e[137]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.rag_vectorizer_execute_remote_code]])])])]),g("div",$Xn,[e[592]||(e[592]=g("label",{class:"text-sm font-bold w-64 pt-2"},"RAG Vectorizer model:",-1)),g("div",UXn,[te(g("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[138]||(e[138]=T=>o.configFile.rag_vectorizer_model=T),onChange:e[139]||(e[139]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500",disabled:o.configFile.rag_vectorizer==="tfidf"},[o.configFile.rag_vectorizer==="semantic"?(k(),P("optgroup",qXn,e[589]||(e[589]=[g("option",{value:"BAAI/bge-m3"},"BAAI/bge-m3",-1),g("option",{value:"nvidia/NV-Embed-v2"},"nvidia/NV-Embed-v2",-1),g("option",{value:"sentence-transformers/all-MiniLM-L6-v2"},"sentence-transformers/all-MiniLM-L6-v2",-1),g("option",{value:"sentence-transformers/all-MiniLM-L12-v2"},"sentence-transformers/all-MiniLM-L12-v2",-1),g("option",{value:"sentence-transformers/all-distilroberta-v1"},"sentence-transformers/all-distilroberta-v1",-1),g("option",{value:"sentence-transformers/all-mpnet-base-v2"},"sentence-transformers/all-mpnet-base-v2",-1)]))):ie("",!0),o.configFile.rag_vectorizer==="openai"?(k(),P("optgroup",zXn,e[590]||(e[590]=[g("option",{value:"text-embedding-ada-002"},"text-embedding-ada-002",-1),g("option",{value:"text-embedding-babbage-001"},"text-embedding-babbage-001",-1),g("option",{value:"text-embedding-curie-001"},"text-embedding-curie-001",-1),g("option",{value:"text-embedding-davinci-001"},"text-embedding-davinci-001",-1)]))):ie("",!0),o.configFile.rag_vectorizer==="ollama"?(k(),P("optgroup",jXn,e[591]||(e[591]=[g("option",{value:"bge-m3"},"bge-m3",-1),g("option",{value:"NV-Embed-v2"},"nvidia/NV-Embed-v2",-1),g("option",{value:"nomic-embed-text"},"nomic-embed-text",-1),g("option",{value:"mxbai-embed-large"},"mxbai-embed-large",-1),g("option",{value:"snowflake-arctic-embed"},"snowflake-arctic-embed",-1),g("option",{value:"all-minilm"},"all-minilm",-1),g("option",{value:"bge-large"},"bge-large",-1)]))):ie("",!0),o.configFile.rag_vectorizer==="tfidf"?(k(),P("option",WXn,"No models available for TFIDF")):ie("",!0)],40,GXn),[[hn,o.configFile.rag_vectorizer_model]]),te(g("input",{"onUpdate:modelValue":e[140]||(e[140]=T=>o.configFile.rag_vectorizer_model=T),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},null,512),[[Ne,o.configFile.rag_vectorizer_model]])])]),g("div",YXn,[e[593]||(e[593]=g("label",{class:"text-sm font-bold w-64 pt-2"},"RAG server address:",-1)),o.configFile.rag_vectorizer==="ollama"?te((k(),P("input",{key:0,"onUpdate:modelValue":e[141]||(e[141]=T=>o.configFile.rag_service_url=T),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},null,512)),[[Ne,o.configFile.rag_service_url]]):ie("",!0)]),g("div",KXn,[g("div",ZXn,[e[594]||(e[594]=g("label",{class:"text-sm font-bold w-64"},"RAG chunk size:",-1)),g("div",XXn,[te(g("input",{id:"rag_chunk_size","onUpdate:modelValue":e[142]||(e[142]=T=>o.configFile.rag_chunk_size=T),onChange:e[143]||(e[143]=T=>i.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.rag_chunk_size]]),te(g("input",{"onUpdate:modelValue":e[144]||(e[144]=T=>o.configFile.rag_chunk_size=T),type:"number",onChange:e[145]||(e[145]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},null,544),[[Ne,o.configFile.rag_chunk_size]])])])]),g("div",JXn,[g("div",eJn,[e[595]||(e[595]=g("label",{class:"text-sm font-bold w-64"},"Clean chunks:",-1)),g("div",tJn,[g("label",nJn,[te(g("input",{"onUpdate:modelValue":e[146]||(e[146]=T=>o.configFile.rag_clean_chunks=T),type:"checkbox",onChange:e[147]||(e[147]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.rag_clean_chunks]])])])])])])]),_:1}),ae(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",rJn,[g("div",iJn,[e[597]||(e[597]=g("div",{class:"flex-grow"},[g("label",{for:"rag_build_keys_words",class:"font-medium text-gray-700 dark:text-gray-200"},[nt(" Reformulate prompt before querying database "),g("span",{class:"text-sm text-gray-500 dark:text-gray-400 block mt-1"}," (Recommended for better search results) ")])],-1)),g("div",oJn,[g("label",sJn,[te(g("input",{type:"checkbox",id:"rag_build_keys_words","onUpdate:modelValue":e[148]||(e[148]=T=>o.configFile.rag_build_keys_words=T),onChange:e[149]||(e[149]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.rag_build_keys_words]]),e[596]||(e[596]=g("div",{class:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",aJn,[e[599]||(e[599]=g("div",{class:"flex-grow"},[g("label",{for:"rag_put_chunk_informations_into_context",class:"font-medium text-gray-700 dark:text-gray-200"}," Put Chunk Information Into Context ")],-1)),g("div",lJn,[g("label",cJn,[te(g("input",{type:"checkbox",id:"rag_put_chunk_informations_into_context","onUpdate:modelValue":e[150]||(e[150]=T=>o.configFile.rag_put_chunk_informations_into_context=T),onChange:e[151]||(e[151]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.rag_put_chunk_informations_into_context]]),e[598]||(e[598]=g("div",{class:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",uJn,[e[601]||(e[601]=g("div",{class:"flex-grow"},[g("label",{for:"data_vectorization_save_db",class:"font-medium text-gray-700 dark:text-gray-200"},[nt(" Save new files to database "),g("span",{class:"text-sm text-gray-500 dark:text-gray-400 block mt-1"}," Database will persist and grow across sessions ")])],-1)),g("div",dJn,[g("label",fJn,[te(g("input",{type:"checkbox",id:"data_vectorization_save_db","onUpdate:modelValue":e[152]||(e[152]=T=>o.configFile.data_vectorization_save_db=T),onChange:e[153]||(e[153]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.data_vectorization_save_db]]),e[600]||(e[600]=g("div",{class:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])])])]),_:1})],2)]),g("div",pJn,[g("div",hJn,[g("button",{onClick:e[154]||(e[154]=ge(T=>i.internet_conf_collapsed=!i.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[602]||(e[602]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.internet_conf_collapsed]]),te(g("div",null,e[603]||(e[603]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.internet_conf_collapsed]]),e[604]||(e[604]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),g("div",{class:We([{hidden:i.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[ae(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",TJn,[g("div",mJn,[e[606]||(e[606]=g("label",{for:"activate_internet_search",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate automatic internet search ",-1)),g("label",gJn,[te(g("input",{type:"checkbox",id:"fun_mode","onUpdate:modelValue":e[155]||(e[155]=T=>o.configFile.activate_internet_search=T),onChange:e[156]||(e[156]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_internet_search]]),e[605]||(e[605]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",_Jn,[e[608]||(e[608]=g("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate internet pages judgement ",-1)),g("label",QJn,[te(g("input",{type:"checkbox",id:"activate_internet_pages_judgement","onUpdate:modelValue":e[157]||(e[157]=T=>o.configFile.activate_internet_pages_judgement=T),onChange:e[158]||(e[158]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_internet_pages_judgement]]),e[607]||(e[607]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",vJn,[e[610]||(e[610]=g("label",{for:"internet_quick_search",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate quick search ",-1)),g("label",yJn,[te(g("input",{type:"checkbox",id:"internet_quick_search","onUpdate:modelValue":e[159]||(e[159]=T=>o.configFile.internet_quick_search=T),onChange:e[160]||(e[160]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.internet_quick_search]]),e[609]||(e[609]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",bJn,[e[612]||(e[612]=g("label",{for:"internet_activate_search_decision",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate search decision ",-1)),g("label",EJn,[te(g("input",{type:"checkbox",id:"internet_activate_search_decision","onUpdate:modelValue":e[161]||(e[161]=T=>o.configFile.internet_activate_search_decision=T),onChange:e[162]||(e[162]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.internet_activate_search_decision]]),e[611]||(e[611]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",xJn,[g("div",SJn,[e[613]||(e[613]=g("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet vectorization chunk size ",-1)),g("div",LJn,[te(g("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[163]||(e[163]=T=>o.configFile.internet_vectorization_chunk_size=T),onChange:e[164]||(e[164]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_vectorization_chunk_size]]),te(g("input",{"onUpdate:modelValue":e[165]||(e[165]=T=>o.configFile.internet_vectorization_chunk_size=T),type:"number",onChange:e[166]||(e[166]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_vectorization_chunk_size]])])]),g("div",CJn,[e[614]||(e[614]=g("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet vectorization overlap size ",-1)),g("div",AJn,[te(g("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[167]||(e[167]=T=>o.configFile.internet_vectorization_overlap_size=T),onChange:e[168]||(e[168]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_vectorization_overlap_size]]),te(g("input",{"onUpdate:modelValue":e[169]||(e[169]=T=>o.configFile.internet_vectorization_overlap_size=T),type:"number",onChange:e[170]||(e[170]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_vectorization_overlap_size]])])]),g("div",wJn,[e[615]||(e[615]=g("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet vectorization number of chunks ",-1)),g("div",MJn,[te(g("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[171]||(e[171]=T=>o.configFile.internet_vectorization_nb_chunks=T),onChange:e[172]||(e[172]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_vectorization_nb_chunks]]),te(g("input",{"onUpdate:modelValue":e[173]||(e[173]=T=>o.configFile.internet_vectorization_nb_chunks=T),type:"number",onChange:e[174]||(e[174]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_vectorization_nb_chunks]])])]),g("div",OJn,[e[616]||(e[616]=g("label",{for:"internet_nb_search_pages",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet number of search pages ",-1)),g("div",RJn,[te(g("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[175]||(e[175]=T=>o.configFile.internet_nb_search_pages=T),onChange:e[176]||(e[176]=T=>i.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_nb_search_pages]]),te(g("input",{"onUpdate:modelValue":e[177]||(e[177]=T=>o.configFile.internet_nb_search_pages=T),type:"number",onChange:e[178]||(e[178]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),g("div",NJn,[g("div",DJn,[g("button",{onClick:e[179]||(e[179]=ge(T=>i.servers_conf_collapsed=!i.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[617]||(e[617]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.servers_conf_collapsed]]),te(g("div",null,e[618]||(e[618]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.servers_conf_collapsed]]),e[619]||(e[619]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),g("div",{class:We([{hidden:i.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[ae(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",IJn,[g("div",kJn,[e[621]||(e[621]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_tts_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to speech engine"}," Active TTS Service ")],-1)),g("div",PJn,[te(g("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[180]||(e[180]=T=>o.configFile.active_tts_service=T),onChange:e[181]||(e[181]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[620]||(e[620]=[g("option",{value:"None"},"None",-1),g("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),g("option",{value:"xtts"},"XTTS",-1),g("option",{value:"parler-tts"},"Parler-TTS",-1),g("option",{value:"openai_tts"},"Open AI TTS",-1),g("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),g("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[hn,o.configFile.active_tts_service]])])]),g("div",HJn,[e[623]||(e[623]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_stt_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Speech to Text engine"}," Active STT Service ")],-1)),g("div",VJn,[te(g("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[182]||(e[182]=T=>o.configFile.active_stt_service=T),onChange:e[183]||(e[183]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[622]||(e[622]=[g("option",{value:"None"},"None",-1),g("option",{value:"whisper"},"Whisper",-1),g("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[hn,o.configFile.active_stt_service]])])]),g("div",FJn,[e[625]||(e[625]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_tti_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to image engine"}," Active TTI Service ")],-1)),g("div",BJn,[te(g("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[184]||(e[184]=T=>o.configFile.active_tti_service=T),onChange:e[185]||(e[185]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[624]||(e[624]=[g("option",{value:"None"},"None",-1),g("option",{value:"diffusers"},"Diffusers",-1),g("option",{value:"diffusers_client"},"Diffusers Client",-1),g("option",{value:"autosd"},"AUTO1111's SD",-1),g("option",{value:"dall-e"},"Open AI DALL-E",-1),g("option",{value:"midjourney"},"Midjourney",-1),g("option",{value:"comfyui"},"Comfyui",-1),g("option",{value:"fooocus"},"Fooocus",-1)]),544),[[hn,o.configFile.active_tti_service]])])]),g("div",$Jn,[e[627]||(e[627]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_ttm_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to Music engine"}," Active TTM Service ")],-1)),g("div",UJn,[te(g("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[186]||(e[186]=T=>o.configFile.active_ttm_service=T),onChange:e[187]||(e[187]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[626]||(e[626]=[g("option",{value:"None"},"None",-1),g("option",{value:"musicgen"},"Music Gen",-1)]),544),[[hn,o.configFile.active_ttm_service]])])]),g("div",GJn,[e[629]||(e[629]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_ttv_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to Video engine"}," Active TTV Service ")],-1)),g("div",qJn,[te(g("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[188]||(e[188]=T=>o.configFile.active_ttv_service=T),onChange:e[189]||(e[189]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[628]||(e[628]=[g("option",{value:"None"},"None",-1),g("option",{value:"cog_video_x"},"Cog Video X",-1),g("option",{value:"diffusers"},"Diffusers",-1),g("option",{value:"lumalab"},"Lumalab",-1)]),544),[[hn,o.configFile.active_ttv_service]])])])])]),_:1}),ae(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",zJn,[g("div",jJn,[e[631]||(e[631]=g("div",{class:"w-1/3"},[g("label",{for:"use_negative_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Use negative prompt ")],-1)),g("div",WJn,[g("label",YJn,[te(g("input",{type:"checkbox",id:"use_negative_prompt","onUpdate:modelValue":e[190]||(e[190]=T=>o.configFile.use_negative_prompt=T),onChange:e[191]||(e[191]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.use_negative_prompt]]),e[630]||(e[630]=g("div",{class:"relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",KJn,[e[633]||(e[633]=g("div",{class:"w-1/3"},[g("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Use AI generated negative prompt ")],-1)),g("div",ZJn,[g("label",XJn,[te(g("input",{type:"checkbox",id:"use_ai_generated_negative_prompt","onUpdate:modelValue":e[192]||(e[192]=T=>o.configFile.use_ai_generated_negative_prompt=T),onChange:e[193]||(e[193]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.use_ai_generated_negative_prompt]]),e[632]||(e[632]=g("div",{class:"relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",JJn,[e[634]||(e[634]=g("div",{class:"w-1/3"},[g("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Negative prompt generation prompt ")],-1)),g("div",eer,[te(g("input",{type:"text",id:"negative_prompt_generation_prompt","onUpdate:modelValue":e[194]||(e[194]=T=>o.configFile.negative_prompt_generation_prompt=T),onChange:e[195]||(e[195]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors duration-200 text-sm text-gray-900 dark:text-white placeholder-gray-400",required:""},null,544),[[Ne,o.configFile.negative_prompt_generation_prompt]])])]),g("div",ter,[e[635]||(e[635]=g("div",{class:"w-1/3"},[g("label",{for:"default_negative_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Default negative prompt ")],-1)),g("div",ner,[te(g("input",{type:"text",id:"default_negative_prompt","onUpdate:modelValue":e[196]||(e[196]=T=>o.configFile.default_negative_prompt=T),onChange:e[197]||(e[197]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors duration-200 text-sm text-gray-900 dark:text-white placeholder-gray-400",required:""},null,544),[[Ne,o.configFile.default_negative_prompt]])])])])]),_:1}),ae(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",rer,[g("div",ier,[e[636]||(e[636]=g("div",{class:"flex items-center"},[g("label",{for:"stt_listening_threshold",class:"font-medium text-gray-700 dark:text-gray-200",title:"Listening threshold"}," Listening threshold "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Controls the sensitivity of voice detection"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[198]||(e[198]=T=>o.configFile.stt_listening_threshold=T),onChange:e[199]||(e[199]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_listening_threshold]])]),g("div",oer,[e[637]||(e[637]=g("div",{class:"flex items-center"},[g("label",{for:"stt_silence_duration",class:"font-medium text-gray-700 dark:text-gray-200"}," Silence duration (s) "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Duration of silence before stopping recording"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[200]||(e[200]=T=>o.configFile.stt_silence_duration=T),onChange:e[201]||(e[201]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_silence_duration]])]),g("div",ser,[e[638]||(e[638]=g("div",{class:"flex items-center"},[g("label",{for:"stt_sound_threshold_percentage",class:"font-medium text-gray-700 dark:text-gray-200"}," Minimum sound percentage "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Minimum required sound percentage in recorded segment"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[202]||(e[202]=T=>o.configFile.stt_sound_threshold_percentage=T),onChange:e[203]||(e[203]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_sound_threshold_percentage]])]),g("div",aer,[e[639]||(e[639]=g("div",{class:"flex items-center"},[g("label",{for:"stt_gain",class:"font-medium text-gray-700 dark:text-gray-200"}," Volume amplification "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Audio input gain adjustment"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[204]||(e[204]=T=>o.configFile.stt_gain=T),onChange:e[205]||(e[205]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_gain]])]),g("div",ler,[e[643]||(e[643]=g("h3",{class:"font-semibold text-gray-900 dark:text-white mb-4"},"Audio Settings",-1)),g("div",cer,[e[640]||(e[640]=g("label",{for:"stt_rate",class:"font-medium text-gray-700 dark:text-gray-200"},"Audio rate",-1)),te(g("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[206]||(e[206]=T=>o.configFile.stt_rate=T),onChange:e[207]||(e[207]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_rate]])]),g("div",uer,[e[641]||(e[641]=g("label",{for:"stt_channels",class:"font-medium text-gray-700 dark:text-gray-200"},"Number of channels",-1)),te(g("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[208]||(e[208]=T=>o.configFile.stt_channels=T),onChange:e[209]||(e[209]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_channels]])]),g("div",der,[e[642]||(e[642]=g("label",{for:"stt_buffer_size",class:"font-medium text-gray-700 dark:text-gray-200"},"Buffer size",-1)),te(g("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[210]||(e[210]=T=>o.configFile.stt_buffer_size=T),onChange:e[211]||(e[211]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_buffer_size]])])]),g("div",fer,[e[647]||(e[647]=g("h3",{class:"font-semibold text-gray-900 dark:text-white mb-4"},"Word Detection",-1)),g("div",per,[e[645]||(e[645]=g("label",{for:"stt_activate_word_detection",class:"font-medium text-gray-700 dark:text-gray-200"}," Activate word detection ",-1)),g("div",her,[g("label",Ter,[te(g("input",{type:"checkbox",id:"stt_activate_word_detection","onUpdate:modelValue":e[212]||(e[212]=T=>o.configFile.stt_activate_word_detection=T),onChange:e[213]||(e[213]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.stt_activate_word_detection]]),e[644]||(e[644]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",mer,[e[646]||(e[646]=g("label",{for:"stt_word_detection_file",class:"font-medium text-gray-700 dark:text-gray-200"}," Word detection wav file ",-1)),te(g("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[214]||(e[214]=T=>o.configFile.stt_word_detection_file=T),onChange:e[215]||(e[215]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_word_detection_file]])])])])]),_:1}),ae(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",ger,[g("div",_er,[e[648]||(e[648]=g("div",{class:"md:w-1/3"},[g("label",{for:"stt_input_device",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200",title:"Input device"}," Audio Input Device "),g("p",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"}," Select your microphone or audio input source ")],-1)),g("div",Qer,[te(g("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[216]||(e[216]=T=>o.configFile.stt_input_device=T),onChange:e[217]||(e[217]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-md shadow-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-colors duration-200"},[(k(!0),P(ze,null,lt(i.snd_input_devices,(T,Q)=>(k(),P("option",{key:T,value:i.snd_input_devices_indexes[Q]},ue(T),9,ver))),128))],544),[[hn,o.configFile.stt_input_device]])])]),g("div",yer,[e[649]||(e[649]=g("div",{class:"md:w-1/3"},[g("label",{for:"tts_output_device",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200",title:"Output device"}," Audio Output Device "),g("p",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"}," Select your speakers or audio output device ")],-1)),g("div",ber,[te(g("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[218]||(e[218]=T=>o.configFile.tts_output_device=T),onChange:e[219]||(e[219]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-md shadow-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-colors duration-200"},[(k(!0),P(ze,null,lt(i.snd_output_devices,(T,Q)=>(k(),P("option",{key:T,value:i.snd_output_devices_indexes[Q]},ue(T),9,Eer))),128))],544),[[hn,o.configFile.tts_output_device]])])])])]),_:1}),ae(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",xer,[g("div",Ser,[e[650]||(e[650]=g("label",{for:"host",class:"font-semibold text-gray-700 dark:text-gray-200"},"Host:",-1)),te(g("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[220]||(e[220]=T=>o.configFile.host=T),onChange:e[221]||(e[221]=T=>i.settingsChanged=!0),class:"input-field"},null,544),[[Ne,o.configFile.host]])]),g("div",Ler,[e[651]||(e[651]=g("label",{for:"lollms_access_keys",class:"font-semibold text-gray-700 dark:text-gray-200"},"Access keys:",-1)),ae(l,{modelValue:o.configFile.lollms_access_keys,"onUpdate:modelValue":e[222]||(e[222]=T=>o.configFile.lollms_access_keys=T),onChange:e[223]||(e[223]=T=>i.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])]),g("div",Cer,[e[652]||(e[652]=g("label",{for:"port",class:"font-semibold text-gray-700 dark:text-gray-200"},"Port:",-1)),te(g("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[224]||(e[224]=T=>o.configFile.port=T),onChange:e[225]||(e[225]=T=>i.settingsChanged=!0),class:"input-field"},null,544),[[Ne,o.configFile.port]])]),g("div",Aer,[e[655]||(e[655]=g("span",{class:"font-semibold text-gray-700 dark:text-gray-200"},"Server Configuration:",-1)),g("div",wer,[g("label",Mer,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[226]||(e[226]=T=>o.configFile.headless_server_mode=T),onChange:e[227]||(e[227]=T=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,544),[[at,o.configFile.headless_server_mode]]),e[653]||(e[653]=g("span",{class:"text-sm text-gray-600 dark:text-gray-300"},"Headless Server Mode",-1))]),g("label",Oer,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[228]||(e[228]=T=>o.configFile.activate_lollms_server=T),onChange:e[229]||(e[229]=T=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,544),[[at,o.configFile.activate_lollms_server]]),e[654]||(e[654]=g("span",{class:"text-sm text-gray-600 dark:text-gray-300"},"LoLLMS Server",-1))]),g("div",Rer,[(k(),P(ze,null,lt(["rag","tts","stt","tti","itt","ttm"],T=>g("label",{key:T,class:"flex items-center space-x-2 cursor-pointer"},[te(g("input",{type:"checkbox",id:`activate_lollms_${T}_server`,"onUpdate:modelValue":Q=>o.configFile[`activate_lollms_${T}_server`]=Q,onChange:e[230]||(e[230]=Q=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,40,Ner),[[at,o.configFile[`activate_lollms_${T}_server`]]]),g("span",Der,ue(T.toUpperCase())+" Server",1)])),64))])])]),g("div",Ier,[e[656]||(e[656]=g("span",{class:"font-semibold text-gray-700 dark:text-gray-200"},"Emulators:",-1)),g("div",ker,[(k(),P(ze,null,lt(["ollama","openai","mistralai"],T=>g("label",{key:T,class:"flex items-center space-x-2 cursor-pointer"},[te(g("input",{type:"checkbox",id:`activate_${T}_emulator`,"onUpdate:modelValue":Q=>o.configFile[`activate_${T}_emulator`]=Q,onChange:e[231]||(e[231]=Q=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,40,Per),[[at,o.configFile[`activate_${T}_emulator`]]]),g("span",Her,ue(T.charAt(0).toUpperCase()+T.slice(1))+" Emulator",1)])),64))])])])]),_:1}),ae(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",Ver,[g("div",Fer,[e[658]||(e[658]=g("label",{for:"activate_audio_infos",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Activate audio infos ",-1)),g("label",Ber,[te(g("input",{type:"checkbox",id:"activate_audio_infos","onUpdate:modelValue":e[232]||(e[232]=T=>o.configFile.activate_audio_infos=T),onChange:e[233]||(e[233]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_audio_infos]]),e[657]||(e[657]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",$er,[e[660]||(e[660]=g("label",{for:"audio_auto_send_input",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Send audio input automatically ",-1)),g("label",Uer,[te(g("input",{type:"checkbox",id:"audio_auto_send_input","onUpdate:modelValue":e[234]||(e[234]=T=>o.configFile.audio_auto_send_input=T),onChange:e[235]||(e[235]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.audio_auto_send_input]]),e[659]||(e[659]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",Ger,[g("label",qer," Audio silence timer (ms): "+ue(o.configFile.audio_silenceTimer)+"ms ",1),g("div",zer,[te(g("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[236]||(e[236]=T=>o.configFile.audio_silenceTimer=T),onChange:e[237]||(e[237]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 accent-blue-600"},null,544),[[Ne,o.configFile.audio_silenceTimer]]),te(g("input",{"onUpdate:modelValue":e[238]||(e[238]=T=>o.configFile.audio_silenceTimer=T),onChange:e[239]||(e[239]=T=>i.settingsChanged=!0),type:"number",class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.audio_silenceTimer]])])]),g("div",jer,[e[661]||(e[661]=g("label",{for:"audio_in_language",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Input Audio Language ",-1)),te(g("select",{id:"audio_in_language","onUpdate:modelValue":e[240]||(e[240]=T=>o.configFile.audio_in_language=T),onChange:e[241]||(e[241]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},[(k(!0),P(ze,null,lt(o.audioLanguages,T=>(k(),P("option",{key:T.code,value:T.code},ue(T.name),9,Wer))),128))],544),[[hn,o.configFile.audio_in_language]])])])]),_:1}),ae(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",Yer,[g("div",Ker,[e[663]||(e[663]=g("label",{for:"whisper_activate",class:"text-gray-700 dark:text-gray-200 font-medium"}," Activate Whisper at startup ",-1)),g("label",Zer,[te(g("input",{type:"checkbox",id:"whisper_activate","onUpdate:modelValue":e[242]||(e[242]=T=>o.configFile.whisper_activate=T),onChange:e[243]||(e[243]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.whisper_activate]]),e[662]||(e[662]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",Xer,[g("button",{onClick:e[244]||(e[244]=(...T)=>o.reinstallWhisperService&&o.reinstallWhisperService(...T)),class:"w-full py-3 px-4 bg-gradient-to-r from-green-400 to-green-500 hover:from-green-500 hover:to-green-600 text-white font-medium rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex items-center justify-center space-x-2"},e[664]||(e[664]=[g("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),g("span",null,"Install Whisper",-1)]))]),g("div",Jer,[e[666]||(e[666]=g("label",{for:"whisper_model",class:"block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2"}," Whisper Model ",-1)),g("div",etr,[te(g("select",{id:"whisper_model","onUpdate:modelValue":e[245]||(e[245]=T=>o.configFile.whisper_model=T),onChange:e[246]||(e[246]=T=>i.settingsChanged=!0),class:"block w-full px-4 py-3 text-base border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white appearance-none"},[(k(!0),P(ze,null,lt(o.whisperModels,T=>(k(),P("option",{key:T,value:T},ue(T),9,ttr))),128))],544),[[hn,o.configFile.whisper_model]]),e[665]||(e[665]=g("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 dark:text-gray-300"},[g("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})])],-1))])])])]),_:1}),ae(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",ntr,[g("tr",null,[e[667]||(e[667]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),g("td",null,[g("div",rtr,[te(g("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[247]||(e[247]=T=>o.configFile.openai_whisper_key=T),onChange:e[248]||(e[248]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.openai_whisper_key]])])])]),g("tr",null,[e[668]||(e[668]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),g("td",null,[g("div",itr,[te(g("select",{id:"openai_whisper_model","onUpdate:modelValue":e[249]||(e[249]=T=>o.configFile.openai_whisper_model=T),onChange:e[250]||(e[250]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(k(!0),P(ze,null,lt(o.openaiWhisperModels,T=>(k(),P("option",{key:T,value:T},ue(T),9,otr))),128))],544),[[hn,o.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",str,[g("tr",null,[e[669]||(e[669]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),g("td",null,[g("div",atr,[te(g("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[251]||(e[251]=T=>o.configFile.auto_speak=T),onChange:e[252]||(e[252]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.auto_speak]])])])]),g("tr",null,[e[670]||(e[670]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),g("td",null,[te(g("input",{id:"audio_pitch","onUpdate:modelValue":e[253]||(e[253]=T=>o.configFile.audio_pitch=T),onChange:e[254]||(e[254]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.audio_pitch]]),te(g("input",{"onUpdate:modelValue":e[255]||(e[255]=T=>o.configFile.audio_pitch=T),onChange:e[256]||(e[256]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.audio_pitch]])])]),g("tr",null,[e[671]||(e[671]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),g("td",null,[te(g("select",{id:"audio_out_voice","onUpdate:modelValue":e[257]||(e[257]=T=>o.configFile.audio_out_voice=T),onChange:e[258]||(e[258]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(k(!0),P(ze,null,lt(i.audioVoices,T=>(k(),P("option",{key:T.name,value:T.name},ue(T.name),9,ltr))),128))],544),[[hn,o.configFile.audio_out_voice]])])])])]),_:1}),ae(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",ctr,[g("tr",null,[e[672]||(e[672]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),g("td",null,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[259]||(e[259]=(...T)=>o.reinstallXTTSService&&o.reinstallXTTSService(...T))},"install xtts service")])]),g("tr",null,[e[673]||(e[673]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),g("td",null,[g("div",utr,[te(g("select",{"onUpdate:modelValue":e[260]||(e[260]=T=>o.xtts_current_language=T),onChange:e[261]||(e[261]=T=>i.settingsChanged=!0)},[(k(!0),P(ze,null,lt(i.voice_languages,(T,Q)=>(k(),P("option",{key:Q,value:T},ue(Q),9,dtr))),128))],544),[[hn,o.xtts_current_language]])])])]),g("tr",null,[e[674]||(e[674]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),g("td",null,[g("div",ftr,[te(g("select",{"onUpdate:modelValue":e[262]||(e[262]=T=>o.xtts_current_voice=T),onChange:e[263]||(e[263]=T=>i.settingsChanged=!0)},[(k(!0),P(ze,null,lt(i.voices,T=>(k(),P("option",{key:T,value:T},ue(T),9,ptr))),128))],544),[[hn,o.xtts_current_voice]])])])]),g("tr",null,[e[675]||(e[675]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),g("td",null,[g("div",htr,[te(g("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[264]||(e[264]=T=>o.configFile.xtts_freq=T),onChange:e[265]||(e[265]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[Ne,o.configFile.xtts_freq,void 0,{number:!0}]])])])]),g("tr",null,[e[676]||(e[676]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),g("td",null,[g("div",Ttr,[te(g("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[266]||(e[266]=T=>o.configFile.auto_read=T),onChange:e[267]||(e[267]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.auto_read]])])])]),g("tr",null,[e[677]||(e[677]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),g("td",null,[g("div",mtr,[te(g("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[268]||(e[268]=T=>o.configFile.xtts_stream_chunk_size=T),onChange:e[269]||(e[269]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.xtts_stream_chunk_size]])])])]),g("tr",null,[e[678]||(e[678]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),g("td",null,[g("div",gtr,[te(g("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[270]||(e[270]=T=>o.configFile.xtts_temperature=T),onChange:e[271]||(e[271]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[Ne,o.configFile.xtts_temperature,void 0,{number:!0}]])])])]),g("tr",null,[e[679]||(e[679]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),g("td",null,[g("div",_tr,[te(g("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[272]||(e[272]=T=>o.configFile.xtts_length_penalty=T),onChange:e[273]||(e[273]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[Ne,o.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),g("tr",null,[e[680]||(e[680]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),g("td",null,[g("div",Qtr,[te(g("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[274]||(e[274]=T=>o.configFile.xtts_repetition_penalty=T),onChange:e[275]||(e[275]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[Ne,o.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),g("tr",null,[e[681]||(e[681]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),g("td",null,[g("div",vtr,[te(g("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[276]||(e[276]=T=>o.configFile.xtts_top_k=T),onChange:e[277]||(e[277]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.xtts_top_k,void 0,{number:!0}]])])])]),g("tr",null,[e[682]||(e[682]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),g("td",null,[g("div",ytr,[te(g("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[278]||(e[278]=T=>o.configFile.xtts_top_p=T),onChange:e[279]||(e[279]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.xtts_top_p,void 0,{number:!0}]])])])]),g("tr",null,[e[683]||(e[683]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),g("td",null,[g("div",btr,[te(g("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[280]||(e[280]=T=>o.configFile.xtts_speed=T),onChange:e[281]||(e[281]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[Ne,o.configFile.xtts_speed,void 0,{number:!0}]])])])]),g("tr",null,[e[684]||(e[684]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),g("td",null,[g("div",Etr,[te(g("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[282]||(e[282]=T=>o.configFile.enable_text_splitting=T),onChange:e[283]||(e[283]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_text_splitting]])])])])])]),_:1}),ae(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",xtr,[g("tr",null,[e[685]||(e[685]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),g("td",null,[g("div",Str,[te(g("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[284]||(e[284]=T=>o.configFile.openai_tts_key=T),onChange:e[285]||(e[285]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.openai_tts_key]])])])]),g("tr",null,[e[687]||(e[687]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),g("td",null,[g("div",Ltr,[te(g("select",{"onUpdate:modelValue":e[286]||(e[286]=T=>o.configFile.openai_tts_model=T),onChange:e[287]||(e[287]=T=>i.settingsChanged=!0)},e[686]||(e[686]=[g("option",null," tts-1 ",-1),g("option",null," tts-2 ",-1)]),544),[[hn,o.configFile.openai_tts_model]])])])]),g("tr",null,[e[689]||(e[689]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),g("td",null,[g("div",Ctr,[te(g("select",{"onUpdate:modelValue":e[288]||(e[288]=T=>o.configFile.openai_tts_voice=T),onChange:e[289]||(e[289]=T=>i.settingsChanged=!0)},e[688]||(e[688]=[g("option",null," alloy ",-1),g("option",null," echo ",-1),g("option",null," fable ",-1),g("option",null," nova ",-1),g("option",null," shimmer ",-1)]),544),[[hn,o.configFile.openai_tts_voice]])])])])])]),_:1}),ae(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Atr,[g("tr",null,[e[690]||(e[690]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),g("td",null,[g("div",wtr,[te(g("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[290]||(e[290]=T=>o.configFile.elevenlabs_tts_key=T),onChange:e[291]||(e[291]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.elevenlabs_tts_key]])])])]),g("tr",null,[e[691]||(e[691]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),g("td",null,[g("div",Mtr,[te(g("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[292]||(e[292]=T=>o.configFile.elevenlabs_tts_model_id=T),onChange:e[293]||(e[293]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.elevenlabs_tts_model_id]])])])]),g("tr",null,[e[692]||(e[692]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),g("td",null,[g("div",Otr,[te(g("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[294]||(e[294]=T=>o.configFile.elevenlabs_tts_voice_stability=T),onChange:e[295]||(e[295]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[Ne,o.configFile.elevenlabs_tts_voice_stability]])])])]),g("tr",null,[e[693]||(e[693]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),g("td",null,[g("div",Rtr,[te(g("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[296]||(e[296]=T=>o.configFile.elevenlabs_tts_voice_boost=T),onChange:e[297]||(e[297]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[Ne,o.configFile.elevenlabs_tts_voice_boost]])])])]),g("tr",null,[e[694]||(e[694]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),g("td",null,[g("div",Ntr,[te(g("select",{"onUpdate:modelValue":e[298]||(e[298]=T=>o.configFile.elevenlabs_tts_voice_id=T),onChange:e[299]||(e[299]=T=>i.settingsChanged=!0)},[(k(!0),P(ze,null,lt(i.voices,T=>(k(),P("option",{key:T.voice_id,value:T.voice_id},ue(T.name),9,Dtr))),128))],544),[[hn,o.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),ae(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Itr,[g("tr",null,[e[695]||(e[695]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),g("td",null,[g("div",ktr,[te(g("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[300]||(e[300]=T=>o.configFile.fish_tts_key=T),onChange:e[301]||(e[301]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.fish_tts_key]])])])]),g("tr",null,[e[696]||(e[696]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),g("td",null,[g("div",Ptr,[te(g("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[302]||(e[302]=T=>o.configFile.fish_tts_voice=T),onChange:e[303]||(e[303]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Htr,[g("tr",null,[e[698]||(e[698]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),g("td",null,[g("div",Vtr,[te(g("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[304]||(e[304]=T=>o.configFile.enable_sd_service=T),onChange:e[305]||(e[305]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_sd_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[306]||(e[306]=T=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[697]||(e[697]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[700]||(e[700]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),g("td",null,[g("div",Ftr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[307]||(e[307]=(...T)=>o.reinstallSDService&&o.reinstallSDService(...T))},"install sd service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[308]||(e[308]=(...T)=>o.upgradeSDService&&o.upgradeSDService(...T))},"upgrade sd service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[309]||(e[309]=(...T)=>o.startSDService&&o.startSDService(...T))},"start sd service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[310]||(e[310]=(...T)=>o.showSD&&o.showSD(...T))},"show sd ui"),e[699]||(e[699]=g("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1))])]),g("td",null,[g("div",Btr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[311]||(e[311]=(...T)=>o.reinstallSDService&&o.reinstallSDService(...T))},"install sd service")])])]),g("tr",null,[e[701]||(e[701]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),g("td",null,[g("div",$tr,[te(g("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[312]||(e[312]=T=>o.configFile.sd_base_url=T),onChange:e[313]||(e[313]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.sd_base_url]])])])])])]),_:1}),ae(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Utr,[g("tr",null,[e[703]||(e[703]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),g("td",null,[g("div",Gtr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[314]||(e[314]=(...T)=>o.reinstallDiffusersService&&o.reinstallDiffusersService(...T))},"install diffusers service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[315]||(e[315]=(...T)=>o.upgradeDiffusersService&&o.upgradeDiffusersService(...T))},"upgrade diffusers service"),e[702]||(e[702]=g("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1))])])]),g("tr",null,[e[704]||(e[704]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),g("td",null,[g("div",qtr,[te(g("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[316]||(e[316]=T=>o.configFile.diffusers_model=T),onChange:e[317]||(e[317]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.diffusers_model]])])]),e[705]||(e[705]=g("td",null,null,-1))])])]),_:1}),ae(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",ztr,[g("tr",null,[e[706]||(e[706]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),g("td",null,[g("div",jtr,[te(g("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[318]||(e[318]=T=>o.configFile.diffusers_client_base_url=T),onChange:e[319]||(e[319]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.diffusers_client_base_url]])])]),e[707]||(e[707]=g("td",null,null,-1))])])]),_:1}),ae(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Wtr,[g("tr",null,[e[708]||(e[708]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),g("td",null,[g("div",Ytr,[te(g("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[320]||(e[320]=T=>o.configFile.midjourney_key=T),onChange:e[321]||(e[321]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.midjourney_key]])])])]),g("tr",null,[e[709]||(e[709]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),g("td",null,[g("div",Ktr,[te(g("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[322]||(e[322]=T=>o.configFile.midjourney_timeout=T),onChange:e[323]||(e[323]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.midjourney_timeout]])])])]),g("tr",null,[e[710]||(e[710]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),g("td",null,[g("div",Ztr,[te(g("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[324]||(e[324]=T=>o.configFile.midjourney_retries=T),onChange:e[325]||(e[325]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.midjourney_retries]])])])])])]),_:1}),ae(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Xtr,[g("tr",null,[e[711]||(e[711]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),g("td",null,[g("div",Jtr,[te(g("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[326]||(e[326]=T=>o.configFile.dall_e_key=T),onChange:e[327]||(e[327]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.dall_e_key]])])])]),g("tr",null,[e[713]||(e[713]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),g("td",null,[g("div",enr,[te(g("select",{"onUpdate:modelValue":e[328]||(e[328]=T=>o.configFile.dall_e_generation_engine=T),onChange:e[329]||(e[329]=T=>i.settingsChanged=!0)},e[712]||(e[712]=[g("option",null," dall-e-2 ",-1),g("option",null," dall-e-3 ",-1)]),544),[[hn,o.configFile.dall_e_generation_engine]])])])])])]),_:1}),ae(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",tnr,[g("tr",null,[e[715]||(e[715]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),g("td",null,[g("div",nnr,[te(g("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[330]||(e[330]=T=>o.configFile.enable_comfyui_service=T),onChange:e[331]||(e[331]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_comfyui_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[332]||(e[332]=T=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[714]||(e[714]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[716]||(e[716]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),g("td",null,[g("div",rnr,[te(g("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[333]||(e[333]=T=>o.configFile.comfyui_model=T),onChange:e[334]||(e[334]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(k(!0),P(ze,null,lt(i.comfyui_models,(T,Q)=>(k(),P("option",{key:T,value:T},ue(T),9,inr))),128))],544),[[hn,o.configFile.comfyui_model]])])])]),g("tr",null,[e[718]||(e[718]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),g("td",null,[g("div",onr,[te(g("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[335]||(e[335]=T=>o.configFile.comfyui_model=T),onChange:e[336]||(e[336]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.comfyui_model]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[337]||(e[337]=T=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[717]||(e[717]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[720]||(e[720]=g("td",{style:{"min-width":"200px"}},null,-1)),g("td",null,[g("div",snr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[338]||(e[338]=(...T)=>o.reinstallComfyUIService&&o.reinstallComfyUIService(...T))},"install comfyui service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[339]||(e[339]=(...T)=>o.upgradeComfyUIService&&o.upgradeComfyUIService(...T))},"upgrade comfyui service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[340]||(e[340]=(...T)=>o.startComfyUIService&&o.startComfyUIService(...T))},"start comfyui service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[341]||(e[341]=(...T)=>o.showComfyui&&o.showComfyui(...T))},"show comfyui"),e[719]||(e[719]=g("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1))])])]),g("tr",null,[e[721]||(e[721]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),g("td",null,[g("div",anr,[te(g("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[342]||(e[342]=T=>o.configFile.comfyui_base_url=T),onChange:e[343]||(e[343]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",lnr,[g("tr",null,[e[723]||(e[723]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),g("td",null,[g("div",cnr,[te(g("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[344]||(e[344]=T=>o.configFile.enable_ollama_service=T),onChange:e[345]||(e[345]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_ollama_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[346]||(e[346]=T=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. +`,"
")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(t=>t.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(t=>t.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return ui;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return ui}}},imgModel:{get(){try{let t=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return t>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[t].icon}`),this.$store.state.modelsZoo[t].icon):ui}catch{console.log("error")}if(!this.isMounted)return ui;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return ui}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(t){this.$store.state.config.audio_out_voice=t}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},userName:{get(){return this.$store.state.config.user_name},set(t){this.$store.state.config.user_name=t}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:vo},set(t){this.$store.state.config.user_avatar=t}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(t){this.$store.state.config.hardware_mode=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(t){this.$store.state.config.auto_speak=t}},auto_read:{get(){return this.$store.state.config.auto_read},set(t){this.$store.state.config.auto_read=t}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(t){console.log("Current xtts voice set to ",t),this.$store.state.config.xtts_current_language=t}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(t){t=="main_voice"||t===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",t),this.$store.state.config.xtts_current_voice=t)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(t){this.$store.state.config.audio_pitch=t}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(t){this.$store.state.config.audio_in_language=t}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(t){this.$store.state.config.use_user_name_in_discussions=t}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(t){this.$store.state.config.discussion_db_name=t}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(t){this.$store.commit("setbindingsZoo",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},installed_models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},diskUsage:{get(){return this.$store.state.diskUsage},set(t){this.$store.commit("setDiskUsage",t)}},ramUsage:{get(){return this.$store.state.ramUsage},set(t){this.$store.commit("setRamUsage",t)}},vramUsage:{get(){return this.$store.state.vramUsage},set(t){this.$store.commit("setVramUsage",t)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return null;const t=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return t>-1?this.bindingsZoo[t].name:null},active_pesonality(){if(!this.isMounted)return null;const t=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return t>-1?this.$store.state.personalities[t].name:null},speed_computed(){return Xo(this.addModel.speed)},total_size_computed(){return Xo(this.addModel.total_size)},downloaded_size_computed(){return Xo(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Ke(()=>{Xe.replace()})},pc_collapsed(){Ke(()=>{Xe.replace()})},mc_collapsed(){Ke(()=>{Xe.replace()})},sc_collapsed(){Ke(()=>{Xe.replace()})},showConfirmation(){Ke(()=>{Xe.replace()})},mzl_collapsed(){Ke(()=>{Xe.replace()})},pzl_collapsed(){Ke(()=>{Xe.replace()})},ezl_collapsed(){Ke(()=>{Xe.replace()})},bzl_collapsed(){Ke(()=>{Xe.replace()})},all_collapsed(t){this.collapseAll(t),Ke(()=>{Xe.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,Ke(()=>{Xe.replace()})},isLoading(){Ke(()=>{Xe.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},mzdc_collapsed(){Ke(()=>{Xe.replace()})}},async beforeRouteLeave(t){await this.$router.isReady()}},RWn={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color 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"},NWn={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},DWn={key:0,class:"flex gap-3 flex-1 items-center duration-75"},IWn={key:1,class:"flex gap-3 flex-1 items-center"},kWn={class:"flex gap-3 flex-1 items-center justify-end"},PWn={class:"flex gap-3 items-center"},HWn={key:0,class:"flex gap-3 items-center"},VWn={key:1,role:"status"},FWn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},BWn={class:"flex flex-row p-3"},$Wn={class:"text-base font-semibold cursor-pointer select-none items-center"},UWn={class:"flex gap-2 items-center"},GWn={key:0},qWn=["src"],zWn={class:"font-bold font-large text-lg"},jWn={key:1},WWn={class:"flex gap-2 items-center"},YWn=["src"],KWn={class:"font-bold font-large text-lg"},ZWn={class:"font-bold font-large text-lg"},XWn={class:"font-bold font-large text-lg"},JWn={class:"mb-2"},eYn={class:"flex flex-col mx-2"},tYn={class:"p-2"},nYn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},rYn={class:"mb-2"},iYn={class:"flex flex-col mx-2"},oYn={class:"p-2"},sYn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},aYn={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},lYn=["src"],cYn={class:"flex flex-col mx-2"},uYn={class:"p-2"},dYn={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},fYn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},pYn={class:"flex flex-row p-3"},hYn={class:"flex flex-col mb-2 px-3 pb-2"},TYn={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"},mYn={class:"flex flex-col space-y-4"},gYn={class:"flex items-center"},_Yn={class:"flex items-center"},QYn={class:"flex items-center"},vYn={class:"flex items-start"},yYn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},bYn={class:"flex flex-row p-3"},EYn={class:"flex flex-col mb-2 px-3 pb-2"},xYn={class:"settings-container grid gap-6 p-6 bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-300 dark:border-gray-600"},SYn={class:"setting-section"},LYn={class:"settings-grid grid gap-4"},CYn={class:"setting-row flex items-center gap-4"},AYn={class:"setting-row flex items-center gap-4"},wYn={class:"setting-row flex items-center gap-4"},MYn={class:"setting-content flex items-center gap-4"},OYn={for:"avatar-upload",class:"cursor-pointer"},RYn=["src"],NYn={class:"setting-section"},DYn={class:"settings-grid grid gap-4"},IYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},kYn={class:"relative inline-block w-12 h-6"},PYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},HYn={class:"relative inline-block w-12 h-6"},VYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},FYn={class:"relative inline-block w-12 h-6"},BYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},$Yn={class:"relative inline-block w-12 h-6"},UYn={class:"setting-section"},GYn={class:"settings-grid grid gap-4"},qYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},zYn={class:"relative inline-block w-12 h-6"},jYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},WYn={class:"relative inline-block w-12 h-6"},YYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},KYn={class:"relative inline-block w-12 h-6"},ZYn={class:"setting-section"},XYn={class:"settings-grid grid gap-4"},JYn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},eKn={class:"relative inline-block w-12 h-6"},tKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},nKn={class:"relative inline-block w-12 h-6"},rKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},iKn={class:"relative inline-block w-12 h-6"},oKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},sKn={class:"relative inline-block w-12 h-6"},aKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},lKn={class:"relative inline-block w-12 h-6"},cKn={class:"setting-section"},uKn={class:"settings-grid grid gap-4"},dKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},fKn={class:"flex items-center space-x-4"},pKn={class:"w-10 h-10 rounded-full overflow-hidden bg-gray-200 dark:bg-gray-700"},hKn=["src"],TKn=["src"],mKn={class:"flex items-center space-x-2"},gKn={class:"cursor-pointer bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg"},_Kn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},QKn={class:"relative inline-block w-12 h-6"},vKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},yKn={class:"relative inline-block w-12 h-6"},bKn={class:"setting-row flex flex-col p-4 bg-red-50 dark:bg-red-900/20 rounded-lg shadow-sm border-2 border-red-200 dark:border-red-800"},EKn={class:"flex items-center justify-between"},xKn={class:"relative inline-block w-12 h-6"},SKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},LKn={class:"relative inline-block w-12 h-6"},CKn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},AKn={class:"relative inline-block w-12 h-6"},wKn={class:"grid gap-6 bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md"},MKn={class:"flex flex-col space-y-2"},OKn={class:"grid md:grid-cols-2 gap-4"},RKn={class:"space-y-2"},NKn={class:"space-y-2"},DKn={class:"grid md:grid-cols-2 gap-4"},IKn={class:"space-y-2"},kKn={class:"space-y-2"},PKn={class:"grid md:grid-cols-2 gap-4"},HKn={class:"space-y-2"},VKn={class:"space-y-2"},FKn={class:"grid md:grid-cols-2 gap-4"},BKn={class:"space-y-2"},$Kn={class:"space-y-2"},UKn={class:"space-y-2"},GKn={class:"space-y-2"},qKn={class:"space-y-2"},zKn={class:"p-4 bg-gray-100 dark:bg-gray-900 rounded-md"},jKn=["innerHTML"],WKn={class:"flex items-center space-x-4"},YKn={class:"relative inline-block w-10 mr-2 align-middle select-none transition duration-200 ease-in"},KKn={class:"grid gap-6 bg-gray-50 dark:bg-gray-700 p-6 rounded-lg shadow-md"},ZKn={class:"flex flex-col md:flex-row md:items-center gap-4"},XKn={class:"flex flex-col md:flex-row md:items-start gap-4"},JKn={class:"space-y-4"},eZn={class:"flex flex-col md:flex-row md:items-center gap-4"},tZn={class:"flex-1 space-y-3"},nZn={class:"flex items-center space-x-3 cursor-pointer"},rZn={class:"flex items-center space-x-3 cursor-pointer"},iZn={class:"flex items-center space-x-3 cursor-pointer"},oZn={class:"flex flex-col md:flex-row md:items-center gap-4"},sZn={class:"flex items-center gap-4"},aZn={for:"avatar-upload",class:"cursor-pointer"},lZn=["src"],cZn={class:"space-y-4"},uZn={class:"flex flex-col md:flex-row md:items-center gap-4"},dZn={class:"flex flex-col md:flex-row md:items-center gap-4"},fZn={class:"settings-container p-6 space-y-4 bg-gray-50 dark:bg-gray-800 rounded-xl shadow-md"},pZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},hZn={class:"relative"},TZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},mZn={class:"relative"},gZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},_Zn={class:"relative"},QZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},vZn={class:"relative"},yZn={class:"setting-row flex items-center justify-between p-3 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"},bZn={class:"relative"},EZn={class:"bg-gray-50 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg p-4 space-y-4"},xZn={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},SZn={class:"flex items-center"},LZn={class:"relative inline-flex items-center cursor-pointer"},CZn={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},AZn={class:"flex-1"},wZn={class:"p-4 bg-gray-50 dark:bg-gray-700 rounded-lg shadow-sm border border-gray-200 dark:border-gray-600"},MZn={class:"flex flex-col sm:flex-row items-start sm:items-center gap-2"},OZn={class:"flex-1 w-full"},RZn={class:"settings-container bg-gray-50 dark:bg-gray-700 p-6 rounded-lg shadow-md"},NZn={class:"setting-row mb-4"},DZn={class:"flex items-center justify-between"},IZn={class:"w-64"},kZn={class:"setting-row mb-4"},PZn={class:"flex items-center justify-between"},HZn={class:"w-64"},VZn={class:"setting-row"},FZn={class:"flex items-center justify-between"},BZn={class:"w-64"},$Zn={class:"inline-flex items-center cursor-pointer"},UZn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},GZn={class:"flex flex-row p-3"},qZn={class:"space-y-6"},zZn={class:"space-y-4"},jZn={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-4"},WZn={class:"flex flex-col"},YZn=["value","onInput"],KZn={class:"flex flex-col"},ZZn=["value","onInput"],XZn={class:"flex flex-col lg:col-span-2"},JZn={class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},eXn=["value","onInput"],tXn=["value","onInput"],nXn={key:0,class:"flex flex-col lg:col-span-2"},rXn=["value","onInput"],iXn={class:"flex flex-wrap items-center justify-between mt-4 pt-3 border-t border-gray-200 dark:border-gray-700 gap-2"},oXn={class:"flex flex-wrap items-center gap-3"},sXn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},aXn={class:"relative inline-block w-12 h-6"},lXn=["onUpdate:modelValue"],cXn={key:0,class:"flex gap-2"},uXn=["onClick"],dXn=["onClick"],fXn={class:"inline-flex"},pXn=["onClick"],hXn={class:"space-y-6"},TXn={class:"space-y-4"},mXn={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"},gXn={class:"flex flex-col"},_Xn=["value","onInput"],QXn={class:"flex flex-col"},vXn=["value","onInput"],yXn={class:"flex flex-col lg:col-span-2"},bXn=["value","onInput"],EXn={class:"flex flex-col lg:col-span-2"},xXn=["value","onInput"],SXn={class:"flex flex-col lg:col-span-2"},LXn=["onUpdate:modelValue"],CXn={class:"flex flex-col lg:col-span-2"},AXn=["onUpdate:modelValue"],wXn={class:"flex items-center justify-between mt-4 pt-3 border-t border-gray-200 dark:border-gray-700"},MXn={class:"flex items-center space-x-4"},OXn={class:"setting-row flex items-center justify-between p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm"},RXn={class:"relative inline-block w-12 h-6"},NXn=["onUpdate:modelValue"],DXn=["onClick"],IXn=["onClick"],kXn=["onClick"],PXn={class:"bg-gray-50 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg p-6 space-y-6"},HXn={class:"flex flex-col md:flex-row md:items-center gap-4"},VXn={class:"flex flex-col md:flex-row md:items-center gap-4"},FXn={class:"flex-1"},BXn={class:"inline-flex items-center"},$Xn={class:"flex flex-col md:flex-row md:items-start gap-4"},UXn={class:"flex-1 space-y-2"},GXn=["disabled"],qXn={key:0,label:"Semantic Models"},zXn={key:1,label:"OpenAI Models"},jXn={key:2,label:"Ollama Models"},WXn={key:3,disabled:""},YXn={class:"flex flex-col md:flex-row md:items-start gap-4"},KXn={class:"space-y-6"},ZXn={class:"flex flex-col md:flex-row md:items-start gap-4"},XXn={class:"flex-1 space-y-2"},JXn={class:"space-y-4"},eJn={class:"flex items-center gap-4"},tJn={class:"flex-1"},nJn={class:"inline-flex items-center"},rJn={class:"space-y-4 bg-gray-50 dark:bg-gray-800 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-gray-700"},iJn={class:"flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-700 p-3 rounded-lg transition-colors"},oJn={class:"flex items-center"},sJn={class:"relative inline-flex items-center cursor-pointer"},aJn={class:"flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-700 p-3 rounded-lg transition-colors"},lJn={class:"flex items-center"},cJn={class:"relative inline-flex items-center cursor-pointer"},uJn={class:"flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-700 p-3 rounded-lg transition-colors"},dJn={class:"flex items-center"},fJn={class:"relative inline-flex items-center cursor-pointer"},pJn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},hJn={class:"flex flex-row p-3"},TJn={class:"grid gap-6 bg-gray-50 dark:bg-gray-700 rounded-lg p-6 border border-gray-300 dark:border-gray-600"},mJn={class:"flex items-center justify-between"},gJn={class:"relative inline-flex items-center cursor-pointer"},_Jn={class:"flex items-center justify-between"},QJn={class:"relative inline-flex items-center cursor-pointer"},vJn={class:"flex items-center justify-between"},yJn={class:"relative inline-flex items-center cursor-pointer"},bJn={class:"flex items-center justify-between"},EJn={class:"relative inline-flex items-center cursor-pointer"},xJn={class:"space-y-6"},SJn={class:"flex flex-col gap-2"},LJn={class:"flex flex-col gap-4"},CJn={class:"flex flex-col gap-2"},AJn={class:"flex flex-col gap-4"},wJn={class:"flex flex-col gap-2"},MJn={class:"flex flex-col gap-4"},OJn={class:"flex flex-col gap-2"},RJn={class:"flex flex-col gap-4"},NJn={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},DJn={class:"flex flex-row p-3"},IJn={class:"grid gap-6 p-6 bg-white dark:bg-gray-800 rounded-xl shadow-lg"},kJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},PJn={class:"w-full md:w-2/3"},HJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},VJn={class:"w-full md:w-2/3"},FJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},BJn={class:"w-full md:w-2/3"},$Jn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},UJn={class:"w-full md:w-2/3"},GJn={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-6"},qJn={class:"w-full md:w-2/3"},zJn={class:"space-y-6 bg-gray-50 dark:bg-gray-800 p-6 rounded-lg shadow-md"},jJn={class:"flex items-center space-x-4"},WJn={class:"w-2/3"},YJn={class:"inline-flex items-center cursor-pointer"},KJn={class:"flex items-center space-x-4"},ZJn={class:"w-2/3"},XJn={class:"inline-flex items-center cursor-pointer"},JJn={class:"flex items-center space-x-4"},eer={class:"w-2/3"},ter={class:"flex items-center space-x-4"},ner={class:"w-2/3"},rer={class:"grid gap-6 p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md"},ier={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},oer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},ser={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},aer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},ler={class:"space-y-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg"},cer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},uer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},der={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},fer={class:"space-y-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg"},per={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},her={class:"flex items-center"},Ter={class:"relative inline-flex items-center cursor-pointer"},mer={class:"grid grid-cols-1 md:grid-cols-[300px,1fr] gap-4 items-center"},ger={class:"space-y-4 p-4 bg-white dark:bg-gray-800 rounded-lg shadow-md"},_er={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-4"},Qer={class:"md:w-2/3"},ver=["value"],yer={class:"flex flex-col md:flex-row md:items-center space-y-2 md:space-y-0 md:space-x-4 pt-4 border-t dark:border-gray-700"},ber={class:"md:w-2/3"},Eer=["value"],xer={class:"grid gap-4 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-md"},Ser={class:"grid grid-cols-[200px,1fr] items-center gap-4"},Ler={class:"grid grid-cols-[200px,1fr] items-center gap-4"},Cer={class:"grid grid-cols-[200px,1fr] items-center gap-4"},Aer={class:"grid grid-cols-[200px,1fr] items-center gap-4"},wer={class:"space-y-3"},Mer={class:"flex items-center space-x-2 cursor-pointer"},Oer={class:"flex items-center space-x-2 cursor-pointer"},Rer={class:"pl-6 space-y-2 border-l-2 border-gray-200 dark:border-gray-600"},Ner=["id","onUpdate:modelValue"],Der={class:"text-sm text-gray-600 dark:text-gray-300"},Ier={class:"grid grid-cols-[200px,1fr] items-center gap-4"},ker={class:"space-y-3"},Per=["id","onUpdate:modelValue"],Her={class:"text-sm text-gray-600 dark:text-gray-300"},Ver={class:"space-y-6 p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md"},Fer={class:"flex items-center justify-between"},Ber={class:"relative inline-flex items-center cursor-pointer"},$er={class:"flex items-center justify-between"},Uer={class:"relative inline-flex items-center cursor-pointer"},Ger={class:"space-y-2"},qer={for:"audio_silenceTimer",class:"text-sm font-medium text-gray-700 dark:text-gray-200"},zer={class:"flex flex-col gap-4"},jer={class:"space-y-2"},Wer=["value"],Yer={class:"bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 space-y-6"},Ker={class:"flex items-center justify-between p-4 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-lg transition-all"},Zer={class:"relative inline-flex items-center cursor-pointer"},Xer={class:"p-4"},Jer={class:"p-4"},etr={class:"relative"},ttr=["value"],ntr={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"},rtr={class:"flex flex-row"},itr={class:"flex flex-row"},otr=["value"],str={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"},atr={class:"flex flex-row"},ltr=["value"],ctr={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"},utr={class:"flex flex-row"},dtr=["value"],ftr={class:"flex flex-row"},ptr=["value"],htr={class:"flex flex-row"},Ttr={class:"flex flex-row"},mtr={class:"flex flex-row"},gtr={class:"flex flex-row"},_tr={class:"flex flex-row"},Qtr={class:"flex flex-row"},vtr={class:"flex flex-row"},ytr={class:"flex flex-row"},btr={class:"flex flex-row"},Etr={class:"flex flex-row"},xtr={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"},Str={class:"flex flex-row"},Ltr={class:"flex flex-row"},Ctr={class:"flex flex-row"},Atr={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"},wtr={class:"flex flex-row"},Mtr={class:"flex flex-row"},Otr={class:"flex flex-row"},Rtr={class:"flex flex-row"},Ntr={class:"flex flex-row"},Dtr=["value"],Itr={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"},ktr={class:"flex flex-row"},Ptr={class:"flex flex-row"},Htr={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"},Vtr={class:"flex flex-row"},Ftr={class:"flex flex-row"},Btr={class:"flex flex-row"},$tr={class:"flex flex-row"},Utr={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"},Gtr={class:"flex flex-row"},qtr={class:"flex flex-row"},ztr={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"},jtr={class:"flex flex-row"},Wtr={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"},Ytr={class:"flex flex-row"},Ktr={class:"flex flex-row"},Ztr={class:"flex flex-row"},Xtr={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"},Jtr={class:"flex flex-row"},enr={class:"flex flex-row"},tnr={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"},nnr={class:"flex flex-row"},rnr={class:"flex flex-row"},inr=["value"],onr={class:"flex flex-row"},snr={class:"flex flex-row"},anr={class:"flex flex-row"},lnr={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"},cnr={class:"flex flex-row"},unr={class:"flex flex-row"},dnr={class:"flex flex-row"},fnr={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"},pnr={class:"flex flex-row"},hnr={class:"flex flex-row"},Tnr={class:"flex flex-row"},mnr={class:"flex flex-col align-bottom"},gnr={class:"relative"},_nr={class:"absolute right-0"},Qnr={class:"flex flex-row"},vnr={class:"flex flex-row"},ynr={class:"flex flex-row"},bnr={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"},Enr={class:"flex flex-row"},xnr={class:"flex flex-row"},Snr={class:"flex flex-row"},Lnr={class:"bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 max-w-2xl mx-auto"},Cnr={class:"flex flex-col md:flex-row items-start md:items-center space-y-4 md:space-y-0 md:space-x-6"},Anr={class:"w-full md:w-2/3"},wnr={class:"relative"},Mnr={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"},Onr={class:"flex flex-row"},Rnr={class:"flex flex-row"},Nnr={class:"flex flex-row"},Dnr={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Inr={class:"flex flex-row p-3"},knr={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Pnr={key:1,class:"mr-2"},Hnr={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Vnr={class:"flex gap-1 items-center"},Fnr=["src"],Bnr={class:"font-bold font-large text-lg line-clamp-1"},$nr={key:0,class:"mb-2"},Unr={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Gnr={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},qnr={class:"flex flex-row p-3"},znr={class:"flex flex-row items-center"},jnr={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Wnr={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Ynr={key:2,class:"mr-2"},Knr={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Znr={class:"flex gap-1 items-center"},Xnr=["src"],Jnr={class:"font-bold font-large text-lg line-clamp-1"},err={class:"mx-2 mb-4"},trr={class:"relative"},nrr={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},rrr={key:0},irr={key:1},orr={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},srr={key:1,class:"mb-2"},arr={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},lrr={class:"mb-2"},crr={class:"p-2"},urr={class:"mb-3"},drr={key:0},frr={class:"mb-3"},prr={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},hrr={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Trr={class:"w-full p-2"},mrr={class:"flex justify-between mb-1"},grr={class:"text-sm font-medium text-blue-700 dark:text-white"},_rr=["title"],Qrr={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},vrr={class:"flex justify-between mb-1"},yrr={class:"text-base font-medium text-blue-700 dark:text-white"},brr={class:"text-sm font-medium text-blue-700 dark:text-white"},Err={class:"flex flex-grow"},xrr={class:"flex flex-row flex-grow gap-3"},Srr={class:"p-2 text-center grow"},Lrr={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Crr={class:"flex flex-row p-3 items-center"},Arr={key:0,class:"mr-2"},wrr={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Mrr={key:1,class:"mr-2"},Orr={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Rrr={key:0,class:"flex -space-x-4 items-center"},Nrr={class:"group items-center flex flex-row"},Drr=["onClick"],Irr=["src","title"],krr=["onClick"],Prr={class:"mx-2 mb-4"},Hrr={class:"relative"},Vrr={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Frr={key:0},Brr={key:1},$rr={key:0,class:"mx-2 mb-4"},Urr={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Grr=["selected"],qrr={key:0,class:"mb-2"},zrr={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},jrr={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wrr={class:"flex flex-row"},Yrr={class:"m-2"},Krr={class:"flex flex-row gap-2 items-center"},Zrr={class:"m-2"},Xrr={class:"m-2"},Jrr={class:"flex flex-col align-bottom"},eir={class:"relative"},tir={class:"absolute right-0"},nir={class:"m-2"},rir={class:"flex flex-col align-bottom"},iir={class:"relative"},oir={class:"absolute right-0"},sir={class:"m-2"},air={class:"flex flex-col align-bottom"},lir={class:"relative"},cir={class:"absolute right-0"},uir={class:"m-2"},dir={class:"flex flex-col align-bottom"},fir={class:"relative"},pir={class:"absolute right-0"},hir={class:"m-2"},Tir={class:"flex flex-col align-bottom"},mir={class:"relative"},gir={class:"absolute right-0"},_ir={class:"m-2"},Qir={class:"flex flex-col align-bottom"},vir={class:"relative"},yir={class:"absolute right-0"};function bir(t,e,n,r,i,o){const s=gt("DictManager"),a=gt("Card"),l=gt("StringListManager"),c=gt("BindingEntry"),u=gt("RadioOptions"),d=gt("model-entry"),h=gt("personality-entry"),f=gt("AddModelDialog"),m=gt("ChoiceDialog");return k(),P(ze,null,[g("div",RWn,[g("div",NWn,[i.showConfirmation?(k(),P("div",DWn,[g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=ge(T=>i.showConfirmation=!1,["stop"]))},e[435]||(e[435]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=ge(T=>o.save_configuration(),["stop"]))},e[436]||(e[436]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),i.showConfirmation?ie("",!0):(k(),P("div",IWn,[g("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=T=>o.reset_configuration())},e[437]||(e[437]=[g("i",{"data-feather":"refresh-ccw"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=ge(T=>i.all_collapsed=!i.all_collapsed,["stop"]))},e[438]||(e[438]=[g("i",{"data-feather":"list"},null,-1)]))])),g("div",kWn,[g("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=T=>o.api_get_req("clear_uploads").then(Q=>{Q.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[439]||(e[439]=[g("i",{"data-feather":"trash-2"},null,-1)])),g("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=T=>o.api_post_req("restart_program").then(Q=>{Q.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[440]||(e[440]=[g("i",{"data-feather":"refresh-ccw"},null,-1)])),i.has_updates?(k(),P("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=T=>o.api_post_req("update_software").then(Q=>{Q.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[441]||(e[441]=[g("i",{"data-feather":"arrow-up-circle"},null,-1),g("i",{"data-feather":"alert-circle"},null,-1)]))):ie("",!0),g("div",PWn,[i.settingsChanged?(k(),P("div",HWn,[i.isLoading?ie("",!0):(k(),P("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=ge(T=>o.applyConfiguration(),["stop"]))},e[442]||(e[442]=[g("div",{class:"flex flex-row"},[g("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),g("i",{"data-feather":"check"})],-1)]))),i.isLoading?ie("",!0):(k(),P("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=ge(T=>o.cancelConfiguration(),["stop"]))},e[443]||(e[443]=[g("div",{class:"flex flex-row"},[g("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),g("i",{"data-feather":"x"})],-1)])))])):ie("",!0),i.isLoading?(k(),P("div",VWn,[g("p",null,ue(i.loading_text),1),e[444]||(e[444]=g("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"},[g("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"}),g("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)),e[445]||(e[445]=g("span",{class:"sr-only"},"Loading...",-1))])):ie("",!0)])])]),g("div",{class:We(i.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[g("div",FWn,[g("div",BWn,[g("button",{onClick:e[9]||(e[9]=ge(T=>i.sc_collapsed=!i.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[446]||(e[446]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.sc_collapsed]]),te(g("div",null,e[447]||(e[447]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.sc_collapsed]]),e[450]||(e[450]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[451]||(e[451]=g("div",{class:"mr-2"},"|",-1)),g("div",$Wn,[g("div",UWn,[g("div",null,[o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length==1?(k(),P("div",GWn,[(k(!0),P(ze,null,lt(o.vramUsage.gpus,T=>(k(),P("div",{class:"flex gap-2 items-center",key:T},[g("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,qWn),g("p",zWn,[g("div",null,ue(o.computedFileSize(T.used_vram))+" / "+ue(o.computedFileSize(T.total_vram))+" ("+ue(T.percentage)+"%) ",1)])]))),128))])):ie("",!0),o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length>1?(k(),P("div",jWn,[g("div",WWn,[g("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,YWn),g("p",KWn,[g("div",null,ue(o.vramUsage.gpus.length)+"x ",1)])])])):ie("",!0)]),e[448]||(e[448]=g("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),g("p",ZWn,[g("div",null,ue(o.ram_usage)+" / "+ue(o.ram_total_space)+" ("+ue(o.ram_percent_usage)+"%)",1)]),e[449]||(e[449]=g("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),g("p",XWn,[g("div",null,ue(o.disk_binding_models_usage)+" / "+ue(o.disk_total_space)+" ("+ue(o.disk_percent_usage)+"%)",1)])])])])]),g("div",{class:We([{hidden:i.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",JWn,[e[454]||(e[454]=g("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[g("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),nt(" CPU Ram usage: ")],-1)),g("div",eYn,[g("div",null,[e[452]||(e[452]=g("b",null,"Avaliable ram: ",-1)),nt(ue(o.ram_available_space),1)]),g("div",null,[e[453]||(e[453]=g("b",null,"Ram usage: ",-1)),nt(" "+ue(o.ram_usage)+" / "+ue(o.ram_total_space)+" ("+ue(o.ram_percent_usage)+")% ",1)])]),g("div",tYn,[g("div",nYn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:gn("width: "+o.ram_percent_usage+"%;")},null,4)])])]),g("div",rYn,[e[457]||(e[457]=g("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[g("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),nt(" Disk usage: ")],-1)),g("div",iYn,[g("div",null,[e[455]||(e[455]=g("b",null,"Avaliable disk space: ",-1)),nt(ue(o.disk_available_space),1)]),g("div",null,[e[456]||(e[456]=g("b",null,"Disk usage: ",-1)),nt(" "+ue(o.disk_binding_models_usage)+" / "+ue(o.disk_total_space)+" ("+ue(o.disk_percent_usage)+"%)",1)])]),g("div",oYn,[g("div",sYn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:gn("width: "+o.disk_percent_usage+"%;")},null,4)])])]),(k(!0),P(ze,null,lt(o.vramUsage.gpus,T=>(k(),P("div",{class:"mb-2",key:T},[g("label",aYn,[g("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,lYn),e[458]||(e[458]=nt(" GPU usage: "))]),g("div",cYn,[g("div",null,[e[459]||(e[459]=g("b",null,"Model: ",-1)),nt(ue(T.gpu_model),1)]),g("div",null,[e[460]||(e[460]=g("b",null,"Avaliable vram: ",-1)),nt(ue(this.computedFileSize(T.available_space)),1)]),g("div",null,[e[461]||(e[461]=g("b",null,"GPU usage: ",-1)),nt(" "+ue(this.computedFileSize(T.used_vram))+" / "+ue(this.computedFileSize(T.total_vram))+" ("+ue(T.percentage)+"%)",1)])]),g("div",uYn,[g("div",dYn,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:gn("width: "+T.percentage+"%;")},null,4)])])]))),128))],2)]),g("div",fYn,[g("div",pYn,[g("button",{onClick:e[10]||(e[10]=ge(T=>i.smartrouterconf_collapsed=!i.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[462]||(e[462]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.smartrouterconf_collapsed]]),te(g("div",null,e[463]||(e[463]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.smartrouterconf_collapsed]]),e[464]||(e[464]=g("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),g("div",{class:We([{hidden:i.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",hYn,[ae(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",TYn,[g("div",mYn,[g("div",gYn,[e[465]||(e[465]=g("label",{for:"use_smart_routing",class:"text-sm font-bold w-64"},"Use Smart Routing:",-1)),te(g("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=T=>o.configFile.use_smart_routing=T),onChange:e[12]||(e[12]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.use_smart_routing]])]),g("div",_Yn,[e[466]||(e[466]=g("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold w-64"},"Restore model after smart routing:",-1)),te(g("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=T=>o.configFile.restore_model_after_smart_routing=T),onChange:e[14]||(e[14]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.restore_model_after_smart_routing]])]),g("div",QYn,[e[467]||(e[467]=g("label",{for:"smart_routing_router_model",class:"text-sm font-bold w-64"},"Router Model:",-1)),te(g("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=T=>o.configFile.smart_routing_router_model=T),onChange:e[16]||(e[16]=T=>i.settingsChanged=!0),class:"flex-grow mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.smart_routing_router_model]])]),g("div",vYn,[e[468]||(e[468]=g("label",{for:"smart_routing_models_description",class:"text-sm font-bold w-64 mt-1"},"Models with description:",-1)),ae(s,{modelValue:o.configFile.smart_routing_models_description,"onUpdate:modelValue":e[17]||(e[17]=T=>o.configFile.smart_routing_models_description=T),onChange:e[18]||(e[18]=T=>i.settingsChanged=!0),"key-name":"Model Path","value-name":"Model description",placeholder:"Enter model name",class:"flex-grow"},null,8,["modelValue"])])])])]),_:1})])],2)]),g("div",yYn,[g("div",bYn,[g("button",{onClick:e[19]||(e[19]=ge(T=>i.mainconf_collapsed=!i.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[469]||(e[469]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.mainconf_collapsed]]),te(g("div",null,e[470]||(e[470]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.mainconf_collapsed]]),e[471]||(e[471]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),g("div",{class:We([{hidden:i.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",EYn,[ae(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",xYn,[g("div",SYn,[e[476]||(e[476]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"User Information",-1)),g("div",LYn,[g("div",CYn,[e[472]||(e[472]=g("div",{class:"setting-label w-64"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Username:")],-1)),te(g("input",{type:"text","onUpdate:modelValue":e[20]||(e[20]=T=>o.configFile.user_name=T),onChange:e[21]||(e[21]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500"},null,544),[[Ne,o.configFile.user_name]])]),g("div",AYn,[e[473]||(e[473]=g("div",{class:"setting-label w-64"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"User Description:")],-1)),te(g("textarea",{"onUpdate:modelValue":e[22]||(e[22]=T=>o.configFile.user_description=T),onChange:e[23]||(e[23]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500",rows:"3"}," ",544),[[Ne,o.configFile.user_description]])]),g("div",wYn,[e[475]||(e[475]=g("div",{class:"setting-label w-64"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"User Avatar:")],-1)),g("div",MYn,[g("label",OYn,[g("img",{src:o.configFile.user_avatar?`/user_infos/${o.configFile.user_avatar}`:t.defaultAvatar,class:"w-12 h-12 rounded-full object-cover border-2 border-gray-300 hover:border-blue-500 transition-all"},null,8,RYn)]),g("input",{type:"file",id:"avatar-upload",class:"hidden",onChange:e[24]||(e[24]=(...T)=>o.uploadAvatar&&o.uploadAvatar(...T))},null,32),g("button",{onClick:e[25]||(e[25]=ge(T=>o.resetAvatar(),["stop"])),class:"text-gray-500 hover:text-red-600 p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-600 transition-all",title:"Remove avatar"},e[474]||(e[474]=[g("i",{"data-feather":"x"},null,-1)]))])])])]),g("div",NYn,[e[485]||(e[485]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Discussion Settings",-1)),g("div",DYn,[g("div",IYn,[e[478]||(e[478]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use username in discussions",-1)),g("div",kYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[26]||(e[26]=T=>o.configFile.use_user_name_in_discussions=T),onChange:e[27]||(e[27]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_user_name_in_discussions]]),e[477]||(e[477]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",PYn,[e[480]||(e[480]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use assistant name in discussion",-1)),g("div",HYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[28]||(e[28]=T=>o.configFile.use_assistant_name_in_discussion=T),onChange:e[29]||(e[29]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_assistant_name_in_discussion]]),e[479]||(e[479]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",VYn,[e[482]||(e[482]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use model name in discussions",-1)),g("div",FYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[30]||(e[30]=T=>o.configFile.use_model_name_in_discussions=T),onChange:e[31]||(e[31]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_model_name_in_discussions]]),e[481]||(e[481]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",BYn,[e[484]||(e[484]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Use user information in discussions",-1)),g("div",$Yn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[32]||(e[32]=T=>o.configFile.use_user_informations_in_discussion=T),onChange:e[33]||(e[33]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.use_user_informations_in_discussion]]),e[483]||(e[483]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),g("div",UYn,[e[492]||(e[492]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Debug Settings",-1)),g("div",GYn,[g("div",qYn,[e[487]||(e[487]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Enable Debug Mode",-1)),g("div",zYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[34]||(e[34]=T=>o.configFile.debug=T),onChange:e[35]||(e[35]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.debug]]),e[486]||(e[486]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",jYn,[e[489]||(e[489]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Show Final Full Prompt",-1)),g("div",WYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[36]||(e[36]=T=>o.configFile.debug_show_final_full_prompt=T),onChange:e[37]||(e[37]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.debug_show_final_full_prompt]]),e[488]||(e[488]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",YYn,[e[491]||(e[491]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Show Chunks",-1)),g("div",KYn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[38]||(e[38]=T=>o.configFile.debug_show_chunks=T),onChange:e[39]||(e[39]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.debug_show_chunks]]),e[490]||(e[490]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),g("div",ZYn,[e[503]||(e[503]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Auto-sync Settings",-1)),g("div",XYn,[g("div",JYn,[e[494]||(e[494]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Update",-1)),g("div",eKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[40]||(e[40]=T=>o.configFile.auto_update=T),onChange:e[41]||(e[41]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_update]]),e[493]||(e[493]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",tKn,[e[496]||(e[496]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Personalities",-1)),g("div",nKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[42]||(e[42]=T=>o.configFile.auto_sync_personalities=T),onChange:e[43]||(e[43]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_personalities]]),e[495]||(e[495]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",rKn,[e[498]||(e[498]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Extensions",-1)),g("div",iKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[44]||(e[44]=T=>o.configFile.auto_sync_extensions=T),onChange:e[45]||(e[45]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_extensions]]),e[497]||(e[497]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",oKn,[e[500]||(e[500]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Bindings",-1)),g("div",sKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[46]||(e[46]=T=>o.configFile.auto_sync_bindings=T),onChange:e[47]||(e[47]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_bindings]]),e[499]||(e[499]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",aKn,[e[502]||(e[502]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto Sync Models",-1)),g("div",lKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[48]||(e[48]=T=>o.configFile.auto_sync_models=T),onChange:e[49]||(e[49]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_sync_models]]),e[501]||(e[501]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),g("div",cKn,[e[517]||(e[517]=g("h3",{class:"font-bold text-lg text-gray-800 dark:text-gray-200 mb-4"},"Webui Settings",-1)),g("div",uKn,[g("div",dKn,[g("div",fKn,[e[504]||(e[504]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Application Logo",-1)),g("div",pKn,[o.configFile.app_custom_logo?(k(),P("img",{key:0,src:"/user_infos/"+o.configFile.app_custom_logo,class:"w-full h-full object-cover",alt:"Custom Logo"},null,8,hKn)):(k(),P("img",{key:1,src:t.defaultImgPlaceholder,class:"w-full h-full object-cover",alt:"Default Logo"},null,8,TKn))])]),g("div",mKn,[o.configFile.app_custom_logo?(k(),P("button",{key:0,onClick:e[50]||(e[50]=(...T)=>o.removeLogo&&o.removeLogo(...T)),class:"bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg"}," Remove Logo ")):ie("",!0),g("label",gKn,[e[505]||(e[505]=nt(" Upload Logo ")),g("input",{type:"file",onChange:e[51]||(e[51]=(...T)=>o.uploadLogo&&o.uploadLogo(...T)),accept:"image/*",class:"hidden"},null,32)])])]),g("div",_Kn,[e[507]||(e[507]=g("div",{class:"flex items-center space-x-2"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Automatic Discussion Naming"),g("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"(Let AI name your discussions automatically)")],-1)),g("div",QKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[52]||(e[52]=T=>o.configFile.auto_title=T),onChange:e[53]||(e[53]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_title]]),e[506]||(e[506]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",vKn,[e[509]||(e[509]=g("div",{class:"flex items-center space-x-2"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Auto-launch Browser"),g("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"(Open browser automatically when starting LOLLMS)")],-1)),g("div",yKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[54]||(e[54]=T=>o.configFile.auto_show_browser=T),onChange:e[55]||(e[55]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.auto_show_browser]]),e[508]||(e[508]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",bKn,[g("div",EKn,[e[511]||(e[511]=g("div",{class:"flex items-center space-x-2"},[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),g("label",{class:"font-bold text-sm text-red-700 dark:text-red-400"},"Remote Access")],-1)),g("div",xKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[56]||(e[56]=T=>o.configFile.force_accept_remote_access=T),onChange:e[57]||(e[57]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-red-500"},null,544),[[at,o.configFile.force_accept_remote_access]]),e[510]||(e[510]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),e[512]||(e[512]=g("p",{class:"mt-2 text-sm text-red-600 dark:text-red-400"},[g("strong",null,"Security Warning:"),nt(" Enabling remote access poses significant security risks. Only enable this if you: "),g("ul",{class:"list-disc ml-6 mt-1"},[g("li",null,"Fully understand the security implications"),g("li",null,"Have proper network security measures in place"),g("li",null,"Are in a trusted network environment")])],-1))]),g("div",SKn,[e[514]||(e[514]=g("div",{class:"flex items-center space-x-2"},[g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Enhanced Message Copy"),g("div",{class:"text-xs text-gray-500 dark:text-gray-400"}," (Include metadata like sender name and model info when copying messages) ")],-1)),g("div",LKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[58]||(e[58]=T=>o.configFile.copy_to_clipboard_add_all_details=T),onChange:e[59]||(e[59]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.copy_to_clipboard_add_all_details]]),e[513]||(e[513]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("div",CKn,[e[516]||(e[516]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200"},"Headless server mode (DEACTIVATES the WEBUI)",-1)),g("div",AKn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[60]||(e[60]=T=>o.configFile.headless_server_mode=T),onChange:e[61]||(e[61]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,544),[[at,o.configFile.headless_server_mode]]),e[515]||(e[515]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])])])]),_:1}),ae(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",wKn,[g("div",MKn,[e[519]||(e[519]=g("label",{class:"text-sm font-semibold text-gray-700 dark:text-gray-300"},"Template Type",-1)),g("select",{onChange:e[62]||(e[62]=(...T)=>o.handleTemplateSelection&&o.handleTemplateSelection(...T)),class:"form-select w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},e[518]||(e[518]=[g("option",{value:"lollms"},"Lollms communication template",-1),g("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),g("option",{value:"bare"},"Bare, useful when in chat mode",-1),g("option",{value:"llama3"},"LLama3 communication template",-1),g("option",{value:"mistral"},"Mistral communication template",-1),g("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)]),g("div",OKn,[g("div",RKn,[e[520]||(e[520]=g("label",{for:"start_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Start Header Template ",-1)),te(g("input",{type:"text",id:"start_header_id_template","onUpdate:modelValue":e[63]||(e[63]=T=>o.configFile.start_header_id_template=T),onChange:e[64]||(e[64]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.start_header_id_template]])]),g("div",NKn,[e[521]||(e[521]=g("label",{for:"end_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End Header Template ",-1)),te(g("input",{type:"text",id:"end_header_id_template","onUpdate:modelValue":e[65]||(e[65]=T=>o.configFile.end_header_id_template=T),onChange:e[66]||(e[66]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_header_id_template]])])]),g("div",DKn,[g("div",IKn,[e[522]||(e[522]=g("label",{for:"start_user_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Start User Header Template ",-1)),te(g("input",{type:"text",id:"start_user_header_id_template","onUpdate:modelValue":e[67]||(e[67]=T=>o.configFile.start_user_header_id_template=T),onChange:e[68]||(e[68]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.start_user_header_id_template]])]),g("div",kKn,[e[523]||(e[523]=g("label",{for:"end_user_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End User Header Template ",-1)),te(g("input",{type:"text",id:"end_user_header_id_template","onUpdate:modelValue":e[69]||(e[69]=T=>o.configFile.end_user_header_id_template=T),onChange:e[70]||(e[70]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_user_header_id_template]])])]),g("div",PKn,[g("div",HKn,[e[524]||(e[524]=g("label",{for:"start_ai_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Start AI Header Template ",-1)),te(g("input",{type:"text",id:"start_ai_header_id_template","onUpdate:modelValue":e[71]||(e[71]=T=>o.configFile.start_ai_header_id_template=T),onChange:e[72]||(e[72]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.start_ai_header_id_template]])]),g("div",VKn,[e[525]||(e[525]=g("label",{for:"end_ai_header_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End AI Header Template ",-1)),te(g("input",{type:"text",id:"end_ai_header_id_template","onUpdate:modelValue":e[73]||(e[73]=T=>o.configFile.end_ai_header_id_template=T),onChange:e[74]||(e[74]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_ai_header_id_template]])])]),g("div",FKn,[g("div",BKn,[e[526]||(e[526]=g("label",{for:"end_user_message_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End User Message Template ",-1)),te(g("input",{type:"text",id:"end_user_message_id_template","onUpdate:modelValue":e[75]||(e[75]=T=>o.configFile.end_user_message_id_template=T),onChange:e[76]||(e[76]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_user_message_id_template]])]),g("div",$Kn,[e[527]||(e[527]=g("label",{for:"end_ai_message_id_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," End AI Message Template ",-1)),te(g("input",{type:"text",id:"end_ai_message_id_template","onUpdate:modelValue":e[77]||(e[77]=T=>o.configFile.end_ai_message_id_template=T),onChange:e[78]||(e[78]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.end_ai_message_id_template]])])]),g("div",UKn,[e[528]||(e[528]=g("label",{for:"separator_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Separator Template ",-1)),te(g("textarea",{id:"separator_template","onUpdate:modelValue":e[79]||(e[79]=T=>o.configFile.separator_template=T),onChange:e[80]||(e[80]=T=>i.settingsChanged=!0),class:"w-full h-24 rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"}," ",544),[[Ne,o.configFile.separator_template]])]),g("div",GKn,[e[529]||(e[529]=g("label",{for:"system_message_template",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," System Template ",-1)),te(g("input",{type:"text",id:"system_message_template","onUpdate:modelValue":e[81]||(e[81]=T=>o.configFile.system_message_template=T),onChange:e[82]||(e[82]=T=>i.settingsChanged=!0),class:"w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-300 focus:border-blue-500 focus:ring-blue-500"},null,544),[[Ne,o.configFile.system_message_template]])]),g("div",qKn,[e[530]||(e[530]=g("label",{class:"text-sm font-semibold text-gray-700 dark:text-gray-300"},"Full Template Preview",-1)),g("div",zKn,[g("div",{innerHTML:o.full_template},null,8,jKn)])]),g("div",WKn,[e[532]||(e[532]=g("label",{for:"use_continue_message",class:"text-sm font-semibold text-gray-700 dark:text-gray-300"}," Use Continue Message ",-1)),g("div",YKn,[te(g("input",{type:"checkbox",id:"use_continue_message","onUpdate:modelValue":e[83]||(e[83]=T=>o.configFile.use_continue_message=T),onChange:e[84]||(e[84]=T=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"},null,544),[[at,o.configFile.use_continue_message]]),e[531]||(e[531]=g("label",{for:"use_continue_message",class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])])])]),_:1}),ae(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",KKn,[g("div",ZKn,[e[533]||(e[533]=g("label",{for:"user_name",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," User Name ",-1)),te(g("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[85]||(e[85]=T=>o.configFile.user_name=T),onChange:e[86]||(e[86]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.user_name]])]),g("div",XKn,[e[534]||(e[534]=g("label",{for:"user_description",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," User Description ",-1)),te(g("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[87]||(e[87]=T=>o.configFile.user_description=T),onChange:e[88]||(e[88]=T=>i.settingsChanged=!0),class:"flex-1 h-[300px] px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white resize-none"},null,544),[[Ne,o.configFile.user_description]])]),g("div",JKn,[g("div",eZn,[e[538]||(e[538]=g("label",{class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," Discussion Settings ",-1)),g("div",tZn,[g("label",nZn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[89]||(e[89]=T=>o.configFile.use_user_informations_in_discussion=T),onChange:e[90]||(e[90]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.use_user_informations_in_discussion]]),e[535]||(e[535]=g("span",{class:"text-sm text-gray-700 dark:text-gray-200"},"Use user description in discussion",-1))]),g("label",rZn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[91]||(e[91]=T=>o.configFile.use_model_name_in_discussions=T),onChange:e[92]||(e[92]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.use_model_name_in_discussions]]),e[536]||(e[536]=g("span",{class:"text-sm text-gray-700 dark:text-gray-200"},"Use model name in discussion",-1))]),g("label",iZn,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[93]||(e[93]=T=>o.configFile.use_user_name_in_discussions=T),onChange:e[94]||(e[94]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.use_user_name_in_discussions]]),e[537]||(e[537]=g("span",{class:"text-sm text-gray-700 dark:text-gray-200"},"Use User Name in discussions",-1))])])])]),g("div",oZn,[e[540]||(e[540]=g("label",{class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," User Avatar ",-1)),g("div",sZn,[g("label",aZn,[g("img",{src:o.configFile.user_avatar!=null&&o.configFile.user_avatar!=""?"/user_infos/"+o.configFile.user_avatar:i.storeLogo,class:"w-16 h-16 rounded-full object-cover border-2 border-gray-300 hover:border-blue-500"},null,8,lZn)]),g("input",{type:"file",id:"avatar-upload",class:"hidden",onChange:e[95]||(e[95]=(...T)=>o.uploadAvatar&&o.uploadAvatar(...T))},null,32),g("button",{onClick:e[96]||(e[96]=ge(T=>o.resetAvatar(),["stop"])),class:"p-2 text-gray-500 hover:text-red-500 transition-colors duration-200",title:"Remove avatar"},e[539]||(e[539]=[g("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]))])]),g("div",cZn,[g("div",uZn,[e[541]||(e[541]=g("label",{for:"max_n_predict",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," Maximum Token Space ",-1)),te(g("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[97]||(e[97]=T=>o.configFile.max_n_predict=T),onChange:e[98]||(e[98]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.max_n_predict]])]),g("div",dZn,[e[542]||(e[542]=g("label",{for:"min_n_predict",class:"text-sm font-bold text-gray-700 dark:text-gray-200 min-w-[200px]"}," Minimum Token Space ",-1)),te(g("input",{type:"number",id:"min_n_predict",required:"","onUpdate:modelValue":e[99]||(e[99]=T=>o.configFile.min_n_predict=T),onChange:e[100]||(e[100]=T=>i.settingsChanged=!0),class:"flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.min_n_predict]])])])])]),_:1}),ae(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",fZn,[g("div",pZn,[e[543]||(e[543]=g("label",{for:"turn_on_code_execution",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Turn on code execution ",-1)),g("div",hZn,[te(g("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[101]||(e[101]=T=>o.configFile.turn_on_code_execution=T),onChange:e[102]||(e[102]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_code_execution]])])]),g("div",TZn,[e[544]||(e[544]=g("label",{for:"turn_on_code_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"},[nt(" Turn on code validation "),g("span",{class:"block text-xs text-gray-500 dark:text-gray-400"},"Very recommended for security reasons")],-1)),g("div",mZn,[te(g("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[103]||(e[103]=T=>o.configFile.turn_on_code_validation=T),onChange:e[104]||(e[104]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_code_validation]])])]),g("div",gZn,[e[545]||(e[545]=g("label",{for:"turn_on_setting_update_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"},[nt(" Turn on apply settings validation "),g("span",{class:"block text-xs text-gray-500 dark:text-gray-400"},"Very recommended for security reasons")],-1)),g("div",_Zn,[te(g("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[105]||(e[105]=T=>o.configFile.turn_on_setting_update_validation=T),onChange:e[106]||(e[106]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_setting_update_validation]])])]),g("div",QZn,[e[546]||(e[546]=g("label",{for:"turn_on_open_file_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Turn on open file/folder validation ",-1)),g("div",vZn,[te(g("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[107]||(e[107]=T=>o.configFile.turn_on_open_file_validation=T),onChange:e[108]||(e[108]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_open_file_validation]])])]),g("div",yZn,[e[547]||(e[547]=g("label",{for:"turn_on_send_file_validation",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Turn on send file validation ",-1)),g("div",bZn,[te(g("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[109]||(e[109]=T=>o.configFile.turn_on_send_file_validation=T),onChange:e[110]||(e[110]=T=>i.settingsChanged=!0),class:"toggle-checkbox"},null,544),[[at,o.configFile.turn_on_send_file_validation]])])])])]),_:1}),ae(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",EZn,[g("div",xZn,[e[549]||(e[549]=g("label",{for:"activate_skills_lib",class:"text-sm font-bold text-gray-900 dark:text-white min-w-[200px]"}," Activate Skills library: ",-1)),g("div",SZn,[g("label",LZn,[te(g("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[111]||(e[111]=T=>o.configFile.activate_skills_lib=T),onChange:e[112]||(e[112]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_skills_lib]]),e[548]||(e[548]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",CZn,[e[550]||(e[550]=g("label",{for:"skills_lib_database_name",class:"text-sm font-bold text-gray-900 dark:text-white min-w-[200px]"}," Skills library database name: ",-1)),g("div",AZn,[te(g("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[113]||(e[113]=T=>o.configFile.skills_lib_database_name=T),onChange:e[114]||(e[114]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-blue-500 dark:focus:border-blue-500 text-gray-900 dark:text-white transition-colors duration-200",placeholder:"Enter database name"},null,544),[[Ne,o.configFile.skills_lib_database_name]])])])])]),_:1}),ae(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",wZn,[g("div",MZn,[e[551]||(e[551]=g("div",{class:"min-w-[200px]"},[g("label",{for:"pdf_latex_path",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200"}," PDF LaTeX Path: ")],-1)),g("div",OZn,[te(g("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[115]||(e[115]=T=>o.configFile.pdf_latex_path=T),onChange:e[116]||(e[116]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 text-sm bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:text-white dark:placeholder-gray-400 transition-colors duration-200",placeholder:"Enter PDF LaTeX path..."},null,544),[[Ne,o.configFile.pdf_latex_path]])])])])]),_:1}),ae(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",RZn,[g("div",NZn,[g("div",DZn,[e[552]||(e[552]=g("label",{for:"positive_boost",class:"text-sm font-bold text-gray-700 dark:text-gray-200"}," Positive Boost ",-1)),g("div",IZn,[te(g("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[117]||(e[117]=T=>o.configFile.positive_boost=T),onChange:e[118]||(e[118]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white transition-all duration-200"},null,544),[[Ne,o.configFile.positive_boost]])])])]),g("div",kZn,[g("div",PZn,[e[553]||(e[553]=g("label",{for:"negative_boost",class:"text-sm font-bold text-gray-700 dark:text-gray-200"}," Negative Boost ",-1)),g("div",HZn,[te(g("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[119]||(e[119]=T=>o.configFile.negative_boost=T),onChange:e[120]||(e[120]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white transition-all duration-200"},null,544),[[Ne,o.configFile.negative_boost]])])])]),g("div",VZn,[g("div",FZn,[e[555]||(e[555]=g("label",{for:"fun_mode",class:"text-sm font-bold text-gray-700 dark:text-gray-200"}," Fun Mode ",-1)),g("div",BZn,[g("label",$Zn,[te(g("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[121]||(e[121]=T=>o.configFile.fun_mode=T),onChange:e[122]||(e[122]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.fun_mode]]),e[554]||(e[554]=g("div",{class:"relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])])])])]),_:1})])],2)]),g("div",UZn,[g("div",GZn,[g("button",{onClick:e[123]||(e[123]=ge(T=>i.data_conf_collapsed=!i.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[556]||(e[556]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.data_conf_collapsed]]),te(g("div",null,e[557]||(e[557]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.data_conf_collapsed]]),e[558]||(e[558]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),g("div",{class:We([{hidden:i.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[ae(a,{title:"Data Lakes",is_subcard:!0,class:"p-4 m-2"},{default:Be(()=>[g("div",qZn,[e[570]||(e[570]=g("div",{class:"flex items-center mb-4"},[g("h3",{class:"text-lg font-semibold dark:text-white"},"Data Lakes Configuration")],-1)),g("div",zZn,[(k(!0),P(ze,null,lt(o.configFile.datalakes,(T,Q)=>(k(),P("div",{key:Q,class:"p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},[g("div",jZn,[g("div",WZn,[e[559]||(e[559]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Data Lake Alias",-1)),g("input",{type:"text",value:o.getDataLakeAlias(Q),onInput:_=>o.updateAlias(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter alias"},null,40,YZn)]),g("div",KZn,[e[561]||(e[561]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Type",-1)),g("select",{required:"",value:o.getDataLakeType(Q),onInput:_=>o.updateDatabaseType(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},e[560]||(e[560]=[g("option",{value:"lollmsvectordb"},"Lollms VectorDB Folder",-1),g("option",{value:"lightrag"},"Light Rag",-1),g("option",{value:"elasticdsearch"},"Elastic Search",-1)]),40,ZZn)]),g("div",XZn,[g("label",JZn,ue(T.type==="lightrag"?"DataLake URL":"DataLake Path"),1),T.type==="lightrag"?(k(),P("input",{key:0,type:"text",value:o.getDataLakeUrl(Q),onInput:_=>o.updateDataLakeUrl(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter DataLake URL"},null,40,eXn)):ie("",!0),T.type==="lollmsvectordb"?(k(),P("input",{key:1,type:"text",value:o.getDataLakePath(Q),onInput:_=>o.updateDataLakePath(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter DataLake Path"},null,40,tXn)):ie("",!0)]),T.type==="lightrag"?(k(),P("div",nXn,[e[562]||(e[562]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"API Key",-1)),g("input",{type:"text",value:o.getDataLakeKey(Q),onInput:_=>o.updateDatabaseKey(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter API key"},null,40,rXn)])):ie("",!0)]),g("div",iXn,[g("div",oXn,[g("div",sXn,[e[564]||(e[564]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200 mr-4"},"Mounted",-1)),g("div",aXn,[te(g("input",{type:"checkbox","onUpdate:modelValue":_=>o.configFile.datalakes[Q].mounted=_,onChange:e[124]||(e[124]=_=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,40,lXn),[[at,o.configFile.datalakes[Q].mounted]]),e[563]||(e[563]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),T.type==="lollmsvectordb"?(k(),P("div",cXn,[g("button",{onClick:_=>o.vectorize_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 focus:ring-2 focus:ring-offset-2 focus:ring-green-500",title:"Vectorize or re-vectorize the selected folder"},e[565]||(e[565]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),nt(" Vectorize ")]),8,uXn),g("button",{onClick:_=>o.lollms_vectordb_select_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Select a folder as data source"},e[566]||(e[566]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),nt(" Select Folder ")]),8,dXn)])):ie("",!0),g("div",fXn,[g("input",{type:"file",ref_for:!0,ref:"fileInput",onChange:e[125]||(e[125]=(..._)=>o.handleFileUpload&&o.handleFileUpload(..._)),accept:".pdf,.txt,.doc,.docx,.csv,.md",class:"hidden",multiple:""},null,544),g("button",{onClick:e[126]||(e[126]=(..._)=>o.triggerFileInput&&o.triggerFileInput(..._)),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 focus:ring-2 focus:ring-offset-2 focus:ring-green-500"},e[567]||(e[567]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1),nt(" Upload Files ")]))])]),g("button",{onClick:_=>o.removeDataLake(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-red-600 rounded-md hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500"},e[568]||(e[568]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),nt(" Remove Data Lake ")]),8,pXn)])]))),128))]),g("button",{onClick:e[127]||(e[127]=(...T)=>o.addDataLake&&o.addDataLake(...T)),class:"inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[569]||(e[569]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),nt(" Add New Data Lake ")]))])]),_:1}),ae(a,{title:"Data Servers",is_subcard:!0,class:"p-4 m-2"},{default:Be(()=>[g("div",hXn,[e[585]||(e[585]=g("div",{class:"flex items-center mb-4"},[g("h3",{class:"text-lg font-semibold dark:text-white"},"Database Servers")],-1)),g("div",TXn,[(k(!0),P(ze,null,lt(o.configFile.rag_local_services,(T,Q)=>(k(),P("div",{key:Q,class:"p-4 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},[g("div",mXn,[g("div",gXn,[e[571]||(e[571]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Database Alias",-1)),g("input",{type:"text",value:o.getServedDatabaseAlias(Q),onInput:_=>o.updateAlias(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter alias"},null,40,_Xn)]),g("div",QXn,[e[573]||(e[573]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Type",-1)),g("select",{required:"",value:o.getServedDatabaseType(Q),onInput:_=>o.updateDatabaseType(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},e[572]||(e[572]=[g("option",{value:"lightrag"},"Light Rag",-1),g("option",{value:"elasticdsearch"},"Elastic Search",-1)]),40,vXn)]),g("div",yXn,[e[574]||(e[574]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Database URL",-1)),g("input",{type:"text",value:o.getServedDatabaseUrl(Q),onInput:_=>o.updateDataLakeUrl(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter database URL"},null,40,bXn)]),g("div",EXn,[e[575]||(e[575]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"API Key",-1)),g("input",{type:"text",value:o.getServedDatabaseKey(Q),onInput:_=>o.updateDatabaseKey(Q,_.target.value),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Enter API key"},null,40,xXn)]),g("div",SXn,[e[576]||(e[576]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Input folder",-1)),te(g("input",{type:"text","onUpdate:modelValue":_=>o.configFile.rag_local_services[Q].input_path=_,onChange:e[128]||(e[128]=_=>i.settingsChanged=!0),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Input folder"},null,40,LXn),[[Ne,o.configFile.rag_local_services[Q].input_path]])]),g("div",CXn,[e[577]||(e[577]=g("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Input folder",-1)),te(g("input",{type:"text","onUpdate:modelValue":_=>o.configFile.rag_local_services[Q].working_path=_,onChange:e[129]||(e[129]=_=>i.settingsChanged=!0),class:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:"Output folder"},null,40,AXn),[[Ne,o.configFile.rag_local_services[Q].working_path]])])]),g("div",wXn,[g("div",MXn,[g("div",OXn,[e[579]||(e[579]=g("label",{class:"font-bold text-sm text-gray-700 dark:text-gray-200 mr-4"},"Start at Startup",-1)),g("div",RXn,[te(g("input",{type:"checkbox","onUpdate:modelValue":_=>o.configFile.rag_local_services[Q].start_at_startup=_,onChange:e[130]||(e[130]=_=>i.settingsChanged=!0),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer transition-transform duration-200 ease-in-out checked:translate-x-6 checked:bg-blue-500"},null,40,NXn),[[at,o.configFile.rag_local_services[Q].start_at_startup]]),e[578]||(e[578]=g("label",{class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 dark:bg-gray-600 cursor-pointer"},null,-1))])]),g("input",{type:"file",ref_for:!0,ref:"fileInput",onChange:e[131]||(e[131]=(..._)=>o.handleFileUpload&&o.handleFileUpload(..._)),accept:".pdf,.txt,.doc,.docx,.csv,.md",class:"hidden",multiple:""},null,544),g("button",{onClick:e[132]||(e[132]=(..._)=>o.triggerFileInput&&o.triggerFileInput(..._)),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 focus:ring-2 focus:ring-offset-2 focus:ring-green-500"},e[580]||(e[580]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1),nt(" Upload Files ")]))]),g("button",{onClick:_=>o.lightrag_select_input_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Select a folder as data source"},e[581]||(e[581]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),nt(" Select input Folder ")]),8,DXn),g("button",{onClick:_=>o.lightrag_select_output_folder(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Select a folder as data source"},e[582]||(e[582]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),nt(" Select work Folder ")]),8,IXn),g("button",{onClick:_=>o.removeServedDataBase(Q),class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white bg-red-600 rounded-md hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500"},e[583]||(e[583]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),nt(" Remove Database ")]),8,kXn)])]))),128))]),g("button",{onClick:e[133]||(e[133]=(...T)=>o.addDatabaseService&&o.addDatabaseService(...T)),class:"inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[584]||(e[584]=[g("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),nt(" Add New Database Server ")]))])]),_:1}),ae(a,{title:"LollmsVectordb Configuration",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",PXn,[g("div",HXn,[e[587]||(e[587]=g("label",{for:"rag_vectorizer",class:"text-sm font-bold w-64"},"RAG Vectorizer:",-1)),te(g("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[134]||(e[134]=T=>o.configFile.rag_vectorizer=T),onChange:e[135]||(e[135]=T=>i.settingsChanged=!0),class:"flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},e[586]||(e[586]=[g("option",{value:"semantic"},"Semantic Vectorizer",-1),g("option",{value:"tfidf"},"TFIDF Vectorizer",-1),g("option",{value:"openai"},"OpenAI Vectorizer",-1),g("option",{value:"ollama"},"Ollama Vectorizer",-1)]),544),[[hn,o.configFile.rag_vectorizer]])]),g("div",VXn,[e[588]||(e[588]=g("label",{class:"text-sm font-bold w-64"},"Allow executing remote code:",-1)),g("div",FXn,[g("label",BXn,[te(g("input",{"onUpdate:modelValue":e[136]||(e[136]=T=>o.configFile.rag_vectorizer_execute_remote_code=T),type:"checkbox",onChange:e[137]||(e[137]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.rag_vectorizer_execute_remote_code]])])])]),g("div",$Xn,[e[592]||(e[592]=g("label",{class:"text-sm font-bold w-64 pt-2"},"RAG Vectorizer model:",-1)),g("div",UXn,[te(g("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[138]||(e[138]=T=>o.configFile.rag_vectorizer_model=T),onChange:e[139]||(e[139]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500",disabled:o.configFile.rag_vectorizer==="tfidf"},[o.configFile.rag_vectorizer==="semantic"?(k(),P("optgroup",qXn,e[589]||(e[589]=[g("option",{value:"BAAI/bge-m3"},"BAAI/bge-m3",-1),g("option",{value:"nvidia/NV-Embed-v2"},"nvidia/NV-Embed-v2",-1),g("option",{value:"sentence-transformers/all-MiniLM-L6-v2"},"sentence-transformers/all-MiniLM-L6-v2",-1),g("option",{value:"sentence-transformers/all-MiniLM-L12-v2"},"sentence-transformers/all-MiniLM-L12-v2",-1),g("option",{value:"sentence-transformers/all-distilroberta-v1"},"sentence-transformers/all-distilroberta-v1",-1),g("option",{value:"sentence-transformers/all-mpnet-base-v2"},"sentence-transformers/all-mpnet-base-v2",-1)]))):ie("",!0),o.configFile.rag_vectorizer==="openai"?(k(),P("optgroup",zXn,e[590]||(e[590]=[g("option",{value:"text-embedding-ada-002"},"text-embedding-ada-002",-1),g("option",{value:"text-embedding-babbage-001"},"text-embedding-babbage-001",-1),g("option",{value:"text-embedding-curie-001"},"text-embedding-curie-001",-1),g("option",{value:"text-embedding-davinci-001"},"text-embedding-davinci-001",-1)]))):ie("",!0),o.configFile.rag_vectorizer==="ollama"?(k(),P("optgroup",jXn,e[591]||(e[591]=[g("option",{value:"bge-m3"},"bge-m3",-1),g("option",{value:"NV-Embed-v2"},"nvidia/NV-Embed-v2",-1),g("option",{value:"nomic-embed-text"},"nomic-embed-text",-1),g("option",{value:"mxbai-embed-large"},"mxbai-embed-large",-1),g("option",{value:"snowflake-arctic-embed"},"snowflake-arctic-embed",-1),g("option",{value:"all-minilm"},"all-minilm",-1),g("option",{value:"bge-large"},"bge-large",-1)]))):ie("",!0),o.configFile.rag_vectorizer==="tfidf"?(k(),P("option",WXn,"No models available for TFIDF")):ie("",!0)],40,GXn),[[hn,o.configFile.rag_vectorizer_model]]),te(g("input",{"onUpdate:modelValue":e[140]||(e[140]=T=>o.configFile.rag_vectorizer_model=T),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},null,512),[[Ne,o.configFile.rag_vectorizer_model]])])]),g("div",YXn,[e[593]||(e[593]=g("label",{class:"text-sm font-bold w-64 pt-2"},"RAG server address:",-1)),o.configFile.rag_vectorizer==="ollama"?te((k(),P("input",{key:0,"onUpdate:modelValue":e[141]||(e[141]=T=>o.configFile.rag_service_url=T),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},null,512)),[[Ne,o.configFile.rag_service_url]]):ie("",!0)]),g("div",KXn,[g("div",ZXn,[e[594]||(e[594]=g("label",{class:"text-sm font-bold w-64"},"RAG chunk size:",-1)),g("div",XXn,[te(g("input",{id:"rag_chunk_size","onUpdate:modelValue":e[142]||(e[142]=T=>o.configFile.rag_chunk_size=T),onChange:e[143]||(e[143]=T=>i.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.rag_chunk_size]]),te(g("input",{"onUpdate:modelValue":e[144]||(e[144]=T=>o.configFile.rag_chunk_size=T),type:"number",onChange:e[145]||(e[145]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:border-gray-500"},null,544),[[Ne,o.configFile.rag_chunk_size]])])])]),g("div",JXn,[g("div",eJn,[e[595]||(e[595]=g("label",{class:"text-sm font-bold w-64"},"Clean chunks:",-1)),g("div",tJn,[g("label",nJn,[te(g("input",{"onUpdate:modelValue":e[146]||(e[146]=T=>o.configFile.rag_clean_chunks=T),type:"checkbox",onChange:e[147]||(e[147]=T=>i.settingsChanged=!0),class:"w-5 h-5 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:bg-gray-600"},null,544),[[at,o.configFile.rag_clean_chunks]])])])])])])]),_:1}),ae(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",rJn,[g("div",iJn,[e[597]||(e[597]=g("div",{class:"flex-grow"},[g("label",{for:"rag_build_keys_words",class:"font-medium text-gray-700 dark:text-gray-200"},[nt(" Reformulate prompt before querying database "),g("span",{class:"text-sm text-gray-500 dark:text-gray-400 block mt-1"}," (Recommended for better search results) ")])],-1)),g("div",oJn,[g("label",sJn,[te(g("input",{type:"checkbox",id:"rag_build_keys_words","onUpdate:modelValue":e[148]||(e[148]=T=>o.configFile.rag_build_keys_words=T),onChange:e[149]||(e[149]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.rag_build_keys_words]]),e[596]||(e[596]=g("div",{class:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",aJn,[e[599]||(e[599]=g("div",{class:"flex-grow"},[g("label",{for:"rag_put_chunk_informations_into_context",class:"font-medium text-gray-700 dark:text-gray-200"}," Put Chunk Information Into Context ")],-1)),g("div",lJn,[g("label",cJn,[te(g("input",{type:"checkbox",id:"rag_put_chunk_informations_into_context","onUpdate:modelValue":e[150]||(e[150]=T=>o.configFile.rag_put_chunk_informations_into_context=T),onChange:e[151]||(e[151]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.rag_put_chunk_informations_into_context]]),e[598]||(e[598]=g("div",{class:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",uJn,[e[601]||(e[601]=g("div",{class:"flex-grow"},[g("label",{for:"data_vectorization_save_db",class:"font-medium text-gray-700 dark:text-gray-200"},[nt(" Save new files to database "),g("span",{class:"text-sm text-gray-500 dark:text-gray-400 block mt-1"}," Database will persist and grow across sessions ")])],-1)),g("div",dJn,[g("label",fJn,[te(g("input",{type:"checkbox",id:"data_vectorization_save_db","onUpdate:modelValue":e[152]||(e[152]=T=>o.configFile.data_vectorization_save_db=T),onChange:e[153]||(e[153]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.data_vectorization_save_db]]),e[600]||(e[600]=g("div",{class:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])])])]),_:1})],2)]),g("div",pJn,[g("div",hJn,[g("button",{onClick:e[154]||(e[154]=ge(T=>i.internet_conf_collapsed=!i.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[602]||(e[602]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.internet_conf_collapsed]]),te(g("div",null,e[603]||(e[603]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.internet_conf_collapsed]]),e[604]||(e[604]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),g("div",{class:We([{hidden:i.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[ae(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",TJn,[g("div",mJn,[e[606]||(e[606]=g("label",{for:"activate_internet_search",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate automatic internet search ",-1)),g("label",gJn,[te(g("input",{type:"checkbox",id:"fun_mode","onUpdate:modelValue":e[155]||(e[155]=T=>o.configFile.activate_internet_search=T),onChange:e[156]||(e[156]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_internet_search]]),e[605]||(e[605]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",_Jn,[e[608]||(e[608]=g("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate internet pages judgement ",-1)),g("label",QJn,[te(g("input",{type:"checkbox",id:"activate_internet_pages_judgement","onUpdate:modelValue":e[157]||(e[157]=T=>o.configFile.activate_internet_pages_judgement=T),onChange:e[158]||(e[158]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_internet_pages_judgement]]),e[607]||(e[607]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",vJn,[e[610]||(e[610]=g("label",{for:"internet_quick_search",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate quick search ",-1)),g("label",yJn,[te(g("input",{type:"checkbox",id:"internet_quick_search","onUpdate:modelValue":e[159]||(e[159]=T=>o.configFile.internet_quick_search=T),onChange:e[160]||(e[160]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.internet_quick_search]]),e[609]||(e[609]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",bJn,[e[612]||(e[612]=g("label",{for:"internet_activate_search_decision",class:"text-sm font-bold text-gray-900 dark:text-white"}," Activate search decision ",-1)),g("label",EJn,[te(g("input",{type:"checkbox",id:"internet_activate_search_decision","onUpdate:modelValue":e[161]||(e[161]=T=>o.configFile.internet_activate_search_decision=T),onChange:e[162]||(e[162]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.internet_activate_search_decision]]),e[611]||(e[611]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-600 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",xJn,[g("div",SJn,[e[613]||(e[613]=g("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet vectorization chunk size ",-1)),g("div",LJn,[te(g("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[163]||(e[163]=T=>o.configFile.internet_vectorization_chunk_size=T),onChange:e[164]||(e[164]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_vectorization_chunk_size]]),te(g("input",{"onUpdate:modelValue":e[165]||(e[165]=T=>o.configFile.internet_vectorization_chunk_size=T),type:"number",onChange:e[166]||(e[166]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_vectorization_chunk_size]])])]),g("div",CJn,[e[614]||(e[614]=g("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet vectorization overlap size ",-1)),g("div",AJn,[te(g("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[167]||(e[167]=T=>o.configFile.internet_vectorization_overlap_size=T),onChange:e[168]||(e[168]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_vectorization_overlap_size]]),te(g("input",{"onUpdate:modelValue":e[169]||(e[169]=T=>o.configFile.internet_vectorization_overlap_size=T),type:"number",onChange:e[170]||(e[170]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_vectorization_overlap_size]])])]),g("div",wJn,[e[615]||(e[615]=g("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet vectorization number of chunks ",-1)),g("div",MJn,[te(g("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[171]||(e[171]=T=>o.configFile.internet_vectorization_nb_chunks=T),onChange:e[172]||(e[172]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_vectorization_nb_chunks]]),te(g("input",{"onUpdate:modelValue":e[173]||(e[173]=T=>o.configFile.internet_vectorization_nb_chunks=T),type:"number",onChange:e[174]||(e[174]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_vectorization_nb_chunks]])])]),g("div",OJn,[e[616]||(e[616]=g("label",{for:"internet_nb_search_pages",class:"text-sm font-bold text-gray-900 dark:text-white"}," Internet number of search pages ",-1)),g("div",RJn,[te(g("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[175]||(e[175]=T=>o.configFile.internet_nb_search_pages=T),onChange:e[176]||(e[176]=T=>i.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-600"},null,544),[[Ne,o.configFile.internet_nb_search_pages]]),te(g("input",{"onUpdate:modelValue":e[177]||(e[177]=T=>o.configFile.internet_nb_search_pages=T),type:"number",onChange:e[178]||(e[178]=T=>i.settingsChanged=!0),class:"w-24 px-3 py-2 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md text-sm"},null,544),[[Ne,o.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),g("div",NJn,[g("div",DJn,[g("button",{onClick:e[179]||(e[179]=ge(T=>i.servers_conf_collapsed=!i.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[617]||(e[617]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.servers_conf_collapsed]]),te(g("div",null,e[618]||(e[618]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.servers_conf_collapsed]]),e[619]||(e[619]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),g("div",{class:We([{hidden:i.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[ae(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",IJn,[g("div",kJn,[e[621]||(e[621]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_tts_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to speech engine"}," Active TTS Service ")],-1)),g("div",PJn,[te(g("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[180]||(e[180]=T=>o.configFile.active_tts_service=T),onChange:e[181]||(e[181]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[620]||(e[620]=[g("option",{value:"None"},"None",-1),g("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),g("option",{value:"xtts"},"XTTS",-1),g("option",{value:"parler-tts"},"Parler-TTS",-1),g("option",{value:"openai_tts"},"Open AI TTS",-1),g("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),g("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[hn,o.configFile.active_tts_service]])])]),g("div",HJn,[e[623]||(e[623]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_stt_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Speech to Text engine"}," Active STT Service ")],-1)),g("div",VJn,[te(g("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[182]||(e[182]=T=>o.configFile.active_stt_service=T),onChange:e[183]||(e[183]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[622]||(e[622]=[g("option",{value:"None"},"None",-1),g("option",{value:"whisper"},"Whisper",-1),g("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[hn,o.configFile.active_stt_service]])])]),g("div",FJn,[e[625]||(e[625]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_tti_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to image engine"}," Active TTI Service ")],-1)),g("div",BJn,[te(g("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[184]||(e[184]=T=>o.configFile.active_tti_service=T),onChange:e[185]||(e[185]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[624]||(e[624]=[g("option",{value:"None"},"None",-1),g("option",{value:"diffusers"},"Diffusers",-1),g("option",{value:"diffusers_client"},"Diffusers Client",-1),g("option",{value:"autosd"},"AUTO1111's SD",-1),g("option",{value:"dall-e"},"Open AI DALL-E",-1),g("option",{value:"midjourney"},"Midjourney",-1),g("option",{value:"comfyui"},"Comfyui",-1),g("option",{value:"fooocus"},"Fooocus",-1)]),544),[[hn,o.configFile.active_tti_service]])])]),g("div",$Jn,[e[627]||(e[627]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_ttm_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to Music engine"}," Active TTM Service ")],-1)),g("div",UJn,[te(g("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[186]||(e[186]=T=>o.configFile.active_ttm_service=T),onChange:e[187]||(e[187]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[626]||(e[626]=[g("option",{value:"None"},"None",-1),g("option",{value:"musicgen"},"Music Gen",-1)]),544),[[hn,o.configFile.active_ttm_service]])])]),g("div",GJn,[e[629]||(e[629]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"active_ttv_service",class:"block text-sm font-semibold text-gray-700 dark:text-gray-300",title:"Default Text to Video engine"}," Active TTV Service ")],-1)),g("div",qJn,[te(g("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[188]||(e[188]=T=>o.configFile.active_ttv_service=T),onChange:e[189]||(e[189]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 rounded-lg border border-gray-300 bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-all duration-200"},e[628]||(e[628]=[g("option",{value:"None"},"None",-1),g("option",{value:"cog_video_x"},"Cog Video X",-1),g("option",{value:"diffusers"},"Diffusers",-1),g("option",{value:"lumalab"},"Lumalab",-1)]),544),[[hn,o.configFile.active_ttv_service]])])])])]),_:1}),ae(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",zJn,[g("div",jJn,[e[631]||(e[631]=g("div",{class:"w-1/3"},[g("label",{for:"use_negative_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Use negative prompt ")],-1)),g("div",WJn,[g("label",YJn,[te(g("input",{type:"checkbox",id:"use_negative_prompt","onUpdate:modelValue":e[190]||(e[190]=T=>o.configFile.use_negative_prompt=T),onChange:e[191]||(e[191]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.use_negative_prompt]]),e[630]||(e[630]=g("div",{class:"relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",KJn,[e[633]||(e[633]=g("div",{class:"w-1/3"},[g("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Use AI generated negative prompt ")],-1)),g("div",ZJn,[g("label",XJn,[te(g("input",{type:"checkbox",id:"use_ai_generated_negative_prompt","onUpdate:modelValue":e[192]||(e[192]=T=>o.configFile.use_ai_generated_negative_prompt=T),onChange:e[193]||(e[193]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.use_ai_generated_negative_prompt]]),e[632]||(e[632]=g("div",{class:"relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",JJn,[e[634]||(e[634]=g("div",{class:"w-1/3"},[g("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Negative prompt generation prompt ")],-1)),g("div",eer,[te(g("input",{type:"text",id:"negative_prompt_generation_prompt","onUpdate:modelValue":e[194]||(e[194]=T=>o.configFile.negative_prompt_generation_prompt=T),onChange:e[195]||(e[195]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors duration-200 text-sm text-gray-900 dark:text-white placeholder-gray-400",required:""},null,544),[[Ne,o.configFile.negative_prompt_generation_prompt]])])]),g("div",ter,[e[635]||(e[635]=g("div",{class:"w-1/3"},[g("label",{for:"default_negative_prompt",class:"text-sm font-semibold text-gray-700 dark:text-gray-200"}," Default negative prompt ")],-1)),g("div",ner,[te(g("input",{type:"text",id:"default_negative_prompt","onUpdate:modelValue":e[196]||(e[196]=T=>o.configFile.default_negative_prompt=T),onChange:e[197]||(e[197]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors duration-200 text-sm text-gray-900 dark:text-white placeholder-gray-400",required:""},null,544),[[Ne,o.configFile.default_negative_prompt]])])])])]),_:1}),ae(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",rer,[g("div",ier,[e[636]||(e[636]=g("div",{class:"flex items-center"},[g("label",{for:"stt_listening_threshold",class:"font-medium text-gray-700 dark:text-gray-200",title:"Listening threshold"}," Listening threshold "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Controls the sensitivity of voice detection"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[198]||(e[198]=T=>o.configFile.stt_listening_threshold=T),onChange:e[199]||(e[199]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_listening_threshold]])]),g("div",oer,[e[637]||(e[637]=g("div",{class:"flex items-center"},[g("label",{for:"stt_silence_duration",class:"font-medium text-gray-700 dark:text-gray-200"}," Silence duration (s) "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Duration of silence before stopping recording"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[200]||(e[200]=T=>o.configFile.stt_silence_duration=T),onChange:e[201]||(e[201]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_silence_duration]])]),g("div",ser,[e[638]||(e[638]=g("div",{class:"flex items-center"},[g("label",{for:"stt_sound_threshold_percentage",class:"font-medium text-gray-700 dark:text-gray-200"}," Minimum sound percentage "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Minimum required sound percentage in recorded segment"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[202]||(e[202]=T=>o.configFile.stt_sound_threshold_percentage=T),onChange:e[203]||(e[203]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_sound_threshold_percentage]])]),g("div",aer,[e[639]||(e[639]=g("div",{class:"flex items-center"},[g("label",{for:"stt_gain",class:"font-medium text-gray-700 dark:text-gray-200"}," Volume amplification "),g("span",{class:"ml-1 text-gray-400 hover:text-gray-600 cursor-help",title:"Audio input gain adjustment"},[g("i",{class:"fas fa-info-circle"})])],-1)),te(g("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[204]||(e[204]=T=>o.configFile.stt_gain=T),onChange:e[205]||(e[205]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-gray-50 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.stt_gain]])]),g("div",ler,[e[643]||(e[643]=g("h3",{class:"font-semibold text-gray-900 dark:text-white mb-4"},"Audio Settings",-1)),g("div",cer,[e[640]||(e[640]=g("label",{for:"stt_rate",class:"font-medium text-gray-700 dark:text-gray-200"},"Audio rate",-1)),te(g("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[206]||(e[206]=T=>o.configFile.stt_rate=T),onChange:e[207]||(e[207]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_rate]])]),g("div",uer,[e[641]||(e[641]=g("label",{for:"stt_channels",class:"font-medium text-gray-700 dark:text-gray-200"},"Number of channels",-1)),te(g("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[208]||(e[208]=T=>o.configFile.stt_channels=T),onChange:e[209]||(e[209]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_channels]])]),g("div",der,[e[642]||(e[642]=g("label",{for:"stt_buffer_size",class:"font-medium text-gray-700 dark:text-gray-200"},"Buffer size",-1)),te(g("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[210]||(e[210]=T=>o.configFile.stt_buffer_size=T),onChange:e[211]||(e[211]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_buffer_size]])])]),g("div",fer,[e[647]||(e[647]=g("h3",{class:"font-semibold text-gray-900 dark:text-white mb-4"},"Word Detection",-1)),g("div",per,[e[645]||(e[645]=g("label",{for:"stt_activate_word_detection",class:"font-medium text-gray-700 dark:text-gray-200"}," Activate word detection ",-1)),g("div",her,[g("label",Ter,[te(g("input",{type:"checkbox",id:"stt_activate_word_detection","onUpdate:modelValue":e[212]||(e[212]=T=>o.configFile.stt_activate_word_detection=T),onChange:e[213]||(e[213]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.stt_activate_word_detection]]),e[644]||(e[644]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])])]),g("div",mer,[e[646]||(e[646]=g("label",{for:"stt_word_detection_file",class:"font-medium text-gray-700 dark:text-gray-200"}," Word detection wav file ",-1)),te(g("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[214]||(e[214]=T=>o.configFile.stt_word_detection_file=T),onChange:e[215]||(e[215]=T=>i.settingsChanged=!0),class:"px-4 py-2 bg-white border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-600 dark:border-gray-500 dark:text-white"},null,544),[[Ne,o.configFile.stt_word_detection_file]])])])])]),_:1}),ae(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",ger,[g("div",_er,[e[648]||(e[648]=g("div",{class:"md:w-1/3"},[g("label",{for:"stt_input_device",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200",title:"Input device"}," Audio Input Device "),g("p",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"}," Select your microphone or audio input source ")],-1)),g("div",Qer,[te(g("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[216]||(e[216]=T=>o.configFile.stt_input_device=T),onChange:e[217]||(e[217]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-md shadow-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-colors duration-200"},[(k(!0),P(ze,null,lt(i.snd_input_devices,(T,Q)=>(k(),P("option",{key:T,value:i.snd_input_devices_indexes[Q]},ue(T),9,ver))),128))],544),[[hn,o.configFile.stt_input_device]])])]),g("div",yer,[e[649]||(e[649]=g("div",{class:"md:w-1/3"},[g("label",{for:"tts_output_device",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200",title:"Output device"}," Audio Output Device "),g("p",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"}," Select your speakers or audio output device ")],-1)),g("div",ber,[te(g("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[218]||(e[218]=T=>o.configFile.tts_output_device=T),onChange:e[219]||(e[219]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-md shadow-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white transition-colors duration-200"},[(k(!0),P(ze,null,lt(i.snd_output_devices,(T,Q)=>(k(),P("option",{key:T,value:i.snd_output_devices_indexes[Q]},ue(T),9,Eer))),128))],544),[[hn,o.configFile.tts_output_device]])])])])]),_:1}),ae(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",xer,[g("div",Ser,[e[650]||(e[650]=g("label",{for:"host",class:"font-semibold text-gray-700 dark:text-gray-200"},"Host:",-1)),te(g("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[220]||(e[220]=T=>o.configFile.host=T),onChange:e[221]||(e[221]=T=>i.settingsChanged=!0),class:"input-field"},null,544),[[Ne,o.configFile.host]])]),g("div",Ler,[e[651]||(e[651]=g("label",{for:"lollms_access_keys",class:"font-semibold text-gray-700 dark:text-gray-200"},"Access keys:",-1)),ae(l,{modelValue:o.configFile.lollms_access_keys,"onUpdate:modelValue":e[222]||(e[222]=T=>o.configFile.lollms_access_keys=T),onChange:e[223]||(e[223]=T=>i.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])]),g("div",Cer,[e[652]||(e[652]=g("label",{for:"port",class:"font-semibold text-gray-700 dark:text-gray-200"},"Port:",-1)),te(g("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[224]||(e[224]=T=>o.configFile.port=T),onChange:e[225]||(e[225]=T=>i.settingsChanged=!0),class:"input-field"},null,544),[[Ne,o.configFile.port]])]),g("div",Aer,[e[655]||(e[655]=g("span",{class:"font-semibold text-gray-700 dark:text-gray-200"},"Server Configuration:",-1)),g("div",wer,[g("label",Mer,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[226]||(e[226]=T=>o.configFile.headless_server_mode=T),onChange:e[227]||(e[227]=T=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,544),[[at,o.configFile.headless_server_mode]]),e[653]||(e[653]=g("span",{class:"text-sm text-gray-600 dark:text-gray-300"},"Headless Server Mode",-1))]),g("label",Oer,[te(g("input",{type:"checkbox","onUpdate:modelValue":e[228]||(e[228]=T=>o.configFile.activate_lollms_server=T),onChange:e[229]||(e[229]=T=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,544),[[at,o.configFile.activate_lollms_server]]),e[654]||(e[654]=g("span",{class:"text-sm text-gray-600 dark:text-gray-300"},"LoLLMS Server",-1))]),g("div",Rer,[(k(),P(ze,null,lt(["rag","tts","stt","tti","itt","ttm"],T=>g("label",{key:T,class:"flex items-center space-x-2 cursor-pointer"},[te(g("input",{type:"checkbox",id:`activate_lollms_${T}_server`,"onUpdate:modelValue":Q=>o.configFile[`activate_lollms_${T}_server`]=Q,onChange:e[230]||(e[230]=Q=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,40,Ner),[[at,o.configFile[`activate_lollms_${T}_server`]]]),g("span",Der,ue(T.toUpperCase())+" Server",1)])),64))])])]),g("div",Ier,[e[656]||(e[656]=g("span",{class:"font-semibold text-gray-700 dark:text-gray-200"},"Emulators:",-1)),g("div",ker,[(k(),P(ze,null,lt(["ollama","openai","mistralai"],T=>g("label",{key:T,class:"flex items-center space-x-2 cursor-pointer"},[te(g("input",{type:"checkbox",id:`activate_${T}_emulator`,"onUpdate:modelValue":Q=>o.configFile[`activate_${T}_emulator`]=Q,onChange:e[231]||(e[231]=Q=>i.settingsChanged=!0),class:"w-4 h-4 rounded accent-blue-500"},null,40,Per),[[at,o.configFile[`activate_${T}_emulator`]]]),g("span",Her,ue(T.charAt(0).toUpperCase()+T.slice(1))+" Emulator",1)])),64))])])])]),_:1}),ae(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",Ver,[g("div",Fer,[e[658]||(e[658]=g("label",{for:"activate_audio_infos",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Activate audio infos ",-1)),g("label",Ber,[te(g("input",{type:"checkbox",id:"activate_audio_infos","onUpdate:modelValue":e[232]||(e[232]=T=>o.configFile.activate_audio_infos=T),onChange:e[233]||(e[233]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.activate_audio_infos]]),e[657]||(e[657]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",$er,[e[660]||(e[660]=g("label",{for:"audio_auto_send_input",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Send audio input automatically ",-1)),g("label",Uer,[te(g("input",{type:"checkbox",id:"audio_auto_send_input","onUpdate:modelValue":e[234]||(e[234]=T=>o.configFile.audio_auto_send_input=T),onChange:e[235]||(e[235]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.audio_auto_send_input]]),e[659]||(e[659]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",Ger,[g("label",qer," Audio silence timer (ms): "+ue(o.configFile.audio_silenceTimer)+"ms ",1),g("div",zer,[te(g("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[236]||(e[236]=T=>o.configFile.audio_silenceTimer=T),onChange:e[237]||(e[237]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 accent-blue-600"},null,544),[[Ne,o.configFile.audio_silenceTimer]]),te(g("input",{"onUpdate:modelValue":e[238]||(e[238]=T=>o.configFile.audio_silenceTimer=T),onChange:e[239]||(e[239]=T=>i.settingsChanged=!0),type:"number",class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},null,544),[[Ne,o.configFile.audio_silenceTimer]])])]),g("div",jer,[e[661]||(e[661]=g("label",{for:"audio_in_language",class:"text-sm font-medium text-gray-700 dark:text-gray-200"}," Input Audio Language ",-1)),te(g("select",{id:"audio_in_language","onUpdate:modelValue":e[240]||(e[240]=T=>o.configFile.audio_in_language=T),onChange:e[241]||(e[241]=T=>i.settingsChanged=!0),class:"w-full px-3 py-2 bg-gray-50 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white"},[(k(!0),P(ze,null,lt(o.audioLanguages,T=>(k(),P("option",{key:T.code,value:T.code},ue(T.name),9,Wer))),128))],544),[[hn,o.configFile.audio_in_language]])])])]),_:1}),ae(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",Yer,[g("div",Ker,[e[663]||(e[663]=g("label",{for:"whisper_activate",class:"text-gray-700 dark:text-gray-200 font-medium"}," Activate Whisper at startup ",-1)),g("label",Zer,[te(g("input",{type:"checkbox",id:"whisper_activate","onUpdate:modelValue":e[242]||(e[242]=T=>o.configFile.whisper_activate=T),onChange:e[243]||(e[243]=T=>i.settingsChanged=!0),class:"sr-only peer"},null,544),[[at,o.configFile.whisper_activate]]),e[662]||(e[662]=g("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1))])]),g("div",Xer,[g("button",{onClick:e[244]||(e[244]=(...T)=>o.reinstallWhisperService&&o.reinstallWhisperService(...T)),class:"w-full py-3 px-4 bg-gradient-to-r from-green-400 to-green-500 hover:from-green-500 hover:to-green-600 text-white font-medium rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex items-center justify-center space-x-2"},e[664]||(e[664]=[g("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("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),g("span",null,"Install Whisper",-1)]))]),g("div",Jer,[e[666]||(e[666]=g("label",{for:"whisper_model",class:"block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2"}," Whisper Model ",-1)),g("div",etr,[te(g("select",{id:"whisper_model","onUpdate:modelValue":e[245]||(e[245]=T=>o.configFile.whisper_model=T),onChange:e[246]||(e[246]=T=>i.settingsChanged=!0),class:"block w-full px-4 py-3 text-base border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white appearance-none"},[(k(!0),P(ze,null,lt(o.whisperModels,T=>(k(),P("option",{key:T,value:T},ue(T),9,ttr))),128))],544),[[hn,o.configFile.whisper_model]]),e[665]||(e[665]=g("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 dark:text-gray-300"},[g("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})])],-1))])])])]),_:1}),ae(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",ntr,[g("tr",null,[e[667]||(e[667]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),g("td",null,[g("div",rtr,[te(g("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[247]||(e[247]=T=>o.configFile.openai_whisper_key=T),onChange:e[248]||(e[248]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.openai_whisper_key]])])])]),g("tr",null,[e[668]||(e[668]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),g("td",null,[g("div",itr,[te(g("select",{id:"openai_whisper_model","onUpdate:modelValue":e[249]||(e[249]=T=>o.configFile.openai_whisper_model=T),onChange:e[250]||(e[250]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(k(!0),P(ze,null,lt(o.openaiWhisperModels,T=>(k(),P("option",{key:T,value:T},ue(T),9,otr))),128))],544),[[hn,o.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",str,[g("tr",null,[e[669]||(e[669]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),g("td",null,[g("div",atr,[te(g("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[251]||(e[251]=T=>o.configFile.auto_speak=T),onChange:e[252]||(e[252]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.auto_speak]])])])]),g("tr",null,[e[670]||(e[670]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),g("td",null,[te(g("input",{id:"audio_pitch","onUpdate:modelValue":e[253]||(e[253]=T=>o.configFile.audio_pitch=T),onChange:e[254]||(e[254]=T=>i.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.audio_pitch]]),te(g("input",{"onUpdate:modelValue":e[255]||(e[255]=T=>o.configFile.audio_pitch=T),onChange:e[256]||(e[256]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.audio_pitch]])])]),g("tr",null,[e[671]||(e[671]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),g("td",null,[te(g("select",{id:"audio_out_voice","onUpdate:modelValue":e[257]||(e[257]=T=>o.configFile.audio_out_voice=T),onChange:e[258]||(e[258]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(k(!0),P(ze,null,lt(i.audioVoices,T=>(k(),P("option",{key:T.name,value:T.name},ue(T.name),9,ltr))),128))],544),[[hn,o.configFile.audio_out_voice]])])])])]),_:1}),ae(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",ctr,[g("tr",null,[e[672]||(e[672]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),g("td",null,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[259]||(e[259]=(...T)=>o.reinstallXTTSService&&o.reinstallXTTSService(...T))},"install xtts service")])]),g("tr",null,[e[673]||(e[673]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),g("td",null,[g("div",utr,[te(g("select",{"onUpdate:modelValue":e[260]||(e[260]=T=>o.xtts_current_language=T),onChange:e[261]||(e[261]=T=>i.settingsChanged=!0)},[(k(!0),P(ze,null,lt(i.voice_languages,(T,Q)=>(k(),P("option",{key:Q,value:T},ue(Q),9,dtr))),128))],544),[[hn,o.xtts_current_language]])])])]),g("tr",null,[e[674]||(e[674]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),g("td",null,[g("div",ftr,[te(g("select",{"onUpdate:modelValue":e[262]||(e[262]=T=>o.xtts_current_voice=T),onChange:e[263]||(e[263]=T=>i.settingsChanged=!0)},[(k(!0),P(ze,null,lt(i.voices,T=>(k(),P("option",{key:T,value:T},ue(T),9,ptr))),128))],544),[[hn,o.xtts_current_voice]])])])]),g("tr",null,[e[675]||(e[675]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),g("td",null,[g("div",htr,[te(g("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[264]||(e[264]=T=>o.configFile.xtts_freq=T),onChange:e[265]||(e[265]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[Ne,o.configFile.xtts_freq,void 0,{number:!0}]])])])]),g("tr",null,[e[676]||(e[676]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),g("td",null,[g("div",Ttr,[te(g("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[266]||(e[266]=T=>o.configFile.auto_read=T),onChange:e[267]||(e[267]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.auto_read]])])])]),g("tr",null,[e[677]||(e[677]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),g("td",null,[g("div",mtr,[te(g("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[268]||(e[268]=T=>o.configFile.xtts_stream_chunk_size=T),onChange:e[269]||(e[269]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.xtts_stream_chunk_size]])])])]),g("tr",null,[e[678]||(e[678]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),g("td",null,[g("div",gtr,[te(g("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[270]||(e[270]=T=>o.configFile.xtts_temperature=T),onChange:e[271]||(e[271]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[Ne,o.configFile.xtts_temperature,void 0,{number:!0}]])])])]),g("tr",null,[e[679]||(e[679]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),g("td",null,[g("div",_tr,[te(g("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[272]||(e[272]=T=>o.configFile.xtts_length_penalty=T),onChange:e[273]||(e[273]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[Ne,o.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),g("tr",null,[e[680]||(e[680]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),g("td",null,[g("div",Qtr,[te(g("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[274]||(e[274]=T=>o.configFile.xtts_repetition_penalty=T),onChange:e[275]||(e[275]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[Ne,o.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),g("tr",null,[e[681]||(e[681]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),g("td",null,[g("div",vtr,[te(g("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[276]||(e[276]=T=>o.configFile.xtts_top_k=T),onChange:e[277]||(e[277]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.xtts_top_k,void 0,{number:!0}]])])])]),g("tr",null,[e[682]||(e[682]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),g("td",null,[g("div",ytr,[te(g("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[278]||(e[278]=T=>o.configFile.xtts_top_p=T),onChange:e[279]||(e[279]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.xtts_top_p,void 0,{number:!0}]])])])]),g("tr",null,[e[683]||(e[683]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),g("td",null,[g("div",btr,[te(g("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[280]||(e[280]=T=>o.configFile.xtts_speed=T),onChange:e[281]||(e[281]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[Ne,o.configFile.xtts_speed,void 0,{number:!0}]])])])]),g("tr",null,[e[684]||(e[684]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),g("td",null,[g("div",Etr,[te(g("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[282]||(e[282]=T=>o.configFile.enable_text_splitting=T),onChange:e[283]||(e[283]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_text_splitting]])])])])])]),_:1}),ae(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",xtr,[g("tr",null,[e[685]||(e[685]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),g("td",null,[g("div",Str,[te(g("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[284]||(e[284]=T=>o.configFile.openai_tts_key=T),onChange:e[285]||(e[285]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.openai_tts_key]])])])]),g("tr",null,[e[687]||(e[687]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),g("td",null,[g("div",Ltr,[te(g("select",{"onUpdate:modelValue":e[286]||(e[286]=T=>o.configFile.openai_tts_model=T),onChange:e[287]||(e[287]=T=>i.settingsChanged=!0)},e[686]||(e[686]=[g("option",null," tts-1 ",-1),g("option",null," tts-2 ",-1)]),544),[[hn,o.configFile.openai_tts_model]])])])]),g("tr",null,[e[689]||(e[689]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),g("td",null,[g("div",Ctr,[te(g("select",{"onUpdate:modelValue":e[288]||(e[288]=T=>o.configFile.openai_tts_voice=T),onChange:e[289]||(e[289]=T=>i.settingsChanged=!0)},e[688]||(e[688]=[g("option",null," alloy ",-1),g("option",null," echo ",-1),g("option",null," fable ",-1),g("option",null," nova ",-1),g("option",null," shimmer ",-1)]),544),[[hn,o.configFile.openai_tts_voice]])])])])])]),_:1}),ae(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Atr,[g("tr",null,[e[690]||(e[690]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),g("td",null,[g("div",wtr,[te(g("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[290]||(e[290]=T=>o.configFile.elevenlabs_tts_key=T),onChange:e[291]||(e[291]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.elevenlabs_tts_key]])])])]),g("tr",null,[e[691]||(e[691]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),g("td",null,[g("div",Mtr,[te(g("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[292]||(e[292]=T=>o.configFile.elevenlabs_tts_model_id=T),onChange:e[293]||(e[293]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.elevenlabs_tts_model_id]])])])]),g("tr",null,[e[692]||(e[692]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),g("td",null,[g("div",Otr,[te(g("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[294]||(e[294]=T=>o.configFile.elevenlabs_tts_voice_stability=T),onChange:e[295]||(e[295]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[Ne,o.configFile.elevenlabs_tts_voice_stability]])])])]),g("tr",null,[e[693]||(e[693]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),g("td",null,[g("div",Rtr,[te(g("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[296]||(e[296]=T=>o.configFile.elevenlabs_tts_voice_boost=T),onChange:e[297]||(e[297]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[Ne,o.configFile.elevenlabs_tts_voice_boost]])])])]),g("tr",null,[e[694]||(e[694]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),g("td",null,[g("div",Ntr,[te(g("select",{"onUpdate:modelValue":e[298]||(e[298]=T=>o.configFile.elevenlabs_tts_voice_id=T),onChange:e[299]||(e[299]=T=>i.settingsChanged=!0)},[(k(!0),P(ze,null,lt(i.voices,T=>(k(),P("option",{key:T.voice_id,value:T.voice_id},ue(T.name),9,Dtr))),128))],544),[[hn,o.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),ae(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Itr,[g("tr",null,[e[695]||(e[695]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),g("td",null,[g("div",ktr,[te(g("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[300]||(e[300]=T=>o.configFile.fish_tts_key=T),onChange:e[301]||(e[301]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.fish_tts_key]])])])]),g("tr",null,[e[696]||(e[696]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),g("td",null,[g("div",Ptr,[te(g("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[302]||(e[302]=T=>o.configFile.fish_tts_voice=T),onChange:e[303]||(e[303]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Htr,[g("tr",null,[e[698]||(e[698]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),g("td",null,[g("div",Vtr,[te(g("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[304]||(e[304]=T=>o.configFile.enable_sd_service=T),onChange:e[305]||(e[305]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_sd_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[306]||(e[306]=T=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[697]||(e[697]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[700]||(e[700]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),g("td",null,[g("div",Ftr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[307]||(e[307]=(...T)=>o.reinstallSDService&&o.reinstallSDService(...T))},"install sd service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[308]||(e[308]=(...T)=>o.upgradeSDService&&o.upgradeSDService(...T))},"upgrade sd service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[309]||(e[309]=(...T)=>o.startSDService&&o.startSDService(...T))},"start sd service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[310]||(e[310]=(...T)=>o.showSD&&o.showSD(...T))},"show sd ui"),e[699]||(e[699]=g("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1))])]),g("td",null,[g("div",Btr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[311]||(e[311]=(...T)=>o.reinstallSDService&&o.reinstallSDService(...T))},"install sd service")])])]),g("tr",null,[e[701]||(e[701]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),g("td",null,[g("div",$tr,[te(g("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[312]||(e[312]=T=>o.configFile.sd_base_url=T),onChange:e[313]||(e[313]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.sd_base_url]])])])])])]),_:1}),ae(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Utr,[g("tr",null,[e[703]||(e[703]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),g("td",null,[g("div",Gtr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[314]||(e[314]=(...T)=>o.reinstallDiffusersService&&o.reinstallDiffusersService(...T))},"install diffusers service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[315]||(e[315]=(...T)=>o.upgradeDiffusersService&&o.upgradeDiffusersService(...T))},"upgrade diffusers service"),e[702]||(e[702]=g("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1))])])]),g("tr",null,[e[704]||(e[704]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),g("td",null,[g("div",qtr,[te(g("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[316]||(e[316]=T=>o.configFile.diffusers_model=T),onChange:e[317]||(e[317]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.diffusers_model]])])]),e[705]||(e[705]=g("td",null,null,-1))])])]),_:1}),ae(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",ztr,[g("tr",null,[e[706]||(e[706]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),g("td",null,[g("div",jtr,[te(g("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[318]||(e[318]=T=>o.configFile.diffusers_client_base_url=T),onChange:e[319]||(e[319]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.diffusers_client_base_url]])])]),e[707]||(e[707]=g("td",null,null,-1))])])]),_:1}),ae(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Wtr,[g("tr",null,[e[708]||(e[708]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),g("td",null,[g("div",Ytr,[te(g("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[320]||(e[320]=T=>o.configFile.midjourney_key=T),onChange:e[321]||(e[321]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.midjourney_key]])])])]),g("tr",null,[e[709]||(e[709]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),g("td",null,[g("div",Ktr,[te(g("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[322]||(e[322]=T=>o.configFile.midjourney_timeout=T),onChange:e[323]||(e[323]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.midjourney_timeout]])])])]),g("tr",null,[e[710]||(e[710]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),g("td",null,[g("div",Ztr,[te(g("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[324]||(e[324]=T=>o.configFile.midjourney_retries=T),onChange:e[325]||(e[325]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.midjourney_retries]])])])])])]),_:1}),ae(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Xtr,[g("tr",null,[e[711]||(e[711]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),g("td",null,[g("div",Jtr,[te(g("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[326]||(e[326]=T=>o.configFile.dall_e_key=T),onChange:e[327]||(e[327]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.dall_e_key]])])])]),g("tr",null,[e[713]||(e[713]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),g("td",null,[g("div",enr,[te(g("select",{"onUpdate:modelValue":e[328]||(e[328]=T=>o.configFile.dall_e_generation_engine=T),onChange:e[329]||(e[329]=T=>i.settingsChanged=!0)},e[712]||(e[712]=[g("option",null," dall-e-2 ",-1),g("option",null," dall-e-3 ",-1)]),544),[[hn,o.configFile.dall_e_generation_engine]])])])])])]),_:1}),ae(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",tnr,[g("tr",null,[e[715]||(e[715]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),g("td",null,[g("div",nnr,[te(g("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[330]||(e[330]=T=>o.configFile.enable_comfyui_service=T),onChange:e[331]||(e[331]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_comfyui_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[332]||(e[332]=T=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[714]||(e[714]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[716]||(e[716]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),g("td",null,[g("div",rnr,[te(g("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[333]||(e[333]=T=>o.configFile.comfyui_model=T),onChange:e[334]||(e[334]=T=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(k(!0),P(ze,null,lt(i.comfyui_models,(T,Q)=>(k(),P("option",{key:T,value:T},ue(T),9,inr))),128))],544),[[hn,o.configFile.comfyui_model]])])])]),g("tr",null,[e[718]||(e[718]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),g("td",null,[g("div",onr,[te(g("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[335]||(e[335]=T=>o.configFile.comfyui_model=T),onChange:e[336]||(e[336]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.comfyui_model]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[337]||(e[337]=T=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[717]||(e[717]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[720]||(e[720]=g("td",{style:{"min-width":"200px"}},null,-1)),g("td",null,[g("div",snr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[338]||(e[338]=(...T)=>o.reinstallComfyUIService&&o.reinstallComfyUIService(...T))},"install comfyui service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[339]||(e[339]=(...T)=>o.upgradeComfyUIService&&o.upgradeComfyUIService(...T))},"upgrade comfyui service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[340]||(e[340]=(...T)=>o.startComfyUIService&&o.startComfyUIService(...T))},"start comfyui service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[341]||(e[341]=(...T)=>o.showComfyui&&o.showComfyui(...T))},"show comfyui"),e[719]||(e[719]=g("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1))])])]),g("tr",null,[e[721]||(e[721]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),g("td",null,[g("div",anr,[te(g("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[342]||(e[342]=T=>o.configFile.comfyui_base_url=T),onChange:e[343]||(e[343]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",lnr,[g("tr",null,[e[723]||(e[723]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),g("td",null,[g("div",cnr,[te(g("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[344]||(e[344]=T=>o.configFile.enable_ollama_service=T),onChange:e[345]||(e[345]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_ollama_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[346]||(e[346]=T=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. If you are using windows, this uses wsl which requires you to have it installed or at least activated. If You are using windows, this will install wsl so you need to activate it.
Here is how you can do that`))},e[722]||(e[722]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[724]||(e[724]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),g("td",null,[g("div",unr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...T)=>o.reinstallOLLAMAService&&o.reinstallOLLAMAService(...T))},"install ollama service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[348]||(e[348]=(...T)=>o.startollamaService&&o.startollamaService(...T))},"start ollama service")])])]),g("tr",null,[e[725]||(e[725]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),g("td",null,[g("div",dnr,[te(g("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[349]||(e[349]=T=>o.configFile.ollama_base_url=T),onChange:e[350]||(e[350]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.ollama_base_url]])])])])])]),_:1}),ae(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",fnr,[g("tr",null,[e[727]||(e[727]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),g("td",null,[g("div",pnr,[te(g("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[351]||(e[351]=T=>o.configFile.enable_vllm_service=T),onChange:e[352]||(e[352]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_vllm_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[353]||(e[353]=T=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding. @@ -320,17 +320,17 @@ If you are using windows, this uses wsl which requires you to have it installed If You are using windows, this will install wsl so you need to activate it. Here is how you can do that`))},e[726]||(e[726]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[728]||(e[728]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),g("td",null,[g("div",hnr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[354]||(e[354]=(...T)=>o.reinstallvLLMService&&o.reinstallvLLMService(...T))},"install vLLM service"),g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[355]||(e[355]=(...T)=>o.startvLLMService&&o.startvLLMService(...T))},"start vllm service")])])]),g("tr",null,[e[729]||(e[729]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),g("td",null,[g("div",Tnr,[te(g("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[356]||(e[356]=T=>o.configFile.vllm_url=T),onChange:e[357]||(e[357]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.vllm_url]])])])]),g("tr",null,[e[731]||(e[731]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),g("td",null,[g("div",mnr,[g("div",gnr,[e[730]||(e[730]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),g("p",_nr,[te(g("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[358]||(e[358]=T=>o.configFile.vllm_gpu_memory_utilization=T),onChange:e[359]||(e[359]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.vllm_gpu_memory_utilization]])])]),te(g("input",{id:"vllm_gpu_memory_utilization",onChange:e[360]||(e[360]=T=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[361]||(e[361]=T=>o.configFile.vllm_gpu_memory_utilization=T),min:"0.10",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.vllm_gpu_memory_utilization]])])])]),g("tr",null,[e[732]||(e[732]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),g("td",null,[g("div",Qnr,[te(g("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[362]||(e[362]=T=>o.configFile.vllm_max_num_seqs=T),onChange:e[363]||(e[363]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.vllm_max_num_seqs]])])])]),g("tr",null,[e[733]||(e[733]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),g("td",null,[g("div",vnr,[te(g("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[364]||(e[364]=T=>o.configFile.vllm_max_model_len=T),onChange:e[365]||(e[365]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.vllm_max_model_len]])])])]),g("tr",null,[e[734]||(e[734]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),g("td",null,[g("div",ynr,[te(g("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[366]||(e[366]=T=>o.configFile.vllm_model_path=T),onChange:e[367]||(e[367]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.vllm_model_path]])])])])])]),_:1}),ae(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",bnr,[g("tr",null,[e[736]||(e[736]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),g("td",null,[g("div",Enr,[te(g("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[368]||(e[368]=T=>o.configFile.enable_petals_service=T),onChange:e[369]||(e[369]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.enable_petals_service]])])]),g("td",null,[g("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[370]||(e[370]=T=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},e[735]||(e[735]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[737]||(e[737]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),g("td",null,[g("div",xnr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[371]||(e[371]=(...T)=>o.reinstallPetalsService&&o.reinstallPetalsService(...T))},"install petals service")])])]),g("tr",null,[e[738]||(e[738]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),g("td",null,[g("div",Snr,[te(g("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[372]||(e[372]=T=>o.configFile.petals_base_url=T),onChange:e[373]||(e[373]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTV settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",Lnr,[g("div",Cnr,[e[741]||(e[741]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"lumalabs_key",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200"}," Lumalabs Key ")],-1)),g("div",Anr,[g("div",wnr,[te(g("input",{type:"text",id:"lumalabs_key",required:"","onUpdate:modelValue":e[374]||(e[374]=T=>o.configFile.lumalabs_key=T),onChange:e[375]||(e[375]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 text-gray-900 dark:text-white focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-150 ease-in-out",placeholder:"Enter your Lumalabs API key"},null,544),[[Ne,o.configFile.lumalabs_key]]),e[739]||(e[739]=g("div",{class:"absolute inset-y-0 right-0 flex items-center pr-3"},[g("svg",{class:"h-5 w-5 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor"},[g("path",{d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"})])],-1))]),e[740]||(e[740]=g("p",{class:"mt-1 text-xs text-gray-500 dark:text-gray-400"}," Your API key will be securely stored ",-1))])])])]),_:1}),ae(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Mnr,[g("tr",null,[e[742]||(e[742]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),g("td",null,[g("div",Onr,[te(g("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[376]||(e[376]=T=>o.configFile.elastic_search_service=T),onChange:e[377]||(e[377]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.elastic_search_service]])])])]),g("tr",null,[e[743]||(e[743]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),g("td",null,[g("div",Rnr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[378]||(e[378]=(...T)=>o.reinstallElasticSearchService&&o.reinstallElasticSearchService(...T))},"install ElasticSearch service")])])]),g("tr",null,[e[744]||(e[744]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),g("td",null,[g("div",Nnr,[te(g("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[379]||(e[379]=T=>o.configFile.elastic_search_url=T),onChange:e[380]||(e[380]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),g("div",Dnr,[g("div",Inr,[g("button",{onClick:e[381]||(e[381]=ge(T=>i.bzc_collapsed=!i.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[745]||(e[745]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.bzc_collapsed]]),te(g("div",null,e[746]||(e[746]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.bzc_collapsed]]),e[748]||(e[748]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),o.configFile.binding_name?ie("",!0):(k(),P("div",knr,e[747]||(e[747]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),nt(" No binding selected! ")]))),o.configFile.binding_name?(k(),P("div",Pnr,"|")):ie("",!0),o.configFile.binding_name?(k(),P("div",Hnr,[g("div",Vnr,[g("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Fnr),g("p",Bnr,ue(o.binding_name),1)])])):ie("",!0)])]),g("div",{class:We([{hidden:i.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[o.bindingsZoo&&o.bindingsZoo.length>0?(k(),P("div",$nr,[g("label",Unr," Bindings: ("+ue(o.bindingsZoo.length)+") ",1),g("div",{class:We(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.bzl_collapsed?"":"max-h-96"])},[ae(Gs,{name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(o.bindingsZoo,(T,Q)=>(k(),wt(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+Q+"-"+T.folder,binding:T,"on-selected":o.onBindingSelected,"on-reinstall":o.onReinstallBinding,"on-unInstall":o.onUnInstallBinding,"on-install":o.onInstallBinding,"on-settings":o.onSettingsBinding,"on-reload-binding":o.onReloadBinding,selected:T.folder===o.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):ie("",!0),i.bzl_collapsed?(k(),P("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[382]||(e[382]=T=>i.bzl_collapsed=!i.bzl_collapsed)},e[749]||(e[749]=[g("i",{"data-feather":"chevron-up"},null,-1)]))):(k(),P("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[383]||(e[383]=T=>i.bzl_collapsed=!i.bzl_collapsed)},e[750]||(e[750]=[g("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),g("div",Gnr,[g("div",qnr,[g("button",{onClick:e[384]||(e[384]=ge(T=>o.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[te(g("div",null,e[751]||(e[751]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.mzc_collapsed]]),te(g("div",null,e[752]||(e[752]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.mzc_collapsed]]),e[755]||(e[755]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),g("div",znr,[o.configFile.binding_name?ie("",!0):(k(),P("div",jnr,e[753]||(e[753]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),nt(" Select binding first! ")]))),!o.configFile.model_name&&o.configFile.binding_name?(k(),P("div",Wnr,e[754]||(e[754]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),nt(" No model selected! ")]))):ie("",!0),o.configFile.model_name?(k(),P("div",Ynr,"|")):ie("",!0),o.configFile.model_name?(k(),P("div",Knr,[g("div",Znr,[g("img",{src:o.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Xnr),g("p",Jnr,ue(o.configFile.model_name),1)])])):ie("",!0)])])]),g("div",{class:We([{hidden:i.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",err,[g("div",trr,[g("div",nrr,[i.searchModelInProgress?(k(),P("div",rrr,e[756]||(e[756]=[g("div",{role:"status"},[g("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):ie("",!0),i.searchModelInProgress?ie("",!0):(k(),P("div",irr,e[757]||(e[757]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])))]),te(g("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search models...",required:"","onUpdate:modelValue":e[385]||(e[385]=T=>i.searchModel=T),onKeyup:e[386]||(e[386]=ri((...T)=>o.searchModel_func&&o.searchModel_func(...T),["enter"]))},null,544),[[Ne,i.searchModel]]),i.searchModel?(k(),P("button",{key:0,onClick:e[387]||(e[387]=ge(T=>i.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):ie("",!0)])]),g("div",null,[te(g("input",{"onUpdate:modelValue":e[388]||(e[388]=T=>i.show_only_installed_models=T),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[at,i.show_only_installed_models]]),e[758]||(e[758]=g("label",{for:"only_installed"},"Show only installed models",-1))]),g("div",null,[ae(u,{radioOptions:i.sortOptions,onRadioSelected:o.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),e[766]||(e[766]=g("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),i.is_loading_zoo?(k(),P("div",orr,e[759]||(e[759]=[g("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("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),g("p",{class:"heartbeat-text"},"Loading models Zoo",-1)]))):ie("",!0),i.models_zoo&&i.models_zoo.length>0?(k(),P("div",srr,[g("label",arr," Models: ("+ue(i.models_zoo.length)+") ",1),g("div",{class:We(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full 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",i.mzl_collapsed?"":"max-h-96"])},[ae(Gs,{name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(o.rendered_models_zoo,(T,Q)=>(k(),wt(d,{ref_for:!0,ref:"modelZoo",key:"index-"+Q+"-"+T.name,model:T,"is-installed":T.isInstalled,"on-install":o.onInstall,"on-uninstall":o.onUninstall,"on-selected":o.onModelSelected,selected:T.name===o.configFile.model_name,model_type:T.model_type,"on-copy":o.onCopy,"on-copy-link":o.onCopyLink,"on-cancel-install":o.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),g("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[389]||(e[389]=(...T)=>o.load_more_models&&o.load_more_models(...T))},"Load more models",512)]),_:1})],2)])):ie("",!0),i.mzl_collapsed?(k(),P("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[390]||(e[390]=(...T)=>o.open_mzl&&o.open_mzl(...T))},e[760]||(e[760]=[g("i",{"data-feather":"chevron-up"},null,-1)]))):(k(),P("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[391]||(e[391]=(...T)=>o.open_mzl&&o.open_mzl(...T))},e[761]||(e[761]=[g("i",{"data-feather":"chevron-down"},null,-1)]))),g("div",lrr,[g("div",crr,[g("div",null,[g("div",urr,[e[762]||(e[762]=g("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),te(g("input",{type:"text","onUpdate:modelValue":e[392]||(e[392]=T=>i.reference_path=T),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 Path ...",required:""},null,512),[[Ne,i.reference_path]])]),g("button",{type:"button",onClick:e[393]||(e[393]=ge(T=>o.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),i.modelDownlaodInProgress?ie("",!0):(k(),P("div",drr,[g("div",frr,[e[763]||(e[763]=g("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),te(g("input",{type:"text","onUpdate:modelValue":e[394]||(e[394]=T=>i.addModel.url=T),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 URL ...",required:""},null,512),[[Ne,i.addModel.url]])]),g("button",{type:"button",onClick:e[395]||(e[395]=ge(T=>o.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),i.modelDownlaodInProgress?(k(),P("div",prr,[e[765]||(e[765]=g("div",{role:"status",class:"justify-center"},null,-1)),g("div",hrr,[g("div",Trr,[g("div",mrr,[e[764]||(e[764]=jl(' Downloading Loading...',1)),g("span",grr,ue(Math.floor(i.addModel.progress))+"%",1)]),g("div",{class:"mx-1 opacity-80 line-clamp-1",title:i.addModel.url},ue(i.addModel.url),9,_rr),g("div",Qrr,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:bn({width:i.addModel.progress+"%"})},null,4)]),g("div",vrr,[g("span",yrr,"Download speed: "+ue(o.speed_computed)+"/s",1),g("span",brr,ue(o.downloaded_size_computed)+"/"+ue(o.total_size_computed),1)])])]),g("div",Err,[g("div",xrr,[g("div",Srr,[g("button",{onClick:e[396]||(e[396]=ge((...T)=>o.onCancelInstall&&o.onCancelInstall(...T),["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 ")])])])])):ie("",!0)])])],2)]),g("div",Lrr,[g("div",Crr,[g("button",{onClick:e[399]||(e[399]=ge(T=>i.pzc_collapsed=!i.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[te(g("div",null,e[767]||(e[767]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.pzc_collapsed]]),te(g("div",null,e[768]||(e[768]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.pzc_collapsed]]),e[771]||(e[771]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),o.configFile.personalities?(k(),P("div",Arr,"|")):ie("",!0),g("div",wrr,ue(o.active_pesonality),1),o.configFile.personalities?(k(),P("div",Mrr,"|")):ie("",!0),o.configFile.personalities?(k(),P("div",Orr,[o.mountedPersArr.length>0?(k(),P("div",Rrr,[(k(!0),P(ze,null,lt(o.mountedPersArr,(T,Q)=>(k(),P("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:Q+"-"+T.name,ref_for:!0,ref:"mountedPersonalities"},[g("div",Nrr,[g("button",{onClick:ge(_=>o.onPersonalitySelected(T),["stop"])},[g("img",{src:i.bUrl+T.avatar,onError:e[397]||(e[397]=(..._)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(..._)),class:We(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",o.configFile.active_personality_id==o.configFile.personalities.indexOf(T.full_path)?"border-secondary":"border-transparent z-0"]),title:T.name},null,42,Irr)],8,Drr),g("button",{onClick:ge(_=>o.unmountPersonality(T),["stop"])},e[769]||(e[769]=[g("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[g("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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,krr)])]))),128))])):ie("",!0)])):ie("",!0),g("button",{onClick:e[398]||(e[398]=ge(T=>o.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},e[770]||(e[770]=[g("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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)]))])]),g("div",{class:We([{hidden:i.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",Prr,[e[774]||(e[774]=g("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),g("div",Hrr,[g("div",Vrr,[i.searchPersonalityInProgress?(k(),P("div",Frr,e[772]||(e[772]=[g("div",{role:"status"},[g("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):ie("",!0),i.searchPersonalityInProgress?ie("",!0):(k(),P("div",Brr,e[773]||(e[773]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])))]),te(g("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[400]||(e[400]=T=>i.searchPersonality=T),onKeyup:e[401]||(e[401]=ge((...T)=>o.searchPersonality_func&&o.searchPersonality_func(...T),["stop"]))},null,544),[[Ne,i.searchPersonality]]),i.searchPersonality?(k(),P("button",{key:0,onClick:e[402]||(e[402]=ge(T=>i.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):ie("",!0)])]),i.searchPersonality?ie("",!0):(k(),P("div",$rr,[g("label",Urr," Personalities Category: ("+ue(i.persCatgArr.length)+") ",1),g("select",{id:"persCat",onChange:e[403]||(e[403]=T=>o.update_personality_category(T.target.value,o.refresh)),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"},[(k(!0),P(ze,null,lt(i.persCatgArr,(T,Q)=>(k(),P("option",{key:Q,selected:T==this.configFile.personality_category},ue(T),9,Grr))),128))],32)])),g("div",null,[i.personalitiesFiltered.length>0?(k(),P("div",qrr,[g("label",zrr,ue(i.searchPersonality?"Search results":"Personalities")+": ("+ue(i.personalitiesFiltered.length)+") ",1),g("div",{class:We(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.pzl_collapsed?"":"max-h-96"])},[ae(Gs,{name:"bounce"},{default:Be(()=>[(k(!0),P(ze,null,lt(i.personalitiesFiltered,(T,Q)=>(k(),wt(h,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+Q+"-"+T.name,personality:T,select_language:!0,full_path:T.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(_=>_===T.full_path||_===T.full_path+":"+T.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-edit":o.editPersonality,"on-copy-to-custom":o.copyToCustom,"on-reinstall":o.onPersonalityReinstall,"on-settings":o.onSettingsPersonality,"on-copy-personality-name":o.onCopyPersonalityName,"on-copy-to_custom":o.onCopyToCustom,"on-open-folder":o.handleOpenFolder},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"]))),128))]),_:1})],2)])):ie("",!0)]),i.pzl_collapsed?(k(),P("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[404]||(e[404]=T=>i.pzl_collapsed=!i.pzl_collapsed)},e[775]||(e[775]=[g("i",{"data-feather":"chevron-up"},null,-1)]))):(k(),P("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[405]||(e[405]=T=>i.pzl_collapsed=!i.pzl_collapsed)},e[776]||(e[776]=[g("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),g("div",jrr,[g("div",Wrr,[g("button",{onClick:e[406]||(e[406]=ge(T=>i.mc_collapsed=!i.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[te(g("div",null,e[777]||(e[777]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.mc_collapsed]]),te(g("div",null,e[778]||(e[778]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.mc_collapsed]]),e[779]||(e[779]=g("p",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1))])]),g("div",{class:We([{hidden:i.mc_collapsed},"flex flex-col mb-2 p-2"])},[g("div",Yrr,[g("div",Krr,[te(g("input",{id:"override-model-parameters",type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[407]||(e[407]=ge(()=>{},["stop"])),"onUpdate:modelValue":e[408]||(e[408]=T=>o.configFile.override_personality_model_parameters=T),onChange:e[409]||(e[409]=T=>o.update_setting("override_personality_model_parameters",o.configFile.override_personality_model_parameters))},null,544),[[at,o.configFile.override_personality_model_parameters]]),e[780]||(e[780]=g("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1))])]),g("div",{class:We(o.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[g("div",Zrr,[e[781]||(e[781]=g("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),te(g("input",{type:"text",id:"seed","onUpdate:modelValue":e[410]||(e[410]=T=>o.configFile.seed=T),class:"bg-gray-50 border border-gray-300 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:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ne,o.configFile.seed]])]),g("div",Xrr,[g("div",Jrr,[g("div",eir,[e[782]||(e[782]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),g("p",tir,[te(g("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[411]||(e[411]=T=>o.configFile.temperature=T),onChange:e[412]||(e[412]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.temperature]])])]),te(g("input",{id:"temperature",onChange:e[413]||(e[413]=T=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[414]||(e[414]=T=>o.configFile.temperature=T),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.temperature]])])]),g("div",nir,[g("div",rir,[g("div",iir,[e[783]||(e[783]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),g("p",oir,[te(g("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[415]||(e[415]=T=>o.configFile.n_predict=T),onChange:e[416]||(e[416]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.n_predict]])])]),te(g("input",{id:"predict",type:"range",onChange:e[417]||(e[417]=T=>i.settingsChanged=!0),"onUpdate:modelValue":e[418]||(e[418]=T=>o.configFile.n_predict=T),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.n_predict]])])]),g("div",sir,[g("div",air,[g("div",lir,[e[784]||(e[784]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),g("p",cir,[te(g("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[419]||(e[419]=T=>o.configFile.top_k=T),onChange:e[420]||(e[420]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.top_k]])])]),te(g("input",{id:"top_k",type:"range",onChange:e[421]||(e[421]=T=>i.settingsChanged=!0),"onUpdate:modelValue":e[422]||(e[422]=T=>o.configFile.top_k=T),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.top_k]])])]),g("div",uir,[g("div",dir,[g("div",fir,[e[785]||(e[785]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),g("p",pir,[te(g("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[423]||(e[423]=T=>o.configFile.top_p=T),onChange:e[424]||(e[424]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.top_p]])])]),te(g("input",{id:"top_p",type:"range","onUpdate:modelValue":e[425]||(e[425]=T=>o.configFile.top_p=T),min:"0",max:"1",step:"0.01",onChange:e[426]||(e[426]=T=>i.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.top_p]])])]),g("div",hir,[g("div",Tir,[g("div",mir,[e[786]||(e[786]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),g("p",gir,[te(g("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[427]||(e[427]=T=>o.configFile.repeat_penalty=T),onChange:e[428]||(e[428]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.repeat_penalty]])])]),te(g("input",{id:"repeat_penalty",onChange:e[429]||(e[429]=T=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[430]||(e[430]=T=>o.configFile.repeat_penalty=T),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.repeat_penalty]])])]),g("div",_ir,[g("div",Qir,[g("div",vir,[e[787]||(e[787]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),g("p",yir,[te(g("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[431]||(e[431]=T=>o.configFile.repeat_last_n=T),onChange:e[432]||(e[432]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.repeat_last_n]])])]),te(g("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[433]||(e[433]=T=>o.configFile.repeat_last_n=T),min:"0",max:"100",step:"1",onChange:e[434]||(e[434]=T=>i.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.repeat_last_n]])])])],2)],2)])],2)]),ae(f,{ref:"addmodeldialog"},null,512),ae(m,{class:"z-20",show:i.variantSelectionDialogVisible,choices:i.variant_choices,onChoiceSelected:o.onVariantChoiceSelected,onCloseDialog:o.oncloseVariantChoiceDialog,onChoiceValidated:o.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Eir=Et(OWn,[["render",bir],["__scopeId","data-v-70bac901"]]),xir={components:{ClipBoardTextInput:qb,Card:I9},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};xe.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},Sir={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Lir={class:"mb-4"},Cir=["value"],Air={class:"mb-4"},wir={class:"mb-4"},Mir={class:"mb-4"},Oir={class:"mb-4"},Rir={class:"mb-4"},Nir={class:"mb-4"},Dir={key:1};function Iir(t,e,n,r,i,o){const s=gt("Card"),a=gt("ClipBoardTextInput");return o.selectedModel!==null&&o.selectedModel.toLowerCase().includes("gptq")?(k(),P("div",Sir,[g("form",{onSubmit:e[2]||(e[2]=ge((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:""},[ae(s,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[ae(s,{title:"Model",class:"",isHorizontal:!1},{default:Be(()=>[g("div",Lir,[e[3]||(e[3]=g("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),te(g("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>o.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(k(!0),P(ze,null,lt(o.models,l=>(k(),P("option",{key:l,value:l},ue(l),9,Cir))),128))],544),[[hn,o.selectedModel]])])]),_:1}),ae(s,{title:"Data",isHorizontal:!1},{default:Be(()=>[g("div",Air,[e[4]||(e[4]=g("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),ae(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),ae(s,{title:"Training",isHorizontal:!1},{default:Be(()=>[g("div",wir,[e[5]||(e[5]=g("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),g("div",Mir,[e[6]||(e[6]=g("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),g("div",Oir,[e[7]||(e[7]=g("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),g("div",Rir,[e[8]||(e[8]=g("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),ae(s,{title:"Output",isHorizontal:!1},{default:Be(()=>[g("div",Nir,[e[9]||(e[9]=g("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),ae(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),ae(s,{disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>e[10]||(e[10]=[g("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(k(),P("div",Dir,[ae(s,{title:"Info",class:"",isHorizontal:!1},{default:Be(()=>e[11]||(e[11]=[nt(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const kir=Et(xir,[["render",Iir]]),Pir={components:{ClipBoardTextInput:qb,Card:I9},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Hir={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Vir={class:"mb-4"},Fir={class:"mb-4"};function Bir(t,e,n,r,i,o){const s=gt("ClipBoardTextInput"),a=gt("Card");return k(),P("div",Hir,[g("form",{onSubmit:e[0]||(e[0]=ge((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[ae(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[ae(a,{title:"Model",class:"",isHorizontal:!1},{default:Be(()=>[g("div",Vir,[e[1]||(e[1]=g("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),ae(s,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),g("div",Fir,[e[2]||(e[2]=g("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),ae(s,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),ae(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>e[3]||(e[3]=[g("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const $ir=Et(Pir,[["render",Bir]]),Uir={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean,openfolder_enabled:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Ke(()=>{Xe.replace()})},watch:{showConfirmation(){Ke(()=>{Xe.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Ke(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Ke(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Gir=["id"],qir={class:"flex flex-row items-center gap-2"},zir={key:0},jir={class:"flex flex-row items-center w-full"},Wir=["title"],Yir=["value"],Kir={class:"absolute top-0 right-0 h-full flex items-center group"},Zir={class:"discussion-toolbox"},Xir={key:0,class:"flex gap-2 items-center"},Jir={key:1,class:"flex gap-2 items-center"};function eor(t,e,n,r,i,o){return k(),P("div",{class:We([n.selected?"discussion-hilighted":"discussion","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 cursor-pointer relative w-[15rem]"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=ge(s=>o.selectEvent(),["stop"]))},[g("div",qir,[n.isCheckbox?(k(),P("div",zir,[te(g("input",{type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=ge(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=s=>i.checkBoxValue_local=s),onInput:e[2]||(e[2]=s=>o.checkedChangeEvent(s,n.id))},null,544),[[at,i.checkBoxValue_local]])])):ie("",!0),n.selected?(k(),P("div",{key:1,class:We(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):ie("",!0),n.selected?ie("",!0):(k(),P("div",{key:2,class:We(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),g("div",jir,[i.editTitle?ie("",!0):(k(),P("p",{key:0,title:n.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},ue(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,Wir)),i.editTitle?(k(),P("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=ri(ge(s=>o.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=ri(ge(s=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=s=>o.chnageTitle(s.target.value)),onClick:e[6]||(e[6]=ge(()=>{},["stop"]))},null,40,Yir)):ie("",!0)]),g("div",Kir,[g("div",Zir,[i.showConfirmation?(k(),P("div",Xir,[g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=ge(s=>o.cancel(),["stop"]))},e[14]||(e[14]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=ge(s=>i.editTitleMode?o.editTitleEvent():i.deleteMode?o.deleteEvent():o.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),i.showConfirmation?ie("",!0):(k(),P("div",Jir,[n.openfolder_enabled?(k(),P("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=ge(s=>o.openFolderEvent(),["stop"]))},e[16]||(e[16]=[g("i",{"data-feather":"folder"},null,-1)]))):ie("",!0),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=ge(s=>i.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[g("i",{"data-feather":"type"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=ge(s=>i.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[g("i",{"data-feather":"edit-2"},null,-1)])),g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=ge(s=>i.deleteMode=!0,["stop"]))},e[19]||(e[19]=[g("i",{"data-feather":"trash"},null,-1)]))]))])])],10,Gir)}const rE=Et(Uir,[["render",eor],["__scopeId","data-v-2b3580ce"]]),tor={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(t){this.prompt=t}}},nor={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},ror={class:"bg-white p-8 rounded"},ior={class:"text-xl font-bold mb-4"};function oor(t,e,n,r,i,o){return k(),P("div",null,[i.show?(k(),P("div",nor,[g("div",ror,[g("h2",ior,ue(n.promptText),1),te(g("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=s=>i.inputText=s),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[Ne,i.inputText]]),g("button",{onClick:e[1]||(e[1]=(...s)=>o.ok&&o.ok(...s)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),g("button",{onClick:e[2]||(e[2]=(...s)=>o.cancel&&o.cancel(...s)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):ie("",!0)])}const sor=Et(tor,[["render",oor]]),aor={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:rE,MarkdownRenderer:O9},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){xe.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(t=>{this.categories=t.data.categories}).catch(t=>{console.error("Error fetching categories:",t)})},fetchTitles(){console.log("Fetching categories"),xe.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(t=>{this.titles=t.data.titles,console.log("titles recovered")}).catch(t=>{console.error("Error fetching titles:",t)})},fetchContent(t){console.log("loading skill",t),xe.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:t}).then(e=>{const n=e.data.contents[0];this.id=n.id,this.content=n.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(t){console.log("Delete category")},editCategory(t){console.log("Edit category")},checkUncheckCategory(t){console.log("Unchecked category")},deleteSkill(t){console.log("Delete skill ",t),xe.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:t}).then(()=>{this.fetchTitles()})},editTitle(t){xe.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:t,title:t}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(t){console.log("Make title")},checkUncheckTitle(t){},searchSkills(){}}},lor={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},cor={class:"w-[15rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},uor={classclass:"absolute flex flex-col no-scrollbar shadow-lg w-[15rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},dor={class:"z-0 flex flex-col flex-grow 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"};function por(t,e,n,r,i,o){const s=gt("Discussion"),a=gt("MarkdownRenderer");return k(),P("div",{class:We([{hidden:!i.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[g("div",lor,[g("div",cor,[te(g("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 skills by title","onUpdate:modelValue":e[0]||(e[0]=l=>i.searchQuery=l),onKeyup:e[1]||(e[1]=ri((...l)=>o.searchSkills&&o.searchSkills(...l),["enter"]))},null,544),[[Ne,i.searchQuery]]),g("div",uor,[e[3]||(e[3]=g("h2",{class:"text-xl font-bold m-4"},"Titles",-1)),i.titles.length>0?(k(),wt(Gs,{key:0,name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(i.titles,l=>(k(),wt(s,{key:l.id,id:l.id,title:l.title,selected:o.fetchContent(l.id),loading:i.loading,isCheckbox:i.isCheckbox,checkBoxValue:!1,openfolder_enabled:!1,onSelect:c=>o.fetchContent(l.id),onDelete:c=>o.deleteSkill(l.id),onEditTitle:o.editTitle,onMakeTitle:o.makeTitle,onChecked:o.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):ie("",!0)])]),g("div",dor,[e[4]||(e[4]=g("h2",{class:"text-xl font-bold m-4"},"Content",-1)),ae(a,{host:n.host,"markdown-text":i.content,message_id:i.id,discussion_id:i.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),g("button",{onClick:e[2]||(e[2]=(...l)=>o.closeComponent&&o.closeComponent(...l)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const HU=Et(aor,[["render",por]]),hor={props:{htmlContent:{type:String,required:!0}}},Tor=["innerHTML"];function mor(t,e,n,r,i,o){return k(),P("div",{class:"w-full h-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",innerHTML:n.htmlContent},null,8,Tor)}const gor=Et(hor,[["render",mor]]),_or={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},isArray(t){return Array.isArray(t)},toggleCollapse(t){this.collapsedKeys.has(t)?this.collapsedKeys.delete(t):this.collapsedKeys.add(t)},isCollapsed(t){return this.collapsedKeys.has(t)},getValueType(t){return typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":t===null?"null":""},formatValue(t){return typeof t=="string"?`"${t}"`:String(t)}}},Qor={class:"json-tree-view"},vor=["onClick"],yor={key:0,class:"toggle-icon"},bor={class:"key"},Eor={key:0,class:"json-nested"};function xor(t,e,n,r,i,o){const s=gt("json-tree-view",!0);return k(),P("div",Qor,[(k(!0),P(ze,null,lt(n.data,(a,l)=>(k(),P("div",{key:l,class:"json-item"},[g("div",{class:"json-key",onClick:c=>o.toggleCollapse(l)},[o.isObject(a)||o.isArray(a)?(k(),P("span",yor,[g("i",{class:We(o.isCollapsed(l)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):ie("",!0),g("span",bor,ue(l)+":",1),!o.isObject(a)&&!o.isArray(a)?(k(),P("span",{key:1,class:We(["value",o.getValueType(a)])},ue(o.formatValue(a)),3)):ie("",!0)],8,vor),(o.isObject(a)||o.isArray(a))&&!o.isCollapsed(l)?(k(),P("div",Eor,[ae(s,{data:a,depth:n.depth+1},null,8,["data","depth"])])):ie("",!0)]))),128))])}const Sor=Et(_or,[["render",xor],["__scopeId","data-v-40406ec6"]]),Lor={components:{JsonTreeView:Sor},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(t){return console.error("Error parsing JSON string:",t),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},Cor={key:0,class:"json-viewer"},Aor={class:"toggle-icon"},wor={class:"json-content panels-color"};function Mor(t,e,n,r,i,o){const s=gt("json-tree-view");return o.isContentPresent?(k(),P("div",Cor,[g("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>o.toggleCollapsible&&o.toggleCollapsible(...a))},[g("span",Aor,[g("i",{class:We(i.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),nt(" "+ue(n.jsonFormText),1)]),te(g("div",wor,[ae(s,{data:o.parsedJsonData,depth:0},null,8,["data"])],512),[[Ht,!i.collapsed]])])):ie("",!0)}const Oor=Et(Lor,[["render",Mor],["__scopeId","data-v-83fc9727"]]),Ror={props:{done:Boolean,text:String,status:Boolean,description:String}},Nor={class:"step-wrapper"},Dor={class:"step-icon"},Ior={key:0,class:"icon-success",viewBox:"0 0 24 24"},kor={key:1,class:"icon-fail",viewBox:"0 0 24 24"},Por={key:1,class:"icon-spinner"},Hor={class:"step-content"},Vor={class:"step-text"},For={key:0,class:"step-description"};function Bor(t,e,n,r,i,o){return k(),P("div",{class:We(["step-container",{"step-done":n.done}])},[g("div",Nor,[g("div",Dor,[n.done?(k(),P(ze,{key:0},[n.status?(k(),P("svg",Ior,e[0]||(e[0]=[g("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},null,-1)]))):(k(),P("svg",kor,e[1]||(e[1]=[g("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null,-1)])))],64)):(k(),P("div",Por))]),g("div",Hor,[g("h3",Vor,ue(n.text||"No text provided"),1),n.description?(k(),P("p",For,ue(n.description),1)):ie("",!0)])])],2)}const $or=Et(Ror,[["render",Bor]]),Uor="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%20480%20480'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M240,0C107.664,0,0,107.664,0,240s107.664,240,240,240s240-107.664,240-240S372.336,0,240,0z%20M240,460%20c-121.309,0-220-98.691-220-220S118.691,20,240,20s220,98.691,220,220S361.309,460,240,460z'/%3e%3cpath%20d='M410,194.999h-27.058c-2.643-8.44-6-16.56-10.03-24.271l19.158-19.158c3.776-3.775,5.854-8.79,5.854-14.121%20c0-5.332-2.08-10.347-5.854-14.121l-35.399-35.399c-3.775-3.775-8.79-5.854-14.122-5.854c-5.331,0-10.346,2.079-14.121,5.854%20l-19.158,19.158c-7.711-4.03-15.832-7.386-24.271-10.03V70c0-11.028-8.972-20-20-20h-50c-11.028,0-20,8.972-20,20v27.058%20c-8.44,2.643-16.56,6-24.271,10.03L151.57,87.93c-3.775-3.776-8.79-5.854-14.121-5.854c-5.332,0-10.347,2.08-14.121,5.854%20l-35.399,35.399c-3.775,3.775-5.854,8.79-5.854,14.122c0,5.331,2.079,10.346,5.854,14.121l19.158,19.158%20c-4.03,7.711-7.386,15.832-10.03,24.271H70c-11.028,0-20,8.972-20,20v50c0,11.028,8.972,20,20,20h27.057%20c2.643,8.44,6,16.56,10.03,24.271L87.929,328.43c-3.776,3.775-5.854,8.79-5.854,14.121c0,5.332,2.08,10.347,5.854,14.121%20l35.399,35.399c3.775,3.775,8.79,5.854,14.122,5.854c5.331,0,10.346-2.079,14.121-5.854l19.158-19.158%20c7.711,4.03,15.832,7.386,24.271,10.03V410c0,11.028,8.972,20,20,20h50c11.028,0,20-8.972,20.001-20v-27.058%20c8.44-2.643,16.56-6,24.271-10.03l19.158,19.158c3.775,3.776,8.79,5.854,14.121,5.854c5.332,0,10.347-2.08,14.121-5.854%20l35.399-35.399c3.775-3.775,5.854-8.79,5.854-14.122c0-5.331-2.079-10.346-5.854-14.121l-19.158-19.158%20c4.03-7.711,7.386-15.832,10.03-24.271H410c11.028,0,20-8.972,20-20v-50C430,203.971,421.028,194.999,410,194.999z%20M410,264.998%20h-34.598c-4.562,0-8.544,3.086-9.684,7.503c-3.069,11.901-7.716,23.133-13.813,33.387c-2.337,3.931-1.71,8.948,1.524,12.182%20l24.5,24.457l-35.357,35.4l-24.5-24.5c-3.236-3.235-8.253-3.86-12.182-1.524c-10.254,6.097-21.487,10.745-33.387,13.813%20c-4.417,1.14-7.503,5.122-7.503,9.684V410h-50v-34.599c0-4.562-3.086-8.544-7.503-9.684%20c-11.901-3.069-23.133-7.716-33.387-13.813c-1.587-0.944-3.353-1.404-5.107-1.404c-2.586,0-5.147,1.002-7.073,2.931l-24.457,24.5%20l-35.4-35.357l24.5-24.5c3.234-3.235,3.861-8.251,1.524-12.182c-6.097-10.254-10.745-21.487-13.813-33.387%20c-1.14-4.417-5.122-7.503-9.684-7.503H70v-50h34.596c4.562,0,8.544-3.086,9.684-7.503c3.069-11.901,7.716-23.133,13.813-33.387%20c2.337-3.931,1.71-8.948-1.524-12.182l-24.5-24.457l35.357-35.4l24.5,24.5c3.236,3.235,8.253,3.861,12.182,1.524%20c10.254-6.097,21.487-10.745,33.387-13.813c4.417-1.14,7.503-5.122,7.503-9.684V70h50v34.596c0,4.562,3.086,8.544,7.503,9.684%20c11.901,3.069,23.133,7.716,33.387,13.813c3.929,2.337,8.947,1.709,12.182-1.524l24.457-24.5l35.4,35.357l-24.5,24.5%20c-3.234,3.235-3.861,8.251-1.524,12.182c6.097,10.254,10.745,21.487,13.813,33.387c1.14,4.417,5.122,7.503,9.684,7.503H410%20V264.998z'/%3e%3cpath%20d='M331.585,292.475l-40-35l-13.17,15.051L298.386,290H240c-27.57,0-50-22.43-50-50h-20c0,38.598,31.402,70,70,70h58.386%20l-19.971,17.475l13.17,15.051l40-35c2.17-1.898,3.415-4.642,3.415-7.525S333.755,294.373,331.585,292.475z'/%3e%3cpath%20d='M201.585,207.473L181.614,190H240c27.57,0,50,22.43,50,50h20c0-38.598-31.402-70-70-70h-58.386l19.971-17.475%20l-13.17-15.051l-40,35c-2.17,1.898-3.415,4.642-3.415,7.525s1.245,5.627,3.415,7.525l40,35L201.585,207.473z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20from='0%20240%20240'%20to='360%20240%20240'%20dur='10s'%20repeatCount='indefinite'%20/%3e%3c/svg%3e",Gor="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cpath%20d='M25%200C11.6%200%200%2011.6%200%2025s11.6%2025%2025%2025%2025-11.6%2025-25S40.4%200%2025%200zm0%2048C12.8%2048%202%2039.2%202%2025S12.8%202%2025%202s24%2010.8%2024%2024-10.8%2024-24%2024zm-4-33l-8%208%2018%2018%2030-30-8-8-22%2022L22%2016'%20fill='green'/%3e%3c/svg%3e",qor="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'%20fill='red'/%3e%3c/svg%3e",VU="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20white;%20stroke-width:%202px;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpath%20d='M%2089.999%203.075%20C%2090%203.02%2090%202.967%2089.999%202.912%20c%20-0.004%20-0.134%20-0.017%20-0.266%20-0.038%20-0.398%20c%20-0.007%20-0.041%20-0.009%20-0.081%20-0.018%20-0.122%20c%20-0.034%20-0.165%20-0.082%20-0.327%20-0.144%20-0.484%20c%20-0.018%20-0.046%20-0.041%20-0.089%20-0.061%20-0.134%20c%20-0.053%20-0.119%20-0.113%20-0.234%20-0.182%20-0.346%20C%2089.528%201.382%2089.5%201.336%2089.469%201.29%20c%20-0.102%20-0.147%20-0.212%20-0.288%20-0.341%20-0.417%20c%20-0.13%20-0.13%20-0.273%20-0.241%20-0.421%20-0.344%20c%20-0.042%20-0.029%20-0.085%20-0.056%20-0.129%20-0.082%20c%20-0.118%20-0.073%20-0.239%20-0.136%20-0.364%20-0.191%20c%20-0.039%20-0.017%20-0.076%20-0.037%20-0.116%20-0.053%20c%20-0.161%20-0.063%20-0.327%20-0.113%20-0.497%20-0.147%20c%20-0.031%20-0.006%20-0.063%20-0.008%20-0.094%20-0.014%20c%20-0.142%20-0.024%20-0.285%20-0.038%20-0.429%20-0.041%20C%2087.03%200%2086.983%200%2086.936%200.001%20c%20-0.141%200.003%20-0.282%200.017%20-0.423%200.041%20c%20-0.035%200.006%20-0.069%200.008%20-0.104%200.015%20c%20-0.154%200.031%20-0.306%200.073%20-0.456%200.129%20L%201.946%2031.709%20c%20-1.124%200.422%20-1.888%201.473%20-1.943%202.673%20c%20-0.054%201.199%200.612%202.316%201.693%202.838%20l%2034.455%2016.628%20l%2016.627%2034.455%20C%2053.281%2089.344%2054.334%2090%2055.481%2090%20c%200.046%200%200.091%20-0.001%200.137%20-0.003%20c%201.199%20-0.055%202.251%20-0.819%202.673%20-1.943%20L%2089.815%204.048%20c%200.056%20-0.149%200.097%20-0.3%200.128%20-0.453%20c%200.008%20-0.041%200.011%20-0.081%200.017%20-0.122%20C%2089.982%203.341%2089.995%203.208%2089.999%203.075%20z%20M%2075.086%2010.672%20L%2037.785%2047.973%20L%2010.619%2034.864%20L%2075.086%2010.672%20z%20M%2055.136%2079.381%20L%2042.027%2052.216%20l%2037.302%20-37.302%20L%2055.136%2079.381%20z'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'%20stroke-linecap='round'%20/%3e%3ccircle%20cx='75'%20cy='75'%20r='15'%20fill='%23008000'/%3e%3cpath%20d='M75,60%20A15,15%200%200,1%2090,75%20A15,15%200%200,1%2075,90%20A15,15%200%200,1%2060,75%20A15,15%200%200,1%2075,60%20Z'%20stroke='%23FFFFFF'%20stroke-width='2'%20fill='none'/%3e%3cpath%20d='M81,75%20A6,6%200%200,1%2075,81%20A6,6%200%200,1%2069,75%20A6,6%200%200,1%2075,69%20A6,6%200%200,1%2081,75%20Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e",zor="/",jor={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:O9,Step:$or,RenderHTMLJS:gor,JsonViewer:Oor,DynamicUIRenderer:PU,ToolbarButton:zb,DropdownMenu:IU},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:yU,html5_block:bU,LaTeX_block:EU,json_block:vU,javascript_block:QU,process_svg:Uor,ok_svg:Gor,failed_svg:qor,loading_svg:SU,sendGlobe:VU,code_block:gU,python_block:_U,bash_block:xU,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Ke(()=>{Xe.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let t of this.message.metadata)Object.prototype.hasOwnProperty.call(t,"audio_url")&&t.audio_url!=null&&(this.audio_url=t.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{toggleExpanded(){this.expanded=!this.expanded},computeTimeDiff(t,e){let n=e.getTime()-t.getTime();const r=Math.floor(n/(1e3*60*60));n-=r*(1e3*60*60);const i=Math.floor(n/(1e3*60));n-=i*(1e3*60);const o=Math.floor(n/1e3);return n-=o*1e3,[r,i,o]},insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,i=t.shiftKey;if(n===r)if(i){if(e.value.substring(n-4,n)==" "){const o=e.value.substring(0,n-4),s=e.value.substring(r),a=o+s;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n-4})}}else{const o=e.value.substring(0,n),s=e.value.substring(r),a=o+" "+s;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4})}else{const s=e.value.substring(n,r).split(` +Here is how you can do that`))},e[735]||(e[735]=[g("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),g("tr",null,[e[737]||(e[737]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),g("td",null,[g("div",xnr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[371]||(e[371]=(...T)=>o.reinstallPetalsService&&o.reinstallPetalsService(...T))},"install petals service")])])]),g("tr",null,[e[738]||(e[738]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),g("td",null,[g("div",Snr,[te(g("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[372]||(e[372]=T=>o.configFile.petals_base_url=T),onChange:e[373]||(e[373]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),ae(a,{title:"TTV settings",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("div",Lnr,[g("div",Cnr,[e[741]||(e[741]=g("div",{class:"w-full md:w-1/3"},[g("label",{for:"lumalabs_key",class:"block text-sm font-semibold text-gray-700 dark:text-gray-200"}," Lumalabs Key ")],-1)),g("div",Anr,[g("div",wnr,[te(g("input",{type:"text",id:"lumalabs_key",required:"","onUpdate:modelValue":e[374]||(e[374]=T=>o.configFile.lumalabs_key=T),onChange:e[375]||(e[375]=T=>i.settingsChanged=!0),class:"w-full px-4 py-2.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 text-gray-900 dark:text-white focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-150 ease-in-out",placeholder:"Enter your Lumalabs API key"},null,544),[[Ne,o.configFile.lumalabs_key]]),e[739]||(e[739]=g("div",{class:"absolute inset-y-0 right-0 flex items-center pr-3"},[g("svg",{class:"h-5 w-5 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor"},[g("path",{d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"})])],-1))]),e[740]||(e[740]=g("p",{class:"mt-1 text-xs text-gray-500 dark:text-gray-400"}," Your API key will be securely stored ",-1))])])])]),_:1}),ae(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[ae(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Be(()=>[g("table",Mnr,[g("tr",null,[e[742]||(e[742]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),g("td",null,[g("div",Onr,[te(g("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[376]||(e[376]=T=>o.configFile.elastic_search_service=T),onChange:e[377]||(e[377]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[at,o.configFile.elastic_search_service]])])])]),g("tr",null,[e[743]||(e[743]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),g("td",null,[g("div",Rnr,[g("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[378]||(e[378]=(...T)=>o.reinstallElasticSearchService&&o.reinstallElasticSearchService(...T))},"install ElasticSearch service")])])]),g("tr",null,[e[744]||(e[744]=g("td",{style:{"min-width":"200px"}},[g("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),g("td",null,[g("div",Nnr,[te(g("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[379]||(e[379]=T=>o.configFile.elastic_search_url=T),onChange:e[380]||(e[380]=T=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ne,o.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),g("div",Dnr,[g("div",Inr,[g("button",{onClick:e[381]||(e[381]=ge(T=>i.bzc_collapsed=!i.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[te(g("div",null,e[745]||(e[745]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.bzc_collapsed]]),te(g("div",null,e[746]||(e[746]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.bzc_collapsed]]),e[748]||(e[748]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),o.configFile.binding_name?ie("",!0):(k(),P("div",knr,e[747]||(e[747]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),nt(" No binding selected! ")]))),o.configFile.binding_name?(k(),P("div",Pnr,"|")):ie("",!0),o.configFile.binding_name?(k(),P("div",Hnr,[g("div",Vnr,[g("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Fnr),g("p",Bnr,ue(o.binding_name),1)])])):ie("",!0)])]),g("div",{class:We([{hidden:i.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[o.bindingsZoo&&o.bindingsZoo.length>0?(k(),P("div",$nr,[g("label",Unr," Bindings: ("+ue(o.bindingsZoo.length)+") ",1),g("div",{class:We(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.bzl_collapsed?"":"max-h-96"])},[ae(Gs,{name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(o.bindingsZoo,(T,Q)=>(k(),wt(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+Q+"-"+T.folder,binding:T,"on-selected":o.onBindingSelected,"on-reinstall":o.onReinstallBinding,"on-unInstall":o.onUnInstallBinding,"on-install":o.onInstallBinding,"on-settings":o.onSettingsBinding,"on-reload-binding":o.onReloadBinding,selected:T.folder===o.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):ie("",!0),i.bzl_collapsed?(k(),P("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[382]||(e[382]=T=>i.bzl_collapsed=!i.bzl_collapsed)},e[749]||(e[749]=[g("i",{"data-feather":"chevron-up"},null,-1)]))):(k(),P("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[383]||(e[383]=T=>i.bzl_collapsed=!i.bzl_collapsed)},e[750]||(e[750]=[g("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),g("div",Gnr,[g("div",qnr,[g("button",{onClick:e[384]||(e[384]=ge(T=>o.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[te(g("div",null,e[751]||(e[751]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.mzc_collapsed]]),te(g("div",null,e[752]||(e[752]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.mzc_collapsed]]),e[755]||(e[755]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),g("div",znr,[o.configFile.binding_name?ie("",!0):(k(),P("div",jnr,e[753]||(e[753]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),nt(" Select binding first! ")]))),!o.configFile.model_name&&o.configFile.binding_name?(k(),P("div",Wnr,e[754]||(e[754]=[g("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),nt(" No model selected! ")]))):ie("",!0),o.configFile.model_name?(k(),P("div",Ynr,"|")):ie("",!0),o.configFile.model_name?(k(),P("div",Knr,[g("div",Znr,[g("img",{src:o.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Xnr),g("p",Jnr,ue(o.configFile.model_name),1)])])):ie("",!0)])])]),g("div",{class:We([{hidden:i.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",err,[g("div",trr,[g("div",nrr,[i.searchModelInProgress?(k(),P("div",rrr,e[756]||(e[756]=[g("div",{role:"status"},[g("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):ie("",!0),i.searchModelInProgress?ie("",!0):(k(),P("div",irr,e[757]||(e[757]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])))]),te(g("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search models...",required:"","onUpdate:modelValue":e[385]||(e[385]=T=>i.searchModel=T),onKeyup:e[386]||(e[386]=ri((...T)=>o.searchModel_func&&o.searchModel_func(...T),["enter"]))},null,544),[[Ne,i.searchModel]]),i.searchModel?(k(),P("button",{key:0,onClick:e[387]||(e[387]=ge(T=>i.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):ie("",!0)])]),g("div",null,[te(g("input",{"onUpdate:modelValue":e[388]||(e[388]=T=>i.show_only_installed_models=T),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[at,i.show_only_installed_models]]),e[758]||(e[758]=g("label",{for:"only_installed"},"Show only installed models",-1))]),g("div",null,[ae(u,{radioOptions:i.sortOptions,onRadioSelected:o.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),e[766]||(e[766]=g("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),i.is_loading_zoo?(k(),P("div",orr,e[759]||(e[759]=[g("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("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),g("p",{class:"heartbeat-text"},"Loading models Zoo",-1)]))):ie("",!0),i.models_zoo&&i.models_zoo.length>0?(k(),P("div",srr,[g("label",arr," Models: ("+ue(i.models_zoo.length)+") ",1),g("div",{class:We(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full 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",i.mzl_collapsed?"":"max-h-96"])},[ae(Gs,{name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(o.rendered_models_zoo,(T,Q)=>(k(),wt(d,{ref_for:!0,ref:"modelZoo",key:"index-"+Q+"-"+T.name,model:T,"is-installed":T.isInstalled,"on-install":o.onInstall,"on-uninstall":o.onUninstall,"on-selected":o.onModelSelected,selected:T.name===o.configFile.model_name,model_type:T.model_type,"on-copy":o.onCopy,"on-copy-link":o.onCopyLink,"on-cancel-install":o.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),g("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[389]||(e[389]=(...T)=>o.load_more_models&&o.load_more_models(...T))},"Load more models",512)]),_:1})],2)])):ie("",!0),i.mzl_collapsed?(k(),P("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[390]||(e[390]=(...T)=>o.open_mzl&&o.open_mzl(...T))},e[760]||(e[760]=[g("i",{"data-feather":"chevron-up"},null,-1)]))):(k(),P("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[391]||(e[391]=(...T)=>o.open_mzl&&o.open_mzl(...T))},e[761]||(e[761]=[g("i",{"data-feather":"chevron-down"},null,-1)]))),g("div",lrr,[g("div",crr,[g("div",null,[g("div",urr,[e[762]||(e[762]=g("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),te(g("input",{type:"text","onUpdate:modelValue":e[392]||(e[392]=T=>i.reference_path=T),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 Path ...",required:""},null,512),[[Ne,i.reference_path]])]),g("button",{type:"button",onClick:e[393]||(e[393]=ge(T=>o.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),i.modelDownlaodInProgress?ie("",!0):(k(),P("div",drr,[g("div",frr,[e[763]||(e[763]=g("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),te(g("input",{type:"text","onUpdate:modelValue":e[394]||(e[394]=T=>i.addModel.url=T),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 URL ...",required:""},null,512),[[Ne,i.addModel.url]])]),g("button",{type:"button",onClick:e[395]||(e[395]=ge(T=>o.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),i.modelDownlaodInProgress?(k(),P("div",prr,[e[765]||(e[765]=g("div",{role:"status",class:"justify-center"},null,-1)),g("div",hrr,[g("div",Trr,[g("div",mrr,[e[764]||(e[764]=jl(' Downloading Loading...',1)),g("span",grr,ue(Math.floor(i.addModel.progress))+"%",1)]),g("div",{class:"mx-1 opacity-80 line-clamp-1",title:i.addModel.url},ue(i.addModel.url),9,_rr),g("div",Qrr,[g("div",{class:"bg-blue-600 h-2.5 rounded-full",style:gn({width:i.addModel.progress+"%"})},null,4)]),g("div",vrr,[g("span",yrr,"Download speed: "+ue(o.speed_computed)+"/s",1),g("span",brr,ue(o.downloaded_size_computed)+"/"+ue(o.total_size_computed),1)])])]),g("div",Err,[g("div",xrr,[g("div",Srr,[g("button",{onClick:e[396]||(e[396]=ge((...T)=>o.onCancelInstall&&o.onCancelInstall(...T),["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 ")])])])])):ie("",!0)])])],2)]),g("div",Lrr,[g("div",Crr,[g("button",{onClick:e[399]||(e[399]=ge(T=>i.pzc_collapsed=!i.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[te(g("div",null,e[767]||(e[767]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.pzc_collapsed]]),te(g("div",null,e[768]||(e[768]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.pzc_collapsed]]),e[771]||(e[771]=g("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),o.configFile.personalities?(k(),P("div",Arr,"|")):ie("",!0),g("div",wrr,ue(o.active_pesonality),1),o.configFile.personalities?(k(),P("div",Mrr,"|")):ie("",!0),o.configFile.personalities?(k(),P("div",Orr,[o.mountedPersArr.length>0?(k(),P("div",Rrr,[(k(!0),P(ze,null,lt(o.mountedPersArr,(T,Q)=>(k(),P("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:Q+"-"+T.name,ref_for:!0,ref:"mountedPersonalities"},[g("div",Nrr,[g("button",{onClick:ge(_=>o.onPersonalitySelected(T),["stop"])},[g("img",{src:i.bUrl+T.avatar,onError:e[397]||(e[397]=(..._)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(..._)),class:We(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",o.configFile.active_personality_id==o.configFile.personalities.indexOf(T.full_path)?"border-secondary":"border-transparent z-0"]),title:T.name},null,42,Irr)],8,Drr),g("button",{onClick:ge(_=>o.unmountPersonality(T),["stop"])},e[769]||(e[769]=[g("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[g("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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,krr)])]))),128))])):ie("",!0)])):ie("",!0),g("button",{onClick:e[398]||(e[398]=ge(T=>o.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},e[770]||(e[770]=[g("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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)]))])]),g("div",{class:We([{hidden:i.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[g("div",Prr,[e[774]||(e[774]=g("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),g("div",Hrr,[g("div",Vrr,[i.searchPersonalityInProgress?(k(),P("div",Frr,e[772]||(e[772]=[g("div",{role:"status"},[g("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):ie("",!0),i.searchPersonalityInProgress?ie("",!0):(k(),P("div",Brr,e[773]||(e[773]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])))]),te(g("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[400]||(e[400]=T=>i.searchPersonality=T),onKeyup:e[401]||(e[401]=ge((...T)=>o.searchPersonality_func&&o.searchPersonality_func(...T),["stop"]))},null,544),[[Ne,i.searchPersonality]]),i.searchPersonality?(k(),P("button",{key:0,onClick:e[402]||(e[402]=ge(T=>i.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):ie("",!0)])]),i.searchPersonality?ie("",!0):(k(),P("div",$rr,[g("label",Urr," Personalities Category: ("+ue(i.persCatgArr.length)+") ",1),g("select",{id:"persCat",onChange:e[403]||(e[403]=T=>o.update_personality_category(T.target.value,o.refresh)),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"},[(k(!0),P(ze,null,lt(i.persCatgArr,(T,Q)=>(k(),P("option",{key:Q,selected:T==this.configFile.personality_category},ue(T),9,Grr))),128))],32)])),g("div",null,[i.personalitiesFiltered.length>0?(k(),P("div",qrr,[g("label",zrr,ue(i.searchPersonality?"Search results":"Personalities")+": ("+ue(i.personalitiesFiltered.length)+") ",1),g("div",{class:We(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.pzl_collapsed?"":"max-h-96"])},[ae(Gs,{name:"bounce"},{default:Be(()=>[(k(!0),P(ze,null,lt(i.personalitiesFiltered,(T,Q)=>(k(),wt(h,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+Q+"-"+T.name,personality:T,select_language:!0,full_path:T.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(_=>_===T.full_path||_===T.full_path+":"+T.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-edit":o.editPersonality,"on-copy-to-custom":o.copyToCustom,"on-reinstall":o.onPersonalityReinstall,"on-settings":o.onSettingsPersonality,"on-copy-personality-name":o.onCopyPersonalityName,"on-copy-to_custom":o.onCopyToCustom,"on-open-folder":o.handleOpenFolder},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"]))),128))]),_:1})],2)])):ie("",!0)]),i.pzl_collapsed?(k(),P("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[404]||(e[404]=T=>i.pzl_collapsed=!i.pzl_collapsed)},e[775]||(e[775]=[g("i",{"data-feather":"chevron-up"},null,-1)]))):(k(),P("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[405]||(e[405]=T=>i.pzl_collapsed=!i.pzl_collapsed)},e[776]||(e[776]=[g("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),g("div",jrr,[g("div",Wrr,[g("button",{onClick:e[406]||(e[406]=ge(T=>i.mc_collapsed=!i.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[te(g("div",null,e[777]||(e[777]=[g("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Ht,i.mc_collapsed]]),te(g("div",null,e[778]||(e[778]=[g("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Ht,!i.mc_collapsed]]),e[779]||(e[779]=g("p",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1))])]),g("div",{class:We([{hidden:i.mc_collapsed},"flex flex-col mb-2 p-2"])},[g("div",Yrr,[g("div",Krr,[te(g("input",{id:"override-model-parameters",type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[407]||(e[407]=ge(()=>{},["stop"])),"onUpdate:modelValue":e[408]||(e[408]=T=>o.configFile.override_personality_model_parameters=T),onChange:e[409]||(e[409]=T=>o.update_setting("override_personality_model_parameters",o.configFile.override_personality_model_parameters))},null,544),[[at,o.configFile.override_personality_model_parameters]]),e[780]||(e[780]=g("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1))])]),g("div",{class:We(o.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[g("div",Zrr,[e[781]||(e[781]=g("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),te(g("input",{type:"text",id:"seed","onUpdate:modelValue":e[410]||(e[410]=T=>o.configFile.seed=T),class:"bg-gray-50 border border-gray-300 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:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Ne,o.configFile.seed]])]),g("div",Xrr,[g("div",Jrr,[g("div",eir,[e[782]||(e[782]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),g("p",tir,[te(g("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[411]||(e[411]=T=>o.configFile.temperature=T),onChange:e[412]||(e[412]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.temperature]])])]),te(g("input",{id:"temperature",onChange:e[413]||(e[413]=T=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[414]||(e[414]=T=>o.configFile.temperature=T),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.temperature]])])]),g("div",nir,[g("div",rir,[g("div",iir,[e[783]||(e[783]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),g("p",oir,[te(g("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[415]||(e[415]=T=>o.configFile.n_predict=T),onChange:e[416]||(e[416]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.n_predict]])])]),te(g("input",{id:"predict",type:"range",onChange:e[417]||(e[417]=T=>i.settingsChanged=!0),"onUpdate:modelValue":e[418]||(e[418]=T=>o.configFile.n_predict=T),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.n_predict]])])]),g("div",sir,[g("div",air,[g("div",lir,[e[784]||(e[784]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),g("p",cir,[te(g("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[419]||(e[419]=T=>o.configFile.top_k=T),onChange:e[420]||(e[420]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.top_k]])])]),te(g("input",{id:"top_k",type:"range",onChange:e[421]||(e[421]=T=>i.settingsChanged=!0),"onUpdate:modelValue":e[422]||(e[422]=T=>o.configFile.top_k=T),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.top_k]])])]),g("div",uir,[g("div",dir,[g("div",fir,[e[785]||(e[785]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),g("p",pir,[te(g("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[423]||(e[423]=T=>o.configFile.top_p=T),onChange:e[424]||(e[424]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.top_p]])])]),te(g("input",{id:"top_p",type:"range","onUpdate:modelValue":e[425]||(e[425]=T=>o.configFile.top_p=T),min:"0",max:"1",step:"0.01",onChange:e[426]||(e[426]=T=>i.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.top_p]])])]),g("div",hir,[g("div",Tir,[g("div",mir,[e[786]||(e[786]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),g("p",gir,[te(g("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[427]||(e[427]=T=>o.configFile.repeat_penalty=T),onChange:e[428]||(e[428]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.repeat_penalty]])])]),te(g("input",{id:"repeat_penalty",onChange:e[429]||(e[429]=T=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[430]||(e[430]=T=>o.configFile.repeat_penalty=T),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.repeat_penalty]])])]),g("div",_ir,[g("div",Qir,[g("div",vir,[e[787]||(e[787]=g("p",{class:"absolute left-0 mt-6"},[g("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),g("p",yir,[te(g("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[431]||(e[431]=T=>o.configFile.repeat_last_n=T),onChange:e[432]||(e[432]=T=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Ne,o.configFile.repeat_last_n]])])]),te(g("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[433]||(e[433]=T=>o.configFile.repeat_last_n=T),min:"0",max:"100",step:"1",onChange:e[434]||(e[434]=T=>i.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-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,544),[[Ne,o.configFile.repeat_last_n]])])])],2)],2)])],2)]),ae(f,{ref:"addmodeldialog"},null,512),ae(m,{class:"z-20",show:i.variantSelectionDialogVisible,choices:i.variant_choices,onChoiceSelected:o.onVariantChoiceSelected,onCloseDialog:o.oncloseVariantChoiceDialog,onChoiceValidated:o.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Eir=Et(OWn,[["render",bir],["__scopeId","data-v-70bac901"]]),xir={components:{ClipBoardTextInput:qb,Card:I9},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};xe.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},Sir={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Lir={class:"mb-4"},Cir=["value"],Air={class:"mb-4"},wir={class:"mb-4"},Mir={class:"mb-4"},Oir={class:"mb-4"},Rir={class:"mb-4"},Nir={class:"mb-4"},Dir={key:1};function Iir(t,e,n,r,i,o){const s=gt("Card"),a=gt("ClipBoardTextInput");return o.selectedModel!==null&&o.selectedModel.toLowerCase().includes("gptq")?(k(),P("div",Sir,[g("form",{onSubmit:e[2]||(e[2]=ge((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:""},[ae(s,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[ae(s,{title:"Model",class:"",isHorizontal:!1},{default:Be(()=>[g("div",Lir,[e[3]||(e[3]=g("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),te(g("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>o.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(k(!0),P(ze,null,lt(o.models,l=>(k(),P("option",{key:l,value:l},ue(l),9,Cir))),128))],544),[[hn,o.selectedModel]])])]),_:1}),ae(s,{title:"Data",isHorizontal:!1},{default:Be(()=>[g("div",Air,[e[4]||(e[4]=g("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),ae(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),ae(s,{title:"Training",isHorizontal:!1},{default:Be(()=>[g("div",wir,[e[5]||(e[5]=g("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),g("div",Mir,[e[6]||(e[6]=g("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),g("div",Oir,[e[7]||(e[7]=g("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),g("div",Rir,[e[8]||(e[8]=g("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),ae(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),ae(s,{title:"Output",isHorizontal:!1},{default:Be(()=>[g("div",Nir,[e[9]||(e[9]=g("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),ae(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),ae(s,{disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>e[10]||(e[10]=[g("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(k(),P("div",Dir,[ae(s,{title:"Info",class:"",isHorizontal:!1},{default:Be(()=>e[11]||(e[11]=[nt(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const kir=Et(xir,[["render",Iir]]),Pir={components:{ClipBoardTextInput:qb,Card:I9},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Hir={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Vir={class:"mb-4"},Fir={class:"mb-4"};function Bir(t,e,n,r,i,o){const s=gt("ClipBoardTextInput"),a=gt("Card");return k(),P("div",Hir,[g("form",{onSubmit:e[0]||(e[0]=ge((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[ae(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>[ae(a,{title:"Model",class:"",isHorizontal:!1},{default:Be(()=>[g("div",Vir,[e[1]||(e[1]=g("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),ae(s,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),g("div",Fir,[e[2]||(e[2]=g("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),ae(s,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),ae(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Be(()=>e[3]||(e[3]=[g("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const $ir=Et(Pir,[["render",Bir]]),Uir={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean,openfolder_enabled:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Ke(()=>{Xe.replace()})},watch:{showConfirmation(){Ke(()=>{Xe.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Ke(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Ke(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Gir=["id"],qir={class:"flex flex-row items-center gap-2"},zir={key:0},jir={class:"flex flex-row items-center w-full"},Wir=["title"],Yir=["value"],Kir={class:"absolute top-0 right-0 h-full flex items-center group"},Zir={class:"discussion-toolbox"},Xir={key:0,class:"flex gap-2 items-center"},Jir={key:1,class:"flex gap-2 items-center"};function eor(t,e,n,r,i,o){return k(),P("div",{class:We([n.selected?"discussion-hilighted":"discussion","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 cursor-pointer relative w-[15rem]"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=ge(s=>o.selectEvent(),["stop"]))},[g("div",qir,[n.isCheckbox?(k(),P("div",zir,[te(g("input",{type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=ge(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=s=>i.checkBoxValue_local=s),onInput:e[2]||(e[2]=s=>o.checkedChangeEvent(s,n.id))},null,544),[[at,i.checkBoxValue_local]])])):ie("",!0),n.selected?(k(),P("div",{key:1,class:We(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):ie("",!0),n.selected?ie("",!0):(k(),P("div",{key:2,class:We(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),g("div",jir,[i.editTitle?ie("",!0):(k(),P("p",{key:0,title:n.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},ue(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,Wir)),i.editTitle?(k(),P("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=ri(ge(s=>o.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=ri(ge(s=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=s=>o.chnageTitle(s.target.value)),onClick:e[6]||(e[6]=ge(()=>{},["stop"]))},null,40,Yir)):ie("",!0)]),g("div",Kir,[g("div",Zir,[i.showConfirmation?(k(),P("div",Xir,[g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=ge(s=>o.cancel(),["stop"]))},e[14]||(e[14]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=ge(s=>i.editTitleMode?o.editTitleEvent():i.deleteMode?o.deleteEvent():o.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),i.showConfirmation?ie("",!0):(k(),P("div",Jir,[n.openfolder_enabled?(k(),P("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=ge(s=>o.openFolderEvent(),["stop"]))},e[16]||(e[16]=[g("i",{"data-feather":"folder"},null,-1)]))):ie("",!0),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=ge(s=>i.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[g("i",{"data-feather":"type"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=ge(s=>i.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[g("i",{"data-feather":"edit-2"},null,-1)])),g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=ge(s=>i.deleteMode=!0,["stop"]))},e[19]||(e[19]=[g("i",{"data-feather":"trash"},null,-1)]))]))])])],10,Gir)}const rE=Et(Uir,[["render",eor],["__scopeId","data-v-2b3580ce"]]),tor={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(t){this.prompt=t}}},nor={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},ror={class:"bg-white p-8 rounded"},ior={class:"text-xl font-bold mb-4"};function oor(t,e,n,r,i,o){return k(),P("div",null,[i.show?(k(),P("div",nor,[g("div",ror,[g("h2",ior,ue(n.promptText),1),te(g("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=s=>i.inputText=s),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[Ne,i.inputText]]),g("button",{onClick:e[1]||(e[1]=(...s)=>o.ok&&o.ok(...s)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),g("button",{onClick:e[2]||(e[2]=(...s)=>o.cancel&&o.cancel(...s)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):ie("",!0)])}const sor=Et(tor,[["render",oor]]),aor={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:rE,MarkdownRenderer:O9},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){xe.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(t=>{this.categories=t.data.categories}).catch(t=>{console.error("Error fetching categories:",t)})},fetchTitles(){console.log("Fetching categories"),xe.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(t=>{this.titles=t.data.titles,console.log("titles recovered")}).catch(t=>{console.error("Error fetching titles:",t)})},fetchContent(t){console.log("loading skill",t),xe.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:t}).then(e=>{const n=e.data.contents[0];this.id=n.id,this.content=n.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(t){console.log("Delete category")},editCategory(t){console.log("Edit category")},checkUncheckCategory(t){console.log("Unchecked category")},deleteSkill(t){console.log("Delete skill ",t),xe.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:t}).then(()=>{this.fetchTitles()})},editTitle(t){xe.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:t,title:t}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(t){console.log("Make title")},checkUncheckTitle(t){},searchSkills(){}}},lor={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},cor={class:"w-[15rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},uor={classclass:"absolute flex flex-col no-scrollbar shadow-lg w-[15rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},dor={class:"z-0 flex flex-col flex-grow 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"};function por(t,e,n,r,i,o){const s=gt("Discussion"),a=gt("MarkdownRenderer");return k(),P("div",{class:We([{hidden:!i.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[g("div",lor,[g("div",cor,[te(g("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 skills by title","onUpdate:modelValue":e[0]||(e[0]=l=>i.searchQuery=l),onKeyup:e[1]||(e[1]=ri((...l)=>o.searchSkills&&o.searchSkills(...l),["enter"]))},null,544),[[Ne,i.searchQuery]]),g("div",uor,[e[3]||(e[3]=g("h2",{class:"text-xl font-bold m-4"},"Titles",-1)),i.titles.length>0?(k(),wt(Gs,{key:0,name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(i.titles,l=>(k(),wt(s,{key:l.id,id:l.id,title:l.title,selected:o.fetchContent(l.id),loading:i.loading,isCheckbox:i.isCheckbox,checkBoxValue:!1,openfolder_enabled:!1,onSelect:c=>o.fetchContent(l.id),onDelete:c=>o.deleteSkill(l.id),onEditTitle:o.editTitle,onMakeTitle:o.makeTitle,onChecked:o.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):ie("",!0)])]),g("div",dor,[e[4]||(e[4]=g("h2",{class:"text-xl font-bold m-4"},"Content",-1)),ae(a,{host:n.host,"markdown-text":i.content,message_id:i.id,discussion_id:i.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),g("button",{onClick:e[2]||(e[2]=(...l)=>o.closeComponent&&o.closeComponent(...l)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const HU=Et(aor,[["render",por]]),hor={props:{htmlContent:{type:String,required:!0}}},Tor=["innerHTML"];function mor(t,e,n,r,i,o){return k(),P("div",{class:"w-full h-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",innerHTML:n.htmlContent},null,8,Tor)}const gor=Et(hor,[["render",mor]]),_or={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},isArray(t){return Array.isArray(t)},toggleCollapse(t){this.collapsedKeys.has(t)?this.collapsedKeys.delete(t):this.collapsedKeys.add(t)},isCollapsed(t){return this.collapsedKeys.has(t)},getValueType(t){return typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":t===null?"null":""},formatValue(t){return typeof t=="string"?`"${t}"`:String(t)}}},Qor={class:"json-tree-view"},vor=["onClick"],yor={key:0,class:"toggle-icon"},bor={class:"key"},Eor={key:0,class:"json-nested"};function xor(t,e,n,r,i,o){const s=gt("json-tree-view",!0);return k(),P("div",Qor,[(k(!0),P(ze,null,lt(n.data,(a,l)=>(k(),P("div",{key:l,class:"json-item"},[g("div",{class:"json-key",onClick:c=>o.toggleCollapse(l)},[o.isObject(a)||o.isArray(a)?(k(),P("span",yor,[g("i",{class:We(o.isCollapsed(l)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):ie("",!0),g("span",bor,ue(l)+":",1),!o.isObject(a)&&!o.isArray(a)?(k(),P("span",{key:1,class:We(["value",o.getValueType(a)])},ue(o.formatValue(a)),3)):ie("",!0)],8,vor),(o.isObject(a)||o.isArray(a))&&!o.isCollapsed(l)?(k(),P("div",Eor,[ae(s,{data:a,depth:n.depth+1},null,8,["data","depth"])])):ie("",!0)]))),128))])}const Sor=Et(_or,[["render",xor],["__scopeId","data-v-40406ec6"]]),Lor={components:{JsonTreeView:Sor},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(t){return console.error("Error parsing JSON string:",t),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},Cor={key:0,class:"json-viewer"},Aor={class:"toggle-icon"},wor={class:"json-content panels-color"};function Mor(t,e,n,r,i,o){const s=gt("json-tree-view");return o.isContentPresent?(k(),P("div",Cor,[g("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>o.toggleCollapsible&&o.toggleCollapsible(...a))},[g("span",Aor,[g("i",{class:We(i.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),nt(" "+ue(n.jsonFormText),1)]),te(g("div",wor,[ae(s,{data:o.parsedJsonData,depth:0},null,8,["data"])],512),[[Ht,!i.collapsed]])])):ie("",!0)}const Oor=Et(Lor,[["render",Mor],["__scopeId","data-v-83fc9727"]]),Ror={props:{done:Boolean,text:String,status:Boolean,description:String}},Nor={class:"flex items-start gap-2 w-full"},Dor={class:"w-4 h-4 flex-shrink-0"},Ior={key:0,class:"w-4 h-4 text-green-500 dark:text-green-400",viewBox:"0 0 24 24",fill:"currentColor"},kor={key:1,class:"w-4 h-4 text-red-500 dark:text-red-400",viewBox:"0 0 24 24",fill:"currentColor"},Por={key:1,class:"w-4 h-4 border-2 border-t-primary rounded-full animate-spin"},Hor={class:"min-w-0"},Vor={class:"text-sm text-gray-700 dark:text-gray-200 truncate"},For={key:0,class:"text-xs text-gray-500 dark:text-gray-400 truncate"};function Bor(t,e,n,r,i,o){return k(),P("div",{class:We(["flex items-center p-2 rounded transition-colors duration-200",[n.done?"bg-opacity-5":"bg-opacity-3",n.status?"bg-green-50 dark:bg-green-900/20":"bg-gray-50 dark:bg-gray-800/20"]])},[g("div",Nor,[g("div",Dor,[n.done?(k(),P(ze,{key:0},[n.status?(k(),P("svg",Ior,e[0]||(e[0]=[g("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},null,-1)]))):(k(),P("svg",kor,e[1]||(e[1]=[g("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null,-1)])))],64)):(k(),P("div",Por))]),g("div",Hor,[g("div",Vor,ue(n.text||"No text provided"),1),n.description?(k(),P("div",For,ue(n.description),1)):ie("",!0)])])],2)}const $or=Et(Ror,[["render",Bor],["__scopeId","data-v-2cb174d6"]]),Uor="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%20480%20480'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M240,0C107.664,0,0,107.664,0,240s107.664,240,240,240s240-107.664,240-240S372.336,0,240,0z%20M240,460%20c-121.309,0-220-98.691-220-220S118.691,20,240,20s220,98.691,220,220S361.309,460,240,460z'/%3e%3cpath%20d='M410,194.999h-27.058c-2.643-8.44-6-16.56-10.03-24.271l19.158-19.158c3.776-3.775,5.854-8.79,5.854-14.121%20c0-5.332-2.08-10.347-5.854-14.121l-35.399-35.399c-3.775-3.775-8.79-5.854-14.122-5.854c-5.331,0-10.346,2.079-14.121,5.854%20l-19.158,19.158c-7.711-4.03-15.832-7.386-24.271-10.03V70c0-11.028-8.972-20-20-20h-50c-11.028,0-20,8.972-20,20v27.058%20c-8.44,2.643-16.56,6-24.271,10.03L151.57,87.93c-3.775-3.776-8.79-5.854-14.121-5.854c-5.332,0-10.347,2.08-14.121,5.854%20l-35.399,35.399c-3.775,3.775-5.854,8.79-5.854,14.122c0,5.331,2.079,10.346,5.854,14.121l19.158,19.158%20c-4.03,7.711-7.386,15.832-10.03,24.271H70c-11.028,0-20,8.972-20,20v50c0,11.028,8.972,20,20,20h27.057%20c2.643,8.44,6,16.56,10.03,24.271L87.929,328.43c-3.776,3.775-5.854,8.79-5.854,14.121c0,5.332,2.08,10.347,5.854,14.121%20l35.399,35.399c3.775,3.775,8.79,5.854,14.122,5.854c5.331,0,10.346-2.079,14.121-5.854l19.158-19.158%20c7.711,4.03,15.832,7.386,24.271,10.03V410c0,11.028,8.972,20,20,20h50c11.028,0,20-8.972,20.001-20v-27.058%20c8.44-2.643,16.56-6,24.271-10.03l19.158,19.158c3.775,3.776,8.79,5.854,14.121,5.854c5.332,0,10.347-2.08,14.121-5.854%20l35.399-35.399c3.775-3.775,5.854-8.79,5.854-14.122c0-5.331-2.079-10.346-5.854-14.121l-19.158-19.158%20c4.03-7.711,7.386-15.832,10.03-24.271H410c11.028,0,20-8.972,20-20v-50C430,203.971,421.028,194.999,410,194.999z%20M410,264.998%20h-34.598c-4.562,0-8.544,3.086-9.684,7.503c-3.069,11.901-7.716,23.133-13.813,33.387c-2.337,3.931-1.71,8.948,1.524,12.182%20l24.5,24.457l-35.357,35.4l-24.5-24.5c-3.236-3.235-8.253-3.86-12.182-1.524c-10.254,6.097-21.487,10.745-33.387,13.813%20c-4.417,1.14-7.503,5.122-7.503,9.684V410h-50v-34.599c0-4.562-3.086-8.544-7.503-9.684%20c-11.901-3.069-23.133-7.716-33.387-13.813c-1.587-0.944-3.353-1.404-5.107-1.404c-2.586,0-5.147,1.002-7.073,2.931l-24.457,24.5%20l-35.4-35.357l24.5-24.5c3.234-3.235,3.861-8.251,1.524-12.182c-6.097-10.254-10.745-21.487-13.813-33.387%20c-1.14-4.417-5.122-7.503-9.684-7.503H70v-50h34.596c4.562,0,8.544-3.086,9.684-7.503c3.069-11.901,7.716-23.133,13.813-33.387%20c2.337-3.931,1.71-8.948-1.524-12.182l-24.5-24.457l35.357-35.4l24.5,24.5c3.236,3.235,8.253,3.861,12.182,1.524%20c10.254-6.097,21.487-10.745,33.387-13.813c4.417-1.14,7.503-5.122,7.503-9.684V70h50v34.596c0,4.562,3.086,8.544,7.503,9.684%20c11.901,3.069,23.133,7.716,33.387,13.813c3.929,2.337,8.947,1.709,12.182-1.524l24.457-24.5l35.4,35.357l-24.5,24.5%20c-3.234,3.235-3.861,8.251-1.524,12.182c6.097,10.254,10.745,21.487,13.813,33.387c1.14,4.417,5.122,7.503,9.684,7.503H410%20V264.998z'/%3e%3cpath%20d='M331.585,292.475l-40-35l-13.17,15.051L298.386,290H240c-27.57,0-50-22.43-50-50h-20c0,38.598,31.402,70,70,70h58.386%20l-19.971,17.475l13.17,15.051l40-35c2.17-1.898,3.415-4.642,3.415-7.525S333.755,294.373,331.585,292.475z'/%3e%3cpath%20d='M201.585,207.473L181.614,190H240c27.57,0,50,22.43,50,50h20c0-38.598-31.402-70-70-70h-58.386l19.971-17.475%20l-13.17-15.051l-40,35c-2.17,1.898-3.415,4.642-3.415,7.525s1.245,5.627,3.415,7.525l40,35L201.585,207.473z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20from='0%20240%20240'%20to='360%20240%20240'%20dur='10s'%20repeatCount='indefinite'%20/%3e%3c/svg%3e",Gor="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cpath%20d='M25%200C11.6%200%200%2011.6%200%2025s11.6%2025%2025%2025%2025-11.6%2025-25S40.4%200%2025%200zm0%2048C12.8%2048%202%2039.2%202%2025S12.8%202%2025%202s24%2010.8%2024%2024-10.8%2024-24%2024zm-4-33l-8%208%2018%2018%2030-30-8-8-22%2022L22%2016'%20fill='green'/%3e%3c/svg%3e",qor="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'%20fill='red'/%3e%3c/svg%3e",VU="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20white;%20stroke-width:%202px;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpath%20d='M%2089.999%203.075%20C%2090%203.02%2090%202.967%2089.999%202.912%20c%20-0.004%20-0.134%20-0.017%20-0.266%20-0.038%20-0.398%20c%20-0.007%20-0.041%20-0.009%20-0.081%20-0.018%20-0.122%20c%20-0.034%20-0.165%20-0.082%20-0.327%20-0.144%20-0.484%20c%20-0.018%20-0.046%20-0.041%20-0.089%20-0.061%20-0.134%20c%20-0.053%20-0.119%20-0.113%20-0.234%20-0.182%20-0.346%20C%2089.528%201.382%2089.5%201.336%2089.469%201.29%20c%20-0.102%20-0.147%20-0.212%20-0.288%20-0.341%20-0.417%20c%20-0.13%20-0.13%20-0.273%20-0.241%20-0.421%20-0.344%20c%20-0.042%20-0.029%20-0.085%20-0.056%20-0.129%20-0.082%20c%20-0.118%20-0.073%20-0.239%20-0.136%20-0.364%20-0.191%20c%20-0.039%20-0.017%20-0.076%20-0.037%20-0.116%20-0.053%20c%20-0.161%20-0.063%20-0.327%20-0.113%20-0.497%20-0.147%20c%20-0.031%20-0.006%20-0.063%20-0.008%20-0.094%20-0.014%20c%20-0.142%20-0.024%20-0.285%20-0.038%20-0.429%20-0.041%20C%2087.03%200%2086.983%200%2086.936%200.001%20c%20-0.141%200.003%20-0.282%200.017%20-0.423%200.041%20c%20-0.035%200.006%20-0.069%200.008%20-0.104%200.015%20c%20-0.154%200.031%20-0.306%200.073%20-0.456%200.129%20L%201.946%2031.709%20c%20-1.124%200.422%20-1.888%201.473%20-1.943%202.673%20c%20-0.054%201.199%200.612%202.316%201.693%202.838%20l%2034.455%2016.628%20l%2016.627%2034.455%20C%2053.281%2089.344%2054.334%2090%2055.481%2090%20c%200.046%200%200.091%20-0.001%200.137%20-0.003%20c%201.199%20-0.055%202.251%20-0.819%202.673%20-1.943%20L%2089.815%204.048%20c%200.056%20-0.149%200.097%20-0.3%200.128%20-0.453%20c%200.008%20-0.041%200.011%20-0.081%200.017%20-0.122%20C%2089.982%203.341%2089.995%203.208%2089.999%203.075%20z%20M%2075.086%2010.672%20L%2037.785%2047.973%20L%2010.619%2034.864%20L%2075.086%2010.672%20z%20M%2055.136%2079.381%20L%2042.027%2052.216%20l%2037.302%20-37.302%20L%2055.136%2079.381%20z'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'%20stroke-linecap='round'%20/%3e%3ccircle%20cx='75'%20cy='75'%20r='15'%20fill='%23008000'/%3e%3cpath%20d='M75,60%20A15,15%200%200,1%2090,75%20A15,15%200%200,1%2075,90%20A15,15%200%200,1%2060,75%20A15,15%200%200,1%2075,60%20Z'%20stroke='%23FFFFFF'%20stroke-width='2'%20fill='none'/%3e%3cpath%20d='M81,75%20A6,6%200%200,1%2075,81%20A6,6%200%200,1%2069,75%20A6,6%200%200,1%2075,69%20A6,6%200%200,1%2081,75%20Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e",zor="/",jor={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:O9,Step:$or,RenderHTMLJS:gor,JsonViewer:Oor,DynamicUIRenderer:PU,ToolbarButton:zb,DropdownMenu:IU},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:yU,html5_block:bU,LaTeX_block:EU,json_block:vU,javascript_block:QU,process_svg:Uor,ok_svg:Gor,failed_svg:qor,loading_svg:SU,sendGlobe:VU,code_block:gU,python_block:_U,bash_block:xU,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Ke(()=>{Xe.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let t of this.message.metadata)Object.prototype.hasOwnProperty.call(t,"audio_url")&&t.audio_url!=null&&(this.audio_url=t.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{toggleExpanded(){this.expanded=!this.expanded},computeTimeDiff(t,e){let n=e.getTime()-t.getTime();const r=Math.floor(n/(1e3*60*60));n-=r*(1e3*60*60);const i=Math.floor(n/(1e3*60));n-=i*(1e3*60);const o=Math.floor(n/1e3);return n-=o*1e3,[r,i,o]},insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,i=t.shiftKey;if(n===r)if(i){if(e.value.substring(n-4,n)==" "){const o=e.value.substring(0,n-4),s=e.value.substring(r),a=o+s;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n-4})}}else{const o=e.value.substring(0,n),s=e.value.substring(r),a=o+" "+s;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4})}else{const s=e.value.substring(n,r).split(` `).map(u=>u.trim()===""?u:i?u.startsWith(" ")?u.substring(4):u:" "+u),a=e.value.substring(0,n),l=e.value.substring(r),c=a+s.join(` `)+l;this.message.content=c,this.$nextTick(()=>{e.selectionStart=n,e.selectionEnd=r+s.length*4})}t.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.isSynthesizingVoice=!1,this.$refs.audio_player.pause()):(this.isSynthesizingVoice=!0,xe.post("./text2wav",{text:this.message.content}).then(t=>{this.isSynthesizingVoice=!1;let e=t.data.url;console.log(e),this.audio_url=e,this.message.metadata||(this.message.metadata=[]);let n=!1;for(let r of this.message.metadata)Object.prototype.hasOwnProperty.call(r,"audio_url")&&(r.audio_url=this.audio_url,n=!0);n||this.message.metadata.push({audio_url:this.audio_url}),this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url)}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSynthesizingVoice=!1}))},async speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking?(this.isSpeaking=!0,xe.post("./stop",{text:this.message.content}).then(t=>{this.isSpeaking=!1}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSpeaking=!1})):(this.isSpeaking=!0,xe.post("./text2Audio",{client_id:this.$store.state.client_id,text:this.message.content}).then(t=>{this.isSpeaking=!1}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSpeaking=!1}));else{if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.message.content,this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(i=>i.name===this.$store.state.config.audio_out_voice)[0]);const n=i=>{let o=this.message.content.substring(i,i+e);const s=[".","!","?",` `];let a=-1;return s.forEach(l=>{const c=o.lastIndexOf(l);c>a&&(a=c)}),a==-1&&(a=o.length),console.log(a),a+i+1},r=()=>{if(this.message.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const i=n(t),o=this.message.content.substring(t,i);this.msg.text=o,t=i+1,this.msg.onend=s=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",i))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{r()},1)};console.log("Speaking chunk"),r()}},toggleModel(){this.expanded=!this.expanded},addBlock(t){let e=this.$refs.mdTextarea.selectionStart,n=this.$refs.mdTextarea.selectionEnd;e==n?speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+t+"\n\n```\n"+this.message.content.slice(e),e=e+4+t.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+t+"\n\n```\n"+this.message.content.slice(e),e=e+3+t.length):speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+t+` `+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),e=e+4+t.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+t+` -`+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),p=p+3+t.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(t){this.$emit("resendMessage",this.message.id,this.message.content,t)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?zor+this.avatar:(console.log("No avatar found"),vo)},defaultImg(t){t.target.src=vo},parseDate(t){let e=new Date(Date.parse(t)),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":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,r=Math.floor(n/86400);if(!(isNaN(r)||r<0||r>=31))return r==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/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(t){t&&(this.$refs.audio_player.src=t)},"message.content":function(t){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(t){console.log("ui changed to",t),this.ui_componentKey++},showConfirmation(){Ke(()=>{Xe.replace()})},deleteMsgMode(){Ke(()=>{Xe.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,Ke(()=>{Xe.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 t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!t.getTime()||!e.getTime())return;let[r,i,o]=this.computeTimeDiff(t,e);function s(l){return l<10&&(l="0"+l),l}return s(r)+"h:"+s(i)+"m:"+s(o)+"s"},warmup_duration(){const t=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, ",t," -> ",e),e.getTime()===t.getTime())return 0;if(!t.getTime()||!e.getTime())return;let r,i,o;[r,i,o]=this.computeTimeDiff(t,e);function s(l){return l<10&&(l="0"+l),l}return s(r)+"h:"+s(i)+"m:"+s(o)+"s"},generation_rate(){const t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),n=this.message.nb_tokens;if(e.getTime()===t.getTime()||!n||!t.getTime()||!e.getTime())return;let i=e.getTime()-t.getTime();const o=Math.floor(i/1e3),s=n/o;return Math.round(s)+" t/s"}}},Wor={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"},Yor={class:"flex flex-row gap-2"},Kor={class:"flex-shrink-0"},Zor={class:"group/avatar"},Xor=["src","data-popover-target"],Jor={class:"flex flex-col w-full flex-grow-0"},esr={class:"flex flex-row flex-grow items-start"},tsr={class:"flex flex-col mb-2"},nsr={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},rsr=["title"],isr={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 space-y-2"},osr={key:1},ssr=["src"],asr={class:"message-details"},lsr={key:0,class:"steps-container"},csr={class:"steps-icon"},usr={class:"steps-summary"},dsr={class:"steps-status"},fsr={class:"toggle-icon"},psr={key:0,class:"steps-content"},hsr={class:"steps-list"},Tsr={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"},msr={class:"flex-row justify-end mx-2"},gsr={class:"invisible group-hover:visible flex flex-row"},_sr={key:0},Qsr={key:1},vsr={key:2},ysr={key:3},bsr={key:4,class:"flex items-center duration-75"},Esr={class:"flex flex-row items-center"},xsr={class:"flex flex-row items-center"},Ssr={key:6,class:"flex flex-row items-center"},Lsr=["src"],Csr={class:"text-sm text-gray-400 mt-2"},Asr={class:"flex flex-row items-center gap-2"},wsr={key:0},Msr={class:"font-thin"},Osr={key:1},Rsr={class:"font-thin"},Nsr={key:2},Dsr={class:"font-thin"},Isr={key:3},ksr=["title"],Psr={key:4},Hsr=["title"],Vsr={key:5},Fsr=["title"],Bsr={key:6},$sr=["title"];function Usr(t,e,n,r,i,o){var T;const s=gt("MarkdownRenderer"),a=gt("JsonViewer"),l=gt("DynamicUIRenderer"),c=gt("StatusIcon"),u=gt("Step"),d=gt("RenderHTMLJS"),h=gt("ToolbarButton"),f=gt("DropdownSubmenu"),m=gt("DropdownMenu");return k(),P("div",Wor,[g("div",Yor,[g("div",Kor,[g("div",Zor,[g("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=Q=>o.defaultImg(Q)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Xor)])]),g("div",Jor,[g("div",esr,[g("div",tsr,[g("div",nsr,ue(n.message.sender),1),n.message.created_at?(k(),P("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+o.created_at_parsed},ue(o.created_at),9,rsr)):ie("",!0)]),e[46]||(e[46]=g("div",{class:"flex-grow"},null,-1))]),g("div",isr,[o.editMsgMode?ie("",!0):(k(),wt(s,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),g("div",null,[n.message.open?te((k(),P("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=ri(ge((...Q)=>o.insertTab&&o.insertTab(...Q),["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]=Q=>n.message.content=Q)}," ",544)),[[Ne,n.message.content]]):ie("",!0)]),n.message.metadata!==null?(k(),P("div",osr,[(k(!0),P(ze,null,lt(((T=n.message.metadata)==null?void 0:T.filter(Q=>Q!=null&&Q.hasOwnProperty("title")&&Q.hasOwnProperty("content")))||[],(Q,_)=>(k(),P("div",{key:"json-"+n.message.id+"-"+_,class:"json font-bold"},[(k(),wt(a,{jsonFormText:Q.title,jsonData:Q.content,key:"msgjson-"+n.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):ie("",!0),n.message.ui?(k(),wt(l,{ref:"ui",class:"w-full",ui:n.message.ui,key:"msgui-"+n.message.id},null,8,["ui"])):ie("",!0),i.audio_url!=null?(k(),P("audio",{controls:"",key:i.audio_url},[g("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,ssr),e[47]||(e[47]=nt(" Your browser does not support the audio element. "))])):ie("",!0),g("div",asr,[n.message.steps.length>0?(k(),P("div",lsr,[g("div",{class:"steps-header",onClick:e[3]||(e[3]=(...Q)=>o.toggleExpanded&&o.toggleExpanded(...Q))},[g("div",csr,[ae(c,{status:n.message.status_message,icon:!0},null,8,["status"])]),g("div",usr,[e[48]||(e[48]=g("h3",{class:"steps-title"},"Processing Info",-1)),g("p",dsr,ue(n.message.status_message),1)]),g("span",fsr,ue(i.expanded?"▲":"▼"),1)]),ae(Ai,{name:"fade"},{default:Be(()=>[i.expanded?(k(),P("div",psr,[g("ul",hsr,[(k(!0),P(ze,null,lt(n.message.steps,(Q,_)=>(k(),P("li",{key:`step-${n.message.id}-${_}`,class:"step-item"},[ae(u,{done:Q.done,text:Q.text,status:Q.status,description:Q.description},null,8,["done","text","status","description"])]))),128))])])):ie("",!0)]),_:1})])):ie("",!0),g("div",Tsr,[(k(!0),P(ze,null,lt(n.message.html_js_s,(Q,_)=>(k(),P("div",{key:`htmljs-${n.message.id}-${_}`,class:"font-bold animate-fadeIn",style:bn({animationDelay:`${_*200}ms`})},[ae(d,{htmlContent:Q},null,8,["htmlContent"])],4))),128))])])]),g("div",msr,[g("div",gsr,[o.editMsgMode?(k(),P("div",_sr,[ae(h,{onClick:e[4]||(e[4]=ge(Q=>o.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),ae(h,{onClick:ge(o.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),ae(m,{title:"Add Block"},{default:Be(()=>[ae(f,{title:"Programming Languages",icon:"code"},{default:Be(()=>[ae(h,{onClick:e[5]||(e[5]=ge(Q=>o.addBlock("python"),["stop"])),title:"Python",icon:"python"}),ae(h,{onClick:e[6]||(e[6]=ge(Q=>o.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),ae(h,{onClick:e[7]||(e[7]=ge(Q=>o.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),ae(h,{onClick:e[8]||(e[8]=ge(Q=>o.addBlock("java"),["stop"])),title:"Java",icon:"java"}),ae(h,{onClick:e[9]||(e[9]=ge(Q=>o.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),ae(h,{onClick:e[10]||(e[10]=ge(Q=>o.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),ae(h,{onClick:e[11]||(e[11]=ge(Q=>o.addBlock("go"),["stop"])),title:"Go",icon:"go"}),ae(h,{onClick:e[12]||(e[12]=ge(Q=>o.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),ae(h,{onClick:e[13]||(e[13]=ge(Q=>o.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),ae(h,{onClick:e[14]||(e[14]=ge(Q=>o.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),ae(h,{onClick:e[15]||(e[15]=ge(Q=>o.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),ae(f,{title:"Web Technologies",icon:"web"},{default:Be(()=>[ae(h,{onClick:e[16]||(e[16]=ge(Q=>o.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),ae(h,{onClick:e[17]||(e[17]=ge(Q=>o.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),ae(h,{onClick:e[18]||(e[18]=ge(Q=>o.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),ae(h,{onClick:e[19]||(e[19]=ge(Q=>o.addBlock("react"),["stop"])),title:"React",icon:"react"}),ae(h,{onClick:e[20]||(e[20]=ge(Q=>o.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),ae(f,{title:"Markup and Data",icon:"file-code"},{default:Be(()=>[ae(h,{onClick:e[21]||(e[21]=ge(Q=>o.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),ae(h,{onClick:e[22]||(e[22]=ge(Q=>o.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),ae(h,{onClick:e[23]||(e[23]=ge(Q=>o.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),ae(h,{onClick:e[24]||(e[24]=ge(Q=>o.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),ae(h,{onClick:e[25]||(e[25]=ge(Q=>o.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),ae(f,{title:"Scripting and Shell",icon:"terminal"},{default:Be(()=>[ae(h,{onClick:e[26]||(e[26]=ge(Q=>o.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),ae(h,{onClick:e[27]||(e[27]=ge(Q=>o.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),ae(h,{onClick:e[28]||(e[28]=ge(Q=>o.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),ae(f,{title:"Diagramming",icon:"sitemap"},{default:Be(()=>[ae(h,{onClick:e[29]||(e[29]=ge(Q=>o.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),ae(h,{onClick:e[30]||(e[30]=ge(Q=>o.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),ae(h,{onClick:e[31]||(e[31]=ge(Q=>o.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),ae(f,{title:"Database",icon:"database"},{default:Be(()=>[ae(h,{onClick:e[32]||(e[32]=ge(Q=>o.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),ae(h,{onClick:e[33]||(e[33]=ge(Q=>o.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),ae(h,{onClick:e[34]||(e[34]=ge(Q=>o.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(k(),P("div",Qsr,[ae(h,{onClick:e[35]||(e[35]=ge(Q=>o.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),ae(h,{onClick:o.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!o.editMsgMode&&n.message.sender!==t.$store.state.mountedPers.name?(k(),P("div",vsr,[ae(h,{onClick:e[36]||(e[36]=ge(Q=>o.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),ae(h,{onClick:e[37]||(e[37]=ge(Q=>o.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),ae(h,{onClick:e[38]||(e[38]=ge(Q=>o.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):ie("",!0),!o.editMsgMode&&n.message.sender===t.$store.state.mountedPers.name?(k(),P("div",ysr,[ae(h,{onClick:o.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):ie("",!0),i.deleteMsgMode?(k(),P("div",bsr,[g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[39]||(e[39]=ge(Q=>i.deleteMsgMode=!1,["stop"]))},e[49]||(e[49]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[40]||(e[40]=ge(Q=>o.deleteMsg(),["stop"]))},e[50]||(e[50]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),!o.editMsgMode&&!i.deleteMsgMode?(k(),P("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[41]||(e[41]=Q=>i.deleteMsgMode=!0)},e[51]||(e[51]=[g("i",{"data-feather":"trash"},null,-1)]))):ie("",!0),g("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[42]||(e[42]=ge(Q=>o.rankUp(),["stop"]))},e[52]||(e[52]=[g("i",{"data-feather":"thumbs-up"},null,-1)])),g("div",Esr,[g("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[43]||(e[43]=ge(Q=>o.rankDown(),["stop"]))},e[53]||(e[53]=[g("i",{"data-feather":"thumbs-down"},null,-1)])),n.message.rank!=0?(k(),P("div",{key:0,class:We(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},ue(n.message.rank),3)):ie("",!0)]),g("div",xsr,[this.$store.state.config.active_tts_service!="None"?(k(),P("div",{key:0,class:We(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":o.isTalking}]),title:"speak",onClick:e[44]||(e[44]=ge(Q=>o.speak(),["stop"]))},e[54]||(e[54]=[g("i",{"data-feather":"volume-2"},null,-1)]),2)):ie("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(k(),P("div",Ssr,[i.isSynthesizingVoice?(k(),P("img",{key:1,src:i.loading_svg},null,8,Lsr)):(k(),P("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[45]||(e[45]=ge(Q=>o.read(),["stop"]))},e[55]||(e[55]=[g("i",{"data-feather":"voicemail"},null,-1)])))])):ie("",!0)])]),g("div",Csr,[g("div",Asr,[n.message.binding?(k(),P("p",wsr,[e[56]||(e[56]=nt("Binding: ")),g("span",Msr,ue(n.message.binding),1)])):ie("",!0),n.message.model?(k(),P("p",Osr,[e[57]||(e[57]=nt("Model: ")),g("span",Rsr,ue(n.message.model),1)])):ie("",!0),n.message.seed?(k(),P("p",Nsr,[e[58]||(e[58]=nt("Seed: ")),g("span",Dsr,ue(n.message.seed),1)])):ie("",!0),n.message.nb_tokens?(k(),P("p",Isr,[e[59]||(e[59]=nt("Number of tokens: ")),g("span",{class:"font-thin",title:"Number of Tokens: "+n.message.nb_tokens},ue(n.message.nb_tokens),9,ksr)])):ie("",!0),o.warmup_duration?(k(),P("p",Psr,[e[60]||(e[60]=nt("Warmup duration: ")),g("span",{class:"font-thin",title:"Warmup duration: "+o.warmup_duration},ue(o.warmup_duration),9,Hsr)])):ie("",!0),o.time_spent?(k(),P("p",Vsr,[e[61]||(e[61]=nt("Generation duration: ")),g("span",{class:"font-thin",title:"Finished generating: "+o.time_spent},ue(o.time_spent),9,Fsr)])):ie("",!0),o.generation_rate?(k(),P("p",Bsr,[e[62]||(e[62]=nt("Rate: ")),g("span",{class:"font-thin",title:"Generation rate: "+o.generation_rate},ue(o.generation_rate),9,$sr)])):ie("",!0)])])])])])}const FU=Et(jor,[["render",Usr]]);xe.defaults.baseURL="/";const Gsr={components:{InteractiveMenu:eE},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),Ke(()=>{Xe.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(r=>r.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=r=>{this.selectedFile=r.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};et.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,et.off("file_received")}),et.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){Ke(()=>{Xe.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},qsr={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function zsr(t,e,n,r,i,o){const s=gt("InteractiveMenu");return i.loading?(k(),P("div",qsr,e[0]||(e[0]=[g("div",{role:"status"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):(k(),wt(s,{key:1,commands:n.commandsList,execute_cmd:o.execute_cmd},null,8,["commands","execute_cmd"]))}const jsr=Et(Gsr,[["render",zsr],["__scopeId","data-v-1a32c141"]]),Wsr="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",Ysr="/",Ksr={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:jsr,ChatBarButton:D9},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:Wsr,sendGlobe:VU,bUrl:Ysr,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"},isdataLakeNamesValid(){return console.log("dataLakeNames:",this.dataLakeNames),console.log("Type of dataLakeNames:",typeof this.dataLakeNames),Array.isArray(this.dataLakeNames)&&this.dataLakeNames.length>0},dataLakeNames(){console.log("rag_databases",this.$store.state.config.datalakes);const t=this.$store.state.config.datalakes.map(e=>{console.log("entry",e);const n=e.mounted?"feather:check":"";return console.log("icon decision",n),{name:e.alias,value:e.alias||"default_value",icon:n,help:"mounts the datalake"}});return console.log("formatted datalake",t),t}},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(t){const e=(t.clipboardData||t.originalEvent.clipboardData).items;let n=[];for(let r of e)if(r.type.indexOf("image")!==-1){const i=r.getAsFile(),s=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",s);const a=new File([i],s,{type:i.type});this.addFiles([a])}else if(r.kind==="file"){const i=r.getAsFile();n.push(i)}n.length>0&&this.addFiles(n)},emitloaded(){this.$emit("loaded")},download_files(){xe.get("/download_files")},remove_file(t){xe.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t}).then(e=>{console.log(e)})},clear_files(){xe.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{console.log(t),t.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(t,e){console.log("Send file triggered");const n=new FileReader,r=24*1024;let i=0,o=0;n.onloadend=()=>{if(n.error){console.error("Error reading file:",n.error);return}const a=n.result,l=i+a.byteLength>=t.size;et.emit("send_file_chunk",{filename:t.name,chunk:a,offset:i,isLastChunk:l,chunkIndex:o}),i+=a.byteLength,o++,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()):s()};function s(){const a=t.slice(i,i+r);n.readAsArrayBuffer(a)}console.log("Uploading file"),s()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},updateRT(){console.log("Updating rt status"),this.is_rt?this.stopRTCom():this.startRTCom()},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),et.emit("start_bidirectional_audio_stream"),Ke(()=>{Xe.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),et.emit("stop_bidirectional_audio_stream"),Ke(()=>{Xe.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=t=>{let e="";for(let n=t.resultIndex;n{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.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(t){return Ke(()=>{Xe.replace()}),Xo(t)},removeItem(t){console.log("Removing ",t.name),xe.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=t)}),console.log(this.filesList)},sendMessageEvent(t,e="no_internet"){this.$emit("messageSentEvent",t,e)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},async mountDB(t){await xe.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,datalake_name:t}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const t=document.createElement("input");t.type="file",t.style.display="none",t.multiple=!0,document.body.appendChild(t),t.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(t.files),document.body.removeChild(t)}),t.click()},takePicture(){et.emit("take_picture"),et.on("picture_taken",()=>{xe.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{this.filesList=t.data.files,this.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.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(t){console.log("Adding files");const e=[...t];let n=0;const r=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[n];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{n++,r()})};r()}},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){Ke(()=>{Xe.replace()})},loading(t,e){Ke(()=>{Xe.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r{Xe.replace()}),console.log("Chatbar mounted"),et.on("rtcom_status_changed",t=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",t.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(){Ke(()=>{Xe.replace()})}},Zsr={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},Xsr={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},Jsr={class:"flex"},ear=["title"],tar={key:0},nar={class:"flex flex-col max-h-64"},rar=["title"],iar={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"},oar={key:0,filesList:"",role:"status"},sar={class:"flex flex-row items-center"},aar={class:"whitespace-nowrap"},lar=["onClick"],car={key:1,class:"flex mx-1 w-500"},uar={class:"whitespace-nowrap flex flex-row gap-2"},dar={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},far={role:"status"},par=["src"],har={class:"flex w-fit relative grow w-full"},Tar={class:"chat-bar",tabindex:"0"},mar={key:0,title:"Waiting for reply"},gar=["src"],_ar={class:"w-fit"},Qar={class:"w-fit"},yar={class:"relative grow m-0 p-0"},bar={class:"m-0 p-0"},Ear={class:"flex items-center space-x-3"},xar={class:"relative inline-block"},Sar={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},Lar={class:"flex flex-col gap-2"};function Car(t,e,n,r,i,o){const s=gt("ChatBarButton"),a=gt("PersonalitiesCommands");return k(),P("div",Zsr,[i.filesList.length>0?(k(),P("div",Xsr,[g("div",Jsr,[g("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]=ge(l=>i.showfilesList=!i.showfilesList,["stop"]))},e[11]||(e[11]=[g("i",{"data-feather":"list"},null,-1)]),8,ear)]),i.filesList.length>0&&i.showfilesList==!0?(k(),P("div",tar,[g("div",nar,[ae(Gs,{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:Be(()=>[(k(!0),P(ze,null,lt(i.filesList,(l,c)=>(k(),P("div",{key:c+"-"+l.name},[g("div",{class:"m-1",title:l.name},[g("div",iar,[i.isFileSentList[c]?ie("",!0):(k(),P("div",oar,e[12]||(e[12]=[g("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"},[g("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"}),g("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),g("span",{class:"sr-only"},"Loading...",-1)]))),e[14]||(e[14]=g("div",null,[g("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),g("div",{class:We(["line-clamp-1 w-3/5",i.isFileSentList[c]?"text-green-500":"text-red-200"])},ue(l.name),3),e[15]||(e[15]=g("div",{class:"grow"},null,-1)),g("div",sar,[g("p",aar,ue(o.computedFileSize(l.size)),1),g("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=>o.removeItem(l)},e[13]||(e[13]=[g("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,lar)])])],8,rar)]))),128))]),_:1})])])):ie("",!0),i.filesList.length>0?(k(),P("div",car,[g("div",uar,[e[16]||(e[16]=g("p",{class:"font-bold"}," Total size: ",-1)),nt(" "+ue(i.totalSize)+" ("+ue(i.filesList.length)+") ",1)]),e[19]||(e[19]=g("div",{class:"grow"},null,-1)),g("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)=>o.clear_files&&o.clear_files(...l))},e[17]||(e[17]=[g("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),g("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)=>o.download_files&&o.download_files(...l))},e[18]||(e[18]=[g("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):ie("",!0)])):ie("",!0),i.selecting_model||i.selecting_binding?(k(),P("div",dar,[g("div",far,[g("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,par),e[20]||(e[20]=g("span",{class:"sr-only"},"Selecting model...",-1))])])):ie("",!0),g("div",har,[g("div",Tar,[n.loading?(k(),P("div",mar,[g("img",{src:i.loader_v0},null,8,gar),e[21]||(e[21]=g("div",{role:"status"},[g("span",{class:"sr-only"},"Loading...")],-1))])):ie("",!0),ae(s,{onClick:o.toggleLeftPanel,class:We({"text-red-500":o.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Be(()=>[te(g("div",null,e[22]||(e[22]=[g("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"},[g("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Ht,o.leftPanelCollapsed]]),te(g("div",null,e[23]||(e[23]=[g("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"},[g("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Ht,!o.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),g("div",_ar,[this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(k(),wt(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:o.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):ie("",!0)]),g("div",Qar,[o.isdataLakeNamesValid?(k(),wt(a,{key:0,icon:"feather:book",commandsList:o.dataLakeNames,sendCommand:o.mountDB,"on-show-toast-message":n.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):ie("",!0)]),g("div",yar,[g("form",bar,[te(g("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=l=>i.message=l),onPaste:e[4]||(e[4]=(...l)=>o.handlePaste&&o.handlePaste(...l)),onKeydown:e[5]||(e[5]=ri(ge(l=>o.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:"Write your message to the AI here..."},null,544),[[Ne,i.message]])])]),g("div",Ear,[n.loading?(k(),wt(s,{key:0,onClick:o.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Be(()=>e[24]||(e[24]=[g("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[g("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),g("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:Be(()=>[e[25]||(e[25]=g("span",null,"Stop",-1))]),_:1},8,["onClick"])):(k(),wt(s,{key:1,onClick:o.submit,title:"Send"},{icon:Be(()=>e[26]||(e[26]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"])),ae(s,{onClick:o.submitWithInternetSearch,title:"Send with internet search"},{icon:Be(()=>e[27]||(e[27]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.startSpeechRecognition,class:We({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Be(()=>e[28]||(e[28]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),t.$store.state.config.active_tts_service!="None"&&t.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(k(),wt(s,{key:2,onClick:o.updateRT,class:We(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Be(()=>e[29]||(e[29]=[nt(" 🌟 ")])),_:1},8,["onClick","class"])):ie("",!0),n.loading?ie("",!0):(k(),P("div",{key:3,class:"relative",onMouseleave:e[9]||(e[9]=(...l)=>o.hideSendMenu&&o.hideSendMenu(...l))},[g("div",xar,[te(g("div",{onMouseenter:e[6]||(e[6]=(...l)=>o.showSendMenu&&o.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"},[g("div",Sar,[g("div",Lar,[ae(s,{onClick:o.add_file,title:"Send file"},{icon:Be(()=>e[30]||(e[30]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.takePicture,title:"Take picture"},{icon:Be(()=>e[31]||(e[31]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"}),g("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"]),ae(s,{onClick:o.addWebLink,title:"Add web link"},{icon:Be(()=>e[32]||(e[32]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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),[[Ht,i.isSendMenuVisible]]),g("div",{onMouseenter:e[8]||(e[8]=(...l)=>o.showSendMenu&&o.showSendMenu(...l))},[g("button",{onClick:e[7]||(e[7]=ge((...l)=>t.toggleSendMenu&&t.toggleSendMenu(...l),["prevent"])),class:"chat-bar-button"},e[33]||(e[33]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)),ae(s,{onClick:o.makeAnEmptyUserMessage,title:"New user message"},{icon:Be(()=>e[34]||(e[34]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Be(()=>e[35]||(e[35]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.toggleRightPanel,class:We({"text-red-500":!o.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Be(()=>[te(g("div",null,e[36]||(e[36]=[g("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"},[g("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Ht,o.rightPanelCollapsed]]),te(g("div",null,e[37]||(e[37]=[g("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"},[g("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Ht,!o.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),g("input",{type:"file",ref:"fileDialog",onChange:e[10]||(e[10]=(...l)=>o.addFiles&&o.addFiles(...l)),multiple:"",style:{display:"none"}},null,544)]),e[38]||(e[38]=g("div",{class:"ml-auto gap-2"},null,-1))])])}const BU=Et(Ksr,[["render",Car],["__scopeId","data-v-c3280f2d"]]),Aar={name:"WelcomeComponent",data(){return{videoUrl:"",videoType:"",latestNews:"",error:"",showVideoButton:!1,lastVideoUrl:""}},computed:{getImageForVideoType(){switch(this.videoType.toLowerCase()){case"podcast":return"/podcast.png";case"music":return"/music.png";case"movie":return"/movie.png";case"tutorial":return"/tutorial.png";default:return"/play_video.png"}},logoSrc(){return this.$store.state.config&&this.$store.state.config.app_custom_logo?`/user_infos/${this.$store.state.config.app_custom_logo}`:vo}},methods:{async fetchLatestNews(){try{const t=await xe.get("/get_news");this.latestNews=t.data}catch(t){console.error("Failed to fetch latest news:",t),this.error="Unable to fetch the latest news. Please try again later."}},async fetchVideoUrl(){try{const t=await xe.get("/get_last_video_url");this.videoUrl=t.data.url,this.videoType=t.data.type,this.checkVideoUpdate()}catch(t){console.error("Failed to fetch video information:",t),this.error="Unable to fetch the latest video information. Please try again later."}},async handleClick(){await xe.post("/set_last_viewed_video_url",{client_id:this.$store.state.client_id,last_viewed_video_url:this.videoUrl}),this.showVideoButton=!1},async checkVideoUpdate(){const e=(await xe.get("/get_last_viewed_video_url")).data;console.log("storedVideoUrl"),console.log(e),this.videoUrl!==e&&(this.showVideoButton=!0)}},mounted(){this.fetchLatestNews(),this.fetchVideoUrl()}},war={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},Mar={class:"text-center max-w-4xl"},Oar={class:"flex items-center justify-center gap-8 mb-12"},Rar={class:"relative w-24 h-24"},Nar=["src"],Dar={class:"flex flex-col items-start"},Iar={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"},kar={class:"space-y-8 animate-fade-in-up"},Par={class:"text-4xl font-semibold"},Har={class:"text-xl max-w-3xl mx-auto"},Var={key:0,class:"mt-12 p-6 rounded-lg shadow-md animate-fade-in-up overflow-y-scroll scrollbar-thin"},Far=["innerHTML"],Bar={key:1,class:"mt-6 text-red-500"},$ar={key:0,class:"floating-button-container"},Uar=["href"],Gar=["src","alt"];function qar(t,e,n,r,i,o){return k(),P("div",war,[g("div",Mar,[g("div",Oar,[g("div",Rar,[g("img",{src:o.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,Nar)]),g("div",Dar,[g("h1",Iar,ue(t.$store.state.theme_vars.lollms_title),1),e[1]||(e[1]=g("p",{class:"text-2xl italic mt-2"}," Lord of Large Language And Multimodal Systems ",-1))])]),g("div",kar,[g("h2",Par,ue(t.$store.state.theme_vars.lollms_welcome_short_message),1),g("p",Har,ue(t.$store.state.theme_vars.lollms_welcome_message),1)]),i.latestNews?(k(),P("div",Var,[e[2]||(e[2]=g("h3",null,"Latest LoLLMS News",-1)),g("p",{innerHTML:i.latestNews},null,8,Far)])):ie("",!0),i.error?(k(),P("div",Bar,ue(i.error),1)):ie("",!0)]),i.showVideoButton?(k(),P("div",$ar,[g("a",{href:i.videoUrl,target:"_blank",class:"floating-button",onClick:e[0]||(e[0]=(...s)=>o.handleClick&&o.handleClick(...s))},[e[3]||(e[3]=g("span",{class:"tooltip"},"New ParisNeo Video!",-1)),g("img",{src:o.getImageForVideoType,alt:"New "+i.videoType,class:"w-full h-full object-cover"},null,8,Gar)],8,Uar)])):ie("",!0)])}const $U=Et(Aar,[["render",qar],["__scopeId","data-v-d9375d3e"]]);var zar=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),gd=function(){return gd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{const e=t.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(t=>{console.error(t)})}}},Yar={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Kar={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},Zar={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"},Xar={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},Jar={class:"w-full flex flex-row mt-4 text-center justify-center"},e1r={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},t1r={class:"mb-4 w-full"},n1r={class:"w-full bg-bg-light dark:bg-bg-dark"};function r1r(t,e,n,r,i,o){return i.show?(k(),P("div",Yar,[g("div",Kar,[g("div",Zar,[g("button",{type:"button",onClick:e[0]||(e[0]=s=>o.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]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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),g("span",{class:"sr-only"},"Close modal",-1)])),g("div",Xar,[g("div",Jar,[g("button",{type:"submit",onClick:e[1]||(e[1]=ge((...s)=>o.submitForm&&o.submitForm(...s),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),g("button",{onClick:e[2]||(e[2]=ge(s=>o.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),g("div",e1r,[g("form",t1r,[g("table",n1r,[g("tr",null,[e[18]||(e[18]=g("td",null,[g("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=s=>n.config.personality_conditioning=s)},null,512),[[Ne,n.config.personality_conditioning]])])]),g("tr",null,[e[19]||(e[19]=g("td",null,[g("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=s=>n.config.user_message_prefix=s)},null,512),[[Ne,n.config.user_message_prefix]])])]),g("tr",null,[e[20]||(e[20]=g("td",null,[g("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=s=>n.config.ai_message_prefix=s)},null,512),[[Ne,n.config.ai_message_prefix]])])]),g("tr",null,[e[21]||(e[21]=g("td",null,[g("label",{for:"linkText"},"Link Text:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=s=>n.config.link_text=s)},null,512),[[Ne,n.config.link_text]])])]),g("tr",null,[e[22]||(e[22]=g("td",null,[g("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=s=>n.config.welcome_message=s)},null,512),[[Ne,n.config.welcome_message]])])]),g("tr",null,[e[23]||(e[23]=g("td",null,[g("label",{for:"modelTemperature"},"Model Temperature:")],-1)),g("td",null,[te(g("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=s=>n.config.model_temperature=s)},null,512),[[Ne,n.config.model_temperature]])])]),g("tr",null,[e[24]||(e[24]=g("td",null,[g("label",{for:"modelTopK"},"Model Top K:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=s=>n.config.model_top_k=s)},null,512),[[Ne,n.config.model_top_k]])])]),g("tr",null,[e[25]||(e[25]=g("td",null,[g("label",{for:"modelTopP"},"Model Top P:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=s=>n.config.model_top_p=s)},null,512),[[Ne,n.config.model_top_p]])])]),g("tr",null,[e[26]||(e[26]=g("td",null,[g("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=s=>n.config.model_repeat_penalty=s)},null,512),[[Ne,n.config.model_repeat_penalty]])])]),g("tr",null,[e[27]||(e[27]=g("td",null,[g("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=s=>n.config.model_repeat_last_n=s)},null,512),[[Ne,n.config.model_repeat_last_n]])])]),g("tr",null,[e[28]||(e[28]=g("td",null,[g("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=s=>n.config.recommended_binding=s)},null,512),[[Ne,n.config.recommended_binding]])])]),g("tr",null,[e[29]||(e[29]=g("td",null,[g("label",{for:"recommendedModel"},"Recommended Model:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=s=>n.config.recommended_model=s)},null,512),[[Ne,n.config.recommended_model]])])]),g("tr",null,[e[30]||(e[30]=g("td",null,[g("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=s=>n.config.dependencies=s)},null,512),[[Ne,n.config.dependencies]])])]),g("tr",null,[e[31]||(e[31]=g("td",null,[g("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=s=>n.config.anti_prompts=s)},null,512),[[Ne,n.config.anti_prompts]])])])])])])])])])])):ie("",!0)}const eG=Et(War,[["render",r1r]]),i1r={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){xe.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.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)})}}},o1r={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},s1r={class:"popup-container"},a1r=["src"],l1r={class:"checkbox-container"};function c1r(t,e,n,r,i,o){return k(),wt(Ai,{name:"fade"},{default:Be(()=>[i.showPopup?(k(),P("div",o1r,[g("div",s1r,[g("button",{onClick:e[0]||(e[0]=(...s)=>o.hide&&o.hide(...s)),class:"close-button"}," X "),g("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,a1r),g("div",l1r,[te(g("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=s=>this.$store.state.config.show_news_panel=s),onChange:e[2]||(e[2]=(...s)=>o.save_configuration&&o.save_configuration(...s))},null,544),[[at,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=g("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):ie("",!0)]),_:1})}const tG=Et(i1r,[["render",c1r],["__scopeId","data-v-d504dfc9"]]),u1r="/assets/fastapi-BQj-rjUJ.png",d1r="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",f1r="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",p1r="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",h1r="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",T1r="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",m1r="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",g1r="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",_1r="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",Q1r="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",v1r="/assets/robot-CQPaMbxU.svg",y1r="/";xe.defaults.baseURL="/";const b1r={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Vb,UniversalForm:nU},data(){return{bUrl:y1r,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(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return console.log("asked for:",this.$store.state.mountedPers),this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0;let e=await xe.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path),r={client_id:this.$store.state.client_id,id:n};e=await xe.post("/select_personality",r),console.log("Generating message from ",e.data.status),et.emit("generate_msg_from",{id:-1})}},async remount_personality(){const t=this.mountedPers;if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await xe.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(t){try{xe.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 - "+t.name,"Save changes","Cancel").then(n=>{try{xe.post("/set_active_personality_settings",n).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):this.$store.state.toast.showToast(`Did not get Personality settings responses. +`+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),p=p+3+t.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(t){this.$emit("resendMessage",this.message.id,this.message.content,t)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?zor+this.avatar:(console.log("No avatar found"),vo)},defaultImg(t){t.target.src=vo},parseDate(t){let e=new Date(Date.parse(t)),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":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,r=Math.floor(n/86400);if(!(isNaN(r)||r<0||r>=31))return r==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/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(t){t&&(this.$refs.audio_player.src=t)},"message.content":function(t){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(t){console.log("ui changed to",t),this.ui_componentKey++},showConfirmation(){Ke(()=>{Xe.replace()})},deleteMsgMode(){Ke(()=>{Xe.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,Ke(()=>{Xe.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 t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!t.getTime()||!e.getTime())return;let[r,i,o]=this.computeTimeDiff(t,e);function s(l){return l<10&&(l="0"+l),l}return s(r)+"h:"+s(i)+"m:"+s(o)+"s"},warmup_duration(){const t=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, ",t," -> ",e),e.getTime()===t.getTime())return 0;if(!t.getTime()||!e.getTime())return;let r,i,o;[r,i,o]=this.computeTimeDiff(t,e);function s(l){return l<10&&(l="0"+l),l}return s(r)+"h:"+s(i)+"m:"+s(o)+"s"},generation_rate(){const t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),n=this.message.nb_tokens;if(e.getTime()===t.getTime()||!n||!t.getTime()||!e.getTime())return;let i=e.getTime()-t.getTime();const o=Math.floor(i/1e3),s=n/o;return Math.round(s)+" t/s"}}},Wor={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"},Yor={class:"flex flex-row gap-2"},Kor={class:"flex-shrink-0"},Zor={class:"group/avatar"},Xor=["src","data-popover-target"],Jor={class:"flex flex-col w-full flex-grow-0"},esr={class:"flex flex-row flex-grow items-start"},tsr={class:"flex flex-col mb-2"},nsr={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},rsr=["title"],isr={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 space-y-2"},osr={key:1},ssr=["src"],asr={class:"message-details w-full max-w-4xl mx-auto"},lsr={key:0,class:"steps-container bg-white/50 dark:bg-gray-800/50 rounded border border-gray-200 dark:border-gray-700 text-sm mb-2"},csr={class:"text-gray-600 dark:text-gray-300 flex-grow"},usr={key:0,class:"overflow-hidden"},dsr={class:"px-2 pb-2 space-y-1"},fsr={key:1,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"},psr={class:"flex-row justify-end mx-2"},hsr={class:"invisible group-hover:visible flex flex-row"},Tsr={key:0},msr={key:1},gsr={key:2},_sr={key:3},Qsr={key:4,class:"flex items-center duration-75"},vsr={class:"flex flex-row items-center"},ysr={class:"flex flex-row items-center"},bsr={key:6,class:"flex flex-row items-center"},Esr=["src"],xsr={class:"text-sm text-gray-400 mt-2"},Ssr={class:"flex flex-row items-center gap-2"},Lsr={key:0},Csr={class:"font-thin"},Asr={key:1},wsr={class:"font-thin"},Msr={key:2},Osr={class:"font-thin"},Rsr={key:3},Nsr=["title"],Dsr={key:4},Isr=["title"],ksr={key:5},Psr=["title"],Hsr={key:6},Vsr=["title"];function Fsr(t,e,n,r,i,o){var T;const s=gt("MarkdownRenderer"),a=gt("JsonViewer"),l=gt("DynamicUIRenderer"),c=gt("StatusIcon"),u=gt("Step"),d=gt("RenderHTMLJS"),h=gt("ToolbarButton"),f=gt("DropdownSubmenu"),m=gt("DropdownMenu");return k(),P("div",Wor,[g("div",Yor,[g("div",Kor,[g("div",Zor,[g("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=Q=>o.defaultImg(Q)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Xor)])]),g("div",Jor,[g("div",esr,[g("div",tsr,[g("div",nsr,ue(n.message.sender),1),n.message.created_at?(k(),P("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+o.created_at_parsed},ue(o.created_at),9,rsr)):ie("",!0)]),e[46]||(e[46]=g("div",{class:"flex-grow"},null,-1))]),g("div",isr,[o.editMsgMode?ie("",!0):(k(),wt(s,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),g("div",null,[n.message.open?te((k(),P("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=ri(ge((...Q)=>o.insertTab&&o.insertTab(...Q),["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]=Q=>n.message.content=Q)}," ",544)),[[Ne,n.message.content]]):ie("",!0)]),n.message.metadata!==null?(k(),P("div",osr,[(k(!0),P(ze,null,lt(((T=n.message.metadata)==null?void 0:T.filter(Q=>Q!=null&&Q.hasOwnProperty("title")&&Q.hasOwnProperty("content")))||[],(Q,_)=>(k(),P("div",{key:"json-"+n.message.id+"-"+_,class:"json font-bold"},[(k(),wt(a,{jsonFormText:Q.title,jsonData:Q.content,key:"msgjson-"+n.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):ie("",!0),n.message.ui?(k(),wt(l,{ref:"ui",class:"w-full",ui:n.message.ui,key:"msgui-"+n.message.id},null,8,["ui"])):ie("",!0),i.audio_url!=null?(k(),P("audio",{controls:"",key:i.audio_url},[g("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,ssr),e[47]||(e[47]=nt(" Your browser does not support the audio element. "))])):ie("",!0),g("div",asr,[n.message.steps.length>0?(k(),P("div",lsr,[g("div",{class:"flex items-center p-2 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors duration-200",onClick:e[3]||(e[3]=(...Q)=>o.toggleExpanded&&o.toggleExpanded(...Q))},[ae(c,{status:n.message.status_message,icon:!0,class:"w-4 h-4 mr-2"},null,8,["status"]),g("span",csr,ue(n.message.status_message),1),g("span",{class:We(["text-xs text-gray-400 transform transition-transform duration-200",{"rotate-180":i.expanded}])},"▼",2)]),ae(Ai,{"enter-active-class":"transition-all duration-200 ease-out","leave-active-class":"transition-all duration-150 ease-in","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-[500px]","leave-from-class":"opacity-100 max-h-[500px]","leave-to-class":"opacity-0 max-h-0"},{default:Be(()=>[i.expanded?(k(),P("div",usr,[g("div",dsr,[(k(!0),P(ze,null,lt(n.message.steps,(Q,_)=>(k(),P("div",{key:`step-${n.message.id}-${_}`,class:"animate-fadeIn",style:gn({animationDelay:`${_*50}ms`})},[ae(u,{done:Q.done,text:Q.text,status:Q.status,description:Q.description,class:"text-xs rounded bg-gray-50/50 dark:bg-gray-700/50 p-2 hover:bg-gray-100 dark:hover:bg-gray-600/50"},null,8,["done","text","status","description"])],4))),128))])])):ie("",!0)]),_:1})])):ie("",!0),n.message.html_js_s&&n.message.html_js_s.length?(k(),P("div",fsr,[(k(!0),P(ze,null,lt(n.message.html_js_s,(Q,_)=>(k(),P("div",{key:`htmljs-${n.message.id}-${_}`,class:"font-bold animate-fadeIn",style:gn({animationDelay:`${_*200}ms`})},[ae(d,{htmlContent:Q},null,8,["htmlContent"])],4))),128))])):ie("",!0)])]),g("div",psr,[g("div",hsr,[o.editMsgMode?(k(),P("div",Tsr,[ae(h,{onClick:e[4]||(e[4]=ge(Q=>o.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),ae(h,{onClick:ge(o.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),ae(m,{title:"Add Block"},{default:Be(()=>[ae(f,{title:"Programming Languages",icon:"code"},{default:Be(()=>[ae(h,{onClick:e[5]||(e[5]=ge(Q=>o.addBlock("python"),["stop"])),title:"Python",icon:"python"}),ae(h,{onClick:e[6]||(e[6]=ge(Q=>o.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),ae(h,{onClick:e[7]||(e[7]=ge(Q=>o.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),ae(h,{onClick:e[8]||(e[8]=ge(Q=>o.addBlock("java"),["stop"])),title:"Java",icon:"java"}),ae(h,{onClick:e[9]||(e[9]=ge(Q=>o.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),ae(h,{onClick:e[10]||(e[10]=ge(Q=>o.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),ae(h,{onClick:e[11]||(e[11]=ge(Q=>o.addBlock("go"),["stop"])),title:"Go",icon:"go"}),ae(h,{onClick:e[12]||(e[12]=ge(Q=>o.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),ae(h,{onClick:e[13]||(e[13]=ge(Q=>o.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),ae(h,{onClick:e[14]||(e[14]=ge(Q=>o.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),ae(h,{onClick:e[15]||(e[15]=ge(Q=>o.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),ae(f,{title:"Web Technologies",icon:"web"},{default:Be(()=>[ae(h,{onClick:e[16]||(e[16]=ge(Q=>o.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),ae(h,{onClick:e[17]||(e[17]=ge(Q=>o.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),ae(h,{onClick:e[18]||(e[18]=ge(Q=>o.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),ae(h,{onClick:e[19]||(e[19]=ge(Q=>o.addBlock("react"),["stop"])),title:"React",icon:"react"}),ae(h,{onClick:e[20]||(e[20]=ge(Q=>o.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),ae(f,{title:"Markup and Data",icon:"file-code"},{default:Be(()=>[ae(h,{onClick:e[21]||(e[21]=ge(Q=>o.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),ae(h,{onClick:e[22]||(e[22]=ge(Q=>o.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),ae(h,{onClick:e[23]||(e[23]=ge(Q=>o.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),ae(h,{onClick:e[24]||(e[24]=ge(Q=>o.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),ae(h,{onClick:e[25]||(e[25]=ge(Q=>o.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),ae(f,{title:"Scripting and Shell",icon:"terminal"},{default:Be(()=>[ae(h,{onClick:e[26]||(e[26]=ge(Q=>o.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),ae(h,{onClick:e[27]||(e[27]=ge(Q=>o.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),ae(h,{onClick:e[28]||(e[28]=ge(Q=>o.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),ae(f,{title:"Diagramming",icon:"sitemap"},{default:Be(()=>[ae(h,{onClick:e[29]||(e[29]=ge(Q=>o.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),ae(h,{onClick:e[30]||(e[30]=ge(Q=>o.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),ae(h,{onClick:e[31]||(e[31]=ge(Q=>o.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),ae(f,{title:"Database",icon:"database"},{default:Be(()=>[ae(h,{onClick:e[32]||(e[32]=ge(Q=>o.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),ae(h,{onClick:e[33]||(e[33]=ge(Q=>o.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),ae(h,{onClick:e[34]||(e[34]=ge(Q=>o.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(k(),P("div",msr,[ae(h,{onClick:e[35]||(e[35]=ge(Q=>o.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),ae(h,{onClick:o.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!o.editMsgMode&&n.message.sender!==t.$store.state.mountedPers.name?(k(),P("div",gsr,[ae(h,{onClick:e[36]||(e[36]=ge(Q=>o.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),ae(h,{onClick:e[37]||(e[37]=ge(Q=>o.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),ae(h,{onClick:e[38]||(e[38]=ge(Q=>o.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):ie("",!0),!o.editMsgMode&&n.message.sender===t.$store.state.mountedPers.name?(k(),P("div",_sr,[ae(h,{onClick:o.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):ie("",!0),i.deleteMsgMode?(k(),P("div",Qsr,[g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[39]||(e[39]=ge(Q=>i.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[g("i",{"data-feather":"x"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[40]||(e[40]=ge(Q=>o.deleteMsg(),["stop"]))},e[49]||(e[49]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),!o.editMsgMode&&!i.deleteMsgMode?(k(),P("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[41]||(e[41]=Q=>i.deleteMsgMode=!0)},e[50]||(e[50]=[g("i",{"data-feather":"trash"},null,-1)]))):ie("",!0),g("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[42]||(e[42]=ge(Q=>o.rankUp(),["stop"]))},e[51]||(e[51]=[g("i",{"data-feather":"thumbs-up"},null,-1)])),g("div",vsr,[g("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[43]||(e[43]=ge(Q=>o.rankDown(),["stop"]))},e[52]||(e[52]=[g("i",{"data-feather":"thumbs-down"},null,-1)])),n.message.rank!=0?(k(),P("div",{key:0,class:We(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},ue(n.message.rank),3)):ie("",!0)]),g("div",ysr,[this.$store.state.config.active_tts_service!="None"?(k(),P("div",{key:0,class:We(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":o.isTalking}]),title:"speak",onClick:e[44]||(e[44]=ge(Q=>o.speak(),["stop"]))},e[53]||(e[53]=[g("i",{"data-feather":"volume-2"},null,-1)]),2)):ie("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(k(),P("div",bsr,[i.isSynthesizingVoice?(k(),P("img",{key:1,src:i.loading_svg},null,8,Esr)):(k(),P("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[45]||(e[45]=ge(Q=>o.read(),["stop"]))},e[54]||(e[54]=[g("i",{"data-feather":"voicemail"},null,-1)])))])):ie("",!0)])]),g("div",xsr,[g("div",Ssr,[n.message.binding?(k(),P("p",Lsr,[e[55]||(e[55]=nt("Binding: ")),g("span",Csr,ue(n.message.binding),1)])):ie("",!0),n.message.model?(k(),P("p",Asr,[e[56]||(e[56]=nt("Model: ")),g("span",wsr,ue(n.message.model),1)])):ie("",!0),n.message.seed?(k(),P("p",Msr,[e[57]||(e[57]=nt("Seed: ")),g("span",Osr,ue(n.message.seed),1)])):ie("",!0),n.message.nb_tokens?(k(),P("p",Rsr,[e[58]||(e[58]=nt("Number of tokens: ")),g("span",{class:"font-thin",title:"Number of Tokens: "+n.message.nb_tokens},ue(n.message.nb_tokens),9,Nsr)])):ie("",!0),o.warmup_duration?(k(),P("p",Dsr,[e[59]||(e[59]=nt("Warmup duration: ")),g("span",{class:"font-thin",title:"Warmup duration: "+o.warmup_duration},ue(o.warmup_duration),9,Isr)])):ie("",!0),o.time_spent?(k(),P("p",ksr,[e[60]||(e[60]=nt("Generation duration: ")),g("span",{class:"font-thin",title:"Finished generating: "+o.time_spent},ue(o.time_spent),9,Psr)])):ie("",!0),o.generation_rate?(k(),P("p",Hsr,[e[61]||(e[61]=nt("Rate: ")),g("span",{class:"font-thin",title:"Generation rate: "+o.generation_rate},ue(o.generation_rate),9,Vsr)])):ie("",!0)])])])])])}const FU=Et(jor,[["render",Fsr]]);xe.defaults.baseURL="/";const Bsr={components:{InteractiveMenu:eE},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),Ke(()=>{Xe.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(r=>r.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=r=>{this.selectedFile=r.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};et.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,et.off("file_received")}),et.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){Ke(()=>{Xe.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},$sr={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function Usr(t,e,n,r,i,o){const s=gt("InteractiveMenu");return i.loading?(k(),P("div",$sr,e[0]||(e[0]=[g("div",{role:"status"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):(k(),wt(s,{key:1,commands:n.commandsList,execute_cmd:o.execute_cmd},null,8,["commands","execute_cmd"]))}const Gsr=Et(Bsr,[["render",Usr],["__scopeId","data-v-1a32c141"]]),qsr="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",zsr="/",jsr={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:Gsr,ChatBarButton:D9},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:qsr,sendGlobe:VU,bUrl:zsr,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"},isdataLakeNamesValid(){return console.log("dataLakeNames:",this.dataLakeNames),console.log("Type of dataLakeNames:",typeof this.dataLakeNames),Array.isArray(this.dataLakeNames)&&this.dataLakeNames.length>0},dataLakeNames(){console.log("rag_databases",this.$store.state.config.datalakes);const t=this.$store.state.config.datalakes.map(e=>{console.log("entry",e);const n=e.mounted?"feather:check":"";return console.log("icon decision",n),{name:e.alias,value:e.alias||"default_value",icon:n,help:"mounts the datalake"}});return console.log("formatted datalake",t),t}},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(t){const e=(t.clipboardData||t.originalEvent.clipboardData).items;let n=[];for(let r of e)if(r.type.indexOf("image")!==-1){const i=r.getAsFile(),s=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",s);const a=new File([i],s,{type:i.type});this.addFiles([a])}else if(r.kind==="file"){const i=r.getAsFile();n.push(i)}n.length>0&&this.addFiles(n)},emitloaded(){this.$emit("loaded")},download_files(){xe.get("/download_files")},remove_file(t){xe.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t}).then(e=>{console.log(e)})},clear_files(){xe.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{console.log(t),t.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(t,e){console.log("Send file triggered");const n=new FileReader,r=24*1024;let i=0,o=0;n.onloadend=()=>{if(n.error){console.error("Error reading file:",n.error);return}const a=n.result,l=i+a.byteLength>=t.size;et.emit("send_file_chunk",{filename:t.name,chunk:a,offset:i,isLastChunk:l,chunkIndex:o}),i+=a.byteLength,o++,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()):s()};function s(){const a=t.slice(i,i+r);n.readAsArrayBuffer(a)}console.log("Uploading file"),s()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},updateRT(){console.log("Updating rt status"),this.is_rt?this.stopRTCom():this.startRTCom()},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),et.emit("start_bidirectional_audio_stream"),Ke(()=>{Xe.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),et.emit("stop_bidirectional_audio_stream"),Ke(()=>{Xe.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=t=>{let e="";for(let n=t.resultIndex;n{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.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(t){return Ke(()=>{Xe.replace()}),Xo(t)},removeItem(t){console.log("Removing ",t.name),xe.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=t)}),console.log(this.filesList)},sendMessageEvent(t,e="no_internet"){this.$emit("messageSentEvent",t,e)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},async mountDB(t){await xe.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,datalake_name:t}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const t=document.createElement("input");t.type="file",t.style.display="none",t.multiple=!0,document.body.appendChild(t),t.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(t.files),document.body.removeChild(t)}),t.click()},takePicture(){et.emit("take_picture"),et.on("picture_taken",()=>{xe.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{this.filesList=t.data.files,this.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.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(t){console.log("Adding files");const e=[...t];let n=0;const r=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[n];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{n++,r()})};r()}},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){Ke(()=>{Xe.replace()})},loading(t,e){Ke(()=>{Xe.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r{Xe.replace()}),console.log("Chatbar mounted"),et.on("rtcom_status_changed",t=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",t.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(){Ke(()=>{Xe.replace()})}},Wsr={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},Ysr={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},Ksr={class:"flex"},Zsr=["title"],Xsr={key:0},Jsr={class:"flex flex-col max-h-64"},ear=["title"],tar={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"},nar={key:0,filesList:"",role:"status"},rar={class:"flex flex-row items-center"},iar={class:"whitespace-nowrap"},oar=["onClick"],sar={key:1,class:"flex mx-1 w-500"},aar={class:"whitespace-nowrap flex flex-row gap-2"},lar={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},car={role:"status"},uar=["src"],dar={class:"flex w-fit relative grow w-full"},far={class:"chat-bar",tabindex:"0"},par={key:0,title:"Waiting for reply"},har=["src"],Tar={class:"w-fit"},mar={class:"w-fit"},gar={class:"relative grow m-0 p-0"},_ar={class:"m-0 p-0"},Qar={class:"flex items-center space-x-3"},yar={class:"relative inline-block"},bar={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},Ear={class:"flex flex-col gap-2"};function xar(t,e,n,r,i,o){const s=gt("ChatBarButton"),a=gt("PersonalitiesCommands");return k(),P("div",Wsr,[i.filesList.length>0?(k(),P("div",Ysr,[g("div",Ksr,[g("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]=ge(l=>i.showfilesList=!i.showfilesList,["stop"]))},e[11]||(e[11]=[g("i",{"data-feather":"list"},null,-1)]),8,Zsr)]),i.filesList.length>0&&i.showfilesList==!0?(k(),P("div",Xsr,[g("div",Jsr,[ae(Gs,{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:Be(()=>[(k(!0),P(ze,null,lt(i.filesList,(l,c)=>(k(),P("div",{key:c+"-"+l.name},[g("div",{class:"m-1",title:l.name},[g("div",tar,[i.isFileSentList[c]?ie("",!0):(k(),P("div",nar,e[12]||(e[12]=[g("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"},[g("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"}),g("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),g("span",{class:"sr-only"},"Loading...",-1)]))),e[14]||(e[14]=g("div",null,[g("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),g("div",{class:We(["line-clamp-1 w-3/5",i.isFileSentList[c]?"text-green-500":"text-red-200"])},ue(l.name),3),e[15]||(e[15]=g("div",{class:"grow"},null,-1)),g("div",rar,[g("p",iar,ue(o.computedFileSize(l.size)),1),g("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=>o.removeItem(l)},e[13]||(e[13]=[g("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,oar)])])],8,ear)]))),128))]),_:1})])])):ie("",!0),i.filesList.length>0?(k(),P("div",sar,[g("div",aar,[e[16]||(e[16]=g("p",{class:"font-bold"}," Total size: ",-1)),nt(" "+ue(i.totalSize)+" ("+ue(i.filesList.length)+") ",1)]),e[19]||(e[19]=g("div",{class:"grow"},null,-1)),g("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)=>o.clear_files&&o.clear_files(...l))},e[17]||(e[17]=[g("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),g("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)=>o.download_files&&o.download_files(...l))},e[18]||(e[18]=[g("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):ie("",!0)])):ie("",!0),i.selecting_model||i.selecting_binding?(k(),P("div",lar,[g("div",car,[g("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,uar),e[20]||(e[20]=g("span",{class:"sr-only"},"Selecting model...",-1))])])):ie("",!0),g("div",dar,[g("div",far,[n.loading?(k(),P("div",par,[g("img",{src:i.loader_v0},null,8,har),e[21]||(e[21]=g("div",{role:"status"},[g("span",{class:"sr-only"},"Loading...")],-1))])):ie("",!0),ae(s,{onClick:o.toggleLeftPanel,class:We({"text-red-500":o.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Be(()=>[te(g("div",null,e[22]||(e[22]=[g("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"},[g("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Ht,o.leftPanelCollapsed]]),te(g("div",null,e[23]||(e[23]=[g("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"},[g("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Ht,!o.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),g("div",Tar,[this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(k(),wt(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:o.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):ie("",!0)]),g("div",mar,[o.isdataLakeNamesValid?(k(),wt(a,{key:0,icon:"feather:book",commandsList:o.dataLakeNames,sendCommand:o.mountDB,"on-show-toast-message":n.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):ie("",!0)]),g("div",gar,[g("form",_ar,[te(g("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=l=>i.message=l),onPaste:e[4]||(e[4]=(...l)=>o.handlePaste&&o.handlePaste(...l)),onKeydown:e[5]||(e[5]=ri(ge(l=>o.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:"Write your message to the AI here..."},null,544),[[Ne,i.message]])])]),g("div",Qar,[n.loading?(k(),wt(s,{key:0,onClick:o.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Be(()=>e[24]||(e[24]=[g("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[g("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),g("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:Be(()=>[e[25]||(e[25]=g("span",null,"Stop",-1))]),_:1},8,["onClick"])):(k(),wt(s,{key:1,onClick:o.submit,title:"Send"},{icon:Be(()=>e[26]||(e[26]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"])),ae(s,{onClick:o.submitWithInternetSearch,title:"Send with internet search"},{icon:Be(()=>e[27]||(e[27]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.startSpeechRecognition,class:We({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Be(()=>e[28]||(e[28]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),t.$store.state.config.active_tts_service!="None"&&t.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(k(),wt(s,{key:2,onClick:o.updateRT,class:We(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Be(()=>e[29]||(e[29]=[nt(" 🌟 ")])),_:1},8,["onClick","class"])):ie("",!0),n.loading?ie("",!0):(k(),P("div",{key:3,class:"relative",onMouseleave:e[9]||(e[9]=(...l)=>o.hideSendMenu&&o.hideSendMenu(...l))},[g("div",yar,[te(g("div",{onMouseenter:e[6]||(e[6]=(...l)=>o.showSendMenu&&o.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"},[g("div",bar,[g("div",Ear,[ae(s,{onClick:o.add_file,title:"Send file"},{icon:Be(()=>e[30]||(e[30]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.takePicture,title:"Take picture"},{icon:Be(()=>e[31]||(e[31]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"}),g("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"]),ae(s,{onClick:o.addWebLink,title:"Add web link"},{icon:Be(()=>e[32]||(e[32]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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),[[Ht,i.isSendMenuVisible]]),g("div",{onMouseenter:e[8]||(e[8]=(...l)=>o.showSendMenu&&o.showSendMenu(...l))},[g("button",{onClick:e[7]||(e[7]=ge((...l)=>t.toggleSendMenu&&t.toggleSendMenu(...l),["prevent"])),class:"chat-bar-button"},e[33]||(e[33]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)),ae(s,{onClick:o.makeAnEmptyUserMessage,title:"New user message"},{icon:Be(()=>e[34]||(e[34]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Be(()=>e[35]||(e[35]=[g("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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"]),ae(s,{onClick:o.toggleRightPanel,class:We({"text-red-500":!o.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Be(()=>[te(g("div",null,e[36]||(e[36]=[g("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"},[g("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Ht,o.rightPanelCollapsed]]),te(g("div",null,e[37]||(e[37]=[g("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"},[g("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Ht,!o.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),g("input",{type:"file",ref:"fileDialog",onChange:e[10]||(e[10]=(...l)=>o.addFiles&&o.addFiles(...l)),multiple:"",style:{display:"none"}},null,544)]),e[38]||(e[38]=g("div",{class:"ml-auto gap-2"},null,-1))])])}const BU=Et(jsr,[["render",xar],["__scopeId","data-v-c3280f2d"]]),Sar={name:"WelcomeComponent",data(){return{videoUrl:"",videoType:"",latestNews:"",error:"",showVideoButton:!1,lastVideoUrl:""}},computed:{getImageForVideoType(){switch(this.videoType.toLowerCase()){case"podcast":return"/podcast.png";case"music":return"/music.png";case"movie":return"/movie.png";case"tutorial":return"/tutorial.png";default:return"/play_video.png"}},logoSrc(){return this.$store.state.config&&this.$store.state.config.app_custom_logo?`/user_infos/${this.$store.state.config.app_custom_logo}`:vo}},methods:{async fetchLatestNews(){try{const t=await xe.get("/get_news");this.latestNews=t.data}catch(t){console.error("Failed to fetch latest news:",t),this.error="Unable to fetch the latest news. Please try again later."}},async fetchVideoUrl(){try{const t=await xe.get("/get_last_video_url");this.videoUrl=t.data.url,this.videoType=t.data.type,this.checkVideoUpdate()}catch(t){console.error("Failed to fetch video information:",t),this.error="Unable to fetch the latest video information. Please try again later."}},async handleClick(){await xe.post("/set_last_viewed_video_url",{client_id:this.$store.state.client_id,last_viewed_video_url:this.videoUrl}),this.showVideoButton=!1},async checkVideoUpdate(){const e=(await xe.get("/get_last_viewed_video_url")).data;console.log("storedVideoUrl"),console.log(e),this.videoUrl!==e&&(this.showVideoButton=!0)}},mounted(){this.fetchLatestNews(),this.fetchVideoUrl()}},Lar={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},Car={class:"text-center max-w-4xl"},Aar={class:"flex items-center justify-center gap-8 mb-12"},war={class:"relative w-24 h-24"},Mar=["src"],Oar={class:"flex flex-col items-start"},Rar={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"},Nar={class:"space-y-8 animate-fade-in-up"},Dar={class:"text-4xl font-semibold"},Iar={class:"text-xl max-w-3xl mx-auto"},kar={key:0,class:"mt-12 p-6 rounded-lg shadow-md animate-fade-in-up overflow-y-scroll scrollbar-thin"},Par=["innerHTML"],Har={key:1,class:"mt-6 text-red-500"},Var={key:0,class:"floating-button-container"},Far=["href"],Bar=["src","alt"];function $ar(t,e,n,r,i,o){return k(),P("div",Lar,[g("div",Car,[g("div",Aar,[g("div",war,[g("img",{src:o.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,Mar)]),g("div",Oar,[g("h1",Rar,ue(t.$store.state.theme_vars.lollms_title),1),e[1]||(e[1]=g("p",{class:"text-2xl italic mt-2"}," Lord of Large Language And Multimodal Systems ",-1))])]),g("div",Nar,[g("h2",Dar,ue(t.$store.state.theme_vars.lollms_welcome_short_message),1),g("p",Iar,ue(t.$store.state.theme_vars.lollms_welcome_message),1)]),i.latestNews?(k(),P("div",kar,[e[2]||(e[2]=g("h3",null,"Latest LoLLMS News",-1)),g("p",{innerHTML:i.latestNews},null,8,Par)])):ie("",!0),i.error?(k(),P("div",Har,ue(i.error),1)):ie("",!0)]),i.showVideoButton?(k(),P("div",Var,[g("a",{href:i.videoUrl,target:"_blank",class:"floating-button",onClick:e[0]||(e[0]=(...s)=>o.handleClick&&o.handleClick(...s))},[e[3]||(e[3]=g("span",{class:"tooltip"},"New ParisNeo Video!",-1)),g("img",{src:o.getImageForVideoType,alt:"New "+i.videoType,class:"w-full h-full object-cover"},null,8,Bar)],8,Far)])):ie("",!0)])}const $U=Et(Sar,[["render",$ar],["__scopeId","data-v-d9375d3e"]]);var Uar=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),gd=function(){return gd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{const e=t.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(t=>{console.error(t)})}}},zar={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},jar={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},War={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"},Yar={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},Kar={class:"w-full flex flex-row mt-4 text-center justify-center"},Zar={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},Xar={class:"mb-4 w-full"},Jar={class:"w-full bg-bg-light dark:bg-bg-dark"};function e1r(t,e,n,r,i,o){return i.show?(k(),P("div",zar,[g("div",jar,[g("div",War,[g("button",{type:"button",onClick:e[0]||(e[0]=s=>o.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]=[g("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[g("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),g("span",{class:"sr-only"},"Close modal",-1)])),g("div",Yar,[g("div",Kar,[g("button",{type:"submit",onClick:e[1]||(e[1]=ge((...s)=>o.submitForm&&o.submitForm(...s),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),g("button",{onClick:e[2]||(e[2]=ge(s=>o.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),g("div",Zar,[g("form",Xar,[g("table",Jar,[g("tr",null,[e[18]||(e[18]=g("td",null,[g("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=s=>n.config.personality_conditioning=s)},null,512),[[Ne,n.config.personality_conditioning]])])]),g("tr",null,[e[19]||(e[19]=g("td",null,[g("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=s=>n.config.user_message_prefix=s)},null,512),[[Ne,n.config.user_message_prefix]])])]),g("tr",null,[e[20]||(e[20]=g("td",null,[g("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=s=>n.config.ai_message_prefix=s)},null,512),[[Ne,n.config.ai_message_prefix]])])]),g("tr",null,[e[21]||(e[21]=g("td",null,[g("label",{for:"linkText"},"Link Text:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=s=>n.config.link_text=s)},null,512),[[Ne,n.config.link_text]])])]),g("tr",null,[e[22]||(e[22]=g("td",null,[g("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=s=>n.config.welcome_message=s)},null,512),[[Ne,n.config.welcome_message]])])]),g("tr",null,[e[23]||(e[23]=g("td",null,[g("label",{for:"modelTemperature"},"Model Temperature:")],-1)),g("td",null,[te(g("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=s=>n.config.model_temperature=s)},null,512),[[Ne,n.config.model_temperature]])])]),g("tr",null,[e[24]||(e[24]=g("td",null,[g("label",{for:"modelTopK"},"Model Top K:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=s=>n.config.model_top_k=s)},null,512),[[Ne,n.config.model_top_k]])])]),g("tr",null,[e[25]||(e[25]=g("td",null,[g("label",{for:"modelTopP"},"Model Top P:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=s=>n.config.model_top_p=s)},null,512),[[Ne,n.config.model_top_p]])])]),g("tr",null,[e[26]||(e[26]=g("td",null,[g("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=s=>n.config.model_repeat_penalty=s)},null,512),[[Ne,n.config.model_repeat_penalty]])])]),g("tr",null,[e[27]||(e[27]=g("td",null,[g("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=s=>n.config.model_repeat_last_n=s)},null,512),[[Ne,n.config.model_repeat_last_n]])])]),g("tr",null,[e[28]||(e[28]=g("td",null,[g("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=s=>n.config.recommended_binding=s)},null,512),[[Ne,n.config.recommended_binding]])])]),g("tr",null,[e[29]||(e[29]=g("td",null,[g("label",{for:"recommendedModel"},"Recommended Model:")],-1)),g("td",null,[te(g("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=s=>n.config.recommended_model=s)},null,512),[[Ne,n.config.recommended_model]])])]),g("tr",null,[e[30]||(e[30]=g("td",null,[g("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=s=>n.config.dependencies=s)},null,512),[[Ne,n.config.dependencies]])])]),g("tr",null,[e[31]||(e[31]=g("td",null,[g("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),g("td",null,[te(g("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=s=>n.config.anti_prompts=s)},null,512),[[Ne,n.config.anti_prompts]])])])])])])])])])])):ie("",!0)}const eG=Et(qar,[["render",e1r]]),t1r={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){xe.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.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)})}}},n1r={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},r1r={class:"popup-container"},i1r=["src"],o1r={class:"checkbox-container"};function s1r(t,e,n,r,i,o){return k(),wt(Ai,{name:"fade"},{default:Be(()=>[i.showPopup?(k(),P("div",n1r,[g("div",r1r,[g("button",{onClick:e[0]||(e[0]=(...s)=>o.hide&&o.hide(...s)),class:"close-button"}," X "),g("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,i1r),g("div",o1r,[te(g("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=s=>this.$store.state.config.show_news_panel=s),onChange:e[2]||(e[2]=(...s)=>o.save_configuration&&o.save_configuration(...s))},null,544),[[at,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=g("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):ie("",!0)]),_:1})}const tG=Et(t1r,[["render",s1r],["__scopeId","data-v-d504dfc9"]]),a1r="/assets/fastapi-BQj-rjUJ.png",l1r="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",c1r="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",u1r="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",d1r="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",f1r="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",p1r="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",h1r="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",T1r="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",m1r="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",g1r="/assets/robot-CQPaMbxU.svg",_1r="/";xe.defaults.baseURL="/";const Q1r={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Vb,UniversalForm:nU},data(){return{bUrl:_1r,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(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return console.log("asked for:",this.$store.state.mountedPers),this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0;let e=await xe.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path),r={client_id:this.$store.state.client_id,id:n};e=await xe.post("/select_personality",r),console.log("Generating message from ",e.data.status),et.emit("generate_msg_from",{id:-1})}},async remount_personality(){const t=this.mountedPers;if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await xe.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(t){try{xe.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 - "+t.name,"Save changes","Cancel").then(n=>{try{xe.post("/set_active_personality_settings",n).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):this.$store.state.toast.showToast(`Did not get Personality settings responses. `+r,4,!1)})}catch(r){this.$store.state.toast.showToast(`Did not get Personality settings responses. - Endpoint error: `+r.message,4,!1)}}):this.$store.state.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(Ke(()=>{Xe.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=tE}}},E1r={class:"relative group/item"},x1r=["src","alt"],S1r={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"},L1r={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},C1r={class:"text-xs font-bold"};function A1r(t,e,n,r,i,o){const s=gt("UniversalForm");return k(),P(ze,null,[g("div",E1r,[g("button",{onClick:e[1]||(e[1]=ge((...a)=>o.onSettingsPersonality&&o.onSettingsPersonality(...a),["prevent"])),class:We(["w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none relative",{"glow-effect":t.$store.state.config.activate_skills_lib}])},[g("img",{src:o.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...a)),alt:o.mountedPers.name,class:We(["w-full h-full object-cover",{"border-2 border-secondary":t.isActive}])},null,42,x1r)],2),g("div",S1r,[g("button",{onClick:e[2]||(e[2]=ge(a=>o.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]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])),g("button",{onClick:e[3]||(e[3]=ge(a=>o.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]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])),g("button",L1r,[g("span",C1r,"+"+ue(o.mountedPersArr.length-1),1)])])]),ae(s,{ref:"universalForm",class:"z-50"},null,512)],64)}const nG=Et(b1r,[["render",A1r],["__scopeId","data-v-85f3dede"]]),w1r={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"},M1r={key:0,class:"absolute inset-0 pointer-events-none overflow-hidden"},O1r={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},R1r={class:"mb-8 w-full"},N1r={class:"text-5xl md:text-6xl font-bold mb-2 hover:scale-105 transition-transform lollms-title-style"},D1r={class:"bottom-0 text-2xl italic"},I1r={class:"text-lg"},k1r=["innerHTML"],P1r={class:"animated-progressbar-bg"},H1r={class:"w-full max-w-2xl"},V1r={role:"status",class:"w-full"},F1r={class:"text-xl"},B1r={class:"text-2xl font-bold mt-2"},$1r={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-[16rem]"},U1r={class:"logo-container"},G1r=["src"],q1r={class:"toolbar discussion"},z1r={class:"toolbar-container"},j1r={class:"p-4 flex flex-wrap gap-2 items-center"},W1r={class:"p-4 flex flex-wrap gap-2 items-center"},Y1r={class:"relative"},K1r={class:"relative"},Z1r={key:0,title:"Loading..",class:"flex justify-center"},X1r={key:1,class:"flex justify-center space-x-4"},J1r={key:2,class:"flex flex-col space-y-2"},e2r={class:"relative inline-block"},t2r={class:"p-2 border-b border-gray-200 dark:border-gray-700"},n2r={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},r2r={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},i2r=["onClick","title"],o2r=["src","alt"],s2r=["title"],a2r={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"},l2r=["onClick"],c2r={class:"flex space-x-1"},u2r=["onClick"],d2r=["src","title"],f2r={class:"relative inline-block"},p2r={class:"p-2 border-b border-gray-200 dark:border-gray-700"},h2r={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},T2r={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},m2r=["onClick","title"],g2r=["src","alt"],_2r=["title"],Q2r={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"},v2r=["onClick"],y2r={class:"flex space-x-1"},b2r=["onClick"],E2r=["src","title"],x2r={class:"relative inline-block"},S2r={class:"p-2 border-b border-gray-200 dark:border-gray-700"},L2r={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},C2r={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},A2r=["onClick","title"],w2r=["src","alt"],M2r=["title"],O2r={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"},R2r=["onClick"],N2r={class:"flex space-x-1"},D2r=["onClick"],I2r=["onClick"],k2r=["onClick"],P2r={class:"personalities-container"},H2r={class:"w-auto max-w-md mx-auto p-2"},V2r={class:"flex items-center"},F2r={class:"relative flex-grow"},B2r={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},$2r={class:"flex flex-col space-y-2"},U2r={key:0},G2r={key:1,class:"flex space-x-2"},q2r={key:1,class:"flex space-x-2"},z2r={class:"flex space-x-2"},j2r={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},W2r={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"},Y2r={class:"flex flex-row items-center justify-center panels-color"},K2r={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},Z2r={key:0,class:"relative flex flex-col flex-grow"},X2r={class:"container pt-4 pb-50 mb-50 w-full"},J2r={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"},elr={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"},tlr={class:"flex flex-nowrap gap-6 p-4 min-w-full"},nlr=["title","onClick"],rlr={class:"space-y-3"},ilr=["title"],olr=["title"],slr={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},alr={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},llr={class:"flex-1 flex flex-col min-h-0"},clr={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},ulr={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"},dlr={class:"text-base whitespace-pre-wrap"},flr={class:"flex-1 overflow-y-auto"},plr={class:"space-y-4"},hlr=["for"],Tlr=["id","onUpdate:modelValue","placeholder"],mlr=["id","onUpdate:modelValue"],glr=["id","onUpdate:modelValue"],_lr=["id","onUpdate:modelValue"],Qlr={key:4,class:"border rounded-md overflow-hidden"},vlr={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},ylr=["id","onUpdate:modelValue"],blr=["id","onUpdate:modelValue"],Elr=["value"],xlr={class:"mt-6 flex justify-end space-x-4"},Slr={key:0,class:"flex flex-row items-center justify-center h-10"},Llr={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"},Clr={ref:"isolatedContent",class:"h-full"},Alr={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"},wlr={class:"text-2xl animate-pulse mt-2 text-white"},Mlr={id:"app"},Olr=t=>{const e=t.replace("[","").replace("]","").split("::"),n=e[0];if(e.length===1)return{label:n,type:"text",fullText:t};const r=e[1],i={label:n,type:r,fullText:t};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(o=>o.trim()):[];break;default:i.type="text"}return i},Rlr="/",Nlr={setup(){},data(){return{interestingFacts:["ParisNeo, the creator of LoLLMs, originally built his high-performance PC to play Cyberpunk 2077. However, his passion for AI took an unexpected turn, leading him to develop LoLLMs instead. Ironically, he never found the time to actually play the game that inspired his powerful setup!","Saïph, version 14 of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","At 12, ParisNeo coded 'Saif14' in BASIC on a Tandy 1000, an 'all-in-one' suite named with a friend. LoLLMs v14 'Saïph' - a star in Orion - echoes this BASIC creation's spirit and hints at OpenAI's future.",`The new AI Village app in LoLLMs, simulating AI agents believing they're human, mirrors "The Hitchhiker's Guide to the Galaxy" (ParisNeo's favorite) where Earth was a simulation to compute the Ultimate Question. Both explore the idea of unsuspecting inhabitants participating in a grand cosmic calculation!`,'Once upon a time, young ParisNeo dove so deep into "The Matrix" that he watched it 60 times in two months, practically becoming a human DVD player! Fast forward to today, and this same Matrix-obsessed kid grew up to create LoLLMs, where AI personas are like digital kung-fu masters, and users are the chosen ones. Talk about life imitating art - ParisNeo went from "I know kung fu" to "I code AI"! Who knew binge-watching could lead to bending the rules of AI reality?',"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, Saïph, Nexus, Pulsar.","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 2000 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 world's first computer programmer was a woman named Ada Lovelace.","There are more possible iterations of a game of chess than there are atoms in the known universe.","The first AI program was written in 1951 to play checkers.","The Internet was originally called ARPANET and was developed by the US Department of Defense.","The concept of zero as a number was developed in ancient India, with the earliest known text using it dating to 458 CE.","Light from the Sun takes about 8 minutes and 20 seconds to reach Earth.","The first mobile phone call was made in 1973 by Martin Cooper.","The human brain processes images 60,000 times faster than text.","The most powerful supercomputer today can perform about 442 quadrillion calculations per second.","The ancient Egyptians invented the 365-day calendar we still use today.","Mathematicians have calculated pi to over 62 trillion digits.","Quantum computers can theoretically solve certain problems in seconds that would take classical computers billions of years.","The first email was sent in 1971 by Ray Tomlinson.","The Hubble Space Telescope can see galaxies so far away, it's like looking back in time billions of years.","The largest known prime number has over 24 million digits.","AI can now generate realistic images, music, and even write stories.","The Great Wall of China is not visible from space with the naked eye, contrary to popular belief.","There are more possible ways to shuffle a deck of 52 cards than there are atoms on Earth.","The first computer virus was created in 1983 as an experiment.","The speed of light in a vacuum is exactly 299,792,458 meters per second.","ParisNeo started coding at age 11 after an older programmer refused to teach him BASIC programming","ParisNeo learned BASIC by reverse engineering other people's games, even before he learned English","At age 12, ParisNeo co-created SAIF14, a suite of programs on a Tandy 1000 computer built by two kids","LoLLMs runs on a custom-built gaming PC that ParisNeo assembled and configured himself","The project started as a simple Chrome plugin called 'chatgpt personality selector'","ParisNeo's summer bet involved watching The Matrix 60 times in one month (twice daily) while his uncle gave up","The name LoLLMs was inspired by 'Lord of the Rings', positioning itself as 'one tool to rule them all'","LoLLMs has a 'Personalities Zoo' with over 500 different AI personas","The project evolved from handling just language models to becoming a multimodal system, hence the 'M' in LoLLMs","ParisNeo's difficulty with academic writing led him to develop AI solutions for writing assistance","LoLLMs' development was influenced by science fiction concepts from Wall-E, Terminator, and The Hitchhiker's Guide to the Galaxy","The project went from being 'GPT4All WebUI' to 'Lord of Large Language Models' before becoming 'Lord of Large Language & Multimodal Systems'","ParisNeo received early access to GPT-3 and used it to push the boundaries of what was possible with AI","The project maintains a philosophy of 'Don't panic, bring a towel, and trust in AI' - a reference to The Hitchhiker's Guide to the Galaxy","Despite having multiple patents in various fields, ParisNeo's interest in AI was sparked when he read about AlexNet in 2012","LoLLMs receives daily updates, similar to course corrections on a starship","ParisNeo's journey into programming shows his determination - he taught himself BASIC by reverse engineering games before he even knew English","Version 17 of LoLLMs, nicknamed 'Pulsar', draws inspiration from the most precise natural clocks in the universe - pulsating neutron stars. Just as pulsars emit precise, regular signals that help navigate spacecraft, LoLLMs Pulsar orchestrates precise communication between different AI systems. The version number 17 wasn't just sequential - pulsars rotate up to 1.7 thousand times per second, making '17' a cosmic nod to these incredible stellar lighthouses of space!"],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isSkillsLibraryMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:f1r,animated_info:p1r,normal_mode:T1r,fun_mode:h1r,is_first_connection:!0,discord:d1r,FastAPI:u1r,modelImgPlaceholder:ui,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:` + Endpoint error: `+r.message,4,!1)}}):this.$store.state.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(Ke(()=>{Xe.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=tE}}},v1r={class:"relative group/item"},y1r=["src","alt"],b1r={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"},E1r={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},x1r={class:"text-xs font-bold"};function S1r(t,e,n,r,i,o){const s=gt("UniversalForm");return k(),P(ze,null,[g("div",v1r,[g("button",{onClick:e[1]||(e[1]=ge((...a)=>o.onSettingsPersonality&&o.onSettingsPersonality(...a),["prevent"])),class:We(["w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none relative",{"glow-effect":t.$store.state.config.activate_skills_lib}])},[g("img",{src:o.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...a)),alt:o.mountedPers.name,class:We(["w-full h-full object-cover",{"border-2 border-secondary":t.isActive}])},null,42,y1r)],2),g("div",b1r,[g("button",{onClick:e[2]||(e[2]=ge(a=>o.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]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])),g("button",{onClick:e[3]||(e[3]=ge(a=>o.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]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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)])),g("button",E1r,[g("span",x1r,"+"+ue(o.mountedPersArr.length-1),1)])])]),ae(s,{ref:"universalForm",class:"z-50"},null,512)],64)}const nG=Et(Q1r,[["render",S1r],["__scopeId","data-v-85f3dede"]]),L1r={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"},C1r={key:0,class:"absolute inset-0 pointer-events-none overflow-hidden"},A1r={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},w1r={class:"mb-8 w-full"},M1r={class:"text-5xl md:text-6xl font-bold mb-2 hover:scale-105 transition-transform lollms-title-style"},O1r={class:"bottom-0 text-2xl italic"},R1r={class:"text-lg"},N1r=["innerHTML"],D1r={class:"animated-progressbar-bg"},I1r={class:"w-full max-w-2xl"},k1r={role:"status",class:"w-full"},P1r={class:"text-xl"},H1r={class:"text-2xl font-bold mt-2"},V1r={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-[16rem]"},F1r={class:"logo-container"},B1r=["src"],$1r={class:"toolbar discussion"},U1r={class:"toolbar-container"},G1r={class:"p-4 flex flex-wrap gap-2 items-center"},q1r={class:"p-4 flex flex-wrap gap-2 items-center"},z1r={class:"relative"},j1r={class:"relative"},W1r={key:0,title:"Loading..",class:"flex justify-center"},Y1r={key:1,class:"flex justify-center space-x-4"},K1r={key:2,class:"flex flex-col space-y-2"},Z1r={class:"relative inline-block"},X1r={class:"p-2 border-b border-gray-200 dark:border-gray-700"},J1r={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},e2r={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},t2r=["onClick","title"],n2r=["src","alt"],r2r=["title"],i2r={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"},o2r=["onClick"],s2r={class:"flex space-x-1"},a2r=["onClick"],l2r=["src","title"],c2r={class:"relative inline-block"},u2r={class:"p-2 border-b border-gray-200 dark:border-gray-700"},d2r={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},f2r={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},p2r=["onClick","title"],h2r=["src","alt"],T2r=["title"],m2r={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"},g2r=["onClick"],_2r={class:"flex space-x-1"},Q2r=["onClick"],v2r=["src","title"],y2r={class:"relative inline-block"},b2r={class:"p-2 border-b border-gray-200 dark:border-gray-700"},E2r={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},x2r={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},S2r=["onClick","title"],L2r=["src","alt"],C2r=["title"],A2r={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"},w2r=["onClick"],M2r={class:"flex space-x-1"},O2r=["onClick"],R2r=["onClick"],N2r=["onClick"],D2r={class:"personalities-container"},I2r={class:"w-auto max-w-md mx-auto p-2"},k2r={class:"flex items-center"},P2r={class:"relative flex-grow"},H2r={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},V2r={class:"flex flex-col space-y-2"},F2r={key:0},B2r={key:1,class:"flex space-x-2"},$2r={key:1,class:"flex space-x-2"},U2r={class:"flex space-x-2"},G2r={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},q2r={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"},z2r={class:"flex flex-row items-center justify-center panels-color"},j2r={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},W2r={key:0,class:"relative flex flex-col flex-grow"},Y2r={class:"container pt-4 pb-50 mb-50 w-full"},K2r={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"},Z2r={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"},X2r={class:"flex flex-nowrap gap-6 p-4 min-w-full"},J2r=["title","onClick"],elr={class:"space-y-3"},tlr=["title"],nlr=["title"],rlr={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ilr={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},olr={class:"flex-1 flex flex-col min-h-0"},slr={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},alr={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"},llr={class:"text-base whitespace-pre-wrap"},clr={class:"flex-1 overflow-y-auto"},ulr={class:"space-y-4"},dlr=["for"],flr=["id","onUpdate:modelValue","placeholder"],plr=["id","onUpdate:modelValue"],hlr=["id","onUpdate:modelValue"],Tlr=["id","onUpdate:modelValue"],mlr={key:4,class:"border rounded-md overflow-hidden"},glr={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},_lr=["id","onUpdate:modelValue"],Qlr=["id","onUpdate:modelValue"],vlr=["value"],ylr={class:"mt-6 flex justify-end space-x-4"},blr={key:0,class:"flex flex-row items-center justify-center h-10"},Elr={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"},xlr={ref:"isolatedContent",class:"h-full"},Slr={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"},Llr={class:"text-2xl animate-pulse mt-2 text-white"},Clr={id:"app"},Alr=t=>{const e=t.replace("[","").replace("]","").split("::"),n=e[0];if(e.length===1)return{label:n,type:"text",fullText:t};const r=e[1],i={label:n,type:r,fullText:t};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(o=>o.trim()):[];break;default:i.type="text"}return i},wlr="/",Mlr={setup(){},data(){return{interestingFacts:["ParisNeo, the creator of LoLLMs, originally built his high-performance PC to play Cyberpunk 2077. However, his passion for AI took an unexpected turn, leading him to develop LoLLMs instead. Ironically, he never found the time to actually play the game that inspired his powerful setup!","Saïph, version 14 of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","At 12, ParisNeo coded 'Saif14' in BASIC on a Tandy 1000, an 'all-in-one' suite named with a friend. LoLLMs v14 'Saïph' - a star in Orion - echoes this BASIC creation's spirit and hints at OpenAI's future.",`The new AI Village app in LoLLMs, simulating AI agents believing they're human, mirrors "The Hitchhiker's Guide to the Galaxy" (ParisNeo's favorite) where Earth was a simulation to compute the Ultimate Question. Both explore the idea of unsuspecting inhabitants participating in a grand cosmic calculation!`,'Once upon a time, young ParisNeo dove so deep into "The Matrix" that he watched it 60 times in two months, practically becoming a human DVD player! Fast forward to today, and this same Matrix-obsessed kid grew up to create LoLLMs, where AI personas are like digital kung-fu masters, and users are the chosen ones. Talk about life imitating art - ParisNeo went from "I know kung fu" to "I code AI"! Who knew binge-watching could lead to bending the rules of AI reality?',"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, Saïph, Nexus, Pulsar.","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 2000 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 world's first computer programmer was a woman named Ada Lovelace.","There are more possible iterations of a game of chess than there are atoms in the known universe.","The first AI program was written in 1951 to play checkers.","The Internet was originally called ARPANET and was developed by the US Department of Defense.","The concept of zero as a number was developed in ancient India, with the earliest known text using it dating to 458 CE.","Light from the Sun takes about 8 minutes and 20 seconds to reach Earth.","The first mobile phone call was made in 1973 by Martin Cooper.","The human brain processes images 60,000 times faster than text.","The most powerful supercomputer today can perform about 442 quadrillion calculations per second.","The ancient Egyptians invented the 365-day calendar we still use today.","Mathematicians have calculated pi to over 62 trillion digits.","Quantum computers can theoretically solve certain problems in seconds that would take classical computers billions of years.","The first email was sent in 1971 by Ray Tomlinson.","The Hubble Space Telescope can see galaxies so far away, it's like looking back in time billions of years.","The largest known prime number has over 24 million digits.","AI can now generate realistic images, music, and even write stories.","The Great Wall of China is not visible from space with the naked eye, contrary to popular belief.","There are more possible ways to shuffle a deck of 52 cards than there are atoms on Earth.","The first computer virus was created in 1983 as an experiment.","The speed of light in a vacuum is exactly 299,792,458 meters per second.","ParisNeo started coding at age 11 after an older programmer refused to teach him BASIC programming","ParisNeo learned BASIC by reverse engineering other people's games, even before he learned English","At age 12, ParisNeo co-created SAIF14, a suite of programs on a Tandy 1000 computer built by two kids","LoLLMs runs on a custom-built gaming PC that ParisNeo assembled and configured himself","The project started as a simple Chrome plugin called 'chatgpt personality selector'","ParisNeo's summer bet involved watching The Matrix 60 times in one month (twice daily) while his uncle gave up","The name LoLLMs was inspired by 'Lord of the Rings', positioning itself as 'one tool to rule them all'","LoLLMs has a 'Personalities Zoo' with over 500 different AI personas","The project evolved from handling just language models to becoming a multimodal system, hence the 'M' in LoLLMs","ParisNeo's difficulty with academic writing led him to develop AI solutions for writing assistance","LoLLMs' development was influenced by science fiction concepts from Wall-E, Terminator, and The Hitchhiker's Guide to the Galaxy","The project went from being 'GPT4All WebUI' to 'Lord of Large Language Models' before becoming 'Lord of Large Language & Multimodal Systems'","ParisNeo received early access to GPT-3 and used it to push the boundaries of what was possible with AI","The project maintains a philosophy of 'Don't panic, bring a towel, and trust in AI' - a reference to The Hitchhiker's Guide to the Galaxy","Despite having multiple patents in various fields, ParisNeo's interest in AI was sparked when he read about AlexNet in 2012","LoLLMs receives daily updates, similar to course corrections on a starship","ParisNeo's journey into programming shows his determination - he taught himself BASIC by reverse engineering games before he even knew English","Version 17 of LoLLMs, nicknamed 'Pulsar', draws inspiration from the most precise natural clocks in the universe - pulsating neutron stars. Just as pulsars emit precise, regular signals that help navigate spacecraft, LoLLMs Pulsar orchestrates precise communication between different AI systems. The version number 17 wasn't just sequential - pulsars rotate up to 1.7 thousand times per second, making '17' a cosmic nod to these incredible stellar lighthouses of space!"],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isSkillsLibraryMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:c1r,animated_info:u1r,normal_mode:f1r,fun_mode:d1r,is_first_connection:!0,discord:l1r,FastAPI:a1r,modelImgPlaceholder:ui,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:` @@ -391,7 +391,7 @@ If You are using windows, this will install wsl so you need to activate it.
- `,memory_icon:m1r,active_skills:g1r,inactive_skills:_1r,skillsRegistry:Q1r,robot:v1r,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},discussionsList:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,isOpen:!1,discussion_id:0}},methods:{updateRandomFact(){let t;do t=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)];while(t===this.randomFact&&this.interestingFacts.length>1);this.randomFact=t},async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await xe.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path),r={client_id:this.$store.state.client_id,id:n};e=await xe.post("/select_personality",r),console.log("Generating message from ",e.data.status),et.emit("generate_msg_from",{id:-1})}},onPersonalitiesReadyFun(){this.$store.state.personalities_ready=!0},async showBindingHoveredIn(t){this.bindingHoveredIndex=t},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(t){this.modelHoveredIndex=t},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(t){this.personalityHoveredIndex=t},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(t){if(this.hidePersonalitiesMenu(),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=t.full_path;if(this.$store.state.config.personalities.includes(e)){const n=await this.select_personality(t);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: + `,memory_icon:p1r,active_skills:h1r,inactive_skills:T1r,skillsRegistry:m1r,robot:g1r,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},discussionsList:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,isOpen:!1,discussion_id:0}},methods:{updateRandomFact(){let t;do t=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)];while(t===this.randomFact&&this.interestingFacts.length>1);this.randomFact=t},async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await xe.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path),r={client_id:this.$store.state.client_id,id:n};e=await xe.post("/select_personality",r),console.log("Generating message from ",e.data.status),et.emit("generate_msg_from",{id:-1})}},onPersonalitiesReadyFun(){this.$store.state.personalities_ready=!0},async showBindingHoveredIn(t){this.bindingHoveredIndex=t},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(t){this.modelHoveredIndex=t},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(t){this.personalityHoveredIndex=t},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(t){if(this.hidePersonalitiesMenu(),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=t.full_path;if(this.$store.state.config.personalities.includes(e)){const n=await this.select_personality(t);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+t.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: `+t.name,4,!1)}this.$emit("personalitySelected"),Ke(()=>{Xe.replace()})}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};const e=t.full_path,n=this.$store.state.config.personalities.findIndex(i=>i===e),r={client_id:this.$store.state.client_id,id:n};try{const i=await xe.post("/select_personality",r);if(i)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i.message,"select_personality - settings");return}},showPersonalitiesMenu(){clearTimeout(this.hideMenuTimeout),this.isPersonalitiesMenuVisible=!0},showSkillsLibraryMenu(){clearTimeout(this.hideSkillsLibraryMenuTimeout),this.isSkillsLibraryMenuVisible=!0},hideSkillsLibraryMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isSkillsLibraryMenuVisible=!1},300)},hidePersonalitiesMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isPersonalitiesMenuVisible=!1},300)},copyModelName(){navigator.clipboard.writeText(this.binding_name+"::"+this.model_name),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},copyModelNameFrom(t){navigator.clipboard.writeText(this.binding_name+"::"+t),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},showBindingsMenu(){clearTimeout(this.hideBindingsMenuTimeout),this.isBindingsMenuVisible=!0},hideBindingsMenu(){this.hideBindingsMenuTimeout=setTimeout(()=>{this.isBindingsMenuVisible=!1},300)},setBinding(t){this.selecting_binding=!0,this.selectedBinding=t,this.$store.state.messageBox.showBlockingMessage("Loading binding"),xe.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},showModelsMenu(){clearTimeout(this.hideModelsMenuTimeout),this.isModelsMenuVisible=!0},hideModelsMenu(){this.hideModelsMenuTimeout=setTimeout(()=>{this.isModelsMenuVisible=!1},300)},setModel(t){this.selecting_model=!0,this.selectedModel=t,this.$store.state.messageBox.showBlockingMessage("Loading model"),xe.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},showModelConfig(){try{this.isLoading=!0,xe.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(t.data&&Object.keys(t.data).length>0?this.$store.state.universalForm.showForm(t.data,"Binding settings ","Save changes","Cancel").then(e=>{try{xe.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:e}).then(n=>{n&&n.data?this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0):(this.$store.state.toast.showToast(`Did not get binding settings responses. `+n,4,!1),this.isLoading=!1)})}catch(n){this.$store.state.toast.showToast(`Did not get binding settings responses. @@ -410,15 +410,15 @@ ${e} ${l}`;navigator.clipboard.writeText(c)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Ke(()=>{Xe.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(t,e){e=e||"data.json";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(t,null,2)],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},saveMarkdowntoFile(t,e){e=e||"data.md";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([t],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},parseJsonObj(t){try{return JSON.parse(t)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(this.parseJsonObj(i.target.result)),r.onerror=i=>n(i),r.readAsText(t)})},async exportDiscussionsAsMarkdown(){const t=this.discussionsList.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){let e=new Date;const n=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(n+"."+r+"."+i+"."+o+s+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(t,"markdown");u?(this.saveMarkdowntoFile(u,c),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 t=this.discussionsList.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){let e=new Date;const n=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(n+"."+r+"."+i+"."+o+s+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(t,"json");u?(this.saveJSONtoFile(u,c),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(t){},async importDiscussions(t){const e=await this.parseJsonFile(t.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 t=this.$store.state.personalities;this.personalityAvatars=t.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(t){if(t.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===t),n=this.personalityAvatars[e];if(n)return n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(t){if(t.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[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)];const e=(await xe.get("/get_versionID")).data.versionId;et.onopen=()=>{this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",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(()=>{Xe.replace()});try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(n){console.log("Error cought:",n)}try{for(this.$store.state.loading_infos="Loading Configuration";et.id===void 0;)await new Promise(n=>setTimeout(n,100));this.$store.state.client_id=et.id,await this.$store.dispatch("refreshConfig")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(n){console.log("Error cought:",n)}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(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchisRTOn")}catch(n){console.log("Error cought:",n)}this.$store.state.isConnected=!0,this.$store.state.client_id=et.id,this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,et.on("connected",this.socketIOConnected),et.on("disconnected",this.socketIODisconnected),et.on("show_progress",this.show_progress),et.on("hide_progress",this.hide_progress),et.on("update_progress",this.update_progress),et.on("notification",this.notify),et.on("new_message",this.new_message),et.on("update_message",this.update_message),et.on("close_message",this.finalMsgEvent),et.on("disucssion_renamed",n=>{const r=this.discussionsList.findIndex(o=>o.id==n.discussion_id),i=this.discussionsList[r];i.title=n.title}),et.onclose=n=>{this.socketIODisconnected()},et.on("connect_error",n=>{n.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",n),this.$store.state.isConnected=!1}),et.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),et.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),et.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ke(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:rE,Message:FU,ChatBox:BU,WelcomeComponent:$U,ChoiceDialog:nE,ProgressBar:Hb,InputBox:sor,SkillsLibraryViewer:HU,PersonalityEditor:eG,PopupViewer:tG,ActionButton:gV,SocialIcon:_V,MountedPersonalities:nG,ChatBarButton:D9},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},"$store.state.config.fun_mode":function(t,e){},"$store.state.isConnected":function(t,e){this.isConnected?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,this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Ke(()=>{Xe.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(t){console.log("progress_visibility changed to "+t)},filterTitle(t){t==""&&(this.filterInProgress=!0,this.discussionsList=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Ke(()=>{Xe.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Ke(()=>{Xe.replace()})}},computed:{parsedPlaceholders(){const t=new Map;return this.placeholders.forEach(e=>{const n=Olr(e);t.set(n.fullText,n)}),Array.from(t.values())},filteredBindings(){return this.installedBindings.filter(t=>t.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(t=>t.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(t=>t.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?vo:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:vo},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(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...WW({versionId:t=>t.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(t){this.$store.state.isModelOk=t}},isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},personality(){const t=this.$store.state.config.personalities[this.$store.state.config.active_personality_id].split(":")[0];return this.$store.state.personalities.find(n=>n.full_path===t)},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 et.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 Ke(()=>{Xe.replace()}),this.discussionsList.filter(t=>t.checkBoxValue==!0)}}},Dlr=Object.assign(Nlr,{__name:"DiscussionsView",setup(t){return ls(()=>{JU()}),xe.defaults.baseURL="/",(e,n)=>(k(),P(ze,null,[ae(Ai,{name:"fade-and-fly"},{default:Be(()=>[e.isReady?ie("",!0):(k(),P("div",w1r,[e.$store.state.theme_vars.activate_dropping_animation?(k(),P("div",M1r,[(k(),P(ze,null,lt(50,r=>g("div",{key:r,class:"absolute animate-fall animate-giggle",style:bn({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},ue(e.$store.state.theme_vars.falling_object),5)),64))])):ie("",!0),g("div",O1r,[g("div",R1r,[g("div",N1r,ue(e.$store.state.theme_vars.lollms_title),1),n[61]||(n[61]=g("p",{class:"text-2xl italic"}," One tool to rule them all ",-1)),n[62]||(n[62]=g("p",{class:"text-xl mb-6"}," by ParisNeo ",-1)),g("p",D1r,ue(e.version_info),1),g("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:n[0]||(n[0]=(...r)=>e.updateRandomFact&&e.updateRandomFact(...r))},[g("p",I1r,[n[60]||(n[60]=g("span",{class:"font-semibold"},"🤔 Fun Fact: ",-1)),g("span",{innerHTML:e.randomFact},null,8,k1r)])]),g("div",P1r,[g("div",{class:"animated-progressbar-fg",style:bn({width:`${e.loading_progress}%`})},null,4),g("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:bn({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},null,4)])]),g("div",H1r,[g("div",V1r,[g("p",F1r,ue(e.loading_infos)+"... ",1),g("p",B1r,ue(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),ae(Ai,{name:"slide-right"},{default:Be(()=>[e.showLeftPanel?(k(),P("div",$1r,[ae(Ft(Du),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Be(()=>[g("div",U1r,[g("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Ft(vo):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Ft(vo),alt:"Logo",title:"LoLLMS WebUI"},null,8,G1r)]),n[63]||(n[63]=g("div",{class:"flex flex-col justify-center"},[g("div",{class:"text-center p-2"},[g("div",{class:"text-md relative inline-block"},[g("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),g("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"})])]),g("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),g("div",q1r,[g("div",z1r,[g("button",{class:"toolbar-button",title:"Create new discussion",onClick:n[1]||(n[1]=(...r)=>e.createNewDiscussion&&e.createNewDiscussion(...r))},n[64]||(n[64]=[g("i",{"data-feather":"plus"},null,-1)])),e.loading?ie("",!0):(k(),P("div",{key:0,class:"toolbar-button",onMouseleave:n[8]||(n[8]=(...r)=>e.hideSkillsLibraryMenu&&e.hideSkillsLibraryMenu(...r))},[te(g("div",{onMouseenter:n[6]||(n[6]=(...r)=>e.showSkillsLibraryMenu&&e.showSkillsLibraryMenu(...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"},[g("div",j1r,[e.loading?ie("",!0):(k(),P("button",{key:0,type:"button",onClick:n[2]||(n[2]=ge((...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"},n[65]||(n[65]=[g("i",{"data-feather":"plus"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(k(),P("button",{key:1,type:"button",onClick:n[3]||(n[3]=ge((...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"},n[66]||(n[66]=[g("i",{"data-feather":"check-circle"},null,-1)]))):ie("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(k(),P("button",{key:2,type:"button",onClick:n[4]||(n[4]=ge((...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"},n[67]||(n[67]=[g("i",{"data-feather":"x-octagon"},null,-1)]))):ie("",!0),e.loading?ie("",!0):(k(),P("button",{key:3,type:"button",onClick:n[5]||(n[5]=ge((...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"},n[68]||(n[68]=[g("i",{"data-feather":"book"},null,-1)])))])],544),[[Ht,e.isSkillsLibraryMenuVisible]]),g("div",{onMouseenter:n[7]||(n[7]=(...r)=>e.showSkillsLibraryMenu&&e.showSkillsLibraryMenu(...r)),class:"menu-hover-area"},n[69]||(n[69]=[g("button",{class:"w-8 h-8",title:"Toggle Skills library menu"},[g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("path",{d:"M4 4v16h16V4H4zm2 2h12v12H6V6zm2 2h2v8H8V8zm3 0h2v8h-2V8zm3 0h2v8h-2V8z",fill:"currentColor"})])],-1)]),32)],32)),e.loading?ie("",!0):(k(),P("div",{key:1,class:"toolbar-button",onMouseleave:n[22]||(n[22]=(...r)=>e.hideMenu&&e.hideMenu(...r))},[te(g("div",{onMouseenter:n[20]||(n[20]=(...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"},[g("div",W1r,[g("button",{class:We(["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:n[9]||(n[9]=r=>e.isCheckbox=!e.isCheckbox)},n[70]||(n[70]=[g("i",{"data-feather":"check-square"},null,-1)]),2),g("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:n[10]||(n[10]=ge(()=>{},["stop"]))},n[71]||(n[71]=[g("i",{"data-feather":"trash-2"},null,-1)])),g("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:n[11]||(n[11]=ge(r=>e.database_selectorDialogVisible=!0,["stop"]))},n[72]||(n[72]=[g("i",{"data-feather":"database"},null,-1)])),g("div",Y1r,[g("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:n[12]||(n[12]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),g("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:n[13]||(n[13]=ge(r=>e.$refs.fileDialog.click(),["stop"]))},n[73]||(n[73]=[g("i",{"data-feather":"log-in"},null,-1)]))]),g("div",K1r,[g("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:n[14]||(n[14]=(...r)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...r))},null,544),e.showSaveConfirmation?ie("",!0):(k(),P("button",{key:0,title:"Import discussion bundle",onClick:n[15]||(n[15]=ge(r=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},n[74]||(n[74]=[g("i",{"data-feather":"folder"},null,-1)])))]),e.loading?(k(),P("div",Z1r,n[75]||(n[75]=[g("div",{role:"status"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):ie("",!0),e.showSaveConfirmation?(k(),P("div",X1r,[g("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:n[16]||(n[16]=ge(r=>e.showSaveConfirmation=!1,["stop"]))},n[76]||(n[76]=[g("i",{"data-feather":"x"},null,-1)])),g("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:n[17]||(n[17]=ge(r=>e.save_configuration(),["stop"]))},n[77]||(n[77]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),e.isOpen?(k(),P("div",J1r,[g("button",{onClick:n[18]||(n[18]=(...r)=>e.importDiscussions&&e.importDiscussions(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),g("button",{onClick:n[19]||(n[19]=(...r)=>e.importChatGPT&&e.importChatGPT(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):ie("",!0)])],544),[[Ht,e.isMenuVisible]]),g("div",{onMouseenter:n[21]||(n[21]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"menu-hover-area"},n[78]||(n[78]=[g("button",{class:"w-8 h-8",title:"Toggle menu"},[g("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?ie("",!0):(k(),P("div",{key:2,class:"toolbar-button",onMouseleave:n[28]||(n[28]=(...r)=>e.hideBindingsMenu&&e.hideBindingsMenu(...r))},[g("div",e2r,[te(g("div",{onMouseenter:n[25]||(n[25]=(...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"},[g("div",t2r,[te(g("input",{type:"text","onUpdate:modelValue":n[23]||(n[23]=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),[[Ne,e.bindingSearchQuery]])]),g("div",n2r,[(k(!0),P(ze,null,lt(e.filteredBindings,(r,i)=>(k(),P("div",{key:i,class:"relative group/item flex flex-col items-center"},[g("div",r2r,[g("button",{onClick:ge(o=>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"},[g("img",{src:r.icon?r.icon:Ft(ui),onError:n[24]||(n[24]=(...o)=>Ft(ui)&&Ft(ui)(...o)),alt:r.name,class:We(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.binding_name}])},null,42,o2r)],8,i2r),g("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},ue(r.name),9,s2r)]),g("div",a2r,[g("span",{class:"text-xs font-medium mb-2 text-center",onClick:ge(o=>e.setBinding(r),["prevent"])},ue(r.name),9,l2r),g("div",c2r,[g("button",{onClick:ge(o=>e.showModelConfig(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},n[79]||(n[79]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("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,u2r)])])]))),128))])],544),[[Ht,e.isBindingsMenuVisible]]),g("div",{onMouseenter:n[27]||(n[27]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"bindings-hover-area"},[g("button",{onClick:n[26]||(n[26]=ge(r=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[g("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,d2r)])],32)])],32)),e.loading?ie("",!0):(k(),P("div",{key:3,class:"toolbar-button",onMouseleave:n[34]||(n[34]=(...r)=>e.hideModelsMenu&&e.hideModelsMenu(...r))},[g("div",f2r,[te(g("div",{onMouseenter:n[31]||(n[31]=(...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"},[g("div",p2r,[te(g("input",{type:"text","onUpdate:modelValue":n[29]||(n[29]=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),[[Ne,e.modelSearchQuery]])]),g("div",h2r,[(k(!0),P(ze,null,lt(e.filteredModels,(r,i)=>(k(),P("div",{key:i,class:"relative group/item flex flex-col items-center"},[g("div",T2r,[g("button",{onClick:ge(o=>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"},[g("img",{src:r.icon?r.icon:Ft(ui),onError:n[30]||(n[30]=(...o)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...o)),alt:r.name,class:We(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.model_name}])},null,42,g2r)],8,m2r),g("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},ue(r.name),9,_2r)]),g("div",Q2r,[g("span",{class:"text-xs font-medium mb-2 text-center",onClick:ge(o=>e.setModel(r),["prevent"])},ue(r.name),9,v2r),g("div",y2r,[g("button",{onClick:ge(o=>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"},n[80]||(n[80]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,b2r)])])]))),128))])],544),[[Ht,e.isModelsMenuVisible]]),g("div",{onMouseenter:n[33]||(n[33]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"models-hover-area"},[g("button",{onClick:n[32]||(n[32]=ge(r=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[g("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,E2r)])],32)])],32)),e.loading?ie("",!0):(k(),P("div",{key:4,class:"toolbar-button",onMouseleave:n[39]||(n[39]=(...r)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...r))},[g("div",x2r,[te(g("div",{onMouseenter:n[37]||(n[37]=(...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"},[g("div",S2r,[te(g("input",{type:"text","onUpdate:modelValue":n[35]||(n[35]=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),[[Ne,e.personalitySearchQuery]])]),g("div",L2r,[(k(!0),P(ze,null,lt(e.filteredPersonalities,(r,i)=>(k(),P("div",{key:i,class:"relative group/item flex flex-col items-center"},[g("div",C2r,[g("button",{onClick:ge(o=>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"},[g("img",{src:Ft(Rlr)+r.avatar,onError:n[36]||(n[36]=(...o)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...o)),alt:r.name,class:We(["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,w2r)],8,A2r),g("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},ue(r.name),9,M2r)]),g("div",O2r,[g("span",{class:"text-xs font-medium mb-2 text-center",onClick:ge(o=>e.onPersonalitySelected(r),["prevent"])},ue(r.name),9,R2r),g("div",N2r,[g("button",{onClick:ge(o=>e.unmountPersonality(r),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},n[81]||(n[81]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,D2r),g("button",{onClick:ge(o=>e.remount_personality(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},n[82]||(n[82]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,I2r),g("button",{onClick:ge(o=>e.handleOnTalk(r),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},n[83]||(n[83]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,k2r)])])]))),128))])],544),[[Ht,e.isPersonalitiesMenuVisible]]),g("div",P2r,[g("div",{onMouseenter:n[38]||(n[38]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"personalities-hover-area"},[ae(nG,{ref:"mountedPers",onShowPersList:e.onShowPersList,onReady:e.onPersonalitiesReady},null,8,["onShowPersList","onReady"])],32)])])],32))])]),g("div",H2r,[g("form",{onSubmit:n[42]||(n[42]=ge((...r)=>e.handleSearch&&e.handleSearch(...r),["prevent"])),class:"relative"},[g("div",V2r,[g("div",F2r,[te(g("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":n[40]||(n[40]=r=>e.filterTitle=r),onKeyup:n[41]||(n[41]=ri((...r)=>e.handleSearch&&e.handleSearch(...r),["enter"]))},null,544),[[Ne,e.filterTitle]]),n[84]||(n[84]=g("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[g("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),n[85]||(n[85]=g("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"},[g("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(k(),P("div",B2r,[g("div",$2r,[e.selectedDiscussions.length>0?(k(),P("p",U2r,"Selected: "+ue(e.selectedDiscussions.length),1)):ie("",!0),e.selectedDiscussions.length>0?(k(),P("div",G2r,[e.showConfirmation?ie("",!0):(k(),P("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[43]||(n[43]=ge(r=>e.showConfirmation=!0,["stop"]))},n[86]||(n[86]=[g("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(k(),P("div",q2r,[g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[44]||(n[44]=ge((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},n[87]||(n[87]=[g("i",{"data-feather":"check"},null,-1)])),g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[45]||(n[45]=ge(r=>e.showConfirmation=!1,["stop"]))},n[88]||(n[88]=[g("i",{"data-feather":"x"},null,-1)]))])):ie("",!0)])):ie("",!0),g("div",z2r,[g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:n[46]||(n[46]=ge((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},n[89]||(n[89]=[g("i",{"data-feather":"codepen"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:n[47]||(n[47]=ge((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},n[90]||(n[90]=[g("i",{"data-feather":"folder"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:n[48]||(n[48]=ge((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},n[91]||(n[91]=[g("i",{"data-feather":"bookmark"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[49]||(n[49]=ge((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},n[92]||(n[92]=[g("i",{"data-feather":"list"},null,-1)]))])])])):ie("",!0),g("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:n[50]||(n[50]=ge(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[g("div",j2r,[g("div",{class:We(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[g("div",{id:"dis-list",class:We([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.discussionsList.length>0?(k(),wt(Gs,{key:0,name:"discussionsList"},{default:Be(()=>[(k(!0),P(ze,null,lt(e.discussionsList,(r,i)=>(k(),wt(rE,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,openfolder_enabled:!0,onSelect:o=>e.selectDiscussion(r),onDelete:o=>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})):ie("",!0),e.discussionsList.length<1?(k(),P("div",W2r,n[93]||(n[93]=[g("p",{class:"px-3"},"No discussions are found",-1)]))):ie("",!0)],2)],2)])],32),g("div",Y2r,[g("div",{class:"chat-bar text-center flex items-center",onClick:n[51]||(n[51]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[ae(D9,null,{default:Be(()=>n[94]||(n[94]=[g("svg",{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",class:"mr-2"},[g("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),g("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),g("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})],-1)])),_:1}),g("p",K2r,ue(e.formatted_database_name.replace("_"," ")),1)])])])):ie("",!0)]),_:1}),e.isReady?(k(),P("div",Z2r,[g("div",{id:"messages-list",class:We(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[g("div",X2r,[e.discussionArr.length>0?(k(),wt(Gs,{key:0,name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(e.discussionArr,(r,i)=>(k(),wt(FU,{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?(k(),P("div",J2r,[n[99]||(n[99]=g("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),g("div",elr,[g("div",tlr,[(k(!0),P(ze,null,lt(e.personality.prompts_list,(r,i)=>(k(),P("div",{title:e.extractTitle(r),key:i,onClick:o=>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"},[g("div",rlr,[g("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(r)},ue(e.extractTitle(r)),9,ilr),g("div",{title:r,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},ue(e.getPromptContent(r)),9,olr)]),n[95]||(n[95]=g("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,nlr))),128))])]),e.showPlaceholderModal?(k(),P("div",slr,[g("div",alr,[n[98]||(n[98]=g("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),g("div",llr,[g("div",clr,[n[96]||(n[96]=g("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),g("div",ulr,[g("span",dlr,ue(e.getPromptContent(e.previewPrompt)),1)])]),g("div",flr,[g("div",plr,[(k(!0),P(ze,null,lt(e.parsedPlaceholders,(r,i)=>(k(),P("div",{key:r.fullText,class:"flex flex-col"},[g("label",{for:"placeholder-"+i,class:"text-sm font-medium mb-1"},ue(r.label),9,hlr),r.type==="text"?te((k(),P("input",{key:0,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:r.label,onInput:n[52]||(n[52]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,Tlr)),[[Ne,e.placeholderValues[i]]]):ie("",!0),r.type==="int"?te((k(),P("input",{key:1,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:n[53]||(n[53]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,mlr)),[[Ne,e.placeholderValues[i],void 0,{number:!0}]]):ie("",!0),r.type==="float"?te((k(),P("input",{key:2,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:n[54]||(n[54]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,glr)),[[Ne,e.placeholderValues[i],void 0,{number:!0}]]):ie("",!0),r.type==="multiline"?te((k(),P("textarea",{key:3,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:n[55]||(n[55]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,_lr)),[[Ne,e.placeholderValues[i]]]):ie("",!0),r.type==="code"?(k(),P("div",Qlr,[g("div",vlr,ue(r.language||"Plain text"),1),te(g("textarea",{id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:n[56]||(n[56]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,ylr),[[Ne,e.placeholderValues[i]]])])):ie("",!0),r.type==="options"?te((k(),P("select",{key:5,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:n[57]||(n[57]=(...o)=>e.updatePreview&&e.updatePreview(...o))},[n[97]||(n[97]=g("option",{value:"",disabled:""},"Select an option",-1)),(k(!0),P(ze,null,lt(r.options,o=>(k(),P("option",{key:o,value:o},ue(o),9,Elr))),128))],40,blr)),[[hn,e.placeholderValues[i]]]):ie("",!0)]))),128))])])]),g("div",xlr,[g("button",{onClick:n[58]||(n[58]=(...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 "),g("button",{onClick:n[59]||(n[59]=(...r)=>e.applyPlaceholders&&e.applyPlaceholders(...r)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):ie("",!0)])):ie("",!0)]),_:1})):ie("",!0),e.currentDiscussion.id?ie("",!0):(k(),wt($U,{key:1})),n[100]||(n[100]=g("div",null,[g("br"),g("br"),g("br"),g("br"),g("br"),g("br"),g("br")],-1))]),n[101]||(n[101]=g("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?(k(),P("div",Slr,[ae(BU,{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"])])):ie("",!0)])):ie("",!0),ae(Ai,{name:"slide-left"},{default:Be(()=>[e.showRightPanel?(k(),P("div",Llr,[g("div",Clr,null,512)])):ie("",!0)]),_:1}),ae(nE,{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"]),te(g("div",Alr,[ae(Hb,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),g("p",wlr,ue(e.loading_infos)+" ...",1)],512),[[Ht,e.progress_visibility]]),ae(eG,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),g("div",Mlr,[ae(tG,{ref:"news"},null,512)]),ae(HU,{ref:"skills_lib"},null,512)],64))}}),Ilr=Et(Dlr,[["__scopeId","data-v-533fa73a"]]);/** +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(t){if(t.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[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)];const e=(await xe.get("/get_versionID")).data.versionId;et.onopen=()=>{this.currentDiscussion!=null&&(this.setPageTitle(this.currentDiscussion.title),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(this.currentDiscussion.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(()=>{Xe.replace()});try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(n){console.log("Error cought:",n)}try{for(this.$store.state.loading_infos="Loading Configuration";et.id===void 0;)await new Promise(n=>setTimeout(n,100));this.$store.state.client_id=et.id,await this.$store.dispatch("refreshConfig")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(n){console.log("Error cought:",n)}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(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchisRTOn")}catch(n){console.log("Error cought:",n)}this.$store.state.isConnected=!0,this.$store.state.client_id=et.id,this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,et.on("connected",this.socketIOConnected),et.on("disconnected",this.socketIODisconnected),et.on("show_progress",this.show_progress),et.on("hide_progress",this.hide_progress),et.on("update_progress",this.update_progress),et.on("notification",this.notify),et.on("new_message",this.new_message),et.on("update_message",this.update_message),et.on("close_message",this.finalMsgEvent),et.on("disucssion_renamed",n=>{const r=this.discussionsList.findIndex(o=>o.id==n.discussion_id),i=this.discussionsList[r];i.title=n.title}),et.onclose=n=>{this.socketIODisconnected()},et.on("connect_error",n=>{n.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",n),this.$store.state.isConnected=!1}),et.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),et.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),et.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ke(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:rE,Message:FU,ChatBox:BU,WelcomeComponent:$U,ChoiceDialog:nE,ProgressBar:Hb,InputBox:sor,SkillsLibraryViewer:HU,PersonalityEditor:eG,PopupViewer:tG,ActionButton:gV,SocialIcon:_V,MountedPersonalities:nG,ChatBarButton:D9},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},"$store.state.config.fun_mode":function(t,e){},"$store.state.isConnected":function(t,e){this.isConnected?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,this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Ke(()=>{Xe.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(t){console.log("progress_visibility changed to "+t)},filterTitle(t){t==""&&(this.filterInProgress=!0,this.discussionsList=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Ke(()=>{Xe.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Ke(()=>{Xe.replace()})}},computed:{parsedPlaceholders(){const t=new Map;return this.placeholders.forEach(e=>{const n=Alr(e);t.set(n.fullText,n)}),Array.from(t.values())},filteredBindings(){return this.installedBindings.filter(t=>t.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(t=>t.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(t=>t.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?vo:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:vo},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(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...WW({versionId:t=>t.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(t){this.$store.state.isModelOk=t}},isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},personality(){const t=this.$store.state.config.personalities[this.$store.state.config.active_personality_id].split(":")[0];return this.$store.state.personalities.find(n=>n.full_path===t)},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 et.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 Ke(()=>{Xe.replace()}),this.discussionsList.filter(t=>t.checkBoxValue==!0)}}},Olr=Object.assign(Mlr,{__name:"DiscussionsView",setup(t){return ls(()=>{JU()}),xe.defaults.baseURL="/",(e,n)=>(k(),P(ze,null,[ae(Ai,{name:"fade-and-fly"},{default:Be(()=>[e.isReady?ie("",!0):(k(),P("div",L1r,[e.$store.state.theme_vars.activate_dropping_animation?(k(),P("div",C1r,[(k(),P(ze,null,lt(50,r=>g("div",{key:r,class:"absolute animate-fall animate-giggle",style:gn({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},ue(e.$store.state.theme_vars.falling_object),5)),64))])):ie("",!0),g("div",A1r,[g("div",w1r,[g("div",M1r,ue(e.$store.state.theme_vars.lollms_title),1),n[61]||(n[61]=g("p",{class:"text-2xl italic"}," One tool to rule them all ",-1)),n[62]||(n[62]=g("p",{class:"text-xl mb-6"}," by ParisNeo ",-1)),g("p",O1r,ue(e.version_info),1),g("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:n[0]||(n[0]=(...r)=>e.updateRandomFact&&e.updateRandomFact(...r))},[g("p",R1r,[n[60]||(n[60]=g("span",{class:"font-semibold"},"🤔 Fun Fact: ",-1)),g("span",{innerHTML:e.randomFact},null,8,N1r)])]),g("div",D1r,[g("div",{class:"animated-progressbar-fg",style:gn({width:`${e.loading_progress}%`})},null,4),g("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:gn({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},null,4)])]),g("div",I1r,[g("div",k1r,[g("p",P1r,ue(e.loading_infos)+"... ",1),g("p",H1r,ue(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),ae(Ai,{name:"slide-right"},{default:Be(()=>[e.showLeftPanel?(k(),P("div",V1r,[ae(Ft(Du),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Be(()=>[g("div",F1r,[g("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Ft(vo):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Ft(vo),alt:"Logo",title:"LoLLMS WebUI"},null,8,B1r)]),n[63]||(n[63]=g("div",{class:"flex flex-col justify-center"},[g("div",{class:"text-center p-2"},[g("div",{class:"text-md relative inline-block"},[g("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),g("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"})])]),g("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),g("div",$1r,[g("div",U1r,[g("button",{class:"toolbar-button",title:"Create new discussion",onClick:n[1]||(n[1]=(...r)=>e.createNewDiscussion&&e.createNewDiscussion(...r))},n[64]||(n[64]=[g("i",{"data-feather":"plus"},null,-1)])),e.loading?ie("",!0):(k(),P("div",{key:0,class:"toolbar-button",onMouseleave:n[8]||(n[8]=(...r)=>e.hideSkillsLibraryMenu&&e.hideSkillsLibraryMenu(...r))},[te(g("div",{onMouseenter:n[6]||(n[6]=(...r)=>e.showSkillsLibraryMenu&&e.showSkillsLibraryMenu(...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"},[g("div",G1r,[e.loading?ie("",!0):(k(),P("button",{key:0,type:"button",onClick:n[2]||(n[2]=ge((...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"},n[65]||(n[65]=[g("i",{"data-feather":"plus"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(k(),P("button",{key:1,type:"button",onClick:n[3]||(n[3]=ge((...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"},n[66]||(n[66]=[g("i",{"data-feather":"check-circle"},null,-1)]))):ie("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(k(),P("button",{key:2,type:"button",onClick:n[4]||(n[4]=ge((...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"},n[67]||(n[67]=[g("i",{"data-feather":"x-octagon"},null,-1)]))):ie("",!0),e.loading?ie("",!0):(k(),P("button",{key:3,type:"button",onClick:n[5]||(n[5]=ge((...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"},n[68]||(n[68]=[g("i",{"data-feather":"book"},null,-1)])))])],544),[[Ht,e.isSkillsLibraryMenuVisible]]),g("div",{onMouseenter:n[7]||(n[7]=(...r)=>e.showSkillsLibraryMenu&&e.showSkillsLibraryMenu(...r)),class:"menu-hover-area"},n[69]||(n[69]=[g("button",{class:"w-8 h-8",title:"Toggle Skills library menu"},[g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("path",{d:"M4 4v16h16V4H4zm2 2h12v12H6V6zm2 2h2v8H8V8zm3 0h2v8h-2V8zm3 0h2v8h-2V8z",fill:"currentColor"})])],-1)]),32)],32)),e.loading?ie("",!0):(k(),P("div",{key:1,class:"toolbar-button",onMouseleave:n[22]||(n[22]=(...r)=>e.hideMenu&&e.hideMenu(...r))},[te(g("div",{onMouseenter:n[20]||(n[20]=(...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"},[g("div",q1r,[g("button",{class:We(["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:n[9]||(n[9]=r=>e.isCheckbox=!e.isCheckbox)},n[70]||(n[70]=[g("i",{"data-feather":"check-square"},null,-1)]),2),g("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:n[10]||(n[10]=ge(()=>{},["stop"]))},n[71]||(n[71]=[g("i",{"data-feather":"trash-2"},null,-1)])),g("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:n[11]||(n[11]=ge(r=>e.database_selectorDialogVisible=!0,["stop"]))},n[72]||(n[72]=[g("i",{"data-feather":"database"},null,-1)])),g("div",z1r,[g("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:n[12]||(n[12]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),g("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:n[13]||(n[13]=ge(r=>e.$refs.fileDialog.click(),["stop"]))},n[73]||(n[73]=[g("i",{"data-feather":"log-in"},null,-1)]))]),g("div",j1r,[g("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:n[14]||(n[14]=(...r)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...r))},null,544),e.showSaveConfirmation?ie("",!0):(k(),P("button",{key:0,title:"Import discussion bundle",onClick:n[15]||(n[15]=ge(r=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},n[74]||(n[74]=[g("i",{"data-feather":"folder"},null,-1)])))]),e.loading?(k(),P("div",W1r,n[75]||(n[75]=[g("div",{role:"status"},[g("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"},[g("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"}),g("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"})]),g("span",{class:"sr-only"},"Loading...")],-1)]))):ie("",!0),e.showSaveConfirmation?(k(),P("div",Y1r,[g("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:n[16]||(n[16]=ge(r=>e.showSaveConfirmation=!1,["stop"]))},n[76]||(n[76]=[g("i",{"data-feather":"x"},null,-1)])),g("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:n[17]||(n[17]=ge(r=>e.save_configuration(),["stop"]))},n[77]||(n[77]=[g("i",{"data-feather":"check"},null,-1)]))])):ie("",!0),e.isOpen?(k(),P("div",K1r,[g("button",{onClick:n[18]||(n[18]=(...r)=>e.importDiscussions&&e.importDiscussions(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),g("button",{onClick:n[19]||(n[19]=(...r)=>e.importChatGPT&&e.importChatGPT(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):ie("",!0)])],544),[[Ht,e.isMenuVisible]]),g("div",{onMouseenter:n[21]||(n[21]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"menu-hover-area"},n[78]||(n[78]=[g("button",{class:"w-8 h-8",title:"Toggle menu"},[g("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?ie("",!0):(k(),P("div",{key:2,class:"toolbar-button",onMouseleave:n[28]||(n[28]=(...r)=>e.hideBindingsMenu&&e.hideBindingsMenu(...r))},[g("div",Z1r,[te(g("div",{onMouseenter:n[25]||(n[25]=(...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"},[g("div",X1r,[te(g("input",{type:"text","onUpdate:modelValue":n[23]||(n[23]=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),[[Ne,e.bindingSearchQuery]])]),g("div",J1r,[(k(!0),P(ze,null,lt(e.filteredBindings,(r,i)=>(k(),P("div",{key:i,class:"relative group/item flex flex-col items-center"},[g("div",e2r,[g("button",{onClick:ge(o=>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"},[g("img",{src:r.icon?r.icon:Ft(ui),onError:n[24]||(n[24]=(...o)=>Ft(ui)&&Ft(ui)(...o)),alt:r.name,class:We(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.binding_name}])},null,42,n2r)],8,t2r),g("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},ue(r.name),9,r2r)]),g("div",i2r,[g("span",{class:"text-xs font-medium mb-2 text-center",onClick:ge(o=>e.setBinding(r),["prevent"])},ue(r.name),9,o2r),g("div",s2r,[g("button",{onClick:ge(o=>e.showModelConfig(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},n[79]||(n[79]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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"}),g("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,a2r)])])]))),128))])],544),[[Ht,e.isBindingsMenuVisible]]),g("div",{onMouseenter:n[27]||(n[27]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"bindings-hover-area"},[g("button",{onClick:n[26]||(n[26]=ge(r=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[g("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,l2r)])],32)])],32)),e.loading?ie("",!0):(k(),P("div",{key:3,class:"toolbar-button",onMouseleave:n[34]||(n[34]=(...r)=>e.hideModelsMenu&&e.hideModelsMenu(...r))},[g("div",c2r,[te(g("div",{onMouseenter:n[31]||(n[31]=(...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"},[g("div",u2r,[te(g("input",{type:"text","onUpdate:modelValue":n[29]||(n[29]=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),[[Ne,e.modelSearchQuery]])]),g("div",d2r,[(k(!0),P(ze,null,lt(e.filteredModels,(r,i)=>(k(),P("div",{key:i,class:"relative group/item flex flex-col items-center"},[g("div",f2r,[g("button",{onClick:ge(o=>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"},[g("img",{src:r.icon?r.icon:Ft(ui),onError:n[30]||(n[30]=(...o)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...o)),alt:r.name,class:We(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.model_name}])},null,42,h2r)],8,p2r),g("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},ue(r.name),9,T2r)]),g("div",m2r,[g("span",{class:"text-xs font-medium mb-2 text-center",onClick:ge(o=>e.setModel(r),["prevent"])},ue(r.name),9,g2r),g("div",_2r,[g("button",{onClick:ge(o=>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"},n[80]||(n[80]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,Q2r)])])]))),128))])],544),[[Ht,e.isModelsMenuVisible]]),g("div",{onMouseenter:n[33]||(n[33]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"models-hover-area"},[g("button",{onClick:n[32]||(n[32]=ge(r=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[g("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,v2r)])],32)])],32)),e.loading?ie("",!0):(k(),P("div",{key:4,class:"toolbar-button",onMouseleave:n[39]||(n[39]=(...r)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...r))},[g("div",y2r,[te(g("div",{onMouseenter:n[37]||(n[37]=(...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"},[g("div",b2r,[te(g("input",{type:"text","onUpdate:modelValue":n[35]||(n[35]=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),[[Ne,e.personalitySearchQuery]])]),g("div",E2r,[(k(!0),P(ze,null,lt(e.filteredPersonalities,(r,i)=>(k(),P("div",{key:i,class:"relative group/item flex flex-col items-center"},[g("div",x2r,[g("button",{onClick:ge(o=>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"},[g("img",{src:Ft(wlr)+r.avatar,onError:n[36]||(n[36]=(...o)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...o)),alt:r.name,class:We(["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,L2r)],8,S2r),g("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},ue(r.name),9,C2r)]),g("div",A2r,[g("span",{class:"text-xs font-medium mb-2 text-center",onClick:ge(o=>e.onPersonalitySelected(r),["prevent"])},ue(r.name),9,w2r),g("div",M2r,[g("button",{onClick:ge(o=>e.unmountPersonality(r),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},n[81]||(n[81]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,O2r),g("button",{onClick:ge(o=>e.remount_personality(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},n[82]||(n[82]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,R2r),g("button",{onClick:ge(o=>e.handleOnTalk(r),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},n[83]||(n[83]=[g("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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,N2r)])])]))),128))])],544),[[Ht,e.isPersonalitiesMenuVisible]]),g("div",D2r,[g("div",{onMouseenter:n[38]||(n[38]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"personalities-hover-area"},[ae(nG,{ref:"mountedPers",onShowPersList:e.onShowPersList,onReady:e.onPersonalitiesReady},null,8,["onShowPersList","onReady"])],32)])])],32))])]),g("div",I2r,[g("form",{onSubmit:n[42]||(n[42]=ge((...r)=>e.handleSearch&&e.handleSearch(...r),["prevent"])),class:"relative"},[g("div",k2r,[g("div",P2r,[te(g("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":n[40]||(n[40]=r=>e.filterTitle=r),onKeyup:n[41]||(n[41]=ri((...r)=>e.handleSearch&&e.handleSearch(...r),["enter"]))},null,544),[[Ne,e.filterTitle]]),n[84]||(n[84]=g("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[g("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),n[85]||(n[85]=g("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"},[g("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(k(),P("div",H2r,[g("div",V2r,[e.selectedDiscussions.length>0?(k(),P("p",F2r,"Selected: "+ue(e.selectedDiscussions.length),1)):ie("",!0),e.selectedDiscussions.length>0?(k(),P("div",B2r,[e.showConfirmation?ie("",!0):(k(),P("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[43]||(n[43]=ge(r=>e.showConfirmation=!0,["stop"]))},n[86]||(n[86]=[g("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(k(),P("div",$2r,[g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[44]||(n[44]=ge((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},n[87]||(n[87]=[g("i",{"data-feather":"check"},null,-1)])),g("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[45]||(n[45]=ge(r=>e.showConfirmation=!1,["stop"]))},n[88]||(n[88]=[g("i",{"data-feather":"x"},null,-1)]))])):ie("",!0)])):ie("",!0),g("div",U2r,[g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:n[46]||(n[46]=ge((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},n[89]||(n[89]=[g("i",{"data-feather":"codepen"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:n[47]||(n[47]=ge((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},n[90]||(n[90]=[g("i",{"data-feather":"folder"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:n[48]||(n[48]=ge((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},n[91]||(n[91]=[g("i",{"data-feather":"bookmark"},null,-1)])),g("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[49]||(n[49]=ge((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},n[92]||(n[92]=[g("i",{"data-feather":"list"},null,-1)]))])])])):ie("",!0),g("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:n[50]||(n[50]=ge(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[g("div",G2r,[g("div",{class:We(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[g("div",{id:"dis-list",class:We([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.discussionsList.length>0?(k(),wt(Gs,{key:0,name:"discussionsList"},{default:Be(()=>[(k(!0),P(ze,null,lt(e.discussionsList,(r,i)=>(k(),wt(rE,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,openfolder_enabled:!0,onSelect:o=>e.selectDiscussion(r),onDelete:o=>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})):ie("",!0),e.discussionsList.length<1?(k(),P("div",q2r,n[93]||(n[93]=[g("p",{class:"px-3"},"No discussions are found",-1)]))):ie("",!0)],2)],2)])],32),g("div",z2r,[g("div",{class:"chat-bar text-center flex items-center",onClick:n[51]||(n[51]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[ae(D9,null,{default:Be(()=>n[94]||(n[94]=[g("svg",{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",class:"mr-2"},[g("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),g("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),g("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})],-1)])),_:1}),g("p",j2r,ue(e.formatted_database_name.replace("_"," ")),1)])])])):ie("",!0)]),_:1}),e.isReady?(k(),P("div",W2r,[g("div",{id:"messages-list",class:We(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[g("div",Y2r,[e.discussionArr.length>0?(k(),wt(Gs,{key:0,name:"list"},{default:Be(()=>[(k(!0),P(ze,null,lt(e.discussionArr,(r,i)=>(k(),wt(FU,{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?(k(),P("div",K2r,[n[99]||(n[99]=g("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),g("div",Z2r,[g("div",X2r,[(k(!0),P(ze,null,lt(e.personality.prompts_list,(r,i)=>(k(),P("div",{title:e.extractTitle(r),key:i,onClick:o=>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"},[g("div",elr,[g("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(r)},ue(e.extractTitle(r)),9,tlr),g("div",{title:r,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},ue(e.getPromptContent(r)),9,nlr)]),n[95]||(n[95]=g("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,J2r))),128))])]),e.showPlaceholderModal?(k(),P("div",rlr,[g("div",ilr,[n[98]||(n[98]=g("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),g("div",olr,[g("div",slr,[n[96]||(n[96]=g("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),g("div",alr,[g("span",llr,ue(e.getPromptContent(e.previewPrompt)),1)])]),g("div",clr,[g("div",ulr,[(k(!0),P(ze,null,lt(e.parsedPlaceholders,(r,i)=>(k(),P("div",{key:r.fullText,class:"flex flex-col"},[g("label",{for:"placeholder-"+i,class:"text-sm font-medium mb-1"},ue(r.label),9,dlr),r.type==="text"?te((k(),P("input",{key:0,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:r.label,onInput:n[52]||(n[52]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,flr)),[[Ne,e.placeholderValues[i]]]):ie("",!0),r.type==="int"?te((k(),P("input",{key:1,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:n[53]||(n[53]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,plr)),[[Ne,e.placeholderValues[i],void 0,{number:!0}]]):ie("",!0),r.type==="float"?te((k(),P("input",{key:2,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:n[54]||(n[54]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,hlr)),[[Ne,e.placeholderValues[i],void 0,{number:!0}]]):ie("",!0),r.type==="multiline"?te((k(),P("textarea",{key:3,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:n[55]||(n[55]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,Tlr)),[[Ne,e.placeholderValues[i]]]):ie("",!0),r.type==="code"?(k(),P("div",mlr,[g("div",glr,ue(r.language||"Plain text"),1),te(g("textarea",{id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:n[56]||(n[56]=(...o)=>e.updatePreview&&e.updatePreview(...o))},null,40,_lr),[[Ne,e.placeholderValues[i]]])])):ie("",!0),r.type==="options"?te((k(),P("select",{key:5,id:"placeholder-"+i,"onUpdate:modelValue":o=>e.placeholderValues[i]=o,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:n[57]||(n[57]=(...o)=>e.updatePreview&&e.updatePreview(...o))},[n[97]||(n[97]=g("option",{value:"",disabled:""},"Select an option",-1)),(k(!0),P(ze,null,lt(r.options,o=>(k(),P("option",{key:o,value:o},ue(o),9,vlr))),128))],40,Qlr)),[[hn,e.placeholderValues[i]]]):ie("",!0)]))),128))])])]),g("div",ylr,[g("button",{onClick:n[58]||(n[58]=(...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 "),g("button",{onClick:n[59]||(n[59]=(...r)=>e.applyPlaceholders&&e.applyPlaceholders(...r)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):ie("",!0)])):ie("",!0)]),_:1})):ie("",!0),e.currentDiscussion.id?ie("",!0):(k(),wt($U,{key:1})),n[100]||(n[100]=g("div",null,[g("br"),g("br"),g("br"),g("br"),g("br"),g("br"),g("br")],-1))]),n[101]||(n[101]=g("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?(k(),P("div",blr,[ae(BU,{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"])])):ie("",!0)])):ie("",!0),ae(Ai,{name:"slide-left"},{default:Be(()=>[e.showRightPanel?(k(),P("div",Elr,[g("div",xlr,null,512)])):ie("",!0)]),_:1}),ae(nE,{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"]),te(g("div",Slr,[ae(Hb,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),g("p",Llr,ue(e.loading_infos)+" ...",1)],512),[[Ht,e.progress_visibility]]),ae(eG,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),g("div",Clr,[ae(tG,{ref:"news"},null,512)]),ae(HU,{ref:"skills_lib"},null,512)],64))}}),Rlr=Et(Olr,[["__scopeId","data-v-aeb57e08"]]);/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT - */const TE="159",klr=0,qD=1,Plr=2,rG=1,Hlr=2,Ds=3,ea=0,gi=1,zo=2,Ua=0,Ul=1,zD=2,jD=3,WD=4,Vlr=5,j1=100,Flr=101,Blr=102,YD=103,KD=104,$lr=200,Ulr=201,Glr=202,qlr=203,sv=204,av=205,zlr=206,jlr=207,Wlr=208,Ylr=209,Klr=210,Zlr=211,Xlr=212,Jlr=213,ecr=214,tcr=0,ncr=1,rcr=2,Ld=3,icr=4,ocr=5,scr=6,acr=7,mE=0,lcr=1,ccr=2,Ga=0,ucr=1,dcr=2,fcr=3,pcr=4,hcr=5,ZD="attached",Tcr="detached",iG=300,Tc=301,mc=302,lv=303,cv=304,H9=306,gc=1e3,qi=1001,Cd=1002,gr=1003,uv=1004,mu=1005,di=1006,oG=1007,b2=1008,qa=1009,mcr=1010,gcr=1011,gE=1012,sG=1013,Ha=1014,Bs=1015,g0=1016,aG=1017,lG=1018,i2=1020,_cr=1021,zi=1023,Qcr=1024,vcr=1025,o2=1026,_c=1027,ycr=1028,cG=1029,bcr=1030,uG=1031,dG=1033,t_=33776,n_=33777,r_=33778,i_=33779,XD=35840,JD=35841,eI=35842,tI=35843,fG=36196,nI=37492,rI=37496,iI=37808,oI=37809,sI=37810,aI=37811,lI=37812,cI=37813,uI=37814,dI=37815,fI=37816,pI=37817,hI=37818,TI=37819,mI=37820,gI=37821,o_=36492,_I=36494,QI=36495,Ecr=36283,vI=36284,yI=36285,bI=36286,_0=2300,Qc=2301,s_=2302,EI=2400,xI=2401,SI=2402,xcr=2500,Scr=0,pG=1,dv=2,hG=3e3,s2=3001,Lcr=3200,Ccr=3201,_E=0,Acr=1,ji="",Zn="srgb",Ar="srgb-linear",QE="display-p3",V9="display-p3-linear",Ad="linear",Vn="srgb",wd="rec709",Md="p3",al=7680,LI=519,wcr=512,Mcr=513,Ocr=514,TG=515,Rcr=516,Ncr=517,Dcr=518,Icr=519,fv=35044,CI="300 es",pv=1035,$s=2e3,Od=2001;class Jc{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(n)===-1&&r[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const o=i.indexOf(n);o!==-1&&i.splice(o,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 o=0,s=i.length;o>8&255]+Nr[t>>16&255]+Nr[t>>24&255]+"-"+Nr[e&255]+Nr[e>>8&255]+"-"+Nr[e>>16&15|64]+Nr[e>>24&255]+"-"+Nr[n&63|128]+Nr[n>>8&255]+"-"+Nr[n>>16&255]+Nr[n>>24&255]+Nr[r&255]+Nr[r>>8&255]+Nr[r>>16&255]+Nr[r>>24&255]).toLowerCase()}function Pr(t,e,n){return Math.max(e,Math.min(n,t))}function vE(t,e){return(t%e+e)%e}function kcr(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)}function Pcr(t,e,n){return t!==e?(n-t)/(e-t):0}function G4(t,e,n){return(1-n)*t+n*e}function Hcr(t,e,n,r){return G4(t,e,1-Math.exp(-n*r))}function Vcr(t,e=1){return e-Math.abs(vE(t,e*2)-e)}function Fcr(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function Bcr(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function $cr(t,e){return t+Math.floor(Math.random()*(e-t+1))}function Ucr(t,e){return t+Math.random()*(e-t)}function Gcr(t){return t*(.5-Math.random())}function qcr(t){t!==void 0&&(AI=t);let e=AI+=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 zcr(t){return t*U4}function jcr(t){return t*vc}function hv(t){return(t&t-1)===0&&t!==0}function Wcr(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Rd(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function Ycr(t,e,n,r,i){const o=Math.cos,s=Math.sin,a=o(n/2),l=s(n/2),c=o((e+r)/2),u=s((e+r)/2),d=o((e-r)/2),h=s((e-r)/2),f=o((r-e)/2),m=s((r-e)/2);switch(i){case"XYX":t.set(a*u,l*d,l*h,a*c);break;case"YZY":t.set(l*h,a*u,l*d,a*c);break;case"ZXZ":t.set(l*d,l*h,a*u,a*c);break;case"XZX":t.set(a*u,l*m,l*f,a*c);break;case"YXY":t.set(l*f,a*u,l*m,a*c);break;case"ZYZ":t.set(l*m,l*f,a*u,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function jo(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Sn(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const Kcr={DEG2RAD:U4,RAD2DEG:vc,generateUUID:yo,clamp:Pr,euclideanModulo:vE,mapLinear:kcr,inverseLerp:Pcr,lerp:G4,damp:Hcr,pingpong:Vcr,smoothstep:Fcr,smootherstep:Bcr,randInt:$cr,randFloat:Ucr,randFloatSpread:Gcr,seededRandom:qcr,degToRad:zcr,radToDeg:jcr,isPowerOfTwo:hv,ceilPowerOfTwo:Wcr,floorPowerOfTwo:Rd,setQuaternionFromProperEuler:Ycr,normalize:Sn,denormalize:jo};class Zt{constructor(e=0,n=0){Zt.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.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 n=this.x,r=this.y,i=e.elements;return this.x=i[0]*n+i[3]*r+i[6],this.y=i[1]*n+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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,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 n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Pr(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y;return n*n+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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const r=Math.cos(n),i=Math.sin(n),o=this.x-e.x,s=this.y-e.y;return this.x=o*r-s*i+e.x,this.y=o*i+s*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class zt{constructor(e,n,r,i,o,s,a,l,c){zt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,r,i,o,s,a,l,c)}set(e,n,r,i,o,s,a,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=n,u[4]=o,u[5]=l,u[6]=r,u[7]=s,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],this}extractBasis(e,n,r){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,o=this.elements,s=r[0],a=r[3],l=r[6],c=r[1],u=r[4],d=r[7],h=r[2],f=r[5],m=r[8],T=i[0],Q=i[3],_=i[6],v=i[1],y=i[4],b=i[7],E=i[2],x=i[5],L=i[8];return o[0]=s*T+a*v+l*E,o[3]=s*Q+a*y+l*x,o[6]=s*_+a*b+l*L,o[1]=c*T+u*v+d*E,o[4]=c*Q+u*y+d*x,o[7]=c*_+u*b+d*L,o[2]=h*T+f*v+m*E,o[5]=h*Q+f*y+m*x,o[8]=h*_+f*b+m*L,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return n*s*u-n*a*c-r*o*u+r*a*l+i*o*c-i*s*l}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=u*s-a*c,h=a*l-u*o,f=c*o-s*l,m=n*d+r*h+i*f;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const T=1/m;return e[0]=d*T,e[1]=(i*c-u*r)*T,e[2]=(a*r-i*s)*T,e[3]=h*T,e[4]=(u*n-i*l)*T,e[5]=(i*o-a*n)*T,e[6]=f*T,e[7]=(r*l-c*n)*T,e[8]=(s*n-r*o)*T,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,r,i,o,s,a){const l=Math.cos(o),c=Math.sin(o);return this.set(r*l,r*c,-r*(l*s+c*a)+s+e,-i*c,i*l,-i*(-c*s+l*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(a_.makeScale(e,n)),this}rotate(e){return this.premultiply(a_.makeRotation(-e)),this}translate(e,n){return this.premultiply(a_.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,r,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<9;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<9;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const a_=new zt;function mG(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function Q0(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function Zcr(){const t=Q0("canvas");return t.style.display="block",t}const wI={};function q4(t){t in wI||(wI[t]=!0,console.warn(t))}const MI=new zt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),OI=new zt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),S5={[Ar]:{transfer:Ad,primaries:wd,toReference:t=>t,fromReference:t=>t},[Zn]:{transfer:Vn,primaries:wd,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[V9]:{transfer:Ad,primaries:Md,toReference:t=>t.applyMatrix3(OI),fromReference:t=>t.applyMatrix3(MI)},[QE]:{transfer:Vn,primaries:Md,toReference:t=>t.convertSRGBToLinear().applyMatrix3(OI),fromReference:t=>t.applyMatrix3(MI).convertLinearToSRGB()}},Xcr=new Set([Ar,V9]),mn={enabled:!0,_workingColorSpace:Ar,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Xcr.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const r=S5[e].toReference,i=S5[n].fromReference;return i(r(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return S5[t].primaries},getTransfer:function(t){return t===ji?Ad:S5[t].transfer}};function Gl(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function l_(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let ll;class gG{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{ll===void 0&&(ll=Q0("canvas")),ll.width=e.width,ll.height=e.height;const r=ll.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),n=ll}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.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 n=Q0("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),o=i.data;for(let s=0;s0&&(r.userData=this.userData),n||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==iG)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case gc:e.x=e.x-Math.floor(e.x);break;case qi:e.x=e.x<0?0:1;break;case Cd: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 gc:e.y=e.y-Math.floor(e.y);break;case qi:e.y=e.y<0?0:1;break;case Cd: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 q4("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Zn?s2:hG}set encoding(e){q4("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===s2?Zn:ji}}Cr.DEFAULT_IMAGE=null;Cr.DEFAULT_MAPPING=iG;Cr.DEFAULT_ANISOTROPY=1;class Nn{constructor(e=0,n=0,r=0,i=1){Nn.prototype.isVector4=!0,this.x=e,this.y=n,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,n,r,i){return this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.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 n=this.x,r=this.y,i=this.z,o=this.w,s=e.elements;return this.x=s[0]*n+s[4]*r+s[8]*i+s[12]*o,this.y=s[1]*n+s[5]*r+s[9]*i+s[13]*o,this.z=s[2]*n+s[6]*r+s[10]*i+s[14]*o,this.w=s[3]*n+s[7]*r+s[11]*i+s[15]*o,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,r,i,o;const l=e.elements,c=l[0],u=l[4],d=l[8],h=l[1],f=l[5],m=l[9],T=l[2],Q=l[6],_=l[10];if(Math.abs(u-h)<.01&&Math.abs(d-T)<.01&&Math.abs(m-Q)<.01){if(Math.abs(u+h)<.1&&Math.abs(d+T)<.1&&Math.abs(m+Q)<.1&&Math.abs(c+f+_-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const y=(c+1)/2,b=(f+1)/2,E=(_+1)/2,x=(u+h)/4,L=(d+T)/4,M=(m+Q)/4;return y>b&&y>E?y<.01?(r=0,i=.707106781,o=.707106781):(r=Math.sqrt(y),i=x/r,o=L/r):b>E?b<.01?(r=.707106781,i=0,o=.707106781):(i=Math.sqrt(b),r=x/i,o=M/i):E<.01?(r=.707106781,i=.707106781,o=0):(o=Math.sqrt(E),r=L/o,i=M/o),this.set(r,i,o,n),this}let v=Math.sqrt((Q-m)*(Q-m)+(d-T)*(d-T)+(h-u)*(h-u));return Math.abs(v)<.001&&(v=1),this.x=(Q-m)/v,this.y=(d-T)/v,this.z=(h-u)/v,this.w=Math.acos((c+f+_-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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this.w=e.w+(n.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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),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 t3r extends Jc{constructor(e=1,n=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new Nn(0,0,e,n),this.scissorTest=!1,this.viewport=new Nn(0,0,e,n);const i={width:e,height:n,depth:1};r.encoding!==void 0&&(q4("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===s2?Zn:ji),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:di,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Cr(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,n,r=1){(this.width!==e||this.height!==n||this.depth!==r)&&(this.width=e,this.height=n,this.depth=r,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}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 n=Object.assign({},e.texture.image);return this.texture.source=new _G(n),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 E2 extends t3r{constructor(e=1,n=1,r={}){super(e,n,r),this.isWebGLRenderTarget=!0}}class QG extends Cr{constructor(e=null,n=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=gr,this.minFilter=gr,this.wrapR=qi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class n3r extends Cr{constructor(e=null,n=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=gr,this.minFilter=gr,this.wrapR=qi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class c1{constructor(e=0,n=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=r,this._w=i}static slerpFlat(e,n,r,i,o,s,a){let l=r[i+0],c=r[i+1],u=r[i+2],d=r[i+3];const h=o[s+0],f=o[s+1],m=o[s+2],T=o[s+3];if(a===0){e[n+0]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d;return}if(a===1){e[n+0]=h,e[n+1]=f,e[n+2]=m,e[n+3]=T;return}if(d!==T||l!==h||c!==f||u!==m){let Q=1-a;const _=l*h+c*f+u*m+d*T,v=_>=0?1:-1,y=1-_*_;if(y>Number.EPSILON){const E=Math.sqrt(y),x=Math.atan2(E,_*v);Q=Math.sin(Q*x)/E,a=Math.sin(a*x)/E}const b=a*v;if(l=l*Q+h*b,c=c*Q+f*b,u=u*Q+m*b,d=d*Q+T*b,Q===1-a){const E=1/Math.sqrt(l*l+c*c+u*u+d*d);l*=E,c*=E,u*=E,d*=E}}e[n]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d}static multiplyQuaternionsFlat(e,n,r,i,o,s){const a=r[i],l=r[i+1],c=r[i+2],u=r[i+3],d=o[s],h=o[s+1],f=o[s+2],m=o[s+3];return e[n]=a*m+u*d+l*f-c*h,e[n+1]=l*m+u*h+c*d-a*f,e[n+2]=c*m+u*f+a*h-l*d,e[n+3]=u*m-a*d-l*h-c*f,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,n,r,i){return this._x=e,this._y=n,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,n){const r=e._x,i=e._y,o=e._z,s=e._order,a=Math.cos,l=Math.sin,c=a(r/2),u=a(i/2),d=a(o/2),h=l(r/2),f=l(i/2),m=l(o/2);switch(s){case"XYZ":this._x=h*u*d+c*f*m,this._y=c*f*d-h*u*m,this._z=c*u*m+h*f*d,this._w=c*u*d-h*f*m;break;case"YXZ":this._x=h*u*d+c*f*m,this._y=c*f*d-h*u*m,this._z=c*u*m-h*f*d,this._w=c*u*d+h*f*m;break;case"ZXY":this._x=h*u*d-c*f*m,this._y=c*f*d+h*u*m,this._z=c*u*m+h*f*d,this._w=c*u*d-h*f*m;break;case"ZYX":this._x=h*u*d-c*f*m,this._y=c*f*d+h*u*m,this._z=c*u*m-h*f*d,this._w=c*u*d+h*f*m;break;case"YZX":this._x=h*u*d+c*f*m,this._y=c*f*d+h*u*m,this._z=c*u*m-h*f*d,this._w=c*u*d-h*f*m;break;case"XZY":this._x=h*u*d-c*f*m,this._y=c*f*d-h*u*m,this._z=c*u*m+h*f*d,this._w=c*u*d+h*f*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const r=n/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 n=e.elements,r=n[0],i=n[4],o=n[8],s=n[1],a=n[5],l=n[9],c=n[2],u=n[6],d=n[10],h=r+a+d;if(h>0){const f=.5/Math.sqrt(h+1);this._w=.25/f,this._x=(u-l)*f,this._y=(o-c)*f,this._z=(s-i)*f}else if(r>a&&r>d){const f=2*Math.sqrt(1+r-a-d);this._w=(u-l)/f,this._x=.25*f,this._y=(i+s)/f,this._z=(o+c)/f}else if(a>d){const f=2*Math.sqrt(1+a-r-d);this._w=(o-c)/f,this._x=(i+s)/f,this._y=.25*f,this._z=(l+u)/f}else{const f=2*Math.sqrt(1+d-r-a);this._w=(s-i)/f,this._x=(o+c)/f,this._y=(l+u)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+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*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Pr(this.dot(e),-1,1)))}rotateTowards(e,n){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,n/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,n){const r=e._x,i=e._y,o=e._z,s=e._w,a=n._x,l=n._y,c=n._z,u=n._w;return this._x=r*u+s*a+i*c-o*l,this._y=i*u+s*l+o*a-r*c,this._z=o*u+s*c+r*l-i*a,this._w=s*u-r*a-i*l-o*c,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const r=this._x,i=this._y,o=this._z,s=this._w;let a=s*e._w+r*e._x+i*e._y+o*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=s,this._x=r,this._y=i,this._z=o,this;const l=1-a*a;if(l<=Number.EPSILON){const f=1-n;return this._w=f*s+n*this._w,this._x=f*r+n*this._x,this._y=f*i+n*this._y,this._z=f*o+n*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(l),u=Math.atan2(c,a),d=Math.sin((1-n)*u)/c,h=Math.sin(n*u)/c;return this._w=s*d+this._w*h,this._x=r*d+this._x*h,this._y=i*d+this._y*h,this._z=o*d+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,n,r){return this.copy(e).slerp(n,r)}random(){const e=Math.random(),n=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),o=2*Math.PI*Math.random();return this.set(n*Math.cos(i),r*Math.sin(o),r*Math.cos(o),n*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),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 Le{constructor(e=0,n=0,r=0){Le.prototype.isVector3=!0,this.x=e,this.y=n,this.z=r}set(e,n,r){return r===void 0&&(r=this.z),this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.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,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(RI.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(RI.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,i=this.z,o=e.elements;return this.x=o[0]*n+o[3]*r+o[6]*i,this.y=o[1]*n+o[4]*r+o[7]*i,this.z=o[2]*n+o[5]*r+o[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,o=e.elements,s=1/(o[3]*n+o[7]*r+o[11]*i+o[15]);return this.x=(o[0]*n+o[4]*r+o[8]*i+o[12])*s,this.y=(o[1]*n+o[5]*r+o[9]*i+o[13])*s,this.z=(o[2]*n+o[6]*r+o[10]*i+o[14])*s,this}applyQuaternion(e){const n=this.x,r=this.y,i=this.z,o=e.x,s=e.y,a=e.z,l=e.w,c=2*(s*i-a*r),u=2*(a*n-o*i),d=2*(o*r-s*n);return this.x=n+l*c+s*d-a*u,this.y=r+l*u+a*c-o*d,this.z=i+l*d+o*u-s*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,r=this.y,i=this.z,o=e.elements;return this.x=o[0]*n+o[4]*r+o[8]*i,this.y=o[1]*n+o[5]*r+o[9]*i,this.z=o[2]*n+o[6]*r+o[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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const r=e.x,i=e.y,o=e.z,s=n.x,a=n.y,l=n.z;return this.x=i*l-o*a,this.y=o*s-r*l,this.z=r*a-i*s,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const r=e.dot(this)/n;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return u_.copy(this).projectOnVector(e),this.sub(u_)}reflect(e){return this.sub(u_.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Pr(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return n*n+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,n,r){const i=Math.sin(n)*e;return this.x=i*Math.sin(r),this.y=Math.cos(n)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,r){return this.x=e*Math.sin(n),this.y=r,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=r,this.z=i,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(n),this.y=r*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const u_=new Le,RI=new c1;class sa{constructor(e=new Le(1/0,1/0,1/0),n=new Le(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,r=e.length;nthis.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,n){return n.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,fo),fo.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,r;return e.normal.x>0?(n=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),n<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(m4),C5.subVectors(this.max,m4),cl.subVectors(e.a,m4),ul.subVectors(e.b,m4),dl.subVectors(e.c,m4),_a.subVectors(ul,cl),Qa.subVectors(dl,ul),D1.subVectors(cl,dl);let n=[0,-_a.z,_a.y,0,-Qa.z,Qa.y,0,-D1.z,D1.y,_a.z,0,-_a.x,Qa.z,0,-Qa.x,D1.z,0,-D1.x,-_a.y,_a.x,0,-Qa.y,Qa.x,0,-D1.y,D1.x,0];return!d_(n,cl,ul,dl,C5)||(n=[1,0,0,0,1,0,0,0,1],!d_(n,cl,ul,dl,C5))?!1:(A5.crossVectors(_a,Qa),n=[A5.x,A5.y,A5.z],d_(n,cl,ul,dl,C5))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,fo).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(fo).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:(Cs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Cs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Cs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Cs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Cs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Cs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Cs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Cs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Cs),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 Cs=[new Le,new Le,new Le,new Le,new Le,new Le,new Le,new Le],fo=new Le,L5=new sa,cl=new Le,ul=new Le,dl=new Le,_a=new Le,Qa=new Le,D1=new Le,m4=new Le,C5=new Le,A5=new Le,I1=new Le;function d_(t,e,n,r,i){for(let o=0,s=t.length-3;o<=s;o+=3){I1.fromArray(t,o);const a=i.x*Math.abs(I1.x)+i.y*Math.abs(I1.y)+i.z*Math.abs(I1.z),l=e.dot(I1),c=n.dot(I1),u=r.dot(I1);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>a)return!1}return!0}const r3r=new sa,g4=new Le,f_=new Le;class ps{constructor(e=new Le,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):r3r.setFromPoints(e).getCenter(r);let i=0;for(let o=0,s=e.length;othis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}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;g4.subVectors(e,this.center);const n=g4.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),i=(r-this.radius)*.5;this.center.addScaledVector(g4,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):(f_.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(g4.copy(e.center).add(f_)),this.expandByPoint(g4.copy(e.center).sub(f_))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const As=new Le,p_=new Le,w5=new Le,va=new Le,h_=new Le,M5=new Le,T_=new Le;class F9{constructor(e=new Le,n=new Le(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.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,As)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const r=n.dot(this.direction);return r<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=As.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(As.copy(this.origin).addScaledVector(this.direction,n),As.distanceToSquared(e))}distanceSqToSegment(e,n,r,i){p_.copy(e).add(n).multiplyScalar(.5),w5.copy(n).sub(e).normalize(),va.copy(this.origin).sub(p_);const o=e.distanceTo(n)*.5,s=-this.direction.dot(w5),a=va.dot(this.direction),l=-va.dot(w5),c=va.lengthSq(),u=Math.abs(1-s*s);let d,h,f,m;if(u>0)if(d=s*l-a,h=s*a-l,m=o*u,d>=0)if(h>=-m)if(h<=m){const T=1/u;d*=T,h*=T,f=d*(d+s*h+2*a)+h*(s*d+h+2*l)+c}else h=o,d=Math.max(0,-(s*h+a)),f=-d*d+h*(h+2*l)+c;else h=-o,d=Math.max(0,-(s*h+a)),f=-d*d+h*(h+2*l)+c;else h<=-m?(d=Math.max(0,-(-s*o+a)),h=d>0?-o:Math.min(Math.max(-o,-l),o),f=-d*d+h*(h+2*l)+c):h<=m?(d=0,h=Math.min(Math.max(-o,-l),o),f=h*(h+2*l)+c):(d=Math.max(0,-(s*o+a)),h=d>0?o:Math.min(Math.max(-o,-l),o),f=-d*d+h*(h+2*l)+c);else h=s>0?-o:o,d=Math.max(0,-(s*h+a)),f=-d*d+h*(h+2*l)+c;return r&&r.copy(this.origin).addScaledVector(this.direction,d),i&&i.copy(p_).addScaledVector(w5,h),f}intersectSphere(e,n){As.subVectors(e.center,this.origin);const r=As.dot(this.direction),i=As.dot(As)-r*r,o=e.radius*e.radius;if(i>o)return null;const s=Math.sqrt(o-i),a=r-s,l=r+s;return l<0?null:a<0?this.at(l,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/n;return r>=0?r:null}intersectPlane(e,n){const r=this.distanceToPlane(e);return r===null?null:this.at(r,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let r,i,o,s,a,l;const c=1/this.direction.x,u=1/this.direction.y,d=1/this.direction.z,h=this.origin;return c>=0?(r=(e.min.x-h.x)*c,i=(e.max.x-h.x)*c):(r=(e.max.x-h.x)*c,i=(e.min.x-h.x)*c),u>=0?(o=(e.min.y-h.y)*u,s=(e.max.y-h.y)*u):(o=(e.max.y-h.y)*u,s=(e.min.y-h.y)*u),r>s||o>i||((o>r||isNaN(r))&&(r=o),(s=0?(a=(e.min.z-h.z)*d,l=(e.max.z-h.z)*d):(a=(e.max.z-h.z)*d,l=(e.min.z-h.z)*d),r>l||a>i)||((a>r||r!==r)&&(r=a),(l=0?r:i,n)}intersectsBox(e){return this.intersectBox(e,As)!==null}intersectTriangle(e,n,r,i,o){h_.subVectors(n,e),M5.subVectors(r,e),T_.crossVectors(h_,M5);let s=this.direction.dot(T_),a;if(s>0){if(i)return null;a=1}else if(s<0)a=-1,s=-s;else return null;va.subVectors(this.origin,e);const l=a*this.direction.dot(M5.crossVectors(va,M5));if(l<0)return null;const c=a*this.direction.dot(h_.cross(va));if(c<0||l+c>s)return null;const u=-a*va.dot(T_);return u<0?null:this.at(u/s,o)}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 jt{constructor(e,n,r,i,o,s,a,l,c,u,d,h,f,m,T,Q){jt.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,n,r,i,o,s,a,l,c,u,d,h,f,m,T,Q)}set(e,n,r,i,o,s,a,l,c,u,d,h,f,m,T,Q){const _=this.elements;return _[0]=e,_[4]=n,_[8]=r,_[12]=i,_[1]=o,_[5]=s,_[9]=a,_[13]=l,_[2]=c,_[6]=u,_[10]=d,_[14]=h,_[3]=f,_[7]=m,_[11]=T,_[15]=Q,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 jt().fromArray(this.elements)}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],this}copyPosition(e){const n=this.elements,r=e.elements;return n[12]=r[12],n[13]=r[13],n[14]=r[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,r){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,n,r){return this.set(e.x,n.x,r.x,0,e.y,n.y,r.y,0,e.z,n.z,r.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,r=e.elements,i=1/fl.setFromMatrixColumn(e,0).length(),o=1/fl.setFromMatrixColumn(e,1).length(),s=1/fl.setFromMatrixColumn(e,2).length();return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=0,n[4]=r[4]*o,n[5]=r[5]*o,n[6]=r[6]*o,n[7]=0,n[8]=r[8]*s,n[9]=r[9]*s,n[10]=r[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,r=e.x,i=e.y,o=e.z,s=Math.cos(r),a=Math.sin(r),l=Math.cos(i),c=Math.sin(i),u=Math.cos(o),d=Math.sin(o);if(e.order==="XYZ"){const h=s*u,f=s*d,m=a*u,T=a*d;n[0]=l*u,n[4]=-l*d,n[8]=c,n[1]=f+m*c,n[5]=h-T*c,n[9]=-a*l,n[2]=T-h*c,n[6]=m+f*c,n[10]=s*l}else if(e.order==="YXZ"){const h=l*u,f=l*d,m=c*u,T=c*d;n[0]=h+T*a,n[4]=m*a-f,n[8]=s*c,n[1]=s*d,n[5]=s*u,n[9]=-a,n[2]=f*a-m,n[6]=T+h*a,n[10]=s*l}else if(e.order==="ZXY"){const h=l*u,f=l*d,m=c*u,T=c*d;n[0]=h-T*a,n[4]=-s*d,n[8]=m+f*a,n[1]=f+m*a,n[5]=s*u,n[9]=T-h*a,n[2]=-s*c,n[6]=a,n[10]=s*l}else if(e.order==="ZYX"){const h=s*u,f=s*d,m=a*u,T=a*d;n[0]=l*u,n[4]=m*c-f,n[8]=h*c+T,n[1]=l*d,n[5]=T*c+h,n[9]=f*c-m,n[2]=-c,n[6]=a*l,n[10]=s*l}else if(e.order==="YZX"){const h=s*l,f=s*c,m=a*l,T=a*c;n[0]=l*u,n[4]=T-h*d,n[8]=m*d+f,n[1]=d,n[5]=s*u,n[9]=-a*u,n[2]=-c*u,n[6]=f*d+m,n[10]=h-T*d}else if(e.order==="XZY"){const h=s*l,f=s*c,m=a*l,T=a*c;n[0]=l*u,n[4]=-d,n[8]=c*u,n[1]=h*d+T,n[5]=s*u,n[9]=f*d-m,n[2]=m*d-f,n[6]=a*u,n[10]=T*d+h}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(i3r,e,o3r)}lookAt(e,n,r){const i=this.elements;return xi.subVectors(e,n),xi.lengthSq()===0&&(xi.z=1),xi.normalize(),ya.crossVectors(r,xi),ya.lengthSq()===0&&(Math.abs(r.z)===1?xi.x+=1e-4:xi.z+=1e-4,xi.normalize(),ya.crossVectors(r,xi)),ya.normalize(),O5.crossVectors(xi,ya),i[0]=ya.x,i[4]=O5.x,i[8]=xi.x,i[1]=ya.y,i[5]=O5.y,i[9]=xi.y,i[2]=ya.z,i[6]=O5.z,i[10]=xi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,o=this.elements,s=r[0],a=r[4],l=r[8],c=r[12],u=r[1],d=r[5],h=r[9],f=r[13],m=r[2],T=r[6],Q=r[10],_=r[14],v=r[3],y=r[7],b=r[11],E=r[15],x=i[0],L=i[4],M=i[8],C=i[12],A=i[1],I=i[5],N=i[9],V=i[13],R=i[2],B=i[6],F=i[10],U=i[14],G=i[3],Z=i[7],Y=i[11],ee=i[15];return o[0]=s*x+a*A+l*R+c*G,o[4]=s*L+a*I+l*B+c*Z,o[8]=s*M+a*N+l*F+c*Y,o[12]=s*C+a*V+l*U+c*ee,o[1]=u*x+d*A+h*R+f*G,o[5]=u*L+d*I+h*B+f*Z,o[9]=u*M+d*N+h*F+f*Y,o[13]=u*C+d*V+h*U+f*ee,o[2]=m*x+T*A+Q*R+_*G,o[6]=m*L+T*I+Q*B+_*Z,o[10]=m*M+T*N+Q*F+_*Y,o[14]=m*C+T*V+Q*U+_*ee,o[3]=v*x+y*A+b*R+E*G,o[7]=v*L+y*I+b*B+E*Z,o[11]=v*M+y*N+b*F+E*Y,o[15]=v*C+y*V+b*U+E*ee,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[4],i=e[8],o=e[12],s=e[1],a=e[5],l=e[9],c=e[13],u=e[2],d=e[6],h=e[10],f=e[14],m=e[3],T=e[7],Q=e[11],_=e[15];return m*(+o*l*d-i*c*d-o*a*h+r*c*h+i*a*f-r*l*f)+T*(+n*l*f-n*c*h+o*s*h-i*s*f+i*c*u-o*l*u)+Q*(+n*c*d-n*a*f-o*s*d+r*s*f+o*a*u-r*c*u)+_*(-i*a*u-n*l*d+n*a*h+i*s*d-r*s*h+r*l*u)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,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]=n,i[14]=r),this}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=e[9],h=e[10],f=e[11],m=e[12],T=e[13],Q=e[14],_=e[15],v=d*Q*c-T*h*c+T*l*f-a*Q*f-d*l*_+a*h*_,y=m*h*c-u*Q*c-m*l*f+s*Q*f+u*l*_-s*h*_,b=u*T*c-m*d*c+m*a*f-s*T*f-u*a*_+s*d*_,E=m*d*l-u*T*l-m*a*h+s*T*h+u*a*Q-s*d*Q,x=n*v+r*y+i*b+o*E;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const L=1/x;return e[0]=v*L,e[1]=(T*h*o-d*Q*o-T*i*f+r*Q*f+d*i*_-r*h*_)*L,e[2]=(a*Q*o-T*l*o+T*i*c-r*Q*c-a*i*_+r*l*_)*L,e[3]=(d*l*o-a*h*o-d*i*c+r*h*c+a*i*f-r*l*f)*L,e[4]=y*L,e[5]=(u*Q*o-m*h*o+m*i*f-n*Q*f-u*i*_+n*h*_)*L,e[6]=(m*l*o-s*Q*o-m*i*c+n*Q*c+s*i*_-n*l*_)*L,e[7]=(s*h*o-u*l*o+u*i*c-n*h*c-s*i*f+n*l*f)*L,e[8]=b*L,e[9]=(m*d*o-u*T*o-m*r*f+n*T*f+u*r*_-n*d*_)*L,e[10]=(s*T*o-m*a*o+m*r*c-n*T*c-s*r*_+n*a*_)*L,e[11]=(u*a*o-s*d*o-u*r*c+n*d*c+s*r*f-n*a*f)*L,e[12]=E*L,e[13]=(u*T*i-m*d*i+m*r*h-n*T*h-u*r*Q+n*d*Q)*L,e[14]=(m*a*i-s*T*i-m*r*l+n*T*l+s*r*Q-n*a*Q)*L,e[15]=(s*d*i-u*a*i+u*r*l-n*d*l-s*r*h+n*a*h)*L,this}scale(e){const n=this.elements,r=e.x,i=e.y,o=e.z;return n[0]*=r,n[4]*=i,n[8]*=o,n[1]*=r,n[5]*=i,n[9]*=o,n[2]*=r,n[6]*=i,n[10]*=o,n[3]*=r,n[7]*=i,n[11]*=o,this}getMaxScaleOnAxis(){const e=this.elements,n=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(n,r,i))}makeTranslation(e,n,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,n,0,0,1,r,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const r=Math.cos(n),i=Math.sin(n),o=1-r,s=e.x,a=e.y,l=e.z,c=o*s,u=o*a;return this.set(c*s+r,c*a-i*l,c*l+i*a,0,c*a+i*l,u*a+r,u*l-i*s,0,c*l-i*a,u*l+i*s,o*l*l+r,0,0,0,0,1),this}makeScale(e,n,r){return this.set(e,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,n,r,i,o,s){return this.set(1,r,o,0,e,1,s,0,n,i,1,0,0,0,0,1),this}compose(e,n,r){const i=this.elements,o=n._x,s=n._y,a=n._z,l=n._w,c=o+o,u=s+s,d=a+a,h=o*c,f=o*u,m=o*d,T=s*u,Q=s*d,_=a*d,v=l*c,y=l*u,b=l*d,E=r.x,x=r.y,L=r.z;return i[0]=(1-(T+_))*E,i[1]=(f+b)*E,i[2]=(m-y)*E,i[3]=0,i[4]=(f-b)*x,i[5]=(1-(h+_))*x,i[6]=(Q+v)*x,i[7]=0,i[8]=(m+y)*L,i[9]=(Q-v)*L,i[10]=(1-(h+T))*L,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,r){const i=this.elements;let o=fl.set(i[0],i[1],i[2]).length();const s=fl.set(i[4],i[5],i[6]).length(),a=fl.set(i[8],i[9],i[10]).length();this.determinant()<0&&(o=-o),e.x=i[12],e.y=i[13],e.z=i[14],po.copy(this);const c=1/o,u=1/s,d=1/a;return po.elements[0]*=c,po.elements[1]*=c,po.elements[2]*=c,po.elements[4]*=u,po.elements[5]*=u,po.elements[6]*=u,po.elements[8]*=d,po.elements[9]*=d,po.elements[10]*=d,n.setFromRotationMatrix(po),r.x=o,r.y=s,r.z=a,this}makePerspective(e,n,r,i,o,s,a=$s){const l=this.elements,c=2*o/(n-e),u=2*o/(r-i),d=(n+e)/(n-e),h=(r+i)/(r-i);let f,m;if(a===$s)f=-(s+o)/(s-o),m=-2*s*o/(s-o);else if(a===Od)f=-s/(s-o),m=-s*o/(s-o);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=d,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=f,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,r,i,o,s,a=$s){const l=this.elements,c=1/(n-e),u=1/(r-i),d=1/(s-o),h=(n+e)*c,f=(r+i)*u;let m,T;if(a===$s)m=(s+o)*d,T=-2*d;else if(a===Od)m=o*d,T=-1*d;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-f,l[2]=0,l[6]=0,l[10]=T,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<16;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<16;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e[n+9]=r[9],e[n+10]=r[10],e[n+11]=r[11],e[n+12]=r[12],e[n+13]=r[13],e[n+14]=r[14],e[n+15]=r[15],e}}const fl=new Le,po=new jt,i3r=new Le(0,0,0),o3r=new Le(1,1,1),ya=new Le,O5=new Le,xi=new Le,NI=new jt,DI=new c1;class B9{constructor(e=0,n=0,r=0,i=B9.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,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,n,r,i=this._order){return this._x=e,this._y=n,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,n=this._order,r=!0){const i=e.elements,o=i[0],s=i[4],a=i[8],l=i[1],c=i[5],u=i[9],d=i[2],h=i[6],f=i[10];switch(n){case"XYZ":this._y=Math.asin(Pr(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Pr(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,f),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-d,o),this._z=0);break;case"ZXY":this._x=Math.asin(Pr(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-d,f),this._z=Math.atan2(-s,c)):(this._y=0,this._z=Math.atan2(l,o));break;case"ZYX":this._y=Math.asin(-Pr(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(h,f),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-s,c));break;case"YZX":this._z=Math.asin(Pr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-d,o)):(this._x=0,this._y=Math.atan2(a,f));break;case"XZY":this._z=Math.asin(-Pr(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-u,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return NI.makeRotationFromQuaternion(e),this.setFromRotationMatrix(NI,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return DI.setFromEuler(this),this.setFromQuaternion(DI,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=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+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}}B9.DEFAULT_ORDER="XYZ";class vG{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let n=0;n1){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 o(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=o(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 c=0,u=l.length;c0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(r.geometries=a),l.length>0&&(r.materials=l),c.length>0&&(r.textures=c),u.length>0&&(r.images=u),d.length>0&&(r.shapes=d),h.length>0&&(r.skeletons=h),f.length>0&&(r.animations=f),m.length>0&&(r.nodes=m)}return r.object=i,r;function s(a){const l=[];for(const c in a){const u=a[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!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)),n===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(o)):i.set(0,0,0)}static getBarycoord(e,n,r,i,o){ho.subVectors(i,n),Ms.subVectors(r,n),m_.subVectors(e,n);const s=ho.dot(ho),a=ho.dot(Ms),l=ho.dot(m_),c=Ms.dot(Ms),u=Ms.dot(m_),d=s*c-a*a;if(d===0)return o.set(-2,-1,-1);const h=1/d,f=(c*l-a*u)*h,m=(s*u-a*l)*h;return o.set(1-f-m,m,f)}static containsPoint(e,n,r,i){return this.getBarycoord(e,n,r,i,Os),Os.x>=0&&Os.y>=0&&Os.x+Os.y<=1}static getUV(e,n,r,i,o,s,a,l){return N5===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),N5=!0),this.getInterpolation(e,n,r,i,o,s,a,l)}static getInterpolation(e,n,r,i,o,s,a,l){return this.getBarycoord(e,n,r,i,Os),l.setScalar(0),l.addScaledVector(o,Os.x),l.addScaledVector(s,Os.y),l.addScaledVector(a,Os.z),l}static isFrontFacing(e,n,r,i){return ho.subVectors(r,n),Ms.subVectors(e,n),ho.cross(Ms).dot(i)<0}set(e,n,r){return this.a.copy(e),this.b.copy(n),this.c.copy(r),this}setFromPointsAndIndices(e,n,r,i){return this.a.copy(e[n]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,r,i){return this.a.fromBufferAttribute(e,n),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 ho.subVectors(this.c,this.b),Ms.subVectors(this.a,this.b),ho.cross(Ms).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return _o.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return _o.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,r,i,o){return N5===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),N5=!0),_o.getInterpolation(e,this.a,this.b,this.c,n,r,i,o)}getInterpolation(e,n,r,i,o){return _o.getInterpolation(e,this.a,this.b,this.c,n,r,i,o)}containsPoint(e){return _o.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return _o.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,i=this.b,o=this.c;let s,a;hl.subVectors(i,r),Tl.subVectors(o,r),g_.subVectors(e,r);const l=hl.dot(g_),c=Tl.dot(g_);if(l<=0&&c<=0)return n.copy(r);__.subVectors(e,i);const u=hl.dot(__),d=Tl.dot(__);if(u>=0&&d<=u)return n.copy(i);const h=l*d-u*c;if(h<=0&&l>=0&&u<=0)return s=l/(l-u),n.copy(r).addScaledVector(hl,s);Q_.subVectors(e,o);const f=hl.dot(Q_),m=Tl.dot(Q_);if(m>=0&&f<=m)return n.copy(o);const T=f*c-l*m;if(T<=0&&c>=0&&m<=0)return a=c/(c-m),n.copy(r).addScaledVector(Tl,a);const Q=u*m-f*d;if(Q<=0&&d-u>=0&&f-m>=0)return VI.subVectors(o,i),a=(d-u)/(d-u+(f-m)),n.copy(i).addScaledVector(VI,a);const _=1/(Q+T+h);return s=T*_,a=h*_,n.copy(r).addScaledVector(hl,s).addScaledVector(Tl,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const yG={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},ba={h:0,s:0,l:0},D5={h:0,s:0,l:0};function v_(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class It{constructor(e,n,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,r)}set(e,n,r){if(n===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,n,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=Zn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,mn.toWorkingColorSpace(this,n),this}setRGB(e,n,r,i=mn.workingColorSpace){return this.r=e,this.g=n,this.b=r,mn.toWorkingColorSpace(this,i),this}setHSL(e,n,r,i=mn.workingColorSpace){if(e=vE(e,1),n=Pr(n,0,1),r=Pr(r,0,1),n===0)this.r=this.g=this.b=r;else{const o=r<=.5?r*(1+n):r+n-r*n,s=2*r-o;this.r=v_(s,o,e+1/3),this.g=v_(s,o,e),this.b=v_(s,o,e-1/3)}return mn.toWorkingColorSpace(this,i),this}setStyle(e,n=Zn){function r(o){o!==void 0&&parseFloat(o)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let o;const s=i[1],a=i[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,n);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,n);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const o=i[1],s=o.length;if(s===3)return this.setRGB(parseInt(o.charAt(0),16)/15,parseInt(o.charAt(1),16)/15,parseInt(o.charAt(2),16)/15,n);if(s===6)return this.setHex(parseInt(o,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=Zn){const r=yG[e.toLowerCase()];return r!==void 0?this.setHex(r,n):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=Gl(e.r),this.g=Gl(e.g),this.b=Gl(e.b),this}copyLinearToSRGB(e){return this.r=l_(e.r),this.g=l_(e.g),this.b=l_(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Zn){return mn.fromWorkingColorSpace(Dr.copy(this),e),Math.round(Pr(Dr.r*255,0,255))*65536+Math.round(Pr(Dr.g*255,0,255))*256+Math.round(Pr(Dr.b*255,0,255))}getHexString(e=Zn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=mn.workingColorSpace){mn.fromWorkingColorSpace(Dr.copy(this),n);const r=Dr.r,i=Dr.g,o=Dr.b,s=Math.max(r,i,o),a=Math.min(r,i,o);let l,c;const u=(a+s)/2;if(a===s)l=0,c=0;else{const d=s-a;switch(c=u<=.5?d/(s+a):d/(2-s-a),s){case r:l=(i-o)/d+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const r=e[n];if(r===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){console.warn(`THREE.Material: '${n}' 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[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(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!==Ul&&(r.blending=this.blending),this.side!==ea&&(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!==sv&&(r.blendSrc=this.blendSrc),this.blendDst!==av&&(r.blendDst=this.blendDst),this.blendEquation!==j1&&(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!==Ld&&(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!==LI&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==al&&(r.stencilFail=this.stencilFail),this.stencilZFail!==al&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==al&&(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(o){const s=[];for(const a in o){const l=o[a];delete l.metadata,s.push(l)}return s}if(n){const o=i(e.textures),s=i(e.images);o.length>0&&(r.textures=o),s.length>0&&(r.images=s)}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 n=e.clippingPlanes;let r=null;if(n!==null){const i=n.length;r=new Array(i);for(let o=0;o!==i;++o)r[o]=n[o].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 Va extends bo{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new It(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=mE,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 nr=new Le,I5=new Zt;class ti{constructor(e,n,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=n,this.count=e!==void 0?e.length/n:0,this.normalized=r,this.usage=fv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Bs,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,n){this.updateRanges.push({start:e,count:n})}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,n,r){e*=this.itemSize,r*=n.itemSize;for(let i=0,o=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const r=this.attributes;for(const l in r){const c=r[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let o=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let d=0,h=c.length;d0&&(i[l]=u,o=!0)}o&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));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 n={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(n));const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(n))}const o=e.morphAttributes;for(const c in o){const u=[],d=o[c];for(let h=0,f=d.length;h0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=i.length;o(e.far-e.near)**2))&&(FI.copy(o).invert(),k1.copy(e.ray).applyMatrix4(FI),!(r.boundingBox!==null&&k1.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,n,k1)))}_computeIntersections(e,n,r){let i;const o=this.geometry,s=this.material,a=o.index,l=o.attributes.position,c=o.attributes.uv,u=o.attributes.uv1,d=o.attributes.normal,h=o.groups,f=o.drawRange;if(a!==null)if(Array.isArray(s))for(let m=0,T=h.length;mn.far?null:{distance:c,point:$5.clone(),object:t}}function U5(t,e,n,r,i,o,s,a,l,c){t.getVertexPosition(a,gl),t.getVertexPosition(l,_l),t.getVertexPosition(c,Ql);const u=p3r(t,e,n,r,gl,_l,Ql,B5);if(u){i&&(H5.fromBufferAttribute(i,a),V5.fromBufferAttribute(i,l),F5.fromBufferAttribute(i,c),u.uv=_o.getInterpolation(B5,gl,_l,Ql,H5,V5,F5,new Zt)),o&&(H5.fromBufferAttribute(o,a),V5.fromBufferAttribute(o,l),F5.fromBufferAttribute(o,c),u.uv1=_o.getInterpolation(B5,gl,_l,Ql,H5,V5,F5,new Zt),u.uv2=u.uv1),s&&($I.fromBufferAttribute(s,a),UI.fromBufferAttribute(s,l),GI.fromBufferAttribute(s,c),u.normal=_o.getInterpolation(B5,gl,_l,Ql,$I,UI,GI,new Le),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const d={a,b:l,c,normal:new Le,materialIndex:0};_o.getNormal(gl,_l,Ql,d.normal),u.face=d}return u}class za extends hs{constructor(e=1,n=1,r=1,i=1,o=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:i,heightSegments:o,depthSegments:s};const a=this;i=Math.floor(i),o=Math.floor(o),s=Math.floor(s);const l=[],c=[],u=[],d=[];let h=0,f=0;m("z","y","x",-1,-1,r,n,e,s,o,0),m("z","y","x",1,-1,r,n,-e,s,o,1),m("x","z","y",1,1,e,r,n,i,s,2),m("x","z","y",1,-1,e,r,-n,i,s,3),m("x","y","z",1,-1,e,n,r,i,o,4),m("x","y","z",-1,-1,e,n,-r,i,o,5),this.setIndex(l),this.setAttribute("position",new Ks(c,3)),this.setAttribute("normal",new Ks(u,3)),this.setAttribute("uv",new Ks(d,2));function m(T,Q,_,v,y,b,E,x,L,M,C){const A=b/L,I=E/M,N=b/2,V=E/2,R=x/2,B=L+1,F=M+1;let U=0,G=0;const Z=new Le;for(let Y=0;Y0?1:-1,u.push(Z.x,Z.y,Z.z),d.push(pe/L),d.push(1-Y/M),U+=1}}for(let Y=0;Y>8&255]+Nr[t>>16&255]+Nr[t>>24&255]+"-"+Nr[e&255]+Nr[e>>8&255]+"-"+Nr[e>>16&15|64]+Nr[e>>24&255]+"-"+Nr[n&63|128]+Nr[n>>8&255]+"-"+Nr[n>>16&255]+Nr[n>>24&255]+Nr[r&255]+Nr[r>>8&255]+Nr[r>>16&255]+Nr[r>>24&255]).toLowerCase()}function Pr(t,e,n){return Math.max(e,Math.min(n,t))}function vE(t,e){return(t%e+e)%e}function Ncr(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)}function Dcr(t,e,n){return t!==e?(n-t)/(e-t):0}function G4(t,e,n){return(1-n)*t+n*e}function Icr(t,e,n,r){return G4(t,e,1-Math.exp(-n*r))}function kcr(t,e=1){return e-Math.abs(vE(t,e*2)-e)}function Pcr(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function Hcr(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function Vcr(t,e){return t+Math.floor(Math.random()*(e-t+1))}function Fcr(t,e){return t+Math.random()*(e-t)}function Bcr(t){return t*(.5-Math.random())}function $cr(t){t!==void 0&&(AI=t);let e=AI+=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 Ucr(t){return t*U4}function Gcr(t){return t*vc}function hv(t){return(t&t-1)===0&&t!==0}function qcr(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Rd(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function zcr(t,e,n,r,i){const o=Math.cos,s=Math.sin,a=o(n/2),l=s(n/2),c=o((e+r)/2),u=s((e+r)/2),d=o((e-r)/2),h=s((e-r)/2),f=o((r-e)/2),m=s((r-e)/2);switch(i){case"XYX":t.set(a*u,l*d,l*h,a*c);break;case"YZY":t.set(l*h,a*u,l*d,a*c);break;case"ZXZ":t.set(l*d,l*h,a*u,a*c);break;case"XZX":t.set(a*u,l*m,l*f,a*c);break;case"YXY":t.set(l*f,a*u,l*m,a*c);break;case"ZYZ":t.set(l*m,l*f,a*u,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function jo(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Sn(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const jcr={DEG2RAD:U4,RAD2DEG:vc,generateUUID:yo,clamp:Pr,euclideanModulo:vE,mapLinear:Ncr,inverseLerp:Dcr,lerp:G4,damp:Icr,pingpong:kcr,smoothstep:Pcr,smootherstep:Hcr,randInt:Vcr,randFloat:Fcr,randFloatSpread:Bcr,seededRandom:$cr,degToRad:Ucr,radToDeg:Gcr,isPowerOfTwo:hv,ceilPowerOfTwo:qcr,floorPowerOfTwo:Rd,setQuaternionFromProperEuler:zcr,normalize:Sn,denormalize:jo};class Zt{constructor(e=0,n=0){Zt.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.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 n=this.x,r=this.y,i=e.elements;return this.x=i[0]*n+i[3]*r+i[6],this.y=i[1]*n+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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,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 n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Pr(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y;return n*n+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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const r=Math.cos(n),i=Math.sin(n),o=this.x-e.x,s=this.y-e.y;return this.x=o*r-s*i+e.x,this.y=o*i+s*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class zt{constructor(e,n,r,i,o,s,a,l,c){zt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,r,i,o,s,a,l,c)}set(e,n,r,i,o,s,a,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=n,u[4]=o,u[5]=l,u[6]=r,u[7]=s,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],this}extractBasis(e,n,r){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,o=this.elements,s=r[0],a=r[3],l=r[6],c=r[1],u=r[4],d=r[7],h=r[2],f=r[5],m=r[8],T=i[0],Q=i[3],_=i[6],v=i[1],y=i[4],b=i[7],E=i[2],x=i[5],L=i[8];return o[0]=s*T+a*v+l*E,o[3]=s*Q+a*y+l*x,o[6]=s*_+a*b+l*L,o[1]=c*T+u*v+d*E,o[4]=c*Q+u*y+d*x,o[7]=c*_+u*b+d*L,o[2]=h*T+f*v+m*E,o[5]=h*Q+f*y+m*x,o[8]=h*_+f*b+m*L,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return n*s*u-n*a*c-r*o*u+r*a*l+i*o*c-i*s*l}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=u*s-a*c,h=a*l-u*o,f=c*o-s*l,m=n*d+r*h+i*f;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const T=1/m;return e[0]=d*T,e[1]=(i*c-u*r)*T,e[2]=(a*r-i*s)*T,e[3]=h*T,e[4]=(u*n-i*l)*T,e[5]=(i*o-a*n)*T,e[6]=f*T,e[7]=(r*l-c*n)*T,e[8]=(s*n-r*o)*T,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,r,i,o,s,a){const l=Math.cos(o),c=Math.sin(o);return this.set(r*l,r*c,-r*(l*s+c*a)+s+e,-i*c,i*l,-i*(-c*s+l*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(a_.makeScale(e,n)),this}rotate(e){return this.premultiply(a_.makeRotation(-e)),this}translate(e,n){return this.premultiply(a_.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,r,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<9;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<9;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const a_=new zt;function mG(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function Q0(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function Wcr(){const t=Q0("canvas");return t.style.display="block",t}const wI={};function q4(t){t in wI||(wI[t]=!0,console.warn(t))}const MI=new zt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),OI=new zt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),S5={[Ar]:{transfer:Ad,primaries:wd,toReference:t=>t,fromReference:t=>t},[Zn]:{transfer:Vn,primaries:wd,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[V9]:{transfer:Ad,primaries:Md,toReference:t=>t.applyMatrix3(OI),fromReference:t=>t.applyMatrix3(MI)},[QE]:{transfer:Vn,primaries:Md,toReference:t=>t.convertSRGBToLinear().applyMatrix3(OI),fromReference:t=>t.applyMatrix3(MI).convertLinearToSRGB()}},Ycr=new Set([Ar,V9]),mn={enabled:!0,_workingColorSpace:Ar,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Ycr.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const r=S5[e].toReference,i=S5[n].fromReference;return i(r(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return S5[t].primaries},getTransfer:function(t){return t===ji?Ad:S5[t].transfer}};function Gl(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function l_(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let ll;class gG{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{ll===void 0&&(ll=Q0("canvas")),ll.width=e.width,ll.height=e.height;const r=ll.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),n=ll}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.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 n=Q0("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),o=i.data;for(let s=0;s0&&(r.userData=this.userData),n||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==iG)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case gc:e.x=e.x-Math.floor(e.x);break;case qi:e.x=e.x<0?0:1;break;case Cd: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 gc:e.y=e.y-Math.floor(e.y);break;case qi:e.y=e.y<0?0:1;break;case Cd: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 q4("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Zn?s2:hG}set encoding(e){q4("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===s2?Zn:ji}}Cr.DEFAULT_IMAGE=null;Cr.DEFAULT_MAPPING=iG;Cr.DEFAULT_ANISOTROPY=1;class Nn{constructor(e=0,n=0,r=0,i=1){Nn.prototype.isVector4=!0,this.x=e,this.y=n,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,n,r,i){return this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.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 n=this.x,r=this.y,i=this.z,o=this.w,s=e.elements;return this.x=s[0]*n+s[4]*r+s[8]*i+s[12]*o,this.y=s[1]*n+s[5]*r+s[9]*i+s[13]*o,this.z=s[2]*n+s[6]*r+s[10]*i+s[14]*o,this.w=s[3]*n+s[7]*r+s[11]*i+s[15]*o,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,r,i,o;const l=e.elements,c=l[0],u=l[4],d=l[8],h=l[1],f=l[5],m=l[9],T=l[2],Q=l[6],_=l[10];if(Math.abs(u-h)<.01&&Math.abs(d-T)<.01&&Math.abs(m-Q)<.01){if(Math.abs(u+h)<.1&&Math.abs(d+T)<.1&&Math.abs(m+Q)<.1&&Math.abs(c+f+_-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const y=(c+1)/2,b=(f+1)/2,E=(_+1)/2,x=(u+h)/4,L=(d+T)/4,M=(m+Q)/4;return y>b&&y>E?y<.01?(r=0,i=.707106781,o=.707106781):(r=Math.sqrt(y),i=x/r,o=L/r):b>E?b<.01?(r=.707106781,i=0,o=.707106781):(i=Math.sqrt(b),r=x/i,o=M/i):E<.01?(r=.707106781,i=.707106781,o=0):(o=Math.sqrt(E),r=L/o,i=M/o),this.set(r,i,o,n),this}let v=Math.sqrt((Q-m)*(Q-m)+(d-T)*(d-T)+(h-u)*(h-u));return Math.abs(v)<.001&&(v=1),this.x=(Q-m)/v,this.y=(d-T)/v,this.z=(h-u)/v,this.w=Math.acos((c+f+_-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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this.w=e.w+(n.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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),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 Xcr extends Jc{constructor(e=1,n=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new Nn(0,0,e,n),this.scissorTest=!1,this.viewport=new Nn(0,0,e,n);const i={width:e,height:n,depth:1};r.encoding!==void 0&&(q4("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===s2?Zn:ji),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:di,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Cr(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,n,r=1){(this.width!==e||this.height!==n||this.depth!==r)&&(this.width=e,this.height=n,this.depth=r,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}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 n=Object.assign({},e.texture.image);return this.texture.source=new _G(n),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 E2 extends Xcr{constructor(e=1,n=1,r={}){super(e,n,r),this.isWebGLRenderTarget=!0}}class QG extends Cr{constructor(e=null,n=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=gr,this.minFilter=gr,this.wrapR=qi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Jcr extends Cr{constructor(e=null,n=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=gr,this.minFilter=gr,this.wrapR=qi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class c1{constructor(e=0,n=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=r,this._w=i}static slerpFlat(e,n,r,i,o,s,a){let l=r[i+0],c=r[i+1],u=r[i+2],d=r[i+3];const h=o[s+0],f=o[s+1],m=o[s+2],T=o[s+3];if(a===0){e[n+0]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d;return}if(a===1){e[n+0]=h,e[n+1]=f,e[n+2]=m,e[n+3]=T;return}if(d!==T||l!==h||c!==f||u!==m){let Q=1-a;const _=l*h+c*f+u*m+d*T,v=_>=0?1:-1,y=1-_*_;if(y>Number.EPSILON){const E=Math.sqrt(y),x=Math.atan2(E,_*v);Q=Math.sin(Q*x)/E,a=Math.sin(a*x)/E}const b=a*v;if(l=l*Q+h*b,c=c*Q+f*b,u=u*Q+m*b,d=d*Q+T*b,Q===1-a){const E=1/Math.sqrt(l*l+c*c+u*u+d*d);l*=E,c*=E,u*=E,d*=E}}e[n]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d}static multiplyQuaternionsFlat(e,n,r,i,o,s){const a=r[i],l=r[i+1],c=r[i+2],u=r[i+3],d=o[s],h=o[s+1],f=o[s+2],m=o[s+3];return e[n]=a*m+u*d+l*f-c*h,e[n+1]=l*m+u*h+c*d-a*f,e[n+2]=c*m+u*f+a*h-l*d,e[n+3]=u*m-a*d-l*h-c*f,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,n,r,i){return this._x=e,this._y=n,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,n){const r=e._x,i=e._y,o=e._z,s=e._order,a=Math.cos,l=Math.sin,c=a(r/2),u=a(i/2),d=a(o/2),h=l(r/2),f=l(i/2),m=l(o/2);switch(s){case"XYZ":this._x=h*u*d+c*f*m,this._y=c*f*d-h*u*m,this._z=c*u*m+h*f*d,this._w=c*u*d-h*f*m;break;case"YXZ":this._x=h*u*d+c*f*m,this._y=c*f*d-h*u*m,this._z=c*u*m-h*f*d,this._w=c*u*d+h*f*m;break;case"ZXY":this._x=h*u*d-c*f*m,this._y=c*f*d+h*u*m,this._z=c*u*m+h*f*d,this._w=c*u*d-h*f*m;break;case"ZYX":this._x=h*u*d-c*f*m,this._y=c*f*d+h*u*m,this._z=c*u*m-h*f*d,this._w=c*u*d+h*f*m;break;case"YZX":this._x=h*u*d+c*f*m,this._y=c*f*d+h*u*m,this._z=c*u*m-h*f*d,this._w=c*u*d-h*f*m;break;case"XZY":this._x=h*u*d-c*f*m,this._y=c*f*d-h*u*m,this._z=c*u*m+h*f*d,this._w=c*u*d+h*f*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const r=n/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 n=e.elements,r=n[0],i=n[4],o=n[8],s=n[1],a=n[5],l=n[9],c=n[2],u=n[6],d=n[10],h=r+a+d;if(h>0){const f=.5/Math.sqrt(h+1);this._w=.25/f,this._x=(u-l)*f,this._y=(o-c)*f,this._z=(s-i)*f}else if(r>a&&r>d){const f=2*Math.sqrt(1+r-a-d);this._w=(u-l)/f,this._x=.25*f,this._y=(i+s)/f,this._z=(o+c)/f}else if(a>d){const f=2*Math.sqrt(1+a-r-d);this._w=(o-c)/f,this._x=(i+s)/f,this._y=.25*f,this._z=(l+u)/f}else{const f=2*Math.sqrt(1+d-r-a);this._w=(s-i)/f,this._x=(o+c)/f,this._y=(l+u)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+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*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Pr(this.dot(e),-1,1)))}rotateTowards(e,n){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,n/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,n){const r=e._x,i=e._y,o=e._z,s=e._w,a=n._x,l=n._y,c=n._z,u=n._w;return this._x=r*u+s*a+i*c-o*l,this._y=i*u+s*l+o*a-r*c,this._z=o*u+s*c+r*l-i*a,this._w=s*u-r*a-i*l-o*c,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const r=this._x,i=this._y,o=this._z,s=this._w;let a=s*e._w+r*e._x+i*e._y+o*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=s,this._x=r,this._y=i,this._z=o,this;const l=1-a*a;if(l<=Number.EPSILON){const f=1-n;return this._w=f*s+n*this._w,this._x=f*r+n*this._x,this._y=f*i+n*this._y,this._z=f*o+n*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(l),u=Math.atan2(c,a),d=Math.sin((1-n)*u)/c,h=Math.sin(n*u)/c;return this._w=s*d+this._w*h,this._x=r*d+this._x*h,this._y=i*d+this._y*h,this._z=o*d+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,n,r){return this.copy(e).slerp(n,r)}random(){const e=Math.random(),n=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),o=2*Math.PI*Math.random();return this.set(n*Math.cos(i),r*Math.sin(o),r*Math.cos(o),n*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),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 Le{constructor(e=0,n=0,r=0){Le.prototype.isVector3=!0,this.x=e,this.y=n,this.z=r}set(e,n,r){return r===void 0&&(r=this.z),this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.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,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(RI.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(RI.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,i=this.z,o=e.elements;return this.x=o[0]*n+o[3]*r+o[6]*i,this.y=o[1]*n+o[4]*r+o[7]*i,this.z=o[2]*n+o[5]*r+o[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,o=e.elements,s=1/(o[3]*n+o[7]*r+o[11]*i+o[15]);return this.x=(o[0]*n+o[4]*r+o[8]*i+o[12])*s,this.y=(o[1]*n+o[5]*r+o[9]*i+o[13])*s,this.z=(o[2]*n+o[6]*r+o[10]*i+o[14])*s,this}applyQuaternion(e){const n=this.x,r=this.y,i=this.z,o=e.x,s=e.y,a=e.z,l=e.w,c=2*(s*i-a*r),u=2*(a*n-o*i),d=2*(o*r-s*n);return this.x=n+l*c+s*d-a*u,this.y=r+l*u+a*c-o*d,this.z=i+l*d+o*u-s*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,r=this.y,i=this.z,o=e.elements;return this.x=o[0]*n+o[4]*r+o[8]*i,this.y=o[1]*n+o[5]*r+o[9]*i,this.z=o[2]*n+o[6]*r+o[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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const r=e.x,i=e.y,o=e.z,s=n.x,a=n.y,l=n.z;return this.x=i*l-o*a,this.y=o*s-r*l,this.z=r*a-i*s,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const r=e.dot(this)/n;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return u_.copy(this).projectOnVector(e),this.sub(u_)}reflect(e){return this.sub(u_.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Pr(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return n*n+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,n,r){const i=Math.sin(n)*e;return this.x=i*Math.sin(r),this.y=Math.cos(n)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,r){return this.x=e*Math.sin(n),this.y=r,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=r,this.z=i,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(n),this.y=r*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const u_=new Le,RI=new c1;class sa{constructor(e=new Le(1/0,1/0,1/0),n=new Le(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,r=e.length;nthis.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,n){return n.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,fo),fo.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,r;return e.normal.x>0?(n=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),n<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(m4),C5.subVectors(this.max,m4),cl.subVectors(e.a,m4),ul.subVectors(e.b,m4),dl.subVectors(e.c,m4),_a.subVectors(ul,cl),Qa.subVectors(dl,ul),D1.subVectors(cl,dl);let n=[0,-_a.z,_a.y,0,-Qa.z,Qa.y,0,-D1.z,D1.y,_a.z,0,-_a.x,Qa.z,0,-Qa.x,D1.z,0,-D1.x,-_a.y,_a.x,0,-Qa.y,Qa.x,0,-D1.y,D1.x,0];return!d_(n,cl,ul,dl,C5)||(n=[1,0,0,0,1,0,0,0,1],!d_(n,cl,ul,dl,C5))?!1:(A5.crossVectors(_a,Qa),n=[A5.x,A5.y,A5.z],d_(n,cl,ul,dl,C5))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,fo).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(fo).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:(Cs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Cs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Cs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Cs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Cs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Cs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Cs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Cs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Cs),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 Cs=[new Le,new Le,new Le,new Le,new Le,new Le,new Le,new Le],fo=new Le,L5=new sa,cl=new Le,ul=new Le,dl=new Le,_a=new Le,Qa=new Le,D1=new Le,m4=new Le,C5=new Le,A5=new Le,I1=new Le;function d_(t,e,n,r,i){for(let o=0,s=t.length-3;o<=s;o+=3){I1.fromArray(t,o);const a=i.x*Math.abs(I1.x)+i.y*Math.abs(I1.y)+i.z*Math.abs(I1.z),l=e.dot(I1),c=n.dot(I1),u=r.dot(I1);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>a)return!1}return!0}const e3r=new sa,g4=new Le,f_=new Le;class ps{constructor(e=new Le,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):e3r.setFromPoints(e).getCenter(r);let i=0;for(let o=0,s=e.length;othis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}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;g4.subVectors(e,this.center);const n=g4.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),i=(r-this.radius)*.5;this.center.addScaledVector(g4,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):(f_.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(g4.copy(e.center).add(f_)),this.expandByPoint(g4.copy(e.center).sub(f_))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const As=new Le,p_=new Le,w5=new Le,va=new Le,h_=new Le,M5=new Le,T_=new Le;class F9{constructor(e=new Le,n=new Le(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.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,As)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const r=n.dot(this.direction);return r<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=As.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(As.copy(this.origin).addScaledVector(this.direction,n),As.distanceToSquared(e))}distanceSqToSegment(e,n,r,i){p_.copy(e).add(n).multiplyScalar(.5),w5.copy(n).sub(e).normalize(),va.copy(this.origin).sub(p_);const o=e.distanceTo(n)*.5,s=-this.direction.dot(w5),a=va.dot(this.direction),l=-va.dot(w5),c=va.lengthSq(),u=Math.abs(1-s*s);let d,h,f,m;if(u>0)if(d=s*l-a,h=s*a-l,m=o*u,d>=0)if(h>=-m)if(h<=m){const T=1/u;d*=T,h*=T,f=d*(d+s*h+2*a)+h*(s*d+h+2*l)+c}else h=o,d=Math.max(0,-(s*h+a)),f=-d*d+h*(h+2*l)+c;else h=-o,d=Math.max(0,-(s*h+a)),f=-d*d+h*(h+2*l)+c;else h<=-m?(d=Math.max(0,-(-s*o+a)),h=d>0?-o:Math.min(Math.max(-o,-l),o),f=-d*d+h*(h+2*l)+c):h<=m?(d=0,h=Math.min(Math.max(-o,-l),o),f=h*(h+2*l)+c):(d=Math.max(0,-(s*o+a)),h=d>0?o:Math.min(Math.max(-o,-l),o),f=-d*d+h*(h+2*l)+c);else h=s>0?-o:o,d=Math.max(0,-(s*h+a)),f=-d*d+h*(h+2*l)+c;return r&&r.copy(this.origin).addScaledVector(this.direction,d),i&&i.copy(p_).addScaledVector(w5,h),f}intersectSphere(e,n){As.subVectors(e.center,this.origin);const r=As.dot(this.direction),i=As.dot(As)-r*r,o=e.radius*e.radius;if(i>o)return null;const s=Math.sqrt(o-i),a=r-s,l=r+s;return l<0?null:a<0?this.at(l,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/n;return r>=0?r:null}intersectPlane(e,n){const r=this.distanceToPlane(e);return r===null?null:this.at(r,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let r,i,o,s,a,l;const c=1/this.direction.x,u=1/this.direction.y,d=1/this.direction.z,h=this.origin;return c>=0?(r=(e.min.x-h.x)*c,i=(e.max.x-h.x)*c):(r=(e.max.x-h.x)*c,i=(e.min.x-h.x)*c),u>=0?(o=(e.min.y-h.y)*u,s=(e.max.y-h.y)*u):(o=(e.max.y-h.y)*u,s=(e.min.y-h.y)*u),r>s||o>i||((o>r||isNaN(r))&&(r=o),(s=0?(a=(e.min.z-h.z)*d,l=(e.max.z-h.z)*d):(a=(e.max.z-h.z)*d,l=(e.min.z-h.z)*d),r>l||a>i)||((a>r||r!==r)&&(r=a),(l=0?r:i,n)}intersectsBox(e){return this.intersectBox(e,As)!==null}intersectTriangle(e,n,r,i,o){h_.subVectors(n,e),M5.subVectors(r,e),T_.crossVectors(h_,M5);let s=this.direction.dot(T_),a;if(s>0){if(i)return null;a=1}else if(s<0)a=-1,s=-s;else return null;va.subVectors(this.origin,e);const l=a*this.direction.dot(M5.crossVectors(va,M5));if(l<0)return null;const c=a*this.direction.dot(h_.cross(va));if(c<0||l+c>s)return null;const u=-a*va.dot(T_);return u<0?null:this.at(u/s,o)}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 jt{constructor(e,n,r,i,o,s,a,l,c,u,d,h,f,m,T,Q){jt.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,n,r,i,o,s,a,l,c,u,d,h,f,m,T,Q)}set(e,n,r,i,o,s,a,l,c,u,d,h,f,m,T,Q){const _=this.elements;return _[0]=e,_[4]=n,_[8]=r,_[12]=i,_[1]=o,_[5]=s,_[9]=a,_[13]=l,_[2]=c,_[6]=u,_[10]=d,_[14]=h,_[3]=f,_[7]=m,_[11]=T,_[15]=Q,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 jt().fromArray(this.elements)}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],this}copyPosition(e){const n=this.elements,r=e.elements;return n[12]=r[12],n[13]=r[13],n[14]=r[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,r){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,n,r){return this.set(e.x,n.x,r.x,0,e.y,n.y,r.y,0,e.z,n.z,r.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,r=e.elements,i=1/fl.setFromMatrixColumn(e,0).length(),o=1/fl.setFromMatrixColumn(e,1).length(),s=1/fl.setFromMatrixColumn(e,2).length();return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=0,n[4]=r[4]*o,n[5]=r[5]*o,n[6]=r[6]*o,n[7]=0,n[8]=r[8]*s,n[9]=r[9]*s,n[10]=r[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,r=e.x,i=e.y,o=e.z,s=Math.cos(r),a=Math.sin(r),l=Math.cos(i),c=Math.sin(i),u=Math.cos(o),d=Math.sin(o);if(e.order==="XYZ"){const h=s*u,f=s*d,m=a*u,T=a*d;n[0]=l*u,n[4]=-l*d,n[8]=c,n[1]=f+m*c,n[5]=h-T*c,n[9]=-a*l,n[2]=T-h*c,n[6]=m+f*c,n[10]=s*l}else if(e.order==="YXZ"){const h=l*u,f=l*d,m=c*u,T=c*d;n[0]=h+T*a,n[4]=m*a-f,n[8]=s*c,n[1]=s*d,n[5]=s*u,n[9]=-a,n[2]=f*a-m,n[6]=T+h*a,n[10]=s*l}else if(e.order==="ZXY"){const h=l*u,f=l*d,m=c*u,T=c*d;n[0]=h-T*a,n[4]=-s*d,n[8]=m+f*a,n[1]=f+m*a,n[5]=s*u,n[9]=T-h*a,n[2]=-s*c,n[6]=a,n[10]=s*l}else if(e.order==="ZYX"){const h=s*u,f=s*d,m=a*u,T=a*d;n[0]=l*u,n[4]=m*c-f,n[8]=h*c+T,n[1]=l*d,n[5]=T*c+h,n[9]=f*c-m,n[2]=-c,n[6]=a*l,n[10]=s*l}else if(e.order==="YZX"){const h=s*l,f=s*c,m=a*l,T=a*c;n[0]=l*u,n[4]=T-h*d,n[8]=m*d+f,n[1]=d,n[5]=s*u,n[9]=-a*u,n[2]=-c*u,n[6]=f*d+m,n[10]=h-T*d}else if(e.order==="XZY"){const h=s*l,f=s*c,m=a*l,T=a*c;n[0]=l*u,n[4]=-d,n[8]=c*u,n[1]=h*d+T,n[5]=s*u,n[9]=f*d-m,n[2]=m*d-f,n[6]=a*u,n[10]=T*d+h}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(t3r,e,n3r)}lookAt(e,n,r){const i=this.elements;return xi.subVectors(e,n),xi.lengthSq()===0&&(xi.z=1),xi.normalize(),ya.crossVectors(r,xi),ya.lengthSq()===0&&(Math.abs(r.z)===1?xi.x+=1e-4:xi.z+=1e-4,xi.normalize(),ya.crossVectors(r,xi)),ya.normalize(),O5.crossVectors(xi,ya),i[0]=ya.x,i[4]=O5.x,i[8]=xi.x,i[1]=ya.y,i[5]=O5.y,i[9]=xi.y,i[2]=ya.z,i[6]=O5.z,i[10]=xi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,o=this.elements,s=r[0],a=r[4],l=r[8],c=r[12],u=r[1],d=r[5],h=r[9],f=r[13],m=r[2],T=r[6],Q=r[10],_=r[14],v=r[3],y=r[7],b=r[11],E=r[15],x=i[0],L=i[4],M=i[8],C=i[12],A=i[1],I=i[5],N=i[9],V=i[13],R=i[2],B=i[6],F=i[10],U=i[14],G=i[3],Z=i[7],Y=i[11],ee=i[15];return o[0]=s*x+a*A+l*R+c*G,o[4]=s*L+a*I+l*B+c*Z,o[8]=s*M+a*N+l*F+c*Y,o[12]=s*C+a*V+l*U+c*ee,o[1]=u*x+d*A+h*R+f*G,o[5]=u*L+d*I+h*B+f*Z,o[9]=u*M+d*N+h*F+f*Y,o[13]=u*C+d*V+h*U+f*ee,o[2]=m*x+T*A+Q*R+_*G,o[6]=m*L+T*I+Q*B+_*Z,o[10]=m*M+T*N+Q*F+_*Y,o[14]=m*C+T*V+Q*U+_*ee,o[3]=v*x+y*A+b*R+E*G,o[7]=v*L+y*I+b*B+E*Z,o[11]=v*M+y*N+b*F+E*Y,o[15]=v*C+y*V+b*U+E*ee,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[4],i=e[8],o=e[12],s=e[1],a=e[5],l=e[9],c=e[13],u=e[2],d=e[6],h=e[10],f=e[14],m=e[3],T=e[7],Q=e[11],_=e[15];return m*(+o*l*d-i*c*d-o*a*h+r*c*h+i*a*f-r*l*f)+T*(+n*l*f-n*c*h+o*s*h-i*s*f+i*c*u-o*l*u)+Q*(+n*c*d-n*a*f-o*s*d+r*s*f+o*a*u-r*c*u)+_*(-i*a*u-n*l*d+n*a*h+i*s*d-r*s*h+r*l*u)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,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]=n,i[14]=r),this}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=e[9],h=e[10],f=e[11],m=e[12],T=e[13],Q=e[14],_=e[15],v=d*Q*c-T*h*c+T*l*f-a*Q*f-d*l*_+a*h*_,y=m*h*c-u*Q*c-m*l*f+s*Q*f+u*l*_-s*h*_,b=u*T*c-m*d*c+m*a*f-s*T*f-u*a*_+s*d*_,E=m*d*l-u*T*l-m*a*h+s*T*h+u*a*Q-s*d*Q,x=n*v+r*y+i*b+o*E;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const L=1/x;return e[0]=v*L,e[1]=(T*h*o-d*Q*o-T*i*f+r*Q*f+d*i*_-r*h*_)*L,e[2]=(a*Q*o-T*l*o+T*i*c-r*Q*c-a*i*_+r*l*_)*L,e[3]=(d*l*o-a*h*o-d*i*c+r*h*c+a*i*f-r*l*f)*L,e[4]=y*L,e[5]=(u*Q*o-m*h*o+m*i*f-n*Q*f-u*i*_+n*h*_)*L,e[6]=(m*l*o-s*Q*o-m*i*c+n*Q*c+s*i*_-n*l*_)*L,e[7]=(s*h*o-u*l*o+u*i*c-n*h*c-s*i*f+n*l*f)*L,e[8]=b*L,e[9]=(m*d*o-u*T*o-m*r*f+n*T*f+u*r*_-n*d*_)*L,e[10]=(s*T*o-m*a*o+m*r*c-n*T*c-s*r*_+n*a*_)*L,e[11]=(u*a*o-s*d*o-u*r*c+n*d*c+s*r*f-n*a*f)*L,e[12]=E*L,e[13]=(u*T*i-m*d*i+m*r*h-n*T*h-u*r*Q+n*d*Q)*L,e[14]=(m*a*i-s*T*i-m*r*l+n*T*l+s*r*Q-n*a*Q)*L,e[15]=(s*d*i-u*a*i+u*r*l-n*d*l-s*r*h+n*a*h)*L,this}scale(e){const n=this.elements,r=e.x,i=e.y,o=e.z;return n[0]*=r,n[4]*=i,n[8]*=o,n[1]*=r,n[5]*=i,n[9]*=o,n[2]*=r,n[6]*=i,n[10]*=o,n[3]*=r,n[7]*=i,n[11]*=o,this}getMaxScaleOnAxis(){const e=this.elements,n=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(n,r,i))}makeTranslation(e,n,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,n,0,0,1,r,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const r=Math.cos(n),i=Math.sin(n),o=1-r,s=e.x,a=e.y,l=e.z,c=o*s,u=o*a;return this.set(c*s+r,c*a-i*l,c*l+i*a,0,c*a+i*l,u*a+r,u*l-i*s,0,c*l-i*a,u*l+i*s,o*l*l+r,0,0,0,0,1),this}makeScale(e,n,r){return this.set(e,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,n,r,i,o,s){return this.set(1,r,o,0,e,1,s,0,n,i,1,0,0,0,0,1),this}compose(e,n,r){const i=this.elements,o=n._x,s=n._y,a=n._z,l=n._w,c=o+o,u=s+s,d=a+a,h=o*c,f=o*u,m=o*d,T=s*u,Q=s*d,_=a*d,v=l*c,y=l*u,b=l*d,E=r.x,x=r.y,L=r.z;return i[0]=(1-(T+_))*E,i[1]=(f+b)*E,i[2]=(m-y)*E,i[3]=0,i[4]=(f-b)*x,i[5]=(1-(h+_))*x,i[6]=(Q+v)*x,i[7]=0,i[8]=(m+y)*L,i[9]=(Q-v)*L,i[10]=(1-(h+T))*L,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,r){const i=this.elements;let o=fl.set(i[0],i[1],i[2]).length();const s=fl.set(i[4],i[5],i[6]).length(),a=fl.set(i[8],i[9],i[10]).length();this.determinant()<0&&(o=-o),e.x=i[12],e.y=i[13],e.z=i[14],po.copy(this);const c=1/o,u=1/s,d=1/a;return po.elements[0]*=c,po.elements[1]*=c,po.elements[2]*=c,po.elements[4]*=u,po.elements[5]*=u,po.elements[6]*=u,po.elements[8]*=d,po.elements[9]*=d,po.elements[10]*=d,n.setFromRotationMatrix(po),r.x=o,r.y=s,r.z=a,this}makePerspective(e,n,r,i,o,s,a=$s){const l=this.elements,c=2*o/(n-e),u=2*o/(r-i),d=(n+e)/(n-e),h=(r+i)/(r-i);let f,m;if(a===$s)f=-(s+o)/(s-o),m=-2*s*o/(s-o);else if(a===Od)f=-s/(s-o),m=-s*o/(s-o);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=d,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=f,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,r,i,o,s,a=$s){const l=this.elements,c=1/(n-e),u=1/(r-i),d=1/(s-o),h=(n+e)*c,f=(r+i)*u;let m,T;if(a===$s)m=(s+o)*d,T=-2*d;else if(a===Od)m=o*d,T=-1*d;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-f,l[2]=0,l[6]=0,l[10]=T,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<16;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<16;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e[n+9]=r[9],e[n+10]=r[10],e[n+11]=r[11],e[n+12]=r[12],e[n+13]=r[13],e[n+14]=r[14],e[n+15]=r[15],e}}const fl=new Le,po=new jt,t3r=new Le(0,0,0),n3r=new Le(1,1,1),ya=new Le,O5=new Le,xi=new Le,NI=new jt,DI=new c1;class B9{constructor(e=0,n=0,r=0,i=B9.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,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,n,r,i=this._order){return this._x=e,this._y=n,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,n=this._order,r=!0){const i=e.elements,o=i[0],s=i[4],a=i[8],l=i[1],c=i[5],u=i[9],d=i[2],h=i[6],f=i[10];switch(n){case"XYZ":this._y=Math.asin(Pr(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Pr(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,f),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-d,o),this._z=0);break;case"ZXY":this._x=Math.asin(Pr(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-d,f),this._z=Math.atan2(-s,c)):(this._y=0,this._z=Math.atan2(l,o));break;case"ZYX":this._y=Math.asin(-Pr(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(h,f),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-s,c));break;case"YZX":this._z=Math.asin(Pr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-d,o)):(this._x=0,this._y=Math.atan2(a,f));break;case"XZY":this._z=Math.asin(-Pr(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-u,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return NI.makeRotationFromQuaternion(e),this.setFromRotationMatrix(NI,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return DI.setFromEuler(this),this.setFromQuaternion(DI,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=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+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}}B9.DEFAULT_ORDER="XYZ";class vG{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let n=0;n1){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 o(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=o(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 c=0,u=l.length;c0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(r.geometries=a),l.length>0&&(r.materials=l),c.length>0&&(r.textures=c),u.length>0&&(r.images=u),d.length>0&&(r.shapes=d),h.length>0&&(r.skeletons=h),f.length>0&&(r.animations=f),m.length>0&&(r.nodes=m)}return r.object=i,r;function s(a){const l=[];for(const c in a){const u=a[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!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)),n===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(o)):i.set(0,0,0)}static getBarycoord(e,n,r,i,o){ho.subVectors(i,n),Ms.subVectors(r,n),m_.subVectors(e,n);const s=ho.dot(ho),a=ho.dot(Ms),l=ho.dot(m_),c=Ms.dot(Ms),u=Ms.dot(m_),d=s*c-a*a;if(d===0)return o.set(-2,-1,-1);const h=1/d,f=(c*l-a*u)*h,m=(s*u-a*l)*h;return o.set(1-f-m,m,f)}static containsPoint(e,n,r,i){return this.getBarycoord(e,n,r,i,Os),Os.x>=0&&Os.y>=0&&Os.x+Os.y<=1}static getUV(e,n,r,i,o,s,a,l){return N5===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),N5=!0),this.getInterpolation(e,n,r,i,o,s,a,l)}static getInterpolation(e,n,r,i,o,s,a,l){return this.getBarycoord(e,n,r,i,Os),l.setScalar(0),l.addScaledVector(o,Os.x),l.addScaledVector(s,Os.y),l.addScaledVector(a,Os.z),l}static isFrontFacing(e,n,r,i){return ho.subVectors(r,n),Ms.subVectors(e,n),ho.cross(Ms).dot(i)<0}set(e,n,r){return this.a.copy(e),this.b.copy(n),this.c.copy(r),this}setFromPointsAndIndices(e,n,r,i){return this.a.copy(e[n]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,r,i){return this.a.fromBufferAttribute(e,n),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 ho.subVectors(this.c,this.b),Ms.subVectors(this.a,this.b),ho.cross(Ms).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return _o.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return _o.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,r,i,o){return N5===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),N5=!0),_o.getInterpolation(e,this.a,this.b,this.c,n,r,i,o)}getInterpolation(e,n,r,i,o){return _o.getInterpolation(e,this.a,this.b,this.c,n,r,i,o)}containsPoint(e){return _o.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return _o.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,i=this.b,o=this.c;let s,a;hl.subVectors(i,r),Tl.subVectors(o,r),g_.subVectors(e,r);const l=hl.dot(g_),c=Tl.dot(g_);if(l<=0&&c<=0)return n.copy(r);__.subVectors(e,i);const u=hl.dot(__),d=Tl.dot(__);if(u>=0&&d<=u)return n.copy(i);const h=l*d-u*c;if(h<=0&&l>=0&&u<=0)return s=l/(l-u),n.copy(r).addScaledVector(hl,s);Q_.subVectors(e,o);const f=hl.dot(Q_),m=Tl.dot(Q_);if(m>=0&&f<=m)return n.copy(o);const T=f*c-l*m;if(T<=0&&c>=0&&m<=0)return a=c/(c-m),n.copy(r).addScaledVector(Tl,a);const Q=u*m-f*d;if(Q<=0&&d-u>=0&&f-m>=0)return VI.subVectors(o,i),a=(d-u)/(d-u+(f-m)),n.copy(i).addScaledVector(VI,a);const _=1/(Q+T+h);return s=T*_,a=h*_,n.copy(r).addScaledVector(hl,s).addScaledVector(Tl,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const yG={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},ba={h:0,s:0,l:0},D5={h:0,s:0,l:0};function v_(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class It{constructor(e,n,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,r)}set(e,n,r){if(n===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,n,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=Zn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,mn.toWorkingColorSpace(this,n),this}setRGB(e,n,r,i=mn.workingColorSpace){return this.r=e,this.g=n,this.b=r,mn.toWorkingColorSpace(this,i),this}setHSL(e,n,r,i=mn.workingColorSpace){if(e=vE(e,1),n=Pr(n,0,1),r=Pr(r,0,1),n===0)this.r=this.g=this.b=r;else{const o=r<=.5?r*(1+n):r+n-r*n,s=2*r-o;this.r=v_(s,o,e+1/3),this.g=v_(s,o,e),this.b=v_(s,o,e-1/3)}return mn.toWorkingColorSpace(this,i),this}setStyle(e,n=Zn){function r(o){o!==void 0&&parseFloat(o)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let o;const s=i[1],a=i[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,n);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,n);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const o=i[1],s=o.length;if(s===3)return this.setRGB(parseInt(o.charAt(0),16)/15,parseInt(o.charAt(1),16)/15,parseInt(o.charAt(2),16)/15,n);if(s===6)return this.setHex(parseInt(o,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=Zn){const r=yG[e.toLowerCase()];return r!==void 0?this.setHex(r,n):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=Gl(e.r),this.g=Gl(e.g),this.b=Gl(e.b),this}copyLinearToSRGB(e){return this.r=l_(e.r),this.g=l_(e.g),this.b=l_(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Zn){return mn.fromWorkingColorSpace(Dr.copy(this),e),Math.round(Pr(Dr.r*255,0,255))*65536+Math.round(Pr(Dr.g*255,0,255))*256+Math.round(Pr(Dr.b*255,0,255))}getHexString(e=Zn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=mn.workingColorSpace){mn.fromWorkingColorSpace(Dr.copy(this),n);const r=Dr.r,i=Dr.g,o=Dr.b,s=Math.max(r,i,o),a=Math.min(r,i,o);let l,c;const u=(a+s)/2;if(a===s)l=0,c=0;else{const d=s-a;switch(c=u<=.5?d/(s+a):d/(2-s-a),s){case r:l=(i-o)/d+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const r=e[n];if(r===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){console.warn(`THREE.Material: '${n}' 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[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(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!==Ul&&(r.blending=this.blending),this.side!==ea&&(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!==sv&&(r.blendSrc=this.blendSrc),this.blendDst!==av&&(r.blendDst=this.blendDst),this.blendEquation!==j1&&(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!==Ld&&(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!==LI&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==al&&(r.stencilFail=this.stencilFail),this.stencilZFail!==al&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==al&&(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(o){const s=[];for(const a in o){const l=o[a];delete l.metadata,s.push(l)}return s}if(n){const o=i(e.textures),s=i(e.images);o.length>0&&(r.textures=o),s.length>0&&(r.images=s)}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 n=e.clippingPlanes;let r=null;if(n!==null){const i=n.length;r=new Array(i);for(let o=0;o!==i;++o)r[o]=n[o].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 Va extends bo{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new It(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=mE,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 nr=new Le,I5=new Zt;class ti{constructor(e,n,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=n,this.count=e!==void 0?e.length/n:0,this.normalized=r,this.usage=fv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Bs,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,n){this.updateRanges.push({start:e,count:n})}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,n,r){e*=this.itemSize,r*=n.itemSize;for(let i=0,o=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const r=this.attributes;for(const l in r){const c=r[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let o=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let d=0,h=c.length;d0&&(i[l]=u,o=!0)}o&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));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 n={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(n));const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(n))}const o=e.morphAttributes;for(const c in o){const u=[],d=o[c];for(let h=0,f=d.length;h0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=i.length;o(e.far-e.near)**2))&&(FI.copy(o).invert(),k1.copy(e.ray).applyMatrix4(FI),!(r.boundingBox!==null&&k1.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,n,k1)))}_computeIntersections(e,n,r){let i;const o=this.geometry,s=this.material,a=o.index,l=o.attributes.position,c=o.attributes.uv,u=o.attributes.uv1,d=o.attributes.normal,h=o.groups,f=o.drawRange;if(a!==null)if(Array.isArray(s))for(let m=0,T=h.length;mn.far?null:{distance:c,point:$5.clone(),object:t}}function U5(t,e,n,r,i,o,s,a,l,c){t.getVertexPosition(a,gl),t.getVertexPosition(l,_l),t.getVertexPosition(c,Ql);const u=u3r(t,e,n,r,gl,_l,Ql,B5);if(u){i&&(H5.fromBufferAttribute(i,a),V5.fromBufferAttribute(i,l),F5.fromBufferAttribute(i,c),u.uv=_o.getInterpolation(B5,gl,_l,Ql,H5,V5,F5,new Zt)),o&&(H5.fromBufferAttribute(o,a),V5.fromBufferAttribute(o,l),F5.fromBufferAttribute(o,c),u.uv1=_o.getInterpolation(B5,gl,_l,Ql,H5,V5,F5,new Zt),u.uv2=u.uv1),s&&($I.fromBufferAttribute(s,a),UI.fromBufferAttribute(s,l),GI.fromBufferAttribute(s,c),u.normal=_o.getInterpolation(B5,gl,_l,Ql,$I,UI,GI,new Le),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const d={a,b:l,c,normal:new Le,materialIndex:0};_o.getNormal(gl,_l,Ql,d.normal),u.face=d}return u}class za extends hs{constructor(e=1,n=1,r=1,i=1,o=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:i,heightSegments:o,depthSegments:s};const a=this;i=Math.floor(i),o=Math.floor(o),s=Math.floor(s);const l=[],c=[],u=[],d=[];let h=0,f=0;m("z","y","x",-1,-1,r,n,e,s,o,0),m("z","y","x",1,-1,r,n,-e,s,o,1),m("x","z","y",1,1,e,r,n,i,s,2),m("x","z","y",1,-1,e,r,-n,i,s,3),m("x","y","z",1,-1,e,n,r,i,o,4),m("x","y","z",-1,-1,e,n,-r,i,o,5),this.setIndex(l),this.setAttribute("position",new Ks(c,3)),this.setAttribute("normal",new Ks(u,3)),this.setAttribute("uv",new Ks(d,2));function m(T,Q,_,v,y,b,E,x,L,M,C){const A=b/L,I=E/M,N=b/2,V=E/2,R=x/2,B=L+1,F=M+1;let U=0,G=0;const Z=new Le;for(let Y=0;Y0?1:-1,u.push(Z.x,Z.y,Z.z),d.push(pe/L),d.push(1-Y/M),U+=1}}for(let Y=0;Y0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(n.extensions=r),n}}class SG extends jn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new jt,this.projectionMatrix=new jt,this.projectionMatrixInverse=new jt,this.coordinateSystem=$s}copy(e,n){return super.copy(e,n),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,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Jr extends SG{constructor(e=50,n=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=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),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 n=.5*this.getFilmHeight()/e;this.fov=vc*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(U4*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return vc*2*Math.atan(Math.tan(U4*.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,n,r,i,o,s){this.aspect=e/n,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=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(U4*.5*this.fov)/this.zoom,r=2*n,i=this.aspect*r,o=-.5*i;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,c=s.fullHeight;o+=s.offsetX*i/l,n-=s.offsetY*r/c,i*=s.width/l,r*=s.height/c}const a=this.filmOffset;a!==0&&(o+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(o,o+i,n,n-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const vl=-90,yl=1;class _3r extends jn{constructor(e,n,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Jr(vl,yl,e,n);i.layers=this.layers,this.add(i);const o=new Jr(vl,yl,e,n);o.layers=this.layers,this.add(o);const s=new Jr(vl,yl,e,n);s.layers=this.layers,this.add(s);const a=new Jr(vl,yl,e,n);a.layers=this.layers,this.add(a);const l=new Jr(vl,yl,e,n);l.layers=this.layers,this.add(l);const c=new Jr(vl,yl,e,n);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[r,i,o,s,a,l]=n;for(const c of n)this.remove(c);if(e===$s)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),o.up.set(0,0,-1),o.lookAt(0,1,0),s.up.set(0,0,1),s.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===Od)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),o.up.set(0,0,1),o.lookAt(0,1,0),s.up.set(0,0,-1),s.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 c of n)this.add(c),c.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[o,s,a,l,c,u]=this.children,d=e.getRenderTarget(),h=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),m=e.xr.enabled;e.xr.enabled=!1;const T=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(n,o),e.setRenderTarget(r,1,i),e.render(n,s),e.setRenderTarget(r,2,i),e.render(n,a),e.setRenderTarget(r,3,i),e.render(n,l),e.setRenderTarget(r,4,i),e.render(n,c),r.texture.generateMipmaps=T,e.setRenderTarget(r,5,i),e.render(n,u),e.setRenderTarget(d,h,f),e.xr.enabled=m,r.texture.needsPMREMUpdate=!0}}class LG extends Cr{constructor(e,n,r,i,o,s,a,l,c,u){e=e!==void 0?e:[],n=n!==void 0?n:Tc,super(e,n,r,i,o,s,a,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Q3r extends E2{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];n.encoding!==void 0&&(q4("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===s2?Zn:ji),this.texture=new LG(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:di}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` +}`;class x2 extends bo{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=p3r,this.fragmentShader=h3r,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=yc(e.uniforms),this.uniformsGroups=d3r(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 n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const i in this.uniforms){const s=this.uniforms[i].value;s&&s.isTexture?n.uniforms[i]={type:"t",value:s.toJSON(e).uuid}:s&&s.isColor?n.uniforms[i]={type:"c",value:s.getHex()}:s&&s.isVector2?n.uniforms[i]={type:"v2",value:s.toArray()}:s&&s.isVector3?n.uniforms[i]={type:"v3",value:s.toArray()}:s&&s.isVector4?n.uniforms[i]={type:"v4",value:s.toArray()}:s&&s.isMatrix3?n.uniforms[i]={type:"m3",value:s.toArray()}:s&&s.isMatrix4?n.uniforms[i]={type:"m4",value:s.toArray()}:n.uniforms[i]={value:s}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(n.extensions=r),n}}class SG extends jn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new jt,this.projectionMatrix=new jt,this.projectionMatrixInverse=new jt,this.coordinateSystem=$s}copy(e,n){return super.copy(e,n),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,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Jr extends SG{constructor(e=50,n=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=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),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 n=.5*this.getFilmHeight()/e;this.fov=vc*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(U4*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return vc*2*Math.atan(Math.tan(U4*.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,n,r,i,o,s){this.aspect=e/n,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=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(U4*.5*this.fov)/this.zoom,r=2*n,i=this.aspect*r,o=-.5*i;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,c=s.fullHeight;o+=s.offsetX*i/l,n-=s.offsetY*r/c,i*=s.width/l,r*=s.height/c}const a=this.filmOffset;a!==0&&(o+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(o,o+i,n,n-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const vl=-90,yl=1;class T3r extends jn{constructor(e,n,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Jr(vl,yl,e,n);i.layers=this.layers,this.add(i);const o=new Jr(vl,yl,e,n);o.layers=this.layers,this.add(o);const s=new Jr(vl,yl,e,n);s.layers=this.layers,this.add(s);const a=new Jr(vl,yl,e,n);a.layers=this.layers,this.add(a);const l=new Jr(vl,yl,e,n);l.layers=this.layers,this.add(l);const c=new Jr(vl,yl,e,n);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[r,i,o,s,a,l]=n;for(const c of n)this.remove(c);if(e===$s)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),o.up.set(0,0,-1),o.lookAt(0,1,0),s.up.set(0,0,1),s.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===Od)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),o.up.set(0,0,1),o.lookAt(0,1,0),s.up.set(0,0,-1),s.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 c of n)this.add(c),c.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[o,s,a,l,c,u]=this.children,d=e.getRenderTarget(),h=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),m=e.xr.enabled;e.xr.enabled=!1;const T=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(n,o),e.setRenderTarget(r,1,i),e.render(n,s),e.setRenderTarget(r,2,i),e.render(n,a),e.setRenderTarget(r,3,i),e.render(n,l),e.setRenderTarget(r,4,i),e.render(n,c),r.texture.generateMipmaps=T,e.setRenderTarget(r,5,i),e.render(n,u),e.setRenderTarget(d,h,f),e.xr.enabled=m,r.texture.needsPMREMUpdate=!0}}class LG extends Cr{constructor(e,n,r,i,o,s,a,l,c,u){e=e!==void 0?e:[],n=n!==void 0?n:Tc,super(e,n,r,i,o,s,a,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class m3r extends E2{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];n.encoding!==void 0&&(q4("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===s2?Zn:ji),this.texture=new LG(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:di}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -453,9 +453,9 @@ ${l}`;navigator.clipboard.writeText(c)}else navigator.clipboard.writeText(e);thi gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},i=new za(5,5,5),o=new x2({name:"CubemapFromEquirect",uniforms:yc(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:gi,blending:Ua});o.uniforms.tEquirect.value=n;const s=new ei(i,o),a=n.minFilter;return n.minFilter===b2&&(n.minFilter=di),new _3r(1,10,this).update(e,s),n.minFilter=a,s.geometry.dispose(),s.material.dispose(),this}clear(e,n,r,i){const o=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(n,r,i);e.setRenderTarget(o)}}const E_=new Le,v3r=new Le,y3r=new zt;class U1{constructor(e=new Le(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,r,i){return this.normal.set(e,n,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,r){const i=E_.subVectors(r,n).cross(v3r.subVectors(e,n)).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,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const r=e.delta(E_),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const o=-(e.start.dot(this.normal)+this.constant)/i;return o<0||o>1?null:n.copy(e.start).addScaledVector(r,o)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n<0&&r>0||r<0&&n>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,n){const r=n||y3r.getNormalMatrix(e),i=this.coplanarPoint(E_).applyMatrix4(e),o=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(o),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 P1=new ps,G5=new Le;class yE{constructor(e=new U1,n=new U1,r=new U1,i=new U1,o=new U1,s=new U1){this.planes=[e,n,r,i,o,s]}set(e,n,r,i,o,s){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(r),a[3].copy(i),a[4].copy(o),a[5].copy(s),this}copy(e){const n=this.planes;for(let r=0;r<6;r++)n[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,n=$s){const r=this.planes,i=e.elements,o=i[0],s=i[1],a=i[2],l=i[3],c=i[4],u=i[5],d=i[6],h=i[7],f=i[8],m=i[9],T=i[10],Q=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(l-o,h-c,Q-f,b-_).normalize(),r[1].setComponents(l+o,h+c,Q+f,b+_).normalize(),r[2].setComponents(l+s,h+u,Q+m,b+v).normalize(),r[3].setComponents(l-s,h-u,Q-m,b-v).normalize(),r[4].setComponents(l-a,h-d,Q-T,b-y).normalize(),n===$s)r[5].setComponents(l+a,h+d,Q+T,b+y).normalize();else if(n===Od)r[5].setComponents(a,d,T,y).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),P1.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),P1.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(P1)}intersectsSprite(e){return P1.center.set(0,0,0),P1.radius=.7071067811865476,P1.applyMatrix4(e.matrixWorld),this.intersectsSphere(P1)}intersectsSphere(e){const n=this.planes,r=e.center,i=-e.radius;for(let o=0;o<6;o++)if(n[o].distanceToPoint(r)0?e.max.x:e.min.x,G5.y=i.normal.y>0?e.max.y:e.min.y,G5.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(G5)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let r=0;r<6;r++)if(n[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function CG(){let t=null,e=!1,n=null,r=null;function i(o,s){n(o,s),r=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(o){n=o},setContext:function(o){t=o}}}function b3r(t,e){const n=e.isWebGL2,r=new WeakMap;function i(c,u){const d=c.array,h=c.usage,f=d.byteLength,m=t.createBuffer();t.bindBuffer(u,m),t.bufferData(u,d,h),c.onUploadCallback();let T;if(d instanceof Float32Array)T=t.FLOAT;else if(d instanceof Uint16Array)if(c.isFloat16BufferAttribute)if(n)T=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else T=t.UNSIGNED_SHORT;else if(d instanceof Int16Array)T=t.SHORT;else if(d instanceof Uint32Array)T=t.UNSIGNED_INT;else if(d instanceof Int32Array)T=t.INT;else if(d instanceof Int8Array)T=t.BYTE;else if(d instanceof Uint8Array)T=t.UNSIGNED_BYTE;else if(d instanceof Uint8ClampedArray)T=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+d);return{buffer:m,type:T,bytesPerElement:d.BYTES_PER_ELEMENT,version:c.version,size:f}}function o(c,u,d){const h=u.array,f=u._updateRange,m=u.updateRanges;if(t.bindBuffer(d,c),f.count===-1&&m.length===0&&t.bufferSubData(d,0,h),m.length!==0){for(let T=0,Q=m.length;T1?null:n.copy(e.start).addScaledVector(r,o)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n<0&&r>0||r<0&&n>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,n){const r=n||_3r.getNormalMatrix(e),i=this.coplanarPoint(E_).applyMatrix4(e),o=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(o),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 P1=new ps,G5=new Le;class yE{constructor(e=new U1,n=new U1,r=new U1,i=new U1,o=new U1,s=new U1){this.planes=[e,n,r,i,o,s]}set(e,n,r,i,o,s){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(r),a[3].copy(i),a[4].copy(o),a[5].copy(s),this}copy(e){const n=this.planes;for(let r=0;r<6;r++)n[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,n=$s){const r=this.planes,i=e.elements,o=i[0],s=i[1],a=i[2],l=i[3],c=i[4],u=i[5],d=i[6],h=i[7],f=i[8],m=i[9],T=i[10],Q=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(l-o,h-c,Q-f,b-_).normalize(),r[1].setComponents(l+o,h+c,Q+f,b+_).normalize(),r[2].setComponents(l+s,h+u,Q+m,b+v).normalize(),r[3].setComponents(l-s,h-u,Q-m,b-v).normalize(),r[4].setComponents(l-a,h-d,Q-T,b-y).normalize(),n===$s)r[5].setComponents(l+a,h+d,Q+T,b+y).normalize();else if(n===Od)r[5].setComponents(a,d,T,y).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),P1.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),P1.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(P1)}intersectsSprite(e){return P1.center.set(0,0,0),P1.radius=.7071067811865476,P1.applyMatrix4(e.matrixWorld),this.intersectsSphere(P1)}intersectsSphere(e){const n=this.planes,r=e.center,i=-e.radius;for(let o=0;o<6;o++)if(n[o].distanceToPoint(r)0?e.max.x:e.min.x,G5.y=i.normal.y>0?e.max.y:e.min.y,G5.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(G5)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let r=0;r<6;r++)if(n[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function CG(){let t=null,e=!1,n=null,r=null;function i(o,s){n(o,s),r=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(o){n=o},setContext:function(o){t=o}}}function Q3r(t,e){const n=e.isWebGL2,r=new WeakMap;function i(c,u){const d=c.array,h=c.usage,f=d.byteLength,m=t.createBuffer();t.bindBuffer(u,m),t.bufferData(u,d,h),c.onUploadCallback();let T;if(d instanceof Float32Array)T=t.FLOAT;else if(d instanceof Uint16Array)if(c.isFloat16BufferAttribute)if(n)T=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else T=t.UNSIGNED_SHORT;else if(d instanceof Int16Array)T=t.SHORT;else if(d instanceof Uint32Array)T=t.UNSIGNED_INT;else if(d instanceof Int32Array)T=t.INT;else if(d instanceof Int8Array)T=t.BYTE;else if(d instanceof Uint8Array)T=t.UNSIGNED_BYTE;else if(d instanceof Uint8ClampedArray)T=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+d);return{buffer:m,type:T,bytesPerElement:d.BYTES_PER_ELEMENT,version:c.version,size:f}}function o(c,u,d){const h=u.array,f=u._updateRange,m=u.updateRanges;if(t.bindBuffer(d,c),f.count===-1&&m.length===0&&t.bufferSubData(d,0,h),m.length!==0){for(let T=0,Q=m.length;T 0 +#endif`,I3r=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { @@ -652,26 +652,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #pragma unroll_loop_end if ( clipped ) discard; #endif -#endif`,V3r=`#if NUM_CLIPPING_PLANES > 0 +#endif`,k3r=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,F3r=`#if NUM_CLIPPING_PLANES > 0 +#endif`,P3r=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; -#endif`,B3r=`#if NUM_CLIPPING_PLANES > 0 +#endif`,H3r=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`,$3r=`#if defined( USE_COLOR_ALPHA ) +#endif`,V3r=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`,U3r=`#if defined( USE_COLOR_ALPHA ) +#endif`,F3r=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`,G3r=`#if defined( USE_COLOR_ALPHA ) +#endif`,B3r=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) varying vec3 vColor; -#endif`,q3r=`#if defined( USE_COLOR_ALPHA ) +#endif`,$3r=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) vColor = vec3( 1.0 ); @@ -681,7 +681,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; -#endif`,z3r=`#define PI 3.141592653589793 +#endif`,U3r=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -759,7 +759,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,j3r=`#ifdef ENVMAP_TYPE_CUBE_UV +} // validated`,G3r=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -857,7 +857,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`,W3r=`vec3 transformedNormal = objectNormal; +#endif`,q3r=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif @@ -886,18 +886,18 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`,Y3r=`#ifdef USE_DISPLACEMENTMAP +#endif`,z3r=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`,K3r=`#ifdef USE_DISPLACEMENTMAP +#endif`,j3r=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,Z3r=`#ifdef USE_EMISSIVEMAP +#endif`,W3r=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,X3r=`#ifdef USE_EMISSIVEMAP +#endif`,Y3r=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`,J3r="gl_FragColor = linearToOutputTexel( gl_FragColor );",e4r=` +#endif`,K3r="gl_FragColor = linearToOutputTexel( gl_FragColor );",Z3r=` const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( vec3( 0.8224621, 0.177538, 0.0 ), vec3( 0.0331941, 0.9668058, 0.0 ), @@ -925,7 +925,7 @@ vec4 LinearToLinear( in vec4 value ) { } vec4 LinearTosRGB( in vec4 value ) { return sRGBTransferOETF( value ); -}`,t4r=`#ifdef USE_ENVMAP +}`,X3r=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -954,7 +954,7 @@ vec4 LinearTosRGB( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`,n4r=`#ifdef USE_ENVMAP +#endif`,J3r=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; #ifdef ENVMAP_TYPE_CUBE @@ -963,7 +963,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`,r4r=`#ifdef USE_ENVMAP +#endif`,e4r=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS @@ -974,7 +974,7 @@ vec4 LinearTosRGB( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`,i4r=`#ifdef USE_ENVMAP +#endif`,t4r=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif @@ -985,7 +985,7 @@ vec4 LinearTosRGB( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`,o4r=`#ifdef USE_ENVMAP +#endif`,n4r=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -1002,18 +1002,18 @@ vec4 LinearTosRGB( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`,s4r=`#ifdef USE_FOG +#endif`,r4r=`#ifdef USE_FOG vFogDepth = - mvPosition.z; -#endif`,a4r=`#ifdef USE_FOG +#endif`,i4r=`#ifdef USE_FOG varying float vFogDepth; -#endif`,l4r=`#ifdef USE_FOG +#endif`,o4r=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,c4r=`#ifdef USE_FOG +#endif`,s4r=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -1022,7 +1022,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`,u4r=`#ifdef USE_GRADIENTMAP +#endif`,a4r=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -1034,16 +1034,16 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif -}`,d4r=`#ifdef USE_LIGHTMAP +}`,l4r=`#ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; reflectedLight.indirectDiffuse += lightMapIrradiance; -#endif`,f4r=`#ifdef USE_LIGHTMAP +#endif`,c4r=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`,p4r=`LambertMaterial material; +#endif`,u4r=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,h4r=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,d4r=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; @@ -1057,7 +1057,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,T4r=`uniform bool receiveShadow; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,f4r=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; @@ -1180,7 +1180,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`,m4r=`#ifdef USE_ENVMAP +#endif`,p4r=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -1213,8 +1213,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi #endif } #endif -#endif`,g4r=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,_4r=`varying vec3 vViewPosition; +#endif`,h4r=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,T4r=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -1226,11 +1226,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Q4r=`BlinnPhongMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,m4r=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`,v4r=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,g4r=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -1247,7 +1247,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,y4r=`PhysicalMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,_4r=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -1330,7 +1330,7 @@ material.roughness = min( material.roughness, 1.0 ); material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,b4r=`struct PhysicalMaterial { +#endif`,Q4r=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -1630,7 +1630,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,E4r=` +}`,v4r=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); @@ -1745,7 +1745,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,x4r=`#if defined( RE_IndirectDiffuse ) +#endif`,y4r=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -1764,25 +1764,25 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif -#endif`,S4r=`#if defined( RE_IndirectDiffuse ) +#endif`,b4r=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,L4r=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`,E4r=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,C4r=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`,x4r=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`,A4r=`#ifdef USE_LOGDEPTHBUF +#endif`,S4r=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT varying float vFragDepth; varying float vIsPerspective; #else uniform float logDepthBufFC; #endif -#endif`,w4r=`#ifdef USE_LOGDEPTHBUF +#endif`,L4r=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); @@ -1792,16 +1792,16 @@ IncidentLight directLight; gl_Position.z *= gl_Position.w; } #endif -#endif`,M4r=`#ifdef USE_MAP +#endif`,C4r=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); #endif diffuseColor *= sampledDiffuseColor; -#endif`,O4r=`#ifdef USE_MAP +#endif`,A4r=`#ifdef USE_MAP uniform sampler2D map; -#endif`,R4r=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`,w4r=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else @@ -1813,7 +1813,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,N4r=`#if defined( USE_POINTS_UV ) +#endif`,M4r=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) @@ -1825,13 +1825,13 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`,D4r=`float metalnessFactor = metalness; +#endif`,O4r=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; -#endif`,I4r=`#ifdef USE_METALNESSMAP +#endif`,R4r=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`,k4r=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) +#endif`,N4r=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -1840,7 +1840,7 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`,P4r=`#ifdef USE_MORPHNORMALS +#endif`,D4r=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1852,7 +1852,7 @@ IncidentLight directLight; objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; #endif -#endif`,H4r=`#ifdef USE_MORPHTARGETS +#endif`,I4r=`#ifdef USE_MORPHTARGETS uniform float morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -1872,7 +1872,7 @@ IncidentLight directLight; uniform float morphTargetInfluences[ 4 ]; #endif #endif -#endif`,V4r=`#ifdef USE_MORPHTARGETS +#endif`,k4r=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1890,7 +1890,7 @@ IncidentLight directLight; transformed += morphTarget7 * morphTargetInfluences[ 7 ]; #endif #endif -#endif`,F4r=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`,P4r=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); @@ -1931,7 +1931,7 @@ IncidentLight directLight; tbn2[1] *= faceDirection; #endif #endif -vec3 nonPerturbedNormal = normal;`,B4r=`#ifdef USE_NORMALMAP_OBJECTSPACE +vec3 nonPerturbedNormal = normal;`,H4r=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -1946,25 +1946,25 @@ vec3 nonPerturbedNormal = normal;`,B4r=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,$4r=`#ifndef FLAT_SHADED +#endif`,V4r=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,U4r=`#ifndef FLAT_SHADED +#endif`,F4r=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,G4r=`#ifndef FLAT_SHADED +#endif`,B4r=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`,q4r=`#ifdef USE_NORMALMAP +#endif`,$4r=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -1986,13 +1986,13 @@ vec3 nonPerturbedNormal = normal;`,B4r=`#ifdef USE_NORMALMAP_OBJECTSPACE float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } -#endif`,z4r=`#ifdef USE_CLEARCOAT +#endif`,U4r=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,j4r=`#ifdef USE_CLEARCOAT_NORMALMAP +#endif`,G4r=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,W4r=`#ifdef USE_CLEARCOATMAP +#endif`,q4r=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP @@ -2001,18 +2001,18 @@ vec3 nonPerturbedNormal = normal;`,B4r=`#ifdef USE_NORMALMAP_OBJECTSPACE #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; -#endif`,Y4r=`#ifdef USE_IRIDESCENCEMAP +#endif`,z4r=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`,K4r=`#ifdef OPAQUE +#endif`,j4r=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Z4r=`vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,W4r=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -2053,9 +2053,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); -}`,X4r=`#ifdef PREMULTIPLIED_ALPHA +}`,Y4r=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`,J4r=`vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`,K4r=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif @@ -2063,22 +2063,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`,Z4r=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,t0r=`#ifdef DITHERING +#endif`,X4r=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`,n0r=`float roughnessFactor = roughness; +#endif`,J4r=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; -#endif`,r0r=`#ifdef USE_ROUGHNESSMAP +#endif`,e0r=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`,i0r=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,t0r=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 @@ -2255,7 +2255,7 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } -#endif`,o0r=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,n0r=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif @@ -2293,7 +2293,7 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`,s0r=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) +#endif`,r0r=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif @@ -2325,7 +2325,7 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end -#endif`,a0r=`float getShadowMask() { +#endif`,i0r=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -2357,12 +2357,12 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING #endif #endif return shadow; -}`,l0r=`#ifdef USE_SKINNING +}`,o0r=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,c0r=`#ifdef USE_SKINNING +#endif`,s0r=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -2377,7 +2377,7 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } -#endif`,u0r=`#ifdef USE_SKINNING +#endif`,a0r=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -2385,7 +2385,7 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,d0r=`#ifdef USE_SKINNING +#endif`,l0r=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -2396,17 +2396,17 @@ gl_Position = projectionMatrix * mvPosition;`,e0r=`#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`,f0r=`float specularStrength; +#endif`,c0r=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`,p0r=`#ifdef USE_SPECULARMAP +#endif`,u0r=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`,h0r=`#if defined( TONE_MAPPING ) +#endif`,d0r=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,T0r=`#ifndef saturate +#endif`,f0r=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -2442,7 +2442,7 @@ vec3 ACESFilmicToneMapping( vec3 color ) { color = ACESOutputMat * color; return saturate( color ); } -vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`,p0r=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; @@ -2463,7 +2463,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMIS material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,g0r=`#ifdef USE_TRANSMISSION +#endif`,h0r=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -2569,7 +2569,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMIS float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } -#endif`,_0r=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,T0r=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2639,7 +2639,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,Q0r=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,m0r=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2733,7 +2733,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,v0r=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,g0r=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP @@ -2804,7 +2804,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMIS #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,y0r=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 +#endif`,_0r=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; @@ -2813,12 +2813,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,m0r=`#ifdef USE_TRANSMIS worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; -#endif`;const b0r=`varying vec2 vUv; +#endif`;const Q0r=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,E0r=`uniform sampler2D t2D; +}`,v0r=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { @@ -2830,14 +2830,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,x0r=`varying vec3 vWorldDirection; +}`,y0r=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,S0r=`#ifdef ENVMAP_TYPE_CUBE +}`,b0r=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; @@ -2859,14 +2859,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,L0r=`varying vec3 vWorldDirection; +}`,E0r=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,C0r=`uniform samplerCube tCube; +}`,x0r=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; @@ -2876,7 +2876,7 @@ void main() { gl_FragColor.a *= opacity; #include #include -}`,A0r=`#include +}`,S0r=`#include #include #include #include @@ -2902,7 +2902,7 @@ void main() { #include #include vHighPrecisionZW = gl_Position.zw; -}`,w0r=`#if DEPTH_PACKING == 3200 +}`,L0r=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include @@ -2932,7 +2932,7 @@ void main() { #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif -}`,M0r=`#define DISTANCE +}`,C0r=`#define DISTANCE varying vec3 vWorldPosition; #include #include @@ -2958,7 +2958,7 @@ void main() { #include #include vWorldPosition = worldPosition.xyz; -}`,O0r=`#define DISTANCE +}`,A0r=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; @@ -2982,13 +2982,13 @@ void main () { dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); -}`,R0r=`varying vec3 vWorldDirection; +}`,w0r=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include -}`,N0r=`uniform sampler2D tEquirect; +}`,M0r=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { @@ -2997,7 +2997,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include -}`,D0r=`uniform float scale; +}`,O0r=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include @@ -3018,7 +3018,7 @@ void main() { #include #include #include -}`,I0r=`uniform vec3 diffuse; +}`,R0r=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; @@ -3046,7 +3046,7 @@ void main() { #include #include #include -}`,k0r=`#include +}`,N0r=`#include #include #include #include @@ -3077,7 +3077,7 @@ void main() { #include #include #include -}`,P0r=`uniform vec3 diffuse; +}`,D0r=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; @@ -3125,7 +3125,7 @@ void main() { #include #include #include -}`,H0r=`#define LAMBERT +}`,I0r=`#define LAMBERT varying vec3 vViewPosition; #include #include @@ -3163,7 +3163,7 @@ void main() { #include #include #include -}`,V0r=`#define LAMBERT +}`,k0r=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3220,7 +3220,7 @@ void main() { #include #include #include -}`,F0r=`#define MATCAP +}`,P0r=`#define MATCAP varying vec3 vViewPosition; #include #include @@ -3253,7 +3253,7 @@ void main() { #include #include vViewPosition = - mvPosition.xyz; -}`,B0r=`#define MATCAP +}`,H0r=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; @@ -3299,7 +3299,7 @@ void main() { #include #include #include -}`,$0r=`#define NORMAL +}`,V0r=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif @@ -3331,7 +3331,7 @@ void main() { #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif -}`,U0r=`#define NORMAL +}`,F0r=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; @@ -3352,7 +3352,7 @@ void main() { #ifdef OPAQUE gl_FragColor.a = 1.0; #endif -}`,G0r=`#define PHONG +}`,B0r=`#define PHONG varying vec3 vViewPosition; #include #include @@ -3390,7 +3390,7 @@ void main() { #include #include #include -}`,q0r=`#define PHONG +}`,$0r=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; @@ -3449,7 +3449,7 @@ void main() { #include #include #include -}`,z0r=`#define STANDARD +}`,U0r=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; @@ -3491,7 +3491,7 @@ void main() { #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif -}`,j0r=`#define STANDARD +}`,G0r=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR @@ -3613,7 +3613,7 @@ void main() { #include #include #include -}`,W0r=`#define TOON +}`,q0r=`#define TOON varying vec3 vViewPosition; #include #include @@ -3649,7 +3649,7 @@ void main() { #include #include #include -}`,Y0r=`#define TOON +}`,z0r=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3702,7 +3702,7 @@ void main() { #include #include #include -}`,K0r=`uniform float size; +}`,j0r=`uniform float size; uniform float scale; #include #include @@ -3732,7 +3732,7 @@ void main() { #include #include #include -}`,Z0r=`uniform vec3 diffuse; +}`,W0r=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3757,7 +3757,7 @@ void main() { #include #include #include -}`,X0r=`#include +}`,Y0r=`#include #include #include #include @@ -3779,7 +3779,7 @@ void main() { #include #include #include -}`,J0r=`uniform vec3 color; +}`,K0r=`uniform vec3 color; uniform float opacity; #include #include @@ -3795,7 +3795,7 @@ void main() { #include #include #include -}`,e6r=`uniform float rotation; +}`,Z0r=`uniform float rotation; uniform vec2 center; #include #include @@ -3821,7 +3821,7 @@ void main() { #include #include #include -}`,t6r=`uniform vec3 diffuse; +}`,X0r=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3846,7 +3846,7 @@ void main() { #include #include #include -}`,Gt={alphahash_fragment:E3r,alphahash_pars_fragment:x3r,alphamap_fragment:S3r,alphamap_pars_fragment:L3r,alphatest_fragment:C3r,alphatest_pars_fragment:A3r,aomap_fragment:w3r,aomap_pars_fragment:M3r,batching_pars_vertex:O3r,batching_vertex:R3r,begin_vertex:N3r,beginnormal_vertex:D3r,bsdfs:I3r,iridescence_fragment:k3r,bumpmap_pars_fragment:P3r,clipping_planes_fragment:H3r,clipping_planes_pars_fragment:V3r,clipping_planes_pars_vertex:F3r,clipping_planes_vertex:B3r,color_fragment:$3r,color_pars_fragment:U3r,color_pars_vertex:G3r,color_vertex:q3r,common:z3r,cube_uv_reflection_fragment:j3r,defaultnormal_vertex:W3r,displacementmap_pars_vertex:Y3r,displacementmap_vertex:K3r,emissivemap_fragment:Z3r,emissivemap_pars_fragment:X3r,colorspace_fragment:J3r,colorspace_pars_fragment:e4r,envmap_fragment:t4r,envmap_common_pars_fragment:n4r,envmap_pars_fragment:r4r,envmap_pars_vertex:i4r,envmap_physical_pars_fragment:m4r,envmap_vertex:o4r,fog_vertex:s4r,fog_pars_vertex:a4r,fog_fragment:l4r,fog_pars_fragment:c4r,gradientmap_pars_fragment:u4r,lightmap_fragment:d4r,lightmap_pars_fragment:f4r,lights_lambert_fragment:p4r,lights_lambert_pars_fragment:h4r,lights_pars_begin:T4r,lights_toon_fragment:g4r,lights_toon_pars_fragment:_4r,lights_phong_fragment:Q4r,lights_phong_pars_fragment:v4r,lights_physical_fragment:y4r,lights_physical_pars_fragment:b4r,lights_fragment_begin:E4r,lights_fragment_maps:x4r,lights_fragment_end:S4r,logdepthbuf_fragment:L4r,logdepthbuf_pars_fragment:C4r,logdepthbuf_pars_vertex:A4r,logdepthbuf_vertex:w4r,map_fragment:M4r,map_pars_fragment:O4r,map_particle_fragment:R4r,map_particle_pars_fragment:N4r,metalnessmap_fragment:D4r,metalnessmap_pars_fragment:I4r,morphcolor_vertex:k4r,morphnormal_vertex:P4r,morphtarget_pars_vertex:H4r,morphtarget_vertex:V4r,normal_fragment_begin:F4r,normal_fragment_maps:B4r,normal_pars_fragment:$4r,normal_pars_vertex:U4r,normal_vertex:G4r,normalmap_pars_fragment:q4r,clearcoat_normal_fragment_begin:z4r,clearcoat_normal_fragment_maps:j4r,clearcoat_pars_fragment:W4r,iridescence_pars_fragment:Y4r,opaque_fragment:K4r,packing:Z4r,premultiplied_alpha_fragment:X4r,project_vertex:J4r,dithering_fragment:e0r,dithering_pars_fragment:t0r,roughnessmap_fragment:n0r,roughnessmap_pars_fragment:r0r,shadowmap_pars_fragment:i0r,shadowmap_pars_vertex:o0r,shadowmap_vertex:s0r,shadowmask_pars_fragment:a0r,skinbase_vertex:l0r,skinning_pars_vertex:c0r,skinning_vertex:u0r,skinnormal_vertex:d0r,specularmap_fragment:f0r,specularmap_pars_fragment:p0r,tonemapping_fragment:h0r,tonemapping_pars_fragment:T0r,transmission_fragment:m0r,transmission_pars_fragment:g0r,uv_pars_fragment:_0r,uv_pars_vertex:Q0r,uv_vertex:v0r,worldpos_vertex:y0r,background_vert:b0r,background_frag:E0r,backgroundCube_vert:x0r,backgroundCube_frag:S0r,cube_vert:L0r,cube_frag:C0r,depth_vert:A0r,depth_frag:w0r,distanceRGBA_vert:M0r,distanceRGBA_frag:O0r,equirect_vert:R0r,equirect_frag:N0r,linedashed_vert:D0r,linedashed_frag:I0r,meshbasic_vert:k0r,meshbasic_frag:P0r,meshlambert_vert:H0r,meshlambert_frag:V0r,meshmatcap_vert:F0r,meshmatcap_frag:B0r,meshnormal_vert:$0r,meshnormal_frag:U0r,meshphong_vert:G0r,meshphong_frag:q0r,meshphysical_vert:z0r,meshphysical_frag:j0r,meshtoon_vert:W0r,meshtoon_frag:Y0r,points_vert:K0r,points_frag:Z0r,shadow_vert:X0r,shadow_frag:J0r,sprite_vert:e6r,sprite_frag:t6r},st={common:{diffuse:{value:new It(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new zt},alphaMap:{value:null},alphaMapTransform:{value:new zt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new zt}},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 zt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new zt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new zt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new zt},normalScale:{value:new Zt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new zt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new zt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new zt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new zt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new It(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 It(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new zt},alphaTest:{value:0},uvTransform:{value:new zt}},sprite:{diffuse:{value:new It(16777215)},opacity:{value:1},center:{value:new Zt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new zt},alphaMap:{value:null},alphaMapTransform:{value:new zt},alphaTest:{value:0}}},qo={basic:{uniforms:Kr([st.common,st.specularmap,st.envmap,st.aomap,st.lightmap,st.fog]),vertexShader:Gt.meshbasic_vert,fragmentShader:Gt.meshbasic_frag},lambert:{uniforms:Kr([st.common,st.specularmap,st.envmap,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.fog,st.lights,{emissive:{value:new It(0)}}]),vertexShader:Gt.meshlambert_vert,fragmentShader:Gt.meshlambert_frag},phong:{uniforms:Kr([st.common,st.specularmap,st.envmap,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.fog,st.lights,{emissive:{value:new It(0)},specular:{value:new It(1118481)},shininess:{value:30}}]),vertexShader:Gt.meshphong_vert,fragmentShader:Gt.meshphong_frag},standard:{uniforms:Kr([st.common,st.envmap,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.roughnessmap,st.metalnessmap,st.fog,st.lights,{emissive:{value:new It(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag},toon:{uniforms:Kr([st.common,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.gradientmap,st.fog,st.lights,{emissive:{value:new It(0)}}]),vertexShader:Gt.meshtoon_vert,fragmentShader:Gt.meshtoon_frag},matcap:{uniforms:Kr([st.common,st.bumpmap,st.normalmap,st.displacementmap,st.fog,{matcap:{value:null}}]),vertexShader:Gt.meshmatcap_vert,fragmentShader:Gt.meshmatcap_frag},points:{uniforms:Kr([st.points,st.fog]),vertexShader:Gt.points_vert,fragmentShader:Gt.points_frag},dashed:{uniforms:Kr([st.common,st.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Gt.linedashed_vert,fragmentShader:Gt.linedashed_frag},depth:{uniforms:Kr([st.common,st.displacementmap]),vertexShader:Gt.depth_vert,fragmentShader:Gt.depth_frag},normal:{uniforms:Kr([st.common,st.bumpmap,st.normalmap,st.displacementmap,{opacity:{value:1}}]),vertexShader:Gt.meshnormal_vert,fragmentShader:Gt.meshnormal_frag},sprite:{uniforms:Kr([st.sprite,st.fog]),vertexShader:Gt.sprite_vert,fragmentShader:Gt.sprite_frag},background:{uniforms:{uvTransform:{value:new zt},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:Kr([st.common,st.displacementmap,{referencePosition:{value:new Le},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Gt.distanceRGBA_vert,fragmentShader:Gt.distanceRGBA_frag},shadow:{uniforms:Kr([st.lights,st.fog,{color:{value:new It(0)},opacity:{value:1}}]),vertexShader:Gt.shadow_vert,fragmentShader:Gt.shadow_frag}};qo.physical={uniforms:Kr([qo.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new zt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new zt},clearcoatNormalScale:{value:new Zt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new zt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new zt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new zt},sheen:{value:0},sheenColor:{value:new It(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new zt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new zt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new zt},transmissionSamplerSize:{value:new Zt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new zt},attenuationDistance:{value:0},attenuationColor:{value:new It(0)},specularColor:{value:new It(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new zt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new zt},anisotropyVector:{value:new Zt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new zt}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag};const q5={r:0,b:0,g:0};function n6r(t,e,n,r,i,o,s){const a=new It(0);let l=o===!0?0:1,c,u,d=null,h=0,f=null;function m(Q,_){let v=!1,y=_.isScene===!0?_.background:null;y&&y.isTexture&&(y=(_.backgroundBlurriness>0?n:e).get(y)),y===null?T(a,l):y&&y.isColor&&(T(y,1),v=!0);const b=t.xr.getEnvironmentBlendMode();b==="additive"?r.buffers.color.setClear(0,0,0,1,s):b==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,s),(t.autoClear||v)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),y&&(y.isCubeTexture||y.mapping===H9)?(u===void 0&&(u=new ei(new za(1,1,1),new x2({name:"BackgroundCubeMaterial",uniforms:yc(qo.backgroundCube.uniforms),vertexShader:qo.backgroundCube.vertexShader,fragmentShader:qo.backgroundCube.fragmentShader,side:gi,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(E,x,L){this.matrixWorld.copyPosition(L.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=y,u.material.uniforms.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=mn.getTransfer(y.colorSpace)!==Vn,(d!==y||h!==y.version||f!==t.toneMapping)&&(u.material.needsUpdate=!0,d=y,h=y.version,f=t.toneMapping),u.layers.enableAll(),Q.unshift(u,u.geometry,u.material,0,0,null)):y&&y.isTexture&&(c===void 0&&(c=new ei(new bE(2,2),new x2({name:"BackgroundMaterial",uniforms:yc(qo.background.uniforms),vertexShader:qo.background.vertexShader,fragmentShader:qo.background.fragmentShader,side:ea,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=y,c.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,c.material.toneMapped=mn.getTransfer(y.colorSpace)!==Vn,y.matrixAutoUpdate===!0&&y.updateMatrix(),c.material.uniforms.uvTransform.value.copy(y.matrix),(d!==y||h!==y.version||f!==t.toneMapping)&&(c.material.needsUpdate=!0,d=y,h=y.version,f=t.toneMapping),c.layers.enableAll(),Q.unshift(c,c.geometry,c.material,0,0,null))}function T(Q,_){Q.getRGB(q5,xG(t)),r.buffers.color.setClear(q5.r,q5.g,q5.b,_,s)}return{getClearColor:function(){return a},setClearColor:function(Q,_=1){a.set(Q),l=_,T(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(Q){l=Q,T(a,l)},render:m}}function r6r(t,e,n,r){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),s=r.isWebGL2||o!==null,a={},l=Q(null);let c=l,u=!1;function d(R,B,F,U,G){let Z=!1;if(s){const Y=T(U,F,B);c!==Y&&(c=Y,f(c.object)),Z=_(R,U,F,G),Z&&v(R,U,F,G)}else{const Y=B.wireframe===!0;(c.geometry!==U.id||c.program!==F.id||c.wireframe!==Y)&&(c.geometry=U.id,c.program=F.id,c.wireframe=Y,Z=!0)}G!==null&&n.update(G,t.ELEMENT_ARRAY_BUFFER),(Z||u)&&(u=!1,M(R,B,F,U),G!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(G).buffer))}function h(){return r.isWebGL2?t.createVertexArray():o.createVertexArrayOES()}function f(R){return r.isWebGL2?t.bindVertexArray(R):o.bindVertexArrayOES(R)}function m(R){return r.isWebGL2?t.deleteVertexArray(R):o.deleteVertexArrayOES(R)}function T(R,B,F){const U=F.wireframe===!0;let G=a[R.id];G===void 0&&(G={},a[R.id]=G);let Z=G[B.id];Z===void 0&&(Z={},G[B.id]=Z);let Y=Z[U];return Y===void 0&&(Y=Q(h()),Z[U]=Y),Y}function Q(R){const B=[],F=[],U=[];for(let G=0;G=0){const $=G[pe];let ce=Z[pe];if(ce===void 0&&(pe==="instanceMatrix"&&R.instanceMatrix&&(ce=R.instanceMatrix),pe==="instanceColor"&&R.instanceColor&&(ce=R.instanceColor)),$===void 0||$.attribute!==ce||ce&&$.data!==ce.data)return!0;Y++}return c.attributesNum!==Y||c.index!==U}function v(R,B,F,U){const G={},Z=B.attributes;let Y=0;const ee=F.getAttributes();for(const pe in ee)if(ee[pe].location>=0){let $=Z[pe];$===void 0&&(pe==="instanceMatrix"&&R.instanceMatrix&&($=R.instanceMatrix),pe==="instanceColor"&&R.instanceColor&&($=R.instanceColor));const ce={};ce.attribute=$,$&&$.data&&(ce.data=$.data),G[pe]=ce,Y++}c.attributes=G,c.attributesNum=Y,c.index=U}function y(){const R=c.newAttributes;for(let B=0,F=R.length;B=0){let K=G[ee];if(K===void 0&&(ee==="instanceMatrix"&&R.instanceMatrix&&(K=R.instanceMatrix),ee==="instanceColor"&&R.instanceColor&&(K=R.instanceColor)),K!==void 0){const $=K.normalized,ce=K.itemSize,Ee=n.get(K);if(Ee===void 0)continue;const z=Ee.buffer,re=Ee.type,he=Ee.bytesPerElement,Se=r.isWebGL2===!0&&(re===t.INT||re===t.UNSIGNED_INT||K.gpuType===sG);if(K.isInterleavedBufferAttribute){const we=K.data,se=we.stride,W=K.offset;if(we.isInstancedInterleavedBuffer){for(let j=0;j0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";L="mediump"}return L==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const s=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const l=o(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const c=s||e.has("WEBGL_draw_buffers"),u=n.logarithmicDepthBuffer===!0,d=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),f=t.getParameter(t.MAX_TEXTURE_SIZE),m=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),T=t.getParameter(t.MAX_VERTEX_ATTRIBS),Q=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),_=t.getParameter(t.MAX_VARYING_VECTORS),v=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),y=h>0,b=s||e.has("OES_texture_float"),E=y&&b,x=s?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:s,drawBuffers:c,getMaxAnisotropy:i,getMaxPrecision:o,precision:a,logarithmicDepthBuffer:u,maxTextures:d,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:m,maxAttributes:T,maxVertexUniforms:Q,maxVaryings:_,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:E,maxSamples:x}}function s6r(t){const e=this;let n=null,r=0,i=!1,o=!1;const s=new U1,a=new zt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,h){const f=d.length!==0||h||r!==0||i;return i=h,r=d.length,f},this.beginShadows=function(){o=!0,u(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(d,h){n=u(d,h,0)},this.setState=function(d,h,f){const m=d.clippingPlanes,T=d.clipIntersection,Q=d.clipShadows,_=t.get(d);if(!i||m===null||m.length===0||o&&!Q)o?u(null):c();else{const v=o?0:r,y=v*4;let b=_.clippingState||null;l.value=b,b=u(m,h,y,f);for(let E=0;E!==y;++E)b[E]=n[E];_.clippingState=b,this.numIntersection=T?this.numPlanes:0,this.numPlanes+=v}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(d,h,f,m){const T=d!==null?d.length:0;let Q=null;if(T!==0){if(Q=l.value,m!==!0||Q===null){const _=f+T*4,v=h.matrixWorldInverse;a.getNormalMatrix(v),(Q===null||Q.length<_)&&(Q=new Float32Array(_));for(let y=0,b=f;y!==T;++y,b+=4)s.copy(d[y]).applyMatrix4(v,a),s.normal.toArray(Q,b),Q[b+3]=s.constant}l.value=Q,l.needsUpdate=!0}return e.numPlanes=T,e.numIntersection=0,Q}}function a6r(t){let e=new WeakMap;function n(s,a){return a===lv?s.mapping=Tc:a===cv&&(s.mapping=mc),s}function r(s){if(s&&s.isTexture){const a=s.mapping;if(a===lv||a===cv)if(e.has(s)){const l=e.get(s).texture;return n(l,s.mapping)}else{const l=s.image;if(l&&l.height>0){const c=new Q3r(l.height/2);return c.fromEquirectangularTexture(t,s),e.set(s,c),s.addEventListener("dispose",i),n(c.texture,s.mapping)}else return null}}return s}function i(s){const a=s.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function o(){e=new WeakMap}return{get:r,dispose:o}}class EE extends SG{constructor(e=-1,n=1,r=1,i=-1,o=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=o,this.far=s,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),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,n,r,i,o,s){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=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let o=r-e,s=r+e,a=i+n,l=i-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;o+=c*this.view.offsetX,s=o+c*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Rl=4,qI=[.125,.215,.35,.446,.526,.582],W1=20,x_=new EE,zI=new It;let S_=null,L_=0,C_=0;const G1=(1+Math.sqrt(5))/2,bl=1/G1,jI=[new Le(1,1,1),new Le(-1,1,1),new Le(1,1,-1),new Le(-1,1,-1),new Le(0,G1,bl),new Le(0,G1,-bl),new Le(bl,0,G1),new Le(-bl,0,G1),new Le(G1,bl,0),new Le(-G1,bl,0)];class WI{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,n=0,r=.1,i=100){S_=this._renderer.getRenderTarget(),L_=this._renderer.getActiveCubeFace(),C_=this._renderer.getActiveMipmapLevel(),this._setSize(256);const o=this._allocateTargets();return o.depthBuffer=!0,this._sceneToCubeUV(e,r,i,o),n>0&&this._blur(o,0,0,n),this._applyPMREM(o),this._cleanup(o),o}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=ZI(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=KI(),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?y:0,y,y),u.setRenderTarget(i),T&&u.render(m,a),u.render(e,a)}m.geometry.dispose(),m.material.dispose(),u.toneMapping=h,u.autoClear=d,e.background=Q}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===Tc||e.mapping===mc;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=ZI()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=KI());const o=i?this._cubemapMaterial:this._equirectMaterial,s=new ei(this._lodPlanes[0],o),a=o.uniforms;a.envMap.value=e;const l=this._cubeSize;z5(n,0,0,3*l,2*l),r.setRenderTarget(n),r.render(s,x_)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let i=1;iW1&&console.warn(`sigmaRadians, ${o}, is too large and will clip, as it requested ${Q} samples when the maximum is set to ${W1}`);const _=[];let v=0;for(let L=0;Ly-Rl?i-y+Rl:0),x=4*(this._cubeSize-b);z5(n,E,x,3*b,2*b),l.setRenderTarget(n),l.render(d,x_)}}function l6r(t){const e=[],n=[],r=[];let i=t;const o=t-Rl+1+qI.length;for(let s=0;st-Rl?l=qI[s-t+Rl-1]:s===0&&(l=0),r.push(l);const c=1/(a-2),u=-c,d=1+c,h=[u,u,d,u,d,d,u,u,d,d,u,d],f=6,m=6,T=3,Q=2,_=1,v=new Float32Array(T*m*f),y=new Float32Array(Q*m*f),b=new Float32Array(_*m*f);for(let x=0;x2?0:-1,C=[L,M,0,L+2/3,M,0,L+2/3,M+1,0,L,M,0,L+2/3,M+1,0,L,M+1,0];v.set(C,T*m*x),y.set(h,Q*m*x);const A=[x,x,x,x,x,x];b.set(A,_*m*x)}const E=new hs;E.setAttribute("position",new ti(v,T)),E.setAttribute("uv",new ti(y,Q)),E.setAttribute("faceIndex",new ti(b,_)),e.push(E),i>Rl&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}function YI(t,e,n){const r=new E2(t,e,n);return r.texture.mapping=H9,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function z5(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function c6r(t,e,n){const r=new Float32Array(W1),i=new Le(0,1,0);return new x2({name:"SphericalGaussianBlur",defines:{n:W1,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:xE(),fragmentShader:` +}`,Gt={alphahash_fragment:v3r,alphahash_pars_fragment:y3r,alphamap_fragment:b3r,alphamap_pars_fragment:E3r,alphatest_fragment:x3r,alphatest_pars_fragment:S3r,aomap_fragment:L3r,aomap_pars_fragment:C3r,batching_pars_vertex:A3r,batching_vertex:w3r,begin_vertex:M3r,beginnormal_vertex:O3r,bsdfs:R3r,iridescence_fragment:N3r,bumpmap_pars_fragment:D3r,clipping_planes_fragment:I3r,clipping_planes_pars_fragment:k3r,clipping_planes_pars_vertex:P3r,clipping_planes_vertex:H3r,color_fragment:V3r,color_pars_fragment:F3r,color_pars_vertex:B3r,color_vertex:$3r,common:U3r,cube_uv_reflection_fragment:G3r,defaultnormal_vertex:q3r,displacementmap_pars_vertex:z3r,displacementmap_vertex:j3r,emissivemap_fragment:W3r,emissivemap_pars_fragment:Y3r,colorspace_fragment:K3r,colorspace_pars_fragment:Z3r,envmap_fragment:X3r,envmap_common_pars_fragment:J3r,envmap_pars_fragment:e4r,envmap_pars_vertex:t4r,envmap_physical_pars_fragment:p4r,envmap_vertex:n4r,fog_vertex:r4r,fog_pars_vertex:i4r,fog_fragment:o4r,fog_pars_fragment:s4r,gradientmap_pars_fragment:a4r,lightmap_fragment:l4r,lightmap_pars_fragment:c4r,lights_lambert_fragment:u4r,lights_lambert_pars_fragment:d4r,lights_pars_begin:f4r,lights_toon_fragment:h4r,lights_toon_pars_fragment:T4r,lights_phong_fragment:m4r,lights_phong_pars_fragment:g4r,lights_physical_fragment:_4r,lights_physical_pars_fragment:Q4r,lights_fragment_begin:v4r,lights_fragment_maps:y4r,lights_fragment_end:b4r,logdepthbuf_fragment:E4r,logdepthbuf_pars_fragment:x4r,logdepthbuf_pars_vertex:S4r,logdepthbuf_vertex:L4r,map_fragment:C4r,map_pars_fragment:A4r,map_particle_fragment:w4r,map_particle_pars_fragment:M4r,metalnessmap_fragment:O4r,metalnessmap_pars_fragment:R4r,morphcolor_vertex:N4r,morphnormal_vertex:D4r,morphtarget_pars_vertex:I4r,morphtarget_vertex:k4r,normal_fragment_begin:P4r,normal_fragment_maps:H4r,normal_pars_fragment:V4r,normal_pars_vertex:F4r,normal_vertex:B4r,normalmap_pars_fragment:$4r,clearcoat_normal_fragment_begin:U4r,clearcoat_normal_fragment_maps:G4r,clearcoat_pars_fragment:q4r,iridescence_pars_fragment:z4r,opaque_fragment:j4r,packing:W4r,premultiplied_alpha_fragment:Y4r,project_vertex:K4r,dithering_fragment:Z4r,dithering_pars_fragment:X4r,roughnessmap_fragment:J4r,roughnessmap_pars_fragment:e0r,shadowmap_pars_fragment:t0r,shadowmap_pars_vertex:n0r,shadowmap_vertex:r0r,shadowmask_pars_fragment:i0r,skinbase_vertex:o0r,skinning_pars_vertex:s0r,skinning_vertex:a0r,skinnormal_vertex:l0r,specularmap_fragment:c0r,specularmap_pars_fragment:u0r,tonemapping_fragment:d0r,tonemapping_pars_fragment:f0r,transmission_fragment:p0r,transmission_pars_fragment:h0r,uv_pars_fragment:T0r,uv_pars_vertex:m0r,uv_vertex:g0r,worldpos_vertex:_0r,background_vert:Q0r,background_frag:v0r,backgroundCube_vert:y0r,backgroundCube_frag:b0r,cube_vert:E0r,cube_frag:x0r,depth_vert:S0r,depth_frag:L0r,distanceRGBA_vert:C0r,distanceRGBA_frag:A0r,equirect_vert:w0r,equirect_frag:M0r,linedashed_vert:O0r,linedashed_frag:R0r,meshbasic_vert:N0r,meshbasic_frag:D0r,meshlambert_vert:I0r,meshlambert_frag:k0r,meshmatcap_vert:P0r,meshmatcap_frag:H0r,meshnormal_vert:V0r,meshnormal_frag:F0r,meshphong_vert:B0r,meshphong_frag:$0r,meshphysical_vert:U0r,meshphysical_frag:G0r,meshtoon_vert:q0r,meshtoon_frag:z0r,points_vert:j0r,points_frag:W0r,shadow_vert:Y0r,shadow_frag:K0r,sprite_vert:Z0r,sprite_frag:X0r},st={common:{diffuse:{value:new It(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new zt},alphaMap:{value:null},alphaMapTransform:{value:new zt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new zt}},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 zt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new zt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new zt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new zt},normalScale:{value:new Zt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new zt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new zt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new zt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new zt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new It(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 It(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new zt},alphaTest:{value:0},uvTransform:{value:new zt}},sprite:{diffuse:{value:new It(16777215)},opacity:{value:1},center:{value:new Zt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new zt},alphaMap:{value:null},alphaMapTransform:{value:new zt},alphaTest:{value:0}}},qo={basic:{uniforms:Kr([st.common,st.specularmap,st.envmap,st.aomap,st.lightmap,st.fog]),vertexShader:Gt.meshbasic_vert,fragmentShader:Gt.meshbasic_frag},lambert:{uniforms:Kr([st.common,st.specularmap,st.envmap,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.fog,st.lights,{emissive:{value:new It(0)}}]),vertexShader:Gt.meshlambert_vert,fragmentShader:Gt.meshlambert_frag},phong:{uniforms:Kr([st.common,st.specularmap,st.envmap,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.fog,st.lights,{emissive:{value:new It(0)},specular:{value:new It(1118481)},shininess:{value:30}}]),vertexShader:Gt.meshphong_vert,fragmentShader:Gt.meshphong_frag},standard:{uniforms:Kr([st.common,st.envmap,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.roughnessmap,st.metalnessmap,st.fog,st.lights,{emissive:{value:new It(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag},toon:{uniforms:Kr([st.common,st.aomap,st.lightmap,st.emissivemap,st.bumpmap,st.normalmap,st.displacementmap,st.gradientmap,st.fog,st.lights,{emissive:{value:new It(0)}}]),vertexShader:Gt.meshtoon_vert,fragmentShader:Gt.meshtoon_frag},matcap:{uniforms:Kr([st.common,st.bumpmap,st.normalmap,st.displacementmap,st.fog,{matcap:{value:null}}]),vertexShader:Gt.meshmatcap_vert,fragmentShader:Gt.meshmatcap_frag},points:{uniforms:Kr([st.points,st.fog]),vertexShader:Gt.points_vert,fragmentShader:Gt.points_frag},dashed:{uniforms:Kr([st.common,st.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Gt.linedashed_vert,fragmentShader:Gt.linedashed_frag},depth:{uniforms:Kr([st.common,st.displacementmap]),vertexShader:Gt.depth_vert,fragmentShader:Gt.depth_frag},normal:{uniforms:Kr([st.common,st.bumpmap,st.normalmap,st.displacementmap,{opacity:{value:1}}]),vertexShader:Gt.meshnormal_vert,fragmentShader:Gt.meshnormal_frag},sprite:{uniforms:Kr([st.sprite,st.fog]),vertexShader:Gt.sprite_vert,fragmentShader:Gt.sprite_frag},background:{uniforms:{uvTransform:{value:new zt},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:Kr([st.common,st.displacementmap,{referencePosition:{value:new Le},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Gt.distanceRGBA_vert,fragmentShader:Gt.distanceRGBA_frag},shadow:{uniforms:Kr([st.lights,st.fog,{color:{value:new It(0)},opacity:{value:1}}]),vertexShader:Gt.shadow_vert,fragmentShader:Gt.shadow_frag}};qo.physical={uniforms:Kr([qo.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new zt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new zt},clearcoatNormalScale:{value:new Zt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new zt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new zt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new zt},sheen:{value:0},sheenColor:{value:new It(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new zt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new zt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new zt},transmissionSamplerSize:{value:new Zt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new zt},attenuationDistance:{value:0},attenuationColor:{value:new It(0)},specularColor:{value:new It(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new zt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new zt},anisotropyVector:{value:new Zt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new zt}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag};const q5={r:0,b:0,g:0};function J0r(t,e,n,r,i,o,s){const a=new It(0);let l=o===!0?0:1,c,u,d=null,h=0,f=null;function m(Q,_){let v=!1,y=_.isScene===!0?_.background:null;y&&y.isTexture&&(y=(_.backgroundBlurriness>0?n:e).get(y)),y===null?T(a,l):y&&y.isColor&&(T(y,1),v=!0);const b=t.xr.getEnvironmentBlendMode();b==="additive"?r.buffers.color.setClear(0,0,0,1,s):b==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,s),(t.autoClear||v)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),y&&(y.isCubeTexture||y.mapping===H9)?(u===void 0&&(u=new ei(new za(1,1,1),new x2({name:"BackgroundCubeMaterial",uniforms:yc(qo.backgroundCube.uniforms),vertexShader:qo.backgroundCube.vertexShader,fragmentShader:qo.backgroundCube.fragmentShader,side:gi,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(E,x,L){this.matrixWorld.copyPosition(L.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=y,u.material.uniforms.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=mn.getTransfer(y.colorSpace)!==Vn,(d!==y||h!==y.version||f!==t.toneMapping)&&(u.material.needsUpdate=!0,d=y,h=y.version,f=t.toneMapping),u.layers.enableAll(),Q.unshift(u,u.geometry,u.material,0,0,null)):y&&y.isTexture&&(c===void 0&&(c=new ei(new bE(2,2),new x2({name:"BackgroundMaterial",uniforms:yc(qo.background.uniforms),vertexShader:qo.background.vertexShader,fragmentShader:qo.background.fragmentShader,side:ea,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=y,c.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,c.material.toneMapped=mn.getTransfer(y.colorSpace)!==Vn,y.matrixAutoUpdate===!0&&y.updateMatrix(),c.material.uniforms.uvTransform.value.copy(y.matrix),(d!==y||h!==y.version||f!==t.toneMapping)&&(c.material.needsUpdate=!0,d=y,h=y.version,f=t.toneMapping),c.layers.enableAll(),Q.unshift(c,c.geometry,c.material,0,0,null))}function T(Q,_){Q.getRGB(q5,xG(t)),r.buffers.color.setClear(q5.r,q5.g,q5.b,_,s)}return{getClearColor:function(){return a},setClearColor:function(Q,_=1){a.set(Q),l=_,T(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(Q){l=Q,T(a,l)},render:m}}function e6r(t,e,n,r){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),s=r.isWebGL2||o!==null,a={},l=Q(null);let c=l,u=!1;function d(R,B,F,U,G){let Z=!1;if(s){const Y=T(U,F,B);c!==Y&&(c=Y,f(c.object)),Z=_(R,U,F,G),Z&&v(R,U,F,G)}else{const Y=B.wireframe===!0;(c.geometry!==U.id||c.program!==F.id||c.wireframe!==Y)&&(c.geometry=U.id,c.program=F.id,c.wireframe=Y,Z=!0)}G!==null&&n.update(G,t.ELEMENT_ARRAY_BUFFER),(Z||u)&&(u=!1,M(R,B,F,U),G!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(G).buffer))}function h(){return r.isWebGL2?t.createVertexArray():o.createVertexArrayOES()}function f(R){return r.isWebGL2?t.bindVertexArray(R):o.bindVertexArrayOES(R)}function m(R){return r.isWebGL2?t.deleteVertexArray(R):o.deleteVertexArrayOES(R)}function T(R,B,F){const U=F.wireframe===!0;let G=a[R.id];G===void 0&&(G={},a[R.id]=G);let Z=G[B.id];Z===void 0&&(Z={},G[B.id]=Z);let Y=Z[U];return Y===void 0&&(Y=Q(h()),Z[U]=Y),Y}function Q(R){const B=[],F=[],U=[];for(let G=0;G=0){const $=G[pe];let ce=Z[pe];if(ce===void 0&&(pe==="instanceMatrix"&&R.instanceMatrix&&(ce=R.instanceMatrix),pe==="instanceColor"&&R.instanceColor&&(ce=R.instanceColor)),$===void 0||$.attribute!==ce||ce&&$.data!==ce.data)return!0;Y++}return c.attributesNum!==Y||c.index!==U}function v(R,B,F,U){const G={},Z=B.attributes;let Y=0;const ee=F.getAttributes();for(const pe in ee)if(ee[pe].location>=0){let $=Z[pe];$===void 0&&(pe==="instanceMatrix"&&R.instanceMatrix&&($=R.instanceMatrix),pe==="instanceColor"&&R.instanceColor&&($=R.instanceColor));const ce={};ce.attribute=$,$&&$.data&&(ce.data=$.data),G[pe]=ce,Y++}c.attributes=G,c.attributesNum=Y,c.index=U}function y(){const R=c.newAttributes;for(let B=0,F=R.length;B=0){let K=G[ee];if(K===void 0&&(ee==="instanceMatrix"&&R.instanceMatrix&&(K=R.instanceMatrix),ee==="instanceColor"&&R.instanceColor&&(K=R.instanceColor)),K!==void 0){const $=K.normalized,ce=K.itemSize,Ee=n.get(K);if(Ee===void 0)continue;const z=Ee.buffer,re=Ee.type,he=Ee.bytesPerElement,Se=r.isWebGL2===!0&&(re===t.INT||re===t.UNSIGNED_INT||K.gpuType===sG);if(K.isInterleavedBufferAttribute){const we=K.data,se=we.stride,W=K.offset;if(we.isInstancedInterleavedBuffer){for(let j=0;j0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";L="mediump"}return L==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const s=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const l=o(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const c=s||e.has("WEBGL_draw_buffers"),u=n.logarithmicDepthBuffer===!0,d=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),f=t.getParameter(t.MAX_TEXTURE_SIZE),m=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),T=t.getParameter(t.MAX_VERTEX_ATTRIBS),Q=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),_=t.getParameter(t.MAX_VARYING_VECTORS),v=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),y=h>0,b=s||e.has("OES_texture_float"),E=y&&b,x=s?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:s,drawBuffers:c,getMaxAnisotropy:i,getMaxPrecision:o,precision:a,logarithmicDepthBuffer:u,maxTextures:d,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:m,maxAttributes:T,maxVertexUniforms:Q,maxVaryings:_,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:E,maxSamples:x}}function r6r(t){const e=this;let n=null,r=0,i=!1,o=!1;const s=new U1,a=new zt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,h){const f=d.length!==0||h||r!==0||i;return i=h,r=d.length,f},this.beginShadows=function(){o=!0,u(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(d,h){n=u(d,h,0)},this.setState=function(d,h,f){const m=d.clippingPlanes,T=d.clipIntersection,Q=d.clipShadows,_=t.get(d);if(!i||m===null||m.length===0||o&&!Q)o?u(null):c();else{const v=o?0:r,y=v*4;let b=_.clippingState||null;l.value=b,b=u(m,h,y,f);for(let E=0;E!==y;++E)b[E]=n[E];_.clippingState=b,this.numIntersection=T?this.numPlanes:0,this.numPlanes+=v}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(d,h,f,m){const T=d!==null?d.length:0;let Q=null;if(T!==0){if(Q=l.value,m!==!0||Q===null){const _=f+T*4,v=h.matrixWorldInverse;a.getNormalMatrix(v),(Q===null||Q.length<_)&&(Q=new Float32Array(_));for(let y=0,b=f;y!==T;++y,b+=4)s.copy(d[y]).applyMatrix4(v,a),s.normal.toArray(Q,b),Q[b+3]=s.constant}l.value=Q,l.needsUpdate=!0}return e.numPlanes=T,e.numIntersection=0,Q}}function i6r(t){let e=new WeakMap;function n(s,a){return a===lv?s.mapping=Tc:a===cv&&(s.mapping=mc),s}function r(s){if(s&&s.isTexture){const a=s.mapping;if(a===lv||a===cv)if(e.has(s)){const l=e.get(s).texture;return n(l,s.mapping)}else{const l=s.image;if(l&&l.height>0){const c=new m3r(l.height/2);return c.fromEquirectangularTexture(t,s),e.set(s,c),s.addEventListener("dispose",i),n(c.texture,s.mapping)}else return null}}return s}function i(s){const a=s.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function o(){e=new WeakMap}return{get:r,dispose:o}}class EE extends SG{constructor(e=-1,n=1,r=1,i=-1,o=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=o,this.far=s,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),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,n,r,i,o,s){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=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let o=r-e,s=r+e,a=i+n,l=i-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;o+=c*this.view.offsetX,s=o+c*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Rl=4,qI=[.125,.215,.35,.446,.526,.582],W1=20,x_=new EE,zI=new It;let S_=null,L_=0,C_=0;const G1=(1+Math.sqrt(5))/2,bl=1/G1,jI=[new Le(1,1,1),new Le(-1,1,1),new Le(1,1,-1),new Le(-1,1,-1),new Le(0,G1,bl),new Le(0,G1,-bl),new Le(bl,0,G1),new Le(-bl,0,G1),new Le(G1,bl,0),new Le(-G1,bl,0)];class WI{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,n=0,r=.1,i=100){S_=this._renderer.getRenderTarget(),L_=this._renderer.getActiveCubeFace(),C_=this._renderer.getActiveMipmapLevel(),this._setSize(256);const o=this._allocateTargets();return o.depthBuffer=!0,this._sceneToCubeUV(e,r,i,o),n>0&&this._blur(o,0,0,n),this._applyPMREM(o),this._cleanup(o),o}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=ZI(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=KI(),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?y:0,y,y),u.setRenderTarget(i),T&&u.render(m,a),u.render(e,a)}m.geometry.dispose(),m.material.dispose(),u.toneMapping=h,u.autoClear=d,e.background=Q}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===Tc||e.mapping===mc;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=ZI()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=KI());const o=i?this._cubemapMaterial:this._equirectMaterial,s=new ei(this._lodPlanes[0],o),a=o.uniforms;a.envMap.value=e;const l=this._cubeSize;z5(n,0,0,3*l,2*l),r.setRenderTarget(n),r.render(s,x_)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let i=1;iW1&&console.warn(`sigmaRadians, ${o}, is too large and will clip, as it requested ${Q} samples when the maximum is set to ${W1}`);const _=[];let v=0;for(let L=0;Ly-Rl?i-y+Rl:0),x=4*(this._cubeSize-b);z5(n,E,x,3*b,2*b),l.setRenderTarget(n),l.render(d,x_)}}function o6r(t){const e=[],n=[],r=[];let i=t;const o=t-Rl+1+qI.length;for(let s=0;st-Rl?l=qI[s-t+Rl-1]:s===0&&(l=0),r.push(l);const c=1/(a-2),u=-c,d=1+c,h=[u,u,d,u,d,d,u,u,d,d,u,d],f=6,m=6,T=3,Q=2,_=1,v=new Float32Array(T*m*f),y=new Float32Array(Q*m*f),b=new Float32Array(_*m*f);for(let x=0;x2?0:-1,C=[L,M,0,L+2/3,M,0,L+2/3,M+1,0,L,M,0,L+2/3,M+1,0,L,M+1,0];v.set(C,T*m*x),y.set(h,Q*m*x);const A=[x,x,x,x,x,x];b.set(A,_*m*x)}const E=new hs;E.setAttribute("position",new ti(v,T)),E.setAttribute("uv",new ti(y,Q)),E.setAttribute("faceIndex",new ti(b,_)),e.push(E),i>Rl&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}function YI(t,e,n){const r=new E2(t,e,n);return r.texture.mapping=H9,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function z5(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function s6r(t,e,n){const r=new Float32Array(W1),i=new Le(0,1,0);return new x2({name:"SphericalGaussianBlur",defines:{n:W1,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:xE(),fragmentShader:` precision mediump float; precision mediump int; @@ -3996,26 +3996,26 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function u6r(t){let e=new WeakMap,n=null;function r(a){if(a&&a.isTexture){const l=a.mapping,c=l===lv||l===cv,u=l===Tc||l===mc;if(c||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let d=e.get(a);return n===null&&(n=new WI(t)),d=c?n.fromEquirectangular(a,d):n.fromCubemap(a,d),e.set(a,d),d.texture}else{if(e.has(a))return e.get(a).texture;{const d=a.image;if(c&&d&&d.height>0||u&&d&&i(d)){n===null&&(n=new WI(t));const h=c?n.fromEquirectangular(a):n.fromCubemap(a);return e.set(a,h),a.addEventListener("dispose",o),h.texture}else return null}}}return a}function i(a){let l=0;const c=6;for(let u=0;ue.maxTextureSize&&(I=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const N=new Float32Array(A*I*4*T),V=new QG(N,A,I,T);V.type=Bs,V.needsUpdate=!0;const R=C*4;for(let F=0;F0)return t;const i=e*n;let o=XI[i];if(o===void 0&&(o=new Float32Array(i),XI[i]=o),e!==0){r.toArray(o,0);for(let s=1,a=0;s!==e;++s)a+=n,t[s].toArray(o,a)}return o}function fr(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n0||u&&d&&i(d)){n===null&&(n=new WI(t));const h=c?n.fromEquirectangular(a):n.fromCubemap(a);return e.set(a,h),a.addEventListener("dispose",o),h.texture}else return null}}}return a}function i(a){let l=0;const c=6;for(let u=0;ue.maxTextureSize&&(I=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const N=new Float32Array(A*I*4*T),V=new QG(N,A,I,T);V.type=Bs,V.needsUpdate=!0;const R=C*4;for(let F=0;F0)return t;const i=e*n;let o=XI[i];if(o===void 0&&(o=new Float32Array(i),XI[i]=o),e!==0){r.toArray(o,0);for(let s=1,a=0;s!==e;++s)a+=n,t[s].toArray(o,a)}return o}function fr(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n":" "} ${a}: ${n[s]}`)}return r.join(` -`)}function f5r(t){const e=mn.getPrimaries(mn.workingColorSpace),n=mn.getPrimaries(t);let r;switch(e===n?r="":e===Md&&n===wd?r="LinearDisplayP3ToLinearSRGB":e===wd&&n===Md&&(r="LinearSRGBToLinearDisplayP3"),t){case Ar:case V9:return[r,"LinearTransferOETF"];case Zn:case QE:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[r,"LinearTransferOETF"]}}function ok(t,e,n){const r=t.getShaderParameter(e,t.COMPILE_STATUS),i=t.getShaderInfoLog(e).trim();if(r&&i==="")return"";const o=/ERROR: 0:(\d+)/.exec(i);if(o){const s=parseInt(o[1]);return n.toUpperCase()+` +`)}function c5r(t){const e=mn.getPrimaries(mn.workingColorSpace),n=mn.getPrimaries(t);let r;switch(e===n?r="":e===Md&&n===wd?r="LinearDisplayP3ToLinearSRGB":e===wd&&n===Md&&(r="LinearSRGBToLinearDisplayP3"),t){case Ar:case V9:return[r,"LinearTransferOETF"];case Zn:case QE:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[r,"LinearTransferOETF"]}}function ok(t,e,n){const r=t.getShaderParameter(e,t.COMPILE_STATUS),i=t.getShaderInfoLog(e).trim();if(r&&i==="")return"";const o=/ERROR: 0:(\d+)/.exec(i);if(o){const s=parseInt(o[1]);return n.toUpperCase()+` `+i+` -`+d5r(t.getShaderSource(e),s)}else return i}function p5r(t,e){const n=f5r(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function h5r(t,e){let n;switch(e){case ucr:n="Linear";break;case dcr:n="Reinhard";break;case fcr:n="OptimizedCineon";break;case pcr:n="ACESFilmic";break;case hcr:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function T5r(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.normalMapTangentSpace||t.clearcoatNormalMap||t.flatShading||t.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(A4).join(` -`)}function m5r(t){const e=[];for(const n in t){const r=t[n];r!==!1&&e.push("#define "+n+" "+r)}return e.join(` -`)}function g5r(t,e){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Tv(t){return t.replace(_5r,v5r)}const Q5r=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function v5r(t,e){let n=Gt[e];if(n===void 0){const r=Q5r.get(e);if(r!==void 0)n=Gt[r],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,r);else throw new Error("Can not resolve #include <"+e+">")}return Tv(n)}const y5r=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function lk(t){return t.replace(y5r,b5r)}function b5r(t,e,n,r){let i="";for(let o=parseInt(e);o/gm;function Tv(t){return t.replace(T5r,g5r)}const m5r=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function g5r(t,e){let n=Gt[e];if(n===void 0){const r=m5r.get(e);if(r!==void 0)n=Gt[r],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,r);else throw new Error("Can not resolve #include <"+e+">")}return Tv(n)}const _5r=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function lk(t){return t.replace(_5r,Q5r)}function Q5r(t,e,n,r){let i="";for(let o=parseInt(e);o0&&(Q+=` `),_=[f,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(A4).join(` `),_.length>0&&(_+=` `)):(Q=[ck(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` `].filter(A4).join(` -`),_=[f,ck(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Ga?"#define TONE_MAPPING":"",n.toneMapping!==Ga?Gt.tonemapping_pars_fragment:"",n.toneMapping!==Ga?h5r("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Gt.colorspace_pars_fragment,p5r("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` +`),_=[f,ck(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Ga?"#define TONE_MAPPING":"",n.toneMapping!==Ga?Gt.tonemapping_pars_fragment:"",n.toneMapping!==Ga?d5r("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Gt.colorspace_pars_fragment,u5r("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` `].filter(A4).join(` `)),s=Tv(s),s=sk(s,n),s=ak(s,n),a=Tv(a),a=sk(a,n),a=ak(a,n),s=lk(s),a=lk(a),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(v=`#version 300 es `,Q=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` @@ -4026,9 +4026,9 @@ precision `+t.precision+" int;";return t.precision==="highp"?e+=` Program Info Log: `+N+` `+U+` -`+G)}else N!==""?console.warn("THREE.WebGLProgram: Program Info Log:",N):(V===""||R==="")&&(F=!1);F&&(I.diagnostics={runnable:B,programLog:N,vertexShader:{log:V,prefix:Q},fragmentShader:{log:R,prefix:_}})}i.deleteShader(E),i.deleteShader(x),M=new gu(i,T),C=g5r(i,T)}let M;this.getUniforms=function(){return M===void 0&&L(this),M};let C;this.getAttributes=function(){return C===void 0&&L(this),C};let A=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return A===!1&&(A=i.getProgramParameter(T,c5r)),A},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(T),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=u5r++,this.cacheKey=e,this.usedTimes=1,this.program=T,this.vertexShader=E,this.fragmentShader=x,this}let w5r=0;class M5r{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),o=this._getShaderStage(r),s=this._getShaderCacheForMaterial(e);return s.has(i)===!1&&(s.add(i),i.usedTimes++),s.has(o)===!1&&(s.add(o),o.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let r=n.get(e);return r===void 0&&(r=new Set,n.set(e,r)),r}_getShaderStage(e){const n=this.shaderCache;let r=n.get(e);return r===void 0&&(r=new O5r(e),n.set(e,r)),r}}class O5r{constructor(e){this.id=w5r++,this.code=e,this.usedTimes=0}}function R5r(t,e,n,r,i,o,s){const a=new vG,l=new M5r,c=[],u=i.isWebGL2,d=i.logarithmicDepthBuffer,h=i.vertexTextures;let f=i.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function T(C){return C===0?"uv":`uv${C}`}function Q(C,A,I,N,V){const R=N.fog,B=V.geometry,F=C.isMeshStandardMaterial?N.environment:null,U=(C.isMeshStandardMaterial?n:e).get(C.envMap||F),G=U&&U.mapping===H9?U.image.height:null,Z=m[C.type];C.precision!==null&&(f=i.getMaxPrecision(C.precision),f!==C.precision&&console.warn("THREE.WebGLProgram.getParameters:",C.precision,"not supported, using",f,"instead."));const Y=B.morphAttributes.position||B.morphAttributes.normal||B.morphAttributes.color,ee=Y!==void 0?Y.length:0;let pe=0;B.morphAttributes.position!==void 0&&(pe=1),B.morphAttributes.normal!==void 0&&(pe=2),B.morphAttributes.color!==void 0&&(pe=3);let K,$,ce,Ee;if(Z){const Bn=qo[Z];K=Bn.vertexShader,$=Bn.fragmentShader}else K=C.vertexShader,$=C.fragmentShader,l.update(C),ce=l.getVertexShaderID(C),Ee=l.getFragmentShaderID(C);const z=t.getRenderTarget(),re=V.isInstancedMesh===!0,he=V.isBatchedMesh===!0,Se=!!C.map,we=!!C.matcap,se=!!U,W=!!C.aoMap,j=!!C.lightMap,oe=!!C.bumpMap,_e=!!C.normalMap,ye=!!C.displacementMap,le=!!C.emissiveMap,De=!!C.metalnessMap,Ce=!!C.roughnessMap,Oe=C.anisotropy>0,He=C.clearcoat>0,X=C.iridescence>0,q=C.sheen>0,Te=C.transmission>0,fe=Oe&&!!C.anisotropyMap,ve=He&&!!C.clearcoatMap,Me=He&&!!C.clearcoatNormalMap,Ie=He&&!!C.clearcoatRoughnessMap,Fe=X&&!!C.iridescenceMap,qe=X&&!!C.iridescenceThicknessMap,ot=q&&!!C.sheenColorMap,it=q&&!!C.sheenRoughnessMap,$e=!!C.specularMap,Ot=!!C.specularColorMap,pt=!!C.specularIntensityMap,ht=Te&&!!C.transmissionMap,Tt=Te&&!!C.thicknessMap,rt=!!C.gradientMap,ut=!!C.alphaMap,Qe=C.alphaTest>0,Ue=!!C.alphaHash,Ge=!!C.extensions,Ve=!!B.attributes.uv1,Je=!!B.attributes.uv2,yt=!!B.attributes.uv3;let Rt=Ga;return C.toneMapped&&(z===null||z.isXRRenderTarget===!0)&&(Rt=t.toneMapping),{isWebGL2:u,shaderID:Z,shaderType:C.type,shaderName:C.name,vertexShader:K,fragmentShader:$,defines:C.defines,customVertexShaderID:ce,customFragmentShaderID:Ee,isRawShaderMaterial:C.isRawShaderMaterial===!0,glslVersion:C.glslVersion,precision:f,batching:he,instancing:re,instancingColor:re&&V.instanceColor!==null,supportsVertexTextures:h,outputColorSpace:z===null?t.outputColorSpace:z.isXRRenderTarget===!0?z.texture.colorSpace:Ar,map:Se,matcap:we,envMap:se,envMapMode:se&&U.mapping,envMapCubeUVHeight:G,aoMap:W,lightMap:j,bumpMap:oe,normalMap:_e,displacementMap:h&&ye,emissiveMap:le,normalMapObjectSpace:_e&&C.normalMapType===Acr,normalMapTangentSpace:_e&&C.normalMapType===_E,metalnessMap:De,roughnessMap:Ce,anisotropy:Oe,anisotropyMap:fe,clearcoat:He,clearcoatMap:ve,clearcoatNormalMap:Me,clearcoatRoughnessMap:Ie,iridescence:X,iridescenceMap:Fe,iridescenceThicknessMap:qe,sheen:q,sheenColorMap:ot,sheenRoughnessMap:it,specularMap:$e,specularColorMap:Ot,specularIntensityMap:pt,transmission:Te,transmissionMap:ht,thicknessMap:Tt,gradientMap:rt,opaque:C.transparent===!1&&C.blending===Ul,alphaMap:ut,alphaTest:Qe,alphaHash:Ue,combine:C.combine,mapUv:Se&&T(C.map.channel),aoMapUv:W&&T(C.aoMap.channel),lightMapUv:j&&T(C.lightMap.channel),bumpMapUv:oe&&T(C.bumpMap.channel),normalMapUv:_e&&T(C.normalMap.channel),displacementMapUv:ye&&T(C.displacementMap.channel),emissiveMapUv:le&&T(C.emissiveMap.channel),metalnessMapUv:De&&T(C.metalnessMap.channel),roughnessMapUv:Ce&&T(C.roughnessMap.channel),anisotropyMapUv:fe&&T(C.anisotropyMap.channel),clearcoatMapUv:ve&&T(C.clearcoatMap.channel),clearcoatNormalMapUv:Me&&T(C.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ie&&T(C.clearcoatRoughnessMap.channel),iridescenceMapUv:Fe&&T(C.iridescenceMap.channel),iridescenceThicknessMapUv:qe&&T(C.iridescenceThicknessMap.channel),sheenColorMapUv:ot&&T(C.sheenColorMap.channel),sheenRoughnessMapUv:it&&T(C.sheenRoughnessMap.channel),specularMapUv:$e&&T(C.specularMap.channel),specularColorMapUv:Ot&&T(C.specularColorMap.channel),specularIntensityMapUv:pt&&T(C.specularIntensityMap.channel),transmissionMapUv:ht&&T(C.transmissionMap.channel),thicknessMapUv:Tt&&T(C.thicknessMap.channel),alphaMapUv:ut&&T(C.alphaMap.channel),vertexTangents:!!B.attributes.tangent&&(_e||Oe),vertexColors:C.vertexColors,vertexAlphas:C.vertexColors===!0&&!!B.attributes.color&&B.attributes.color.itemSize===4,vertexUv1s:Ve,vertexUv2s:Je,vertexUv3s:yt,pointsUvs:V.isPoints===!0&&!!B.attributes.uv&&(Se||ut),fog:!!R,useFog:C.fog===!0,fogExp2:R&&R.isFogExp2,flatShading:C.flatShading===!0,sizeAttenuation:C.sizeAttenuation===!0,logarithmicDepthBuffer:d,skinning:V.isSkinnedMesh===!0,morphTargets:B.morphAttributes.position!==void 0,morphNormals:B.morphAttributes.normal!==void 0,morphColors:B.morphAttributes.color!==void 0,morphTargetsCount:ee,morphTextureStride:pe,numDirLights:A.directional.length,numPointLights:A.point.length,numSpotLights:A.spot.length,numSpotLightMaps:A.spotLightMap.length,numRectAreaLights:A.rectArea.length,numHemiLights:A.hemi.length,numDirLightShadows:A.directionalShadowMap.length,numPointLightShadows:A.pointShadowMap.length,numSpotLightShadows:A.spotShadowMap.length,numSpotLightShadowsWithMaps:A.numSpotLightShadowsWithMaps,numLightProbes:A.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:C.dithering,shadowMapEnabled:t.shadowMap.enabled&&I.length>0,shadowMapType:t.shadowMap.type,toneMapping:Rt,useLegacyLights:t._useLegacyLights,decodeVideoTexture:Se&&C.map.isVideoTexture===!0&&mn.getTransfer(C.map.colorSpace)===Vn,premultipliedAlpha:C.premultipliedAlpha,doubleSided:C.side===zo,flipSided:C.side===gi,useDepthPacking:C.depthPacking>=0,depthPacking:C.depthPacking||0,index0AttributeName:C.index0AttributeName,extensionDerivatives:Ge&&C.extensions.derivatives===!0,extensionFragDepth:Ge&&C.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&C.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&C.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:C.customProgramCacheKey()}}function _(C){const A=[];if(C.shaderID?A.push(C.shaderID):(A.push(C.customVertexShaderID),A.push(C.customFragmentShaderID)),C.defines!==void 0)for(const I in C.defines)A.push(I),A.push(C.defines[I]);return C.isRawShaderMaterial===!1&&(v(A,C),y(A,C),A.push(t.outputColorSpace)),A.push(C.customProgramCacheKey),A.join()}function v(C,A){C.push(A.precision),C.push(A.outputColorSpace),C.push(A.envMapMode),C.push(A.envMapCubeUVHeight),C.push(A.mapUv),C.push(A.alphaMapUv),C.push(A.lightMapUv),C.push(A.aoMapUv),C.push(A.bumpMapUv),C.push(A.normalMapUv),C.push(A.displacementMapUv),C.push(A.emissiveMapUv),C.push(A.metalnessMapUv),C.push(A.roughnessMapUv),C.push(A.anisotropyMapUv),C.push(A.clearcoatMapUv),C.push(A.clearcoatNormalMapUv),C.push(A.clearcoatRoughnessMapUv),C.push(A.iridescenceMapUv),C.push(A.iridescenceThicknessMapUv),C.push(A.sheenColorMapUv),C.push(A.sheenRoughnessMapUv),C.push(A.specularMapUv),C.push(A.specularColorMapUv),C.push(A.specularIntensityMapUv),C.push(A.transmissionMapUv),C.push(A.thicknessMapUv),C.push(A.combine),C.push(A.fogExp2),C.push(A.sizeAttenuation),C.push(A.morphTargetsCount),C.push(A.morphAttributeCount),C.push(A.numDirLights),C.push(A.numPointLights),C.push(A.numSpotLights),C.push(A.numSpotLightMaps),C.push(A.numHemiLights),C.push(A.numRectAreaLights),C.push(A.numDirLightShadows),C.push(A.numPointLightShadows),C.push(A.numSpotLightShadows),C.push(A.numSpotLightShadowsWithMaps),C.push(A.numLightProbes),C.push(A.shadowMapType),C.push(A.toneMapping),C.push(A.numClippingPlanes),C.push(A.numClipIntersection),C.push(A.depthPacking)}function y(C,A){a.disableAll(),A.isWebGL2&&a.enable(0),A.supportsVertexTextures&&a.enable(1),A.instancing&&a.enable(2),A.instancingColor&&a.enable(3),A.matcap&&a.enable(4),A.envMap&&a.enable(5),A.normalMapObjectSpace&&a.enable(6),A.normalMapTangentSpace&&a.enable(7),A.clearcoat&&a.enable(8),A.iridescence&&a.enable(9),A.alphaTest&&a.enable(10),A.vertexColors&&a.enable(11),A.vertexAlphas&&a.enable(12),A.vertexUv1s&&a.enable(13),A.vertexUv2s&&a.enable(14),A.vertexUv3s&&a.enable(15),A.vertexTangents&&a.enable(16),A.anisotropy&&a.enable(17),A.alphaHash&&a.enable(18),A.batching&&a.enable(19),C.push(a.mask),a.disableAll(),A.fog&&a.enable(0),A.useFog&&a.enable(1),A.flatShading&&a.enable(2),A.logarithmicDepthBuffer&&a.enable(3),A.skinning&&a.enable(4),A.morphTargets&&a.enable(5),A.morphNormals&&a.enable(6),A.morphColors&&a.enable(7),A.premultipliedAlpha&&a.enable(8),A.shadowMapEnabled&&a.enable(9),A.useLegacyLights&&a.enable(10),A.doubleSided&&a.enable(11),A.flipSided&&a.enable(12),A.useDepthPacking&&a.enable(13),A.dithering&&a.enable(14),A.transmission&&a.enable(15),A.sheen&&a.enable(16),A.opaque&&a.enable(17),A.pointsUvs&&a.enable(18),A.decodeVideoTexture&&a.enable(19),C.push(a.mask)}function b(C){const A=m[C.type];let I;if(A){const N=qo[A];I=T3r.clone(N.uniforms)}else I=C.uniforms;return I}function E(C,A){let I;for(let N=0,V=c.length;N0?r.push(_):f.transparent===!0?i.push(_):n.push(_)}function l(d,h,f,m,T,Q){const _=s(d,h,f,m,T,Q);f.transmission>0?r.unshift(_):f.transparent===!0?i.unshift(_):n.unshift(_)}function c(d,h){n.length>1&&n.sort(d||D5r),r.length>1&&r.sort(h||uk),i.length>1&&i.sort(h||uk)}function u(){for(let d=e,h=t.length;d=o.length?(s=new dk,o.push(s)):s=o[i],s}function n(){t=new WeakMap}return{get:e,dispose:n}}function k5r(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Le,color:new It};break;case"SpotLight":n={position:new Le,direction:new Le,color:new It,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Le,color:new It,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Le,skyColor:new It,groundColor:new It};break;case"RectAreaLight":n={color:new It,position:new Le,halfWidth:new Le,halfHeight:new Le};break}return t[e.id]=n,n}}}function P5r(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let H5r=0;function V5r(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function F5r(t,e){const n=new k5r,r=P5r(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)i.probe.push(new Le);const o=new Le,s=new jt,a=new jt;function l(u,d){let h=0,f=0,m=0;for(let N=0;N<9;N++)i.probe[N].set(0,0,0);let T=0,Q=0,_=0,v=0,y=0,b=0,E=0,x=0,L=0,M=0,C=0;u.sort(V5r);const A=d===!0?Math.PI:1;for(let N=0,V=u.length;N0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=st.LTC_FLOAT_1,i.rectAreaLTC2=st.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=st.LTC_HALF_1,i.rectAreaLTC2=st.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=h,i.ambient[1]=f,i.ambient[2]=m;const I=i.hash;(I.directionalLength!==T||I.pointLength!==Q||I.spotLength!==_||I.rectAreaLength!==v||I.hemiLength!==y||I.numDirectionalShadows!==b||I.numPointShadows!==E||I.numSpotShadows!==x||I.numSpotMaps!==L||I.numLightProbes!==C)&&(i.directional.length=T,i.spot.length=_,i.rectArea.length=v,i.point.length=Q,i.hemi.length=y,i.directionalShadow.length=b,i.directionalShadowMap.length=b,i.pointShadow.length=E,i.pointShadowMap.length=E,i.spotShadow.length=x,i.spotShadowMap.length=x,i.directionalShadowMatrix.length=b,i.pointShadowMatrix.length=E,i.spotLightMatrix.length=x+L-M,i.spotLightMap.length=L,i.numSpotLightShadowsWithMaps=M,i.numLightProbes=C,I.directionalLength=T,I.pointLength=Q,I.spotLength=_,I.rectAreaLength=v,I.hemiLength=y,I.numDirectionalShadows=b,I.numPointShadows=E,I.numSpotShadows=x,I.numSpotMaps=L,I.numLightProbes=C,i.version=H5r++)}function c(u,d){let h=0,f=0,m=0,T=0,Q=0;const _=d.matrixWorldInverse;for(let v=0,y=u.length;v=a.length?(l=new fk(t,e),a.push(l)):l=a[s],l}function i(){n=new WeakMap}return{get:r,dispose:i}}class $5r extends bo{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Lcr,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class U5r extends bo{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const G5r=`void main() { +`+G)}else N!==""?console.warn("THREE.WebGLProgram: Program Info Log:",N):(V===""||R==="")&&(F=!1);F&&(I.diagnostics={runnable:B,programLog:N,vertexShader:{log:V,prefix:Q},fragmentShader:{log:R,prefix:_}})}i.deleteShader(E),i.deleteShader(x),M=new gu(i,T),C=h5r(i,T)}let M;this.getUniforms=function(){return M===void 0&&L(this),M};let C;this.getAttributes=function(){return C===void 0&&L(this),C};let A=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return A===!1&&(A=i.getProgramParameter(T,s5r)),A},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(T),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=a5r++,this.cacheKey=e,this.usedTimes=1,this.program=T,this.vertexShader=E,this.fragmentShader=x,this}let L5r=0;class C5r{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),o=this._getShaderStage(r),s=this._getShaderCacheForMaterial(e);return s.has(i)===!1&&(s.add(i),i.usedTimes++),s.has(o)===!1&&(s.add(o),o.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let r=n.get(e);return r===void 0&&(r=new Set,n.set(e,r)),r}_getShaderStage(e){const n=this.shaderCache;let r=n.get(e);return r===void 0&&(r=new A5r(e),n.set(e,r)),r}}class A5r{constructor(e){this.id=L5r++,this.code=e,this.usedTimes=0}}function w5r(t,e,n,r,i,o,s){const a=new vG,l=new C5r,c=[],u=i.isWebGL2,d=i.logarithmicDepthBuffer,h=i.vertexTextures;let f=i.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function T(C){return C===0?"uv":`uv${C}`}function Q(C,A,I,N,V){const R=N.fog,B=V.geometry,F=C.isMeshStandardMaterial?N.environment:null,U=(C.isMeshStandardMaterial?n:e).get(C.envMap||F),G=U&&U.mapping===H9?U.image.height:null,Z=m[C.type];C.precision!==null&&(f=i.getMaxPrecision(C.precision),f!==C.precision&&console.warn("THREE.WebGLProgram.getParameters:",C.precision,"not supported, using",f,"instead."));const Y=B.morphAttributes.position||B.morphAttributes.normal||B.morphAttributes.color,ee=Y!==void 0?Y.length:0;let pe=0;B.morphAttributes.position!==void 0&&(pe=1),B.morphAttributes.normal!==void 0&&(pe=2),B.morphAttributes.color!==void 0&&(pe=3);let K,$,ce,Ee;if(Z){const Bn=qo[Z];K=Bn.vertexShader,$=Bn.fragmentShader}else K=C.vertexShader,$=C.fragmentShader,l.update(C),ce=l.getVertexShaderID(C),Ee=l.getFragmentShaderID(C);const z=t.getRenderTarget(),re=V.isInstancedMesh===!0,he=V.isBatchedMesh===!0,Se=!!C.map,we=!!C.matcap,se=!!U,W=!!C.aoMap,j=!!C.lightMap,oe=!!C.bumpMap,_e=!!C.normalMap,ye=!!C.displacementMap,le=!!C.emissiveMap,De=!!C.metalnessMap,Ce=!!C.roughnessMap,Oe=C.anisotropy>0,He=C.clearcoat>0,X=C.iridescence>0,q=C.sheen>0,Te=C.transmission>0,fe=Oe&&!!C.anisotropyMap,ve=He&&!!C.clearcoatMap,Me=He&&!!C.clearcoatNormalMap,Ie=He&&!!C.clearcoatRoughnessMap,Fe=X&&!!C.iridescenceMap,qe=X&&!!C.iridescenceThicknessMap,ot=q&&!!C.sheenColorMap,it=q&&!!C.sheenRoughnessMap,$e=!!C.specularMap,Ot=!!C.specularColorMap,pt=!!C.specularIntensityMap,ht=Te&&!!C.transmissionMap,Tt=Te&&!!C.thicknessMap,rt=!!C.gradientMap,ut=!!C.alphaMap,Qe=C.alphaTest>0,Ue=!!C.alphaHash,Ge=!!C.extensions,Ve=!!B.attributes.uv1,Je=!!B.attributes.uv2,yt=!!B.attributes.uv3;let Rt=Ga;return C.toneMapped&&(z===null||z.isXRRenderTarget===!0)&&(Rt=t.toneMapping),{isWebGL2:u,shaderID:Z,shaderType:C.type,shaderName:C.name,vertexShader:K,fragmentShader:$,defines:C.defines,customVertexShaderID:ce,customFragmentShaderID:Ee,isRawShaderMaterial:C.isRawShaderMaterial===!0,glslVersion:C.glslVersion,precision:f,batching:he,instancing:re,instancingColor:re&&V.instanceColor!==null,supportsVertexTextures:h,outputColorSpace:z===null?t.outputColorSpace:z.isXRRenderTarget===!0?z.texture.colorSpace:Ar,map:Se,matcap:we,envMap:se,envMapMode:se&&U.mapping,envMapCubeUVHeight:G,aoMap:W,lightMap:j,bumpMap:oe,normalMap:_e,displacementMap:h&&ye,emissiveMap:le,normalMapObjectSpace:_e&&C.normalMapType===Scr,normalMapTangentSpace:_e&&C.normalMapType===_E,metalnessMap:De,roughnessMap:Ce,anisotropy:Oe,anisotropyMap:fe,clearcoat:He,clearcoatMap:ve,clearcoatNormalMap:Me,clearcoatRoughnessMap:Ie,iridescence:X,iridescenceMap:Fe,iridescenceThicknessMap:qe,sheen:q,sheenColorMap:ot,sheenRoughnessMap:it,specularMap:$e,specularColorMap:Ot,specularIntensityMap:pt,transmission:Te,transmissionMap:ht,thicknessMap:Tt,gradientMap:rt,opaque:C.transparent===!1&&C.blending===Ul,alphaMap:ut,alphaTest:Qe,alphaHash:Ue,combine:C.combine,mapUv:Se&&T(C.map.channel),aoMapUv:W&&T(C.aoMap.channel),lightMapUv:j&&T(C.lightMap.channel),bumpMapUv:oe&&T(C.bumpMap.channel),normalMapUv:_e&&T(C.normalMap.channel),displacementMapUv:ye&&T(C.displacementMap.channel),emissiveMapUv:le&&T(C.emissiveMap.channel),metalnessMapUv:De&&T(C.metalnessMap.channel),roughnessMapUv:Ce&&T(C.roughnessMap.channel),anisotropyMapUv:fe&&T(C.anisotropyMap.channel),clearcoatMapUv:ve&&T(C.clearcoatMap.channel),clearcoatNormalMapUv:Me&&T(C.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ie&&T(C.clearcoatRoughnessMap.channel),iridescenceMapUv:Fe&&T(C.iridescenceMap.channel),iridescenceThicknessMapUv:qe&&T(C.iridescenceThicknessMap.channel),sheenColorMapUv:ot&&T(C.sheenColorMap.channel),sheenRoughnessMapUv:it&&T(C.sheenRoughnessMap.channel),specularMapUv:$e&&T(C.specularMap.channel),specularColorMapUv:Ot&&T(C.specularColorMap.channel),specularIntensityMapUv:pt&&T(C.specularIntensityMap.channel),transmissionMapUv:ht&&T(C.transmissionMap.channel),thicknessMapUv:Tt&&T(C.thicknessMap.channel),alphaMapUv:ut&&T(C.alphaMap.channel),vertexTangents:!!B.attributes.tangent&&(_e||Oe),vertexColors:C.vertexColors,vertexAlphas:C.vertexColors===!0&&!!B.attributes.color&&B.attributes.color.itemSize===4,vertexUv1s:Ve,vertexUv2s:Je,vertexUv3s:yt,pointsUvs:V.isPoints===!0&&!!B.attributes.uv&&(Se||ut),fog:!!R,useFog:C.fog===!0,fogExp2:R&&R.isFogExp2,flatShading:C.flatShading===!0,sizeAttenuation:C.sizeAttenuation===!0,logarithmicDepthBuffer:d,skinning:V.isSkinnedMesh===!0,morphTargets:B.morphAttributes.position!==void 0,morphNormals:B.morphAttributes.normal!==void 0,morphColors:B.morphAttributes.color!==void 0,morphTargetsCount:ee,morphTextureStride:pe,numDirLights:A.directional.length,numPointLights:A.point.length,numSpotLights:A.spot.length,numSpotLightMaps:A.spotLightMap.length,numRectAreaLights:A.rectArea.length,numHemiLights:A.hemi.length,numDirLightShadows:A.directionalShadowMap.length,numPointLightShadows:A.pointShadowMap.length,numSpotLightShadows:A.spotShadowMap.length,numSpotLightShadowsWithMaps:A.numSpotLightShadowsWithMaps,numLightProbes:A.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:C.dithering,shadowMapEnabled:t.shadowMap.enabled&&I.length>0,shadowMapType:t.shadowMap.type,toneMapping:Rt,useLegacyLights:t._useLegacyLights,decodeVideoTexture:Se&&C.map.isVideoTexture===!0&&mn.getTransfer(C.map.colorSpace)===Vn,premultipliedAlpha:C.premultipliedAlpha,doubleSided:C.side===zo,flipSided:C.side===gi,useDepthPacking:C.depthPacking>=0,depthPacking:C.depthPacking||0,index0AttributeName:C.index0AttributeName,extensionDerivatives:Ge&&C.extensions.derivatives===!0,extensionFragDepth:Ge&&C.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&C.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&C.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:C.customProgramCacheKey()}}function _(C){const A=[];if(C.shaderID?A.push(C.shaderID):(A.push(C.customVertexShaderID),A.push(C.customFragmentShaderID)),C.defines!==void 0)for(const I in C.defines)A.push(I),A.push(C.defines[I]);return C.isRawShaderMaterial===!1&&(v(A,C),y(A,C),A.push(t.outputColorSpace)),A.push(C.customProgramCacheKey),A.join()}function v(C,A){C.push(A.precision),C.push(A.outputColorSpace),C.push(A.envMapMode),C.push(A.envMapCubeUVHeight),C.push(A.mapUv),C.push(A.alphaMapUv),C.push(A.lightMapUv),C.push(A.aoMapUv),C.push(A.bumpMapUv),C.push(A.normalMapUv),C.push(A.displacementMapUv),C.push(A.emissiveMapUv),C.push(A.metalnessMapUv),C.push(A.roughnessMapUv),C.push(A.anisotropyMapUv),C.push(A.clearcoatMapUv),C.push(A.clearcoatNormalMapUv),C.push(A.clearcoatRoughnessMapUv),C.push(A.iridescenceMapUv),C.push(A.iridescenceThicknessMapUv),C.push(A.sheenColorMapUv),C.push(A.sheenRoughnessMapUv),C.push(A.specularMapUv),C.push(A.specularColorMapUv),C.push(A.specularIntensityMapUv),C.push(A.transmissionMapUv),C.push(A.thicknessMapUv),C.push(A.combine),C.push(A.fogExp2),C.push(A.sizeAttenuation),C.push(A.morphTargetsCount),C.push(A.morphAttributeCount),C.push(A.numDirLights),C.push(A.numPointLights),C.push(A.numSpotLights),C.push(A.numSpotLightMaps),C.push(A.numHemiLights),C.push(A.numRectAreaLights),C.push(A.numDirLightShadows),C.push(A.numPointLightShadows),C.push(A.numSpotLightShadows),C.push(A.numSpotLightShadowsWithMaps),C.push(A.numLightProbes),C.push(A.shadowMapType),C.push(A.toneMapping),C.push(A.numClippingPlanes),C.push(A.numClipIntersection),C.push(A.depthPacking)}function y(C,A){a.disableAll(),A.isWebGL2&&a.enable(0),A.supportsVertexTextures&&a.enable(1),A.instancing&&a.enable(2),A.instancingColor&&a.enable(3),A.matcap&&a.enable(4),A.envMap&&a.enable(5),A.normalMapObjectSpace&&a.enable(6),A.normalMapTangentSpace&&a.enable(7),A.clearcoat&&a.enable(8),A.iridescence&&a.enable(9),A.alphaTest&&a.enable(10),A.vertexColors&&a.enable(11),A.vertexAlphas&&a.enable(12),A.vertexUv1s&&a.enable(13),A.vertexUv2s&&a.enable(14),A.vertexUv3s&&a.enable(15),A.vertexTangents&&a.enable(16),A.anisotropy&&a.enable(17),A.alphaHash&&a.enable(18),A.batching&&a.enable(19),C.push(a.mask),a.disableAll(),A.fog&&a.enable(0),A.useFog&&a.enable(1),A.flatShading&&a.enable(2),A.logarithmicDepthBuffer&&a.enable(3),A.skinning&&a.enable(4),A.morphTargets&&a.enable(5),A.morphNormals&&a.enable(6),A.morphColors&&a.enable(7),A.premultipliedAlpha&&a.enable(8),A.shadowMapEnabled&&a.enable(9),A.useLegacyLights&&a.enable(10),A.doubleSided&&a.enable(11),A.flipSided&&a.enable(12),A.useDepthPacking&&a.enable(13),A.dithering&&a.enable(14),A.transmission&&a.enable(15),A.sheen&&a.enable(16),A.opaque&&a.enable(17),A.pointsUvs&&a.enable(18),A.decodeVideoTexture&&a.enable(19),C.push(a.mask)}function b(C){const A=m[C.type];let I;if(A){const N=qo[A];I=f3r.clone(N.uniforms)}else I=C.uniforms;return I}function E(C,A){let I;for(let N=0,V=c.length;N0?r.push(_):f.transparent===!0?i.push(_):n.push(_)}function l(d,h,f,m,T,Q){const _=s(d,h,f,m,T,Q);f.transmission>0?r.unshift(_):f.transparent===!0?i.unshift(_):n.unshift(_)}function c(d,h){n.length>1&&n.sort(d||O5r),r.length>1&&r.sort(h||uk),i.length>1&&i.sort(h||uk)}function u(){for(let d=e,h=t.length;d=o.length?(s=new dk,o.push(s)):s=o[i],s}function n(){t=new WeakMap}return{get:e,dispose:n}}function N5r(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Le,color:new It};break;case"SpotLight":n={position:new Le,direction:new Le,color:new It,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Le,color:new It,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Le,skyColor:new It,groundColor:new It};break;case"RectAreaLight":n={color:new It,position:new Le,halfWidth:new Le,halfHeight:new Le};break}return t[e.id]=n,n}}}function D5r(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let I5r=0;function k5r(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function P5r(t,e){const n=new N5r,r=D5r(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)i.probe.push(new Le);const o=new Le,s=new jt,a=new jt;function l(u,d){let h=0,f=0,m=0;for(let N=0;N<9;N++)i.probe[N].set(0,0,0);let T=0,Q=0,_=0,v=0,y=0,b=0,E=0,x=0,L=0,M=0,C=0;u.sort(k5r);const A=d===!0?Math.PI:1;for(let N=0,V=u.length;N0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=st.LTC_FLOAT_1,i.rectAreaLTC2=st.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=st.LTC_HALF_1,i.rectAreaLTC2=st.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=h,i.ambient[1]=f,i.ambient[2]=m;const I=i.hash;(I.directionalLength!==T||I.pointLength!==Q||I.spotLength!==_||I.rectAreaLength!==v||I.hemiLength!==y||I.numDirectionalShadows!==b||I.numPointShadows!==E||I.numSpotShadows!==x||I.numSpotMaps!==L||I.numLightProbes!==C)&&(i.directional.length=T,i.spot.length=_,i.rectArea.length=v,i.point.length=Q,i.hemi.length=y,i.directionalShadow.length=b,i.directionalShadowMap.length=b,i.pointShadow.length=E,i.pointShadowMap.length=E,i.spotShadow.length=x,i.spotShadowMap.length=x,i.directionalShadowMatrix.length=b,i.pointShadowMatrix.length=E,i.spotLightMatrix.length=x+L-M,i.spotLightMap.length=L,i.numSpotLightShadowsWithMaps=M,i.numLightProbes=C,I.directionalLength=T,I.pointLength=Q,I.spotLength=_,I.rectAreaLength=v,I.hemiLength=y,I.numDirectionalShadows=b,I.numPointShadows=E,I.numSpotShadows=x,I.numSpotMaps=L,I.numLightProbes=C,i.version=I5r++)}function c(u,d){let h=0,f=0,m=0,T=0,Q=0;const _=d.matrixWorldInverse;for(let v=0,y=u.length;v=a.length?(l=new fk(t,e),a.push(l)):l=a[s],l}function i(){n=new WeakMap}return{get:r,dispose:i}}class V5r extends bo{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Ecr,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class F5r extends bo{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const B5r=`void main() { gl_Position = vec4( position, 1.0 ); -}`,q5r=`uniform sampler2D shadow_pass; +}`,$5r=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include @@ -4054,12 +4054,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function z5r(t,e,n){let r=new yE;const i=new Zt,o=new Zt,s=new Nn,a=new $5r({depthPacking:Ccr}),l=new U5r,c={},u=n.maxTextureSize,d={[ea]:gi,[gi]:ea,[zo]:zo},h=new x2({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Zt},radius:{value:4}},vertexShader:G5r,fragmentShader:q5r}),f=h.clone();f.defines.HORIZONTAL_PASS=1;const m=new hs;m.setAttribute("position",new ti(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const T=new ei(m,h),Q=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=rG;let _=this.type;this.render=function(E,x,L){if(Q.enabled===!1||Q.autoUpdate===!1&&Q.needsUpdate===!1||E.length===0)return;const M=t.getRenderTarget(),C=t.getActiveCubeFace(),A=t.getActiveMipmapLevel(),I=t.state;I.setBlending(Ua),I.buffers.color.setClear(1,1,1,1),I.buffers.depth.setTest(!0),I.setScissorTest(!1);const N=_!==Ds&&this.type===Ds,V=_===Ds&&this.type!==Ds;for(let R=0,B=E.length;Ru||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/G.x),i.x=o.x*G.x,U.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/G.y),i.y=o.y*G.y,U.mapSize.y=o.y)),U.map===null||N===!0||V===!0){const Y=this.type!==Ds?{minFilter:gr,magFilter:gr}:{};U.map!==null&&U.map.dispose(),U.map=new E2(i.x,i.y,Y),U.map.texture.name=F.name+".shadowMap",U.camera.updateProjectionMatrix()}t.setRenderTarget(U.map),t.clear();const Z=U.getViewportCount();for(let Y=0;Y0||x.map&&x.alphaTest>0){const I=C.uuid,N=x.uuid;let V=c[I];V===void 0&&(V={},c[I]=V);let R=V[N];R===void 0&&(R=C.clone(),V[N]=R),C=R}if(C.visible=x.visible,C.wireframe=x.wireframe,M===Ds?C.side=x.shadowSide!==null?x.shadowSide:x.side:C.side=x.shadowSide!==null?x.shadowSide:d[x.side],C.alphaMap=x.alphaMap,C.alphaTest=x.alphaTest,C.map=x.map,C.clipShadows=x.clipShadows,C.clippingPlanes=x.clippingPlanes,C.clipIntersection=x.clipIntersection,C.displacementMap=x.displacementMap,C.displacementScale=x.displacementScale,C.displacementBias=x.displacementBias,C.wireframeLinewidth=x.wireframeLinewidth,C.linewidth=x.linewidth,L.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const I=t.properties.get(C);I.light=L}return C}function b(E,x,L,M,C){if(E.visible===!1)return;if(E.layers.test(x.layers)&&(E.isMesh||E.isLine||E.isPoints)&&(E.castShadow||E.receiveShadow&&C===Ds)&&(!E.frustumCulled||r.intersectsObject(E))){E.modelViewMatrix.multiplyMatrices(L.matrixWorldInverse,E.matrixWorld);const N=e.update(E),V=E.material;if(Array.isArray(V)){const R=N.groups;for(let B=0,F=R.length;B=1):Y.indexOf("OpenGL ES")!==-1&&(Z=parseFloat(/^OpenGL ES (\d)/.exec(Y)[1]),G=Z>=2);let ee=null,pe={};const K=t.getParameter(t.SCISSOR_BOX),$=t.getParameter(t.VIEWPORT),ce=new Nn().fromArray(K),Ee=new Nn().fromArray($);function z(Qe,Ue,Ge,Ve){const Je=new Uint8Array(4),yt=t.createTexture();t.bindTexture(Qe,yt),t.texParameteri(Qe,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(Qe,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Rt=0;Rt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let T;const Q=new WeakMap;let _=!1;try{_=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(X,q){return _?new OffscreenCanvas(X,q):Q0("canvas")}function y(X,q,Te,fe){let ve=1;if((X.width>fe||X.height>fe)&&(ve=fe/Math.max(X.width,X.height)),ve<1||q===!0)if(typeof HTMLImageElement<"u"&&X instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&X instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&X instanceof ImageBitmap){const Me=q?Rd:Math.floor,Ie=Me(ve*X.width),Fe=Me(ve*X.height);T===void 0&&(T=v(Ie,Fe));const qe=Te?v(Ie,Fe):T;return qe.width=Ie,qe.height=Fe,qe.getContext("2d").drawImage(X,0,0,Ie,Fe),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+X.width+"x"+X.height+") to ("+Ie+"x"+Fe+")."),qe}else return"data"in X&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+X.width+"x"+X.height+")."),X;return X}function b(X){return hv(X.width)&&hv(X.height)}function E(X){return a?!1:X.wrapS!==qi||X.wrapT!==qi||X.minFilter!==gr&&X.minFilter!==di}function x(X,q){return X.generateMipmaps&&q&&X.minFilter!==gr&&X.minFilter!==di}function L(X){t.generateMipmap(X)}function M(X,q,Te,fe,ve=!1){if(a===!1)return q;if(X!==null){if(t[X]!==void 0)return t[X];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+X+"'")}let Me=q;if(q===t.RED&&(Te===t.FLOAT&&(Me=t.R32F),Te===t.HALF_FLOAT&&(Me=t.R16F),Te===t.UNSIGNED_BYTE&&(Me=t.R8)),q===t.RED_INTEGER&&(Te===t.UNSIGNED_BYTE&&(Me=t.R8UI),Te===t.UNSIGNED_SHORT&&(Me=t.R16UI),Te===t.UNSIGNED_INT&&(Me=t.R32UI),Te===t.BYTE&&(Me=t.R8I),Te===t.SHORT&&(Me=t.R16I),Te===t.INT&&(Me=t.R32I)),q===t.RG&&(Te===t.FLOAT&&(Me=t.RG32F),Te===t.HALF_FLOAT&&(Me=t.RG16F),Te===t.UNSIGNED_BYTE&&(Me=t.RG8)),q===t.RGBA){const Ie=ve?Ad:mn.getTransfer(fe);Te===t.FLOAT&&(Me=t.RGBA32F),Te===t.HALF_FLOAT&&(Me=t.RGBA16F),Te===t.UNSIGNED_BYTE&&(Me=Ie===Vn?t.SRGB8_ALPHA8:t.RGBA8),Te===t.UNSIGNED_SHORT_4_4_4_4&&(Me=t.RGBA4),Te===t.UNSIGNED_SHORT_5_5_5_1&&(Me=t.RGB5_A1)}return(Me===t.R16F||Me===t.R32F||Me===t.RG16F||Me===t.RG32F||Me===t.RGBA16F||Me===t.RGBA32F)&&e.get("EXT_color_buffer_float"),Me}function C(X,q,Te){return x(X,Te)===!0||X.isFramebufferTexture&&X.minFilter!==gr&&X.minFilter!==di?Math.log2(Math.max(q.width,q.height))+1:X.mipmaps!==void 0&&X.mipmaps.length>0?X.mipmaps.length:X.isCompressedTexture&&Array.isArray(X.image)?q.mipmaps.length:1}function A(X){return X===gr||X===uv||X===mu?t.NEAREST:t.LINEAR}function I(X){const q=X.target;q.removeEventListener("dispose",I),V(q),q.isVideoTexture&&m.delete(q)}function N(X){const q=X.target;q.removeEventListener("dispose",N),B(q)}function V(X){const q=r.get(X);if(q.__webglInit===void 0)return;const Te=X.source,fe=Q.get(Te);if(fe){const ve=fe[q.__cacheKey];ve.usedTimes--,ve.usedTimes===0&&R(X),Object.keys(fe).length===0&&Q.delete(Te)}r.remove(X)}function R(X){const q=r.get(X);t.deleteTexture(q.__webglTexture);const Te=X.source,fe=Q.get(Te);delete fe[q.__cacheKey],s.memory.textures--}function B(X){const q=X.texture,Te=r.get(X),fe=r.get(q);if(fe.__webglTexture!==void 0&&(t.deleteTexture(fe.__webglTexture),s.memory.textures--),X.depthTexture&&X.depthTexture.dispose(),X.isWebGLCubeRenderTarget)for(let ve=0;ve<6;ve++){if(Array.isArray(Te.__webglFramebuffer[ve]))for(let Me=0;Me=l&&console.warn("THREE.WebGLTextures: Trying to use "+X+" texture units while this GPU supports only "+l),F+=1,X}function Z(X){const q=[];return q.push(X.wrapS),q.push(X.wrapT),q.push(X.wrapR||0),q.push(X.magFilter),q.push(X.minFilter),q.push(X.anisotropy),q.push(X.internalFormat),q.push(X.format),q.push(X.type),q.push(X.generateMipmaps),q.push(X.premultiplyAlpha),q.push(X.flipY),q.push(X.unpackAlignment),q.push(X.colorSpace),q.join()}function Y(X,q){const Te=r.get(X);if(X.isVideoTexture&&Oe(X),X.isRenderTargetTexture===!1&&X.version>0&&Te.__version!==X.version){const fe=X.image;if(fe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(fe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{he(Te,X,q);return}}n.bindTexture(t.TEXTURE_2D,Te.__webglTexture,t.TEXTURE0+q)}function ee(X,q){const Te=r.get(X);if(X.version>0&&Te.__version!==X.version){he(Te,X,q);return}n.bindTexture(t.TEXTURE_2D_ARRAY,Te.__webglTexture,t.TEXTURE0+q)}function pe(X,q){const Te=r.get(X);if(X.version>0&&Te.__version!==X.version){he(Te,X,q);return}n.bindTexture(t.TEXTURE_3D,Te.__webglTexture,t.TEXTURE0+q)}function K(X,q){const Te=r.get(X);if(X.version>0&&Te.__version!==X.version){Se(Te,X,q);return}n.bindTexture(t.TEXTURE_CUBE_MAP,Te.__webglTexture,t.TEXTURE0+q)}const $={[gc]:t.REPEAT,[qi]:t.CLAMP_TO_EDGE,[Cd]:t.MIRRORED_REPEAT},ce={[gr]:t.NEAREST,[uv]:t.NEAREST_MIPMAP_NEAREST,[mu]:t.NEAREST_MIPMAP_LINEAR,[di]:t.LINEAR,[oG]:t.LINEAR_MIPMAP_NEAREST,[b2]:t.LINEAR_MIPMAP_LINEAR},Ee={[wcr]:t.NEVER,[Icr]:t.ALWAYS,[Mcr]:t.LESS,[TG]:t.LEQUAL,[Ocr]:t.EQUAL,[Dcr]:t.GEQUAL,[Rcr]:t.GREATER,[Ncr]:t.NOTEQUAL};function z(X,q,Te){if(Te?(t.texParameteri(X,t.TEXTURE_WRAP_S,$[q.wrapS]),t.texParameteri(X,t.TEXTURE_WRAP_T,$[q.wrapT]),(X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY)&&t.texParameteri(X,t.TEXTURE_WRAP_R,$[q.wrapR]),t.texParameteri(X,t.TEXTURE_MAG_FILTER,ce[q.magFilter]),t.texParameteri(X,t.TEXTURE_MIN_FILTER,ce[q.minFilter])):(t.texParameteri(X,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(X,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY)&&t.texParameteri(X,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(q.wrapS!==qi||q.wrapT!==qi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(X,t.TEXTURE_MAG_FILTER,A(q.magFilter)),t.texParameteri(X,t.TEXTURE_MIN_FILTER,A(q.minFilter)),q.minFilter!==gr&&q.minFilter!==di&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),q.compareFunction&&(t.texParameteri(X,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(X,t.TEXTURE_COMPARE_FUNC,Ee[q.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const fe=e.get("EXT_texture_filter_anisotropic");if(q.magFilter===gr||q.minFilter!==mu&&q.minFilter!==b2||q.type===Bs&&e.has("OES_texture_float_linear")===!1||a===!1&&q.type===g0&&e.has("OES_texture_half_float_linear")===!1)return;(q.anisotropy>1||r.get(q).__currentAnisotropy)&&(t.texParameterf(X,fe.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(q.anisotropy,i.getMaxAnisotropy())),r.get(q).__currentAnisotropy=q.anisotropy)}}function re(X,q){let Te=!1;X.__webglInit===void 0&&(X.__webglInit=!0,q.addEventListener("dispose",I));const fe=q.source;let ve=Q.get(fe);ve===void 0&&(ve={},Q.set(fe,ve));const Me=Z(q);if(Me!==X.__cacheKey){ve[Me]===void 0&&(ve[Me]={texture:t.createTexture(),usedTimes:0},s.memory.textures++,Te=!0),ve[Me].usedTimes++;const Ie=ve[X.__cacheKey];Ie!==void 0&&(ve[X.__cacheKey].usedTimes--,Ie.usedTimes===0&&R(q)),X.__cacheKey=Me,X.__webglTexture=ve[Me].texture}return Te}function he(X,q,Te){let fe=t.TEXTURE_2D;(q.isDataArrayTexture||q.isCompressedArrayTexture)&&(fe=t.TEXTURE_2D_ARRAY),q.isData3DTexture&&(fe=t.TEXTURE_3D);const ve=re(X,q),Me=q.source;n.bindTexture(fe,X.__webglTexture,t.TEXTURE0+Te);const Ie=r.get(Me);if(Me.version!==Ie.__version||ve===!0){n.activeTexture(t.TEXTURE0+Te);const Fe=mn.getPrimaries(mn.workingColorSpace),qe=q.colorSpace===ji?null:mn.getPrimaries(q.colorSpace),ot=q.colorSpace===ji||Fe===qe?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,q.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,q.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,ot);const it=E(q)&&b(q.image)===!1;let $e=y(q.image,it,!1,u);$e=He(q,$e);const Ot=b($e)||a,pt=o.convert(q.format,q.colorSpace);let ht=o.convert(q.type),Tt=M(q.internalFormat,pt,ht,q.colorSpace,q.isVideoTexture);z(fe,q,Ot);let rt;const ut=q.mipmaps,Qe=a&&q.isVideoTexture!==!0&&Tt!==fG,Ue=Ie.__version===void 0||ve===!0,Ge=C(q,$e,Ot);if(q.isDepthTexture)Tt=t.DEPTH_COMPONENT,a?q.type===Bs?Tt=t.DEPTH_COMPONENT32F:q.type===Ha?Tt=t.DEPTH_COMPONENT24:q.type===i2?Tt=t.DEPTH24_STENCIL8:Tt=t.DEPTH_COMPONENT16:q.type===Bs&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),q.format===o2&&Tt===t.DEPTH_COMPONENT&&q.type!==gE&&q.type!==Ha&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),q.type=Ha,ht=o.convert(q.type)),q.format===_c&&Tt===t.DEPTH_COMPONENT&&(Tt=t.DEPTH_STENCIL,q.type!==i2&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),q.type=i2,ht=o.convert(q.type))),Ue&&(Qe?n.texStorage2D(t.TEXTURE_2D,1,Tt,$e.width,$e.height):n.texImage2D(t.TEXTURE_2D,0,Tt,$e.width,$e.height,0,pt,ht,null));else if(q.isDataTexture)if(ut.length>0&&Ot){Qe&&Ue&&n.texStorage2D(t.TEXTURE_2D,Ge,Tt,ut[0].width,ut[0].height);for(let Ve=0,Je=ut.length;Ve>=1,Je>>=1}}else if(ut.length>0&&Ot){Qe&&Ue&&n.texStorage2D(t.TEXTURE_2D,Ge,Tt,ut[0].width,ut[0].height);for(let Ve=0,Je=ut.length;Ve0&&Ue++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Ue,rt,$e[0].width,$e[0].height));for(let Ve=0;Ve<6;Ve++)if(it){ut?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ve,0,0,0,$e[Ve].width,$e[Ve].height,ht,Tt,$e[Ve].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ve,0,rt,$e[Ve].width,$e[Ve].height,0,ht,Tt,$e[Ve].data);for(let Je=0;Je>Me),$e=Math.max(1,q.height>>Me);ve===t.TEXTURE_3D||ve===t.TEXTURE_2D_ARRAY?n.texImage3D(ve,Me,qe,it,$e,q.depth,0,Ie,Fe,null):n.texImage2D(ve,Me,qe,it,$e,0,Ie,Fe,null)}n.bindFramebuffer(t.FRAMEBUFFER,X),Ce(q)?h.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,fe,ve,r.get(Te).__webglTexture,0,De(q)):(ve===t.TEXTURE_2D||ve>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&ve<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,fe,ve,r.get(Te).__webglTexture,Me),n.bindFramebuffer(t.FRAMEBUFFER,null)}function se(X,q,Te){if(t.bindRenderbuffer(t.RENDERBUFFER,X),q.depthBuffer&&!q.stencilBuffer){let fe=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(Te||Ce(q)){const ve=q.depthTexture;ve&&ve.isDepthTexture&&(ve.type===Bs?fe=t.DEPTH_COMPONENT32F:ve.type===Ha&&(fe=t.DEPTH_COMPONENT24));const Me=De(q);Ce(q)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Me,fe,q.width,q.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,Me,fe,q.width,q.height)}else t.renderbufferStorage(t.RENDERBUFFER,fe,q.width,q.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,X)}else if(q.depthBuffer&&q.stencilBuffer){const fe=De(q);Te&&Ce(q)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,fe,t.DEPTH24_STENCIL8,q.width,q.height):Ce(q)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,fe,t.DEPTH24_STENCIL8,q.width,q.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,q.width,q.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,X)}else{const fe=q.isWebGLMultipleRenderTargets===!0?q.texture:[q.texture];for(let ve=0;ve0){Te.__webglFramebuffer[Fe]=[];for(let qe=0;qe0){Te.__webglFramebuffer=[];for(let Fe=0;Fe0&&Ce(X)===!1){const Fe=Me?q:[q];Te.__webglMultisampledFramebuffer=t.createFramebuffer(),Te.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,Te.__webglMultisampledFramebuffer);for(let qe=0;qe0)for(let qe=0;qe0)for(let qe=0;qe0&&Ce(X)===!1){const q=X.isWebGLMultipleRenderTargets?X.texture:[X.texture],Te=X.width,fe=X.height;let ve=t.COLOR_BUFFER_BIT;const Me=[],Ie=X.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Fe=r.get(X),qe=X.isWebGLMultipleRenderTargets===!0;if(qe)for(let ot=0;ot0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&q.__useRenderToTexture!==!1}function Oe(X){const q=s.render.frame;m.get(X)!==q&&(m.set(X,q),X.update())}function He(X,q){const Te=X.colorSpace,fe=X.format,ve=X.type;return X.isCompressedTexture===!0||X.isVideoTexture===!0||X.format===pv||Te!==Ar&&Te!==ji&&(mn.getTransfer(Te)===Vn?a===!1?e.has("EXT_sRGB")===!0&&fe===zi?(X.format=pv,X.minFilter=di,X.generateMipmaps=!1):q=gG.sRGBToLinear(q):(fe!==zi||ve!==qa)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Te)),q}this.allocateTextureUnit=G,this.resetTextureUnits=U,this.setTexture2D=Y,this.setTexture2DArray=ee,this.setTexture3D=pe,this.setTextureCube=K,this.rebindTextures=oe,this.setupRenderTarget=_e,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=le,this.setupDepthRenderbuffer=j,this.setupFrameBufferTexture=we,this.useMultisampledRTT=Ce}function Y5r(t,e,n){const r=n.isWebGL2;function i(o,s=ji){let a;const l=mn.getTransfer(s);if(o===qa)return t.UNSIGNED_BYTE;if(o===aG)return t.UNSIGNED_SHORT_4_4_4_4;if(o===lG)return t.UNSIGNED_SHORT_5_5_5_1;if(o===mcr)return t.BYTE;if(o===gcr)return t.SHORT;if(o===gE)return t.UNSIGNED_SHORT;if(o===sG)return t.INT;if(o===Ha)return t.UNSIGNED_INT;if(o===Bs)return t.FLOAT;if(o===g0)return r?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(o===_cr)return t.ALPHA;if(o===zi)return t.RGBA;if(o===Qcr)return t.LUMINANCE;if(o===vcr)return t.LUMINANCE_ALPHA;if(o===o2)return t.DEPTH_COMPONENT;if(o===_c)return t.DEPTH_STENCIL;if(o===pv)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(o===ycr)return t.RED;if(o===cG)return t.RED_INTEGER;if(o===bcr)return t.RG;if(o===uG)return t.RG_INTEGER;if(o===dG)return t.RGBA_INTEGER;if(o===t_||o===n_||o===r_||o===i_)if(l===Vn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(o===t_)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(o===n_)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(o===r_)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(o===i_)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(o===t_)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(o===n_)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(o===r_)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(o===i_)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(o===XD||o===JD||o===eI||o===tI)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(o===XD)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(o===JD)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(o===eI)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(o===tI)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(o===fG)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(o===nI||o===rI)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(o===nI)return l===Vn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(o===rI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(o===iI||o===oI||o===sI||o===aI||o===lI||o===cI||o===uI||o===dI||o===fI||o===pI||o===hI||o===TI||o===mI||o===gI)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(o===iI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(o===oI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(o===sI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(o===aI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(o===lI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(o===cI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(o===uI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(o===dI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(o===fI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(o===pI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(o===hI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(o===TI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(o===mI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(o===gI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(o===o_||o===_I||o===QI)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(o===o_)return l===Vn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(o===_I)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(o===QI)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(o===Ecr||o===vI||o===yI||o===bI)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(o===o_)return a.COMPRESSED_RED_RGTC1_EXT;if(o===vI)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(o===yI)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(o===bI)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return o===i2?r?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[o]!==void 0?t[o]:null}return{convert:i}}class K5r extends Jr{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Z1 extends jn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Z5r={type:"move"};class w_{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Z1,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 Z1,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Le,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Le),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Z1,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Le,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Le),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 n=this._hand;if(n)for(const r of e.hand.values())this._getHandJoint(n,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,n,r){let i=null,o=null,s=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){s=!0;for(const T of e.hand.values()){const Q=n.getJointPose(T,r),_=this._getHandJoint(c,T);Q!==null&&(_.matrix.fromArray(Q.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.matrixWorldNeedsUpdate=!0,_.jointRadius=Q.radius),_.visible=Q!==null}const u=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],h=u.position.distanceTo(d.position),f=.02,m=.005;c.inputState.pinching&&h>f+m?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&h<=f-m&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(o=n.getPose(e.gripSpace,r),o!==null&&(l.matrix.fromArray(o.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,o.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(o.linearVelocity)):l.hasLinearVelocity=!1,o.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(o.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,r),i===null&&o!==null&&(i=o),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(Z5r)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=o!==null),c!==null&&(c.visible=s!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const r=new Z1;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[n.jointName]=r,e.add(r)}return e.joints[n.jointName]}}class X5r extends Jc{constructor(e,n){super();const r=this;let i=null,o=1,s=null,a="local-floor",l=1,c=null,u=null,d=null,h=null,f=null,m=null;const T=n.getContextAttributes();let Q=null,_=null;const v=[],y=[],b=new Zt;let E=null;const x=new Jr;x.layers.enable(1),x.viewport=new Nn;const L=new Jr;L.layers.enable(2),L.viewport=new Nn;const M=[x,L],C=new K5r;C.layers.enable(1),C.layers.enable(2);let A=null,I=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(K){let $=v[K];return $===void 0&&($=new w_,v[K]=$),$.getTargetRaySpace()},this.getControllerGrip=function(K){let $=v[K];return $===void 0&&($=new w_,v[K]=$),$.getGripSpace()},this.getHand=function(K){let $=v[K];return $===void 0&&($=new w_,v[K]=$),$.getHandSpace()};function N(K){const $=y.indexOf(K.inputSource);if($===-1)return;const ce=v[$];ce!==void 0&&(ce.update(K.inputSource,K.frame,c||s),ce.dispatchEvent({type:K.type,data:K.inputSource}))}function V(){i.removeEventListener("select",N),i.removeEventListener("selectstart",N),i.removeEventListener("selectend",N),i.removeEventListener("squeeze",N),i.removeEventListener("squeezestart",N),i.removeEventListener("squeezeend",N),i.removeEventListener("end",V),i.removeEventListener("inputsourceschange",R);for(let K=0;K=0&&(y[Ee]=null,v[Ee].disconnect(ce))}for(let $=0;$=y.length){y.push(ce),Ee=re;break}else if(y[re]===null){y[re]=ce,Ee=re;break}if(Ee===-1)break}const z=v[Ee];z&&z.connect(ce)}}const B=new Le,F=new Le;function U(K,$,ce){B.setFromMatrixPosition($.matrixWorld),F.setFromMatrixPosition(ce.matrixWorld);const Ee=B.distanceTo(F),z=$.projectionMatrix.elements,re=ce.projectionMatrix.elements,he=z[14]/(z[10]-1),Se=z[14]/(z[10]+1),we=(z[9]+1)/z[5],se=(z[9]-1)/z[5],W=(z[8]-1)/z[0],j=(re[8]+1)/re[0],oe=he*W,_e=he*j,ye=Ee/(-W+j),le=ye*-W;$.matrixWorld.decompose(K.position,K.quaternion,K.scale),K.translateX(le),K.translateZ(ye),K.matrixWorld.compose(K.position,K.quaternion,K.scale),K.matrixWorldInverse.copy(K.matrixWorld).invert();const De=he+ye,Ce=Se+ye,Oe=oe-le,He=_e+(Ee-le),X=we*Se/Ce*De,q=se*Se/Ce*De;K.projectionMatrix.makePerspective(Oe,He,X,q,De,Ce),K.projectionMatrixInverse.copy(K.projectionMatrix).invert()}function G(K,$){$===null?K.matrixWorld.copy(K.matrix):K.matrixWorld.multiplyMatrices($.matrixWorld,K.matrix),K.matrixWorldInverse.copy(K.matrixWorld).invert()}this.updateCamera=function(K){if(i===null)return;C.near=L.near=x.near=K.near,C.far=L.far=x.far=K.far,(A!==C.near||I!==C.far)&&(i.updateRenderState({depthNear:C.near,depthFar:C.far}),A=C.near,I=C.far);const $=K.parent,ce=C.cameras;G(C,$);for(let Ee=0;Ee0&&(Q.alphaTest.value=_.alphaTest);const v=e.get(_).envMap;if(v&&(Q.envMap.value=v,Q.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,Q.reflectivity.value=_.reflectivity,Q.ior.value=_.ior,Q.refractionRatio.value=_.refractionRatio),_.lightMap){Q.lightMap.value=_.lightMap;const y=t._useLegacyLights===!0?Math.PI:1;Q.lightMapIntensity.value=_.lightMapIntensity*y,n(_.lightMap,Q.lightMapTransform)}_.aoMap&&(Q.aoMap.value=_.aoMap,Q.aoMapIntensity.value=_.aoMapIntensity,n(_.aoMap,Q.aoMapTransform))}function s(Q,_){Q.diffuse.value.copy(_.color),Q.opacity.value=_.opacity,_.map&&(Q.map.value=_.map,n(_.map,Q.mapTransform))}function a(Q,_){Q.dashSize.value=_.dashSize,Q.totalSize.value=_.dashSize+_.gapSize,Q.scale.value=_.scale}function l(Q,_,v,y){Q.diffuse.value.copy(_.color),Q.opacity.value=_.opacity,Q.size.value=_.size*v,Q.scale.value=y*.5,_.map&&(Q.map.value=_.map,n(_.map,Q.uvTransform)),_.alphaMap&&(Q.alphaMap.value=_.alphaMap,n(_.alphaMap,Q.alphaMapTransform)),_.alphaTest>0&&(Q.alphaTest.value=_.alphaTest)}function c(Q,_){Q.diffuse.value.copy(_.color),Q.opacity.value=_.opacity,Q.rotation.value=_.rotation,_.map&&(Q.map.value=_.map,n(_.map,Q.mapTransform)),_.alphaMap&&(Q.alphaMap.value=_.alphaMap,n(_.alphaMap,Q.alphaMapTransform)),_.alphaTest>0&&(Q.alphaTest.value=_.alphaTest)}function u(Q,_){Q.specular.value.copy(_.specular),Q.shininess.value=Math.max(_.shininess,1e-4)}function d(Q,_){_.gradientMap&&(Q.gradientMap.value=_.gradientMap)}function h(Q,_){Q.metalness.value=_.metalness,_.metalnessMap&&(Q.metalnessMap.value=_.metalnessMap,n(_.metalnessMap,Q.metalnessMapTransform)),Q.roughness.value=_.roughness,_.roughnessMap&&(Q.roughnessMap.value=_.roughnessMap,n(_.roughnessMap,Q.roughnessMapTransform)),e.get(_).envMap&&(Q.envMapIntensity.value=_.envMapIntensity)}function f(Q,_,v){Q.ior.value=_.ior,_.sheen>0&&(Q.sheenColor.value.copy(_.sheenColor).multiplyScalar(_.sheen),Q.sheenRoughness.value=_.sheenRoughness,_.sheenColorMap&&(Q.sheenColorMap.value=_.sheenColorMap,n(_.sheenColorMap,Q.sheenColorMapTransform)),_.sheenRoughnessMap&&(Q.sheenRoughnessMap.value=_.sheenRoughnessMap,n(_.sheenRoughnessMap,Q.sheenRoughnessMapTransform))),_.clearcoat>0&&(Q.clearcoat.value=_.clearcoat,Q.clearcoatRoughness.value=_.clearcoatRoughness,_.clearcoatMap&&(Q.clearcoatMap.value=_.clearcoatMap,n(_.clearcoatMap,Q.clearcoatMapTransform)),_.clearcoatRoughnessMap&&(Q.clearcoatRoughnessMap.value=_.clearcoatRoughnessMap,n(_.clearcoatRoughnessMap,Q.clearcoatRoughnessMapTransform)),_.clearcoatNormalMap&&(Q.clearcoatNormalMap.value=_.clearcoatNormalMap,n(_.clearcoatNormalMap,Q.clearcoatNormalMapTransform),Q.clearcoatNormalScale.value.copy(_.clearcoatNormalScale),_.side===gi&&Q.clearcoatNormalScale.value.negate())),_.iridescence>0&&(Q.iridescence.value=_.iridescence,Q.iridescenceIOR.value=_.iridescenceIOR,Q.iridescenceThicknessMinimum.value=_.iridescenceThicknessRange[0],Q.iridescenceThicknessMaximum.value=_.iridescenceThicknessRange[1],_.iridescenceMap&&(Q.iridescenceMap.value=_.iridescenceMap,n(_.iridescenceMap,Q.iridescenceMapTransform)),_.iridescenceThicknessMap&&(Q.iridescenceThicknessMap.value=_.iridescenceThicknessMap,n(_.iridescenceThicknessMap,Q.iridescenceThicknessMapTransform))),_.transmission>0&&(Q.transmission.value=_.transmission,Q.transmissionSamplerMap.value=v.texture,Q.transmissionSamplerSize.value.set(v.width,v.height),_.transmissionMap&&(Q.transmissionMap.value=_.transmissionMap,n(_.transmissionMap,Q.transmissionMapTransform)),Q.thickness.value=_.thickness,_.thicknessMap&&(Q.thicknessMap.value=_.thicknessMap,n(_.thicknessMap,Q.thicknessMapTransform)),Q.attenuationDistance.value=_.attenuationDistance,Q.attenuationColor.value.copy(_.attenuationColor)),_.anisotropy>0&&(Q.anisotropyVector.value.set(_.anisotropy*Math.cos(_.anisotropyRotation),_.anisotropy*Math.sin(_.anisotropyRotation)),_.anisotropyMap&&(Q.anisotropyMap.value=_.anisotropyMap,n(_.anisotropyMap,Q.anisotropyMapTransform))),Q.specularIntensity.value=_.specularIntensity,Q.specularColor.value.copy(_.specularColor),_.specularColorMap&&(Q.specularColorMap.value=_.specularColorMap,n(_.specularColorMap,Q.specularColorMapTransform)),_.specularIntensityMap&&(Q.specularIntensityMap.value=_.specularIntensityMap,n(_.specularIntensityMap,Q.specularIntensityMapTransform))}function m(Q,_){_.matcap&&(Q.matcap.value=_.matcap)}function T(Q,_){const v=e.get(_).light;Q.referencePosition.value.setFromMatrixPosition(v.matrixWorld),Q.nearDistance.value=v.shadow.camera.near,Q.farDistance.value=v.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function eur(t,e,n,r){let i={},o={},s=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(v,y){const b=y.program;r.uniformBlockBinding(v,b)}function c(v,y){let b=i[v.id];b===void 0&&(m(v),b=u(v),i[v.id]=b,v.addEventListener("dispose",Q));const E=y.program;r.updateUBOMapping(v,E);const x=e.render.frame;o[v.id]!==x&&(h(v),o[v.id]=x)}function u(v){const y=d();v.__bindingPointIndex=y;const b=t.createBuffer(),E=v.__size,x=v.usage;return t.bindBuffer(t.UNIFORM_BUFFER,b),t.bufferData(t.UNIFORM_BUFFER,E,x),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,y,b),b}function d(){for(let v=0;v0){x=b%E;const N=E-x;x!==0&&N-A.boundary<0&&(b+=E-x,C.__offset=b)}b+=A.storage}return x=b%E,x>0&&(b+=E-x),v.__size=b,v.__cache={},this}function T(v){const y={boundary:0,storage:0};return typeof v=="number"?(y.boundary=4,y.storage=4):v.isVector2?(y.boundary=8,y.storage=8):v.isVector3||v.isColor?(y.boundary=16,y.storage=12):v.isVector4?(y.boundary=16,y.storage=16):v.isMatrix3?(y.boundary=48,y.storage=48):v.isMatrix4?(y.boundary=64,y.storage=64):v.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",v),y}function Q(v){const y=v.target;y.removeEventListener("dispose",Q);const b=s.indexOf(y.__bindingPointIndex);s.splice(b,1),t.deleteBuffer(i[y.id]),delete i[y.id],delete o[y.id]}function _(){for(const v in i)t.deleteBuffer(i[v]);s=[],i={},o={}}return{bind:l,update:c,dispose:_}}class DG{constructor(e={}){const{canvas:n=Zcr(),context:r=null,depth:i=!0,stencil:o=!0,alpha:s=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:d=!1}=e;this.isWebGLRenderer=!0;let h;r!==null?h=r.getContextAttributes().alpha:h=s;const f=new Uint32Array(4),m=new Int32Array(4);let T=null,Q=null;const _=[],v=[];this.domElement=n,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=Zn,this._useLegacyLights=!1,this.toneMapping=Ga,this.toneMappingExposure=1;const y=this;let b=!1,E=0,x=0,L=null,M=-1,C=null;const A=new Nn,I=new Nn;let N=null;const V=new It(0);let R=0,B=n.width,F=n.height,U=1,G=null,Z=null;const Y=new Nn(0,0,B,F),ee=new Nn(0,0,B,F);let pe=!1;const K=new yE;let $=!1,ce=!1,Ee=null;const z=new jt,re=new Zt,he=new Le,Se={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function we(){return L===null?U:1}let se=r;function W(ne,Ae){for(let me=0;me{function Re(){if(J.forEach(function(ke){le.get(ke).currentProgram.isReady()&&J.delete(ke)}),J.size===0){de(ne);return}setTimeout(Re,10)}j.get("KHR_parallel_shader_compile")!==null?Re():setTimeout(Re,10)})};let Rt=null;function wn(ne){Rt&&Rt(ne)}function Bn(){$n.stop()}function Xt(){$n.start()}const $n=new CG;$n.setAnimationLoop(wn),typeof self<"u"&&$n.setContext(self),this.setAnimationLoop=function(ne){Rt=ne,rt.setAnimationLoop(ne),ne===null?$n.stop():$n.start()},rt.addEventListener("sessionstart",Bn),rt.addEventListener("sessionend",Xt),this.render=function(ne,Ae){if(Ae!==void 0&&Ae.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(b===!0)return;ne.matrixWorldAutoUpdate===!0&&ne.updateMatrixWorld(),Ae.parent===null&&Ae.matrixWorldAutoUpdate===!0&&Ae.updateMatrixWorld(),rt.enabled===!0&&rt.isPresenting===!0&&(rt.cameraAutoUpdate===!0&&rt.updateCamera(Ae),Ae=rt.getCamera()),ne.isScene===!0&&ne.onBeforeRender(y,ne,Ae,L),Q=Me.get(ne,v.length),Q.init(),v.push(Q),z.multiplyMatrices(Ae.projectionMatrix,Ae.matrixWorldInverse),K.setFromProjectionMatrix(z),ce=this.localClippingEnabled,$=Ie.init(this.clippingPlanes,ce),T=ve.get(ne,_.length),T.init(),_.push(T),hr(ne,Ae,0,y.sortObjects),T.finish(),y.sortObjects===!0&&T.sort(G,Z),this.info.render.frame++,$===!0&&Ie.beginShadows();const me=Q.state.shadowsArray;if(Fe.render(me,ne,Ae),$===!0&&Ie.endShadows(),this.info.autoReset===!0&&this.info.reset(),qe.render(T,ne),Q.setupLights(y._useLegacyLights),Ae.isArrayCamera){const J=Ae.cameras;for(let de=0,Re=J.length;de0?Q=v[v.length-1]:Q=null,_.pop(),_.length>0?T=_[_.length-1]:T=null};function hr(ne,Ae,me,J){if(ne.visible===!1)return;if(ne.layers.test(Ae.layers)){if(ne.isGroup)me=ne.renderOrder;else if(ne.isLOD)ne.autoUpdate===!0&&ne.update(Ae);else if(ne.isLight)Q.pushLight(ne),ne.castShadow&&Q.pushShadow(ne);else if(ne.isSprite){if(!ne.frustumCulled||K.intersectsSprite(ne)){J&&he.setFromMatrixPosition(ne.matrixWorld).applyMatrix4(z);const ke=q.update(ne),H=ne.material;H.visible&&T.push(ne,ke,H,me,he.z,null)}}else if((ne.isMesh||ne.isLine||ne.isPoints)&&(!ne.frustumCulled||K.intersectsObject(ne))){const ke=q.update(ne),H=ne.material;if(J&&(ne.boundingSphere!==void 0?(ne.boundingSphere===null&&ne.computeBoundingSphere(),he.copy(ne.boundingSphere.center)):(ke.boundingSphere===null&&ke.computeBoundingSphere(),he.copy(ke.boundingSphere.center)),he.applyMatrix4(ne.matrixWorld).applyMatrix4(z)),Array.isArray(H)){const je=ke.groups;for(let ft=0,dt=je.length;ft0&&$r(de,Re,Ae,me),J&&_e.viewport(A.copy(J)),de.length>0&&$t(de,Ae,me),Re.length>0&&$t(Re,Ae,me),ke.length>0&&$t(ke,Ae,me),_e.buffers.depth.setTest(!0),_e.buffers.depth.setMask(!0),_e.buffers.color.setMask(!0),_e.setPolygonOffset(!1)}function $r(ne,Ae,me,J){if((me.isScene===!0?me.overrideMaterial:null)!==null)return;const Re=oe.isWebGL2;Ee===null&&(Ee=new E2(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")?g0:qa,minFilter:b2,samples:Re?4:0})),y.getDrawingBufferSize(re),Re?Ee.setSize(re.x,re.y):Ee.setSize(Rd(re.x),Rd(re.y));const ke=y.getRenderTarget();y.setRenderTarget(Ee),y.getClearColor(V),R=y.getClearAlpha(),R<1&&y.setClearColor(16777215,.5),y.clear();const H=y.toneMapping;y.toneMapping=Ga,$t(ne,me,J),De.updateMultisampleRenderTarget(Ee),De.updateRenderTargetMipmap(Ee);let je=!1;for(let ft=0,dt=Ae.length;ft0),mt=!!me.morphAttributes.position,bt=!!me.morphAttributes.normal,qt=!!me.morphAttributes.color;let sn=Ga;J.toneMapped&&(L===null||L.isXRRenderTarget===!0)&&(sn=y.toneMapping);const Or=me.morphAttributes.position||me.morphAttributes.normal||me.morphAttributes.color,ln=Or!==void 0?Or.length:0,Ut=le.get(J),I2=Q.state.lights;if($===!0&&(ce===!0||ne!==C)){const Ur=ne===C&&J.id===M;Ie.setState(J,ne,Ur)}let Pn=!1;J.version===Ut.__version?(Ut.needsLights&&Ut.lightsStateVersion!==I2.state.version||Ut.outputColorSpace!==H||de.isBatchedMesh&&Ut.batching===!1||!de.isBatchedMesh&&Ut.batching===!0||de.isInstancedMesh&&Ut.instancing===!1||!de.isInstancedMesh&&Ut.instancing===!0||de.isSkinnedMesh&&Ut.skinning===!1||!de.isSkinnedMesh&&Ut.skinning===!0||de.isInstancedMesh&&Ut.instancingColor===!0&&de.instanceColor===null||de.isInstancedMesh&&Ut.instancingColor===!1&&de.instanceColor!==null||Ut.envMap!==je||J.fog===!0&&Ut.fog!==Re||Ut.numClippingPlanes!==void 0&&(Ut.numClippingPlanes!==Ie.numPlanes||Ut.numIntersection!==Ie.numIntersection)||Ut.vertexAlphas!==ft||Ut.vertexTangents!==dt||Ut.morphTargets!==mt||Ut.morphNormals!==bt||Ut.morphColors!==qt||Ut.toneMapping!==sn||oe.isWebGL2===!0&&Ut.morphTargetsCount!==ln)&&(Pn=!0):(Pn=!0,Ut.__version=J.version);let ko=Ut.currentProgram;Pn===!0&&(ko=zn(J,Ae,de));let o3=!1,ms=!1,k2=!1;const _n=ko.getUniforms(),ki=Ut.uniforms;if(_e.useProgram(ko.program)&&(o3=!0,ms=!0,k2=!0),J.id!==M&&(M=J.id,ms=!0),o3||C!==ne){_n.setValue(se,"projectionMatrix",ne.projectionMatrix),_n.setValue(se,"viewMatrix",ne.matrixWorldInverse);const Ur=_n.map.cameraPosition;Ur!==void 0&&Ur.setValue(se,he.setFromMatrixPosition(ne.matrixWorld)),oe.logarithmicDepthBuffer&&_n.setValue(se,"logDepthBufFC",2/(Math.log(ne.far+1)/Math.LN2)),(J.isMeshPhongMaterial||J.isMeshToonMaterial||J.isMeshLambertMaterial||J.isMeshBasicMaterial||J.isMeshStandardMaterial||J.isShaderMaterial)&&_n.setValue(se,"isOrthographic",ne.isOrthographicCamera===!0),C!==ne&&(C=ne,ms=!0,k2=!0)}if(de.isSkinnedMesh){_n.setOptional(se,de,"bindMatrix"),_n.setOptional(se,de,"bindMatrixInverse");const Ur=de.skeleton;Ur&&(oe.floatVertexTextures?(Ur.boneTexture===null&&Ur.computeBoneTexture(),_n.setValue(se,"boneTexture",Ur.boneTexture,De)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}de.isBatchedMesh&&(_n.setOptional(se,de,"batchingTexture"),_n.setValue(se,"batchingTexture",de._matricesTexture,De));const si=me.morphAttributes;if((si.position!==void 0||si.normal!==void 0||si.color!==void 0&&oe.isWebGL2===!0)&&ot.update(de,me,ko),(ms||Ut.receiveShadow!==de.receiveShadow)&&(Ut.receiveShadow=de.receiveShadow,_n.setValue(se,"receiveShadow",de.receiveShadow)),J.isMeshGouraudMaterial&&J.envMap!==null&&(ki.envMap.value=je,ki.flipEnvMap.value=je.isCubeTexture&&je.isRenderTargetTexture===!1?-1:1),ms&&(_n.setValue(se,"toneMappingExposure",y.toneMappingExposure),Ut.needsLights&&co(ki,k2),Re&&J.fog===!0&&fe.refreshFogUniforms(ki,Re),fe.refreshMaterialUniforms(ki,J,U,F,Ee),gu.upload(se,Mr(Ut),ki,De)),J.isShaderMaterial&&J.uniformsNeedUpdate===!0&&(gu.upload(se,Mr(Ut),ki,De),J.uniformsNeedUpdate=!1),J.isSpriteMaterial&&_n.setValue(se,"center",de.center),_n.setValue(se,"modelViewMatrix",de.modelViewMatrix),_n.setValue(se,"normalMatrix",de.normalMatrix),_n.setValue(se,"modelMatrix",de.matrixWorld),J.isShaderMaterial||J.isRawShaderMaterial){const Ur=J.uniformsGroups;for(let P2=0,Pi=Ur.length;P20&&De.useMultisampledRTT(ne)===!1?de=le.get(ne).__webglMultisampledFramebuffer:Array.isArray(dt)?de=dt[me]:de=dt,A.copy(ne.viewport),I.copy(ne.scissor),N=ne.scissorTest}else A.copy(Y).multiplyScalar(U).floor(),I.copy(ee).multiplyScalar(U).floor(),N=pe;if(_e.bindFramebuffer(se.FRAMEBUFFER,de)&&oe.drawBuffers&&J&&_e.drawBuffers(ne,de),_e.viewport(A),_e.scissor(I),_e.setScissorTest(N),Re){const je=le.get(ne.texture);se.framebufferTexture2D(se.FRAMEBUFFER,se.COLOR_ATTACHMENT0,se.TEXTURE_CUBE_MAP_POSITIVE_X+Ae,je.__webglTexture,me)}else if(ke){const je=le.get(ne.texture),ft=Ae||0;se.framebufferTextureLayer(se.FRAMEBUFFER,se.COLOR_ATTACHMENT0,je.__webglTexture,me||0,ft)}M=-1},this.readRenderTargetPixels=function(ne,Ae,me,J,de,Re,ke){if(!(ne&&ne.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let H=le.get(ne).__webglFramebuffer;if(ne.isWebGLCubeRenderTarget&&ke!==void 0&&(H=H[ke]),H){_e.bindFramebuffer(se.FRAMEBUFFER,H);try{const je=ne.texture,ft=je.format,dt=je.type;if(ft!==zi&&Ot.convert(ft)!==se.getParameter(se.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const mt=dt===g0&&(j.has("EXT_color_buffer_half_float")||oe.isWebGL2&&j.has("EXT_color_buffer_float"));if(dt!==qa&&Ot.convert(dt)!==se.getParameter(se.IMPLEMENTATION_COLOR_READ_TYPE)&&!(dt===Bs&&(oe.isWebGL2||j.has("OES_texture_float")||j.has("WEBGL_color_buffer_float")))&&!mt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Ae>=0&&Ae<=ne.width-J&&me>=0&&me<=ne.height-de&&se.readPixels(Ae,me,J,de,Ot.convert(ft),Ot.convert(dt),Re)}finally{const je=L!==null?le.get(L).__webglFramebuffer:null;_e.bindFramebuffer(se.FRAMEBUFFER,je)}}},this.copyFramebufferToTexture=function(ne,Ae,me=0){const J=Math.pow(2,-me),de=Math.floor(Ae.image.width*J),Re=Math.floor(Ae.image.height*J);De.setTexture2D(Ae,0),se.copyTexSubImage2D(se.TEXTURE_2D,me,0,0,ne.x,ne.y,de,Re),_e.unbindTexture()},this.copyTextureToTexture=function(ne,Ae,me,J=0){const de=Ae.image.width,Re=Ae.image.height,ke=Ot.convert(me.format),H=Ot.convert(me.type);De.setTexture2D(me,0),se.pixelStorei(se.UNPACK_FLIP_Y_WEBGL,me.flipY),se.pixelStorei(se.UNPACK_PREMULTIPLY_ALPHA_WEBGL,me.premultiplyAlpha),se.pixelStorei(se.UNPACK_ALIGNMENT,me.unpackAlignment),Ae.isDataTexture?se.texSubImage2D(se.TEXTURE_2D,J,ne.x,ne.y,de,Re,ke,H,Ae.image.data):Ae.isCompressedTexture?se.compressedTexSubImage2D(se.TEXTURE_2D,J,ne.x,ne.y,Ae.mipmaps[0].width,Ae.mipmaps[0].height,ke,Ae.mipmaps[0].data):se.texSubImage2D(se.TEXTURE_2D,J,ne.x,ne.y,ke,H,Ae.image),J===0&&me.generateMipmaps&&se.generateMipmap(se.TEXTURE_2D),_e.unbindTexture()},this.copyTextureToTexture3D=function(ne,Ae,me,J,de=0){if(y.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Re=ne.max.x-ne.min.x+1,ke=ne.max.y-ne.min.y+1,H=ne.max.z-ne.min.z+1,je=Ot.convert(J.format),ft=Ot.convert(J.type);let dt;if(J.isData3DTexture)De.setTexture3D(J,0),dt=se.TEXTURE_3D;else if(J.isDataArrayTexture)De.setTexture2DArray(J,0),dt=se.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}se.pixelStorei(se.UNPACK_FLIP_Y_WEBGL,J.flipY),se.pixelStorei(se.UNPACK_PREMULTIPLY_ALPHA_WEBGL,J.premultiplyAlpha),se.pixelStorei(se.UNPACK_ALIGNMENT,J.unpackAlignment);const mt=se.getParameter(se.UNPACK_ROW_LENGTH),bt=se.getParameter(se.UNPACK_IMAGE_HEIGHT),qt=se.getParameter(se.UNPACK_SKIP_PIXELS),sn=se.getParameter(se.UNPACK_SKIP_ROWS),Or=se.getParameter(se.UNPACK_SKIP_IMAGES),ln=me.isCompressedTexture?me.mipmaps[0]:me.image;se.pixelStorei(se.UNPACK_ROW_LENGTH,ln.width),se.pixelStorei(se.UNPACK_IMAGE_HEIGHT,ln.height),se.pixelStorei(se.UNPACK_SKIP_PIXELS,ne.min.x),se.pixelStorei(se.UNPACK_SKIP_ROWS,ne.min.y),se.pixelStorei(se.UNPACK_SKIP_IMAGES,ne.min.z),me.isDataTexture||me.isData3DTexture?se.texSubImage3D(dt,de,Ae.x,Ae.y,Ae.z,Re,ke,H,je,ft,ln.data):me.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),se.compressedTexSubImage3D(dt,de,Ae.x,Ae.y,Ae.z,Re,ke,H,je,ln.data)):se.texSubImage3D(dt,de,Ae.x,Ae.y,Ae.z,Re,ke,H,je,ft,ln),se.pixelStorei(se.UNPACK_ROW_LENGTH,mt),se.pixelStorei(se.UNPACK_IMAGE_HEIGHT,bt),se.pixelStorei(se.UNPACK_SKIP_PIXELS,qt),se.pixelStorei(se.UNPACK_SKIP_ROWS,sn),se.pixelStorei(se.UNPACK_SKIP_IMAGES,Or),de===0&&J.generateMipmaps&&se.generateMipmap(dt),_e.unbindTexture()},this.initTexture=function(ne){ne.isCubeTexture?De.setTextureCube(ne,0):ne.isData3DTexture?De.setTexture3D(ne,0):ne.isDataArrayTexture||ne.isCompressedArrayTexture?De.setTexture2DArray(ne,0):De.setTexture2D(ne,0),_e.unbindTexture()},this.resetState=function(){E=0,x=0,L=null,_e.reset(),pt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return $s}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===QE?"display-p3":"srgb",n.unpackColorSpace=mn.workingColorSpace===V9?"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===Zn?s2:hG}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===s2?Zn:Ar}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 tur extends DG{}tur.prototype.isWebGL1Renderer=!0;class nur extends jn{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,n){return super.copy(e,n),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 n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class rur{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=fv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=yo()}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,n){this.updateRanges.push({start:e,count:n})}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,n,r){e*=this.stride,r*=n.stride;for(let i=0,o=this.stride;il)continue;h.applyMatrix4(this.matrixWorld);const M=e.ray.origin.distanceTo(h);Me.far||n.push({distance:M,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,s.start),v=Math.min(Q.count,s.start+s.count);for(let y=_,b=v-1;yl)continue;h.applyMatrix4(this.matrixWorld);const x=e.ray.origin.distanceTo(h);xe.far||n.push({distance:x,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=i.length;o0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=i.length;oi.far)return;o.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:s})}}class AE extends bo{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new It(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 It(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=_E,this.normalScale=new Zt(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 aa extends AE{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 Zt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Pr(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new It(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 It(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new It(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 Ak extends bo{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new It(16777215),this.specular=new It(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new It(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=_E,this.normalScale=new Zt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=mE,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 X5(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function pur(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function hur(t){function e(i,o){return t[i]-t[o]}const n=t.length,r=new Array(n);for(let i=0;i!==n;++i)r[i]=i;return r.sort(e),r}function wk(t,e,n){const r=t.length,i=new t.constructor(r);for(let o=0,s=0;s!==r;++o){const a=n[o]*e;for(let l=0;l!==e;++l)i[s++]=t[a+l]}return i}function HG(t,e,n,r){let i=1,o=t[0];for(;o!==void 0&&o[r]===void 0;)o=t[i++];if(o===void 0)return;let s=o[r];if(s!==void 0)if(Array.isArray(s))do s=o[r],s!==void 0&&(e.push(o.time),n.push.apply(n,s)),o=t[i++];while(o!==void 0);else if(s.toArray!==void 0)do s=o[r],s!==void 0&&(e.push(o.time),s.toArray(n,n.length)),o=t[i++];while(o!==void 0);else do s=o[r],s!==void 0&&(e.push(o.time),n.push(s)),o=t[i++];while(o!==void 0)}class h6{constructor(e,n,r,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new n.constructor(r),this.sampleValues=n,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let r=this._cachedIndex,i=n[r],o=n[r-1];e:{t:{let s;n:{r:if(!(e=o)){const a=n[1];e=o)break t}s=r,r=0;break n}break e}for(;r>>1;en;)--s;if(++s,o!==0||s!==i){o>=s&&(s=Math.max(s,1),o=s-1);const a=this.getValueSize();this.times=r.slice(o,s),this.values=this.values.slice(o*a,s*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,o=r.length;o===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let s=null;for(let a=0;a!==o;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(s!==null&&s>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,s),e=!1;break}s=l}if(i!==void 0&&pur(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),n=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===s_,o=e.length-1;let s=1;for(let a=1;a0){e[s]=e[o];for(let a=o*r,l=s*r,c=0;c!==r;++c)n[l+c]=n[a+c];++s}return s!==e.length?(this.times=e.slice(0,s),this.values=n.slice(0,s*r)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),r=this.constructor,i=new r(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}Ts.prototype.TimeBufferType=Float32Array;Ts.prototype.ValueBufferType=Float32Array;Ts.prototype.DefaultInterpolation=Qc;class t3 extends Ts{}t3.prototype.ValueTypeName="bool";t3.prototype.ValueBufferType=Array;t3.prototype.DefaultInterpolation=_0;t3.prototype.InterpolantFactoryMethodLinear=void 0;t3.prototype.InterpolantFactoryMethodSmooth=void 0;class VG extends Ts{}VG.prototype.ValueTypeName="color";class bc extends Ts{}bc.prototype.ValueTypeName="number";class _ur extends h6{constructor(e,n,r,i){super(e,n,r,i)}interpolate_(e,n,r,i){const o=this.resultBuffer,s=this.sampleValues,a=this.valueSize,l=(r-n)/(i-n);let c=e*a;for(let u=c+a;c!==u;c+=4)c1.slerpFlat(o,0,s,c-a,s,c,l);return o}}class S2 extends Ts{InterpolantFactoryMethodLinear(e){return new _ur(this.times,this.values,this.getValueSize(),e)}}S2.prototype.ValueTypeName="quaternion";S2.prototype.DefaultInterpolation=Qc;S2.prototype.InterpolantFactoryMethodSmooth=void 0;class n3 extends Ts{}n3.prototype.ValueTypeName="string";n3.prototype.ValueBufferType=Array;n3.prototype.DefaultInterpolation=_0;n3.prototype.InterpolantFactoryMethodLinear=void 0;n3.prototype.InterpolantFactoryMethodSmooth=void 0;class Ec extends Ts{}Ec.prototype.ValueTypeName="vector";class Qur{constructor(e,n=-1,r,i=xcr){this.name=e,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=yo(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],r=e.tracks,i=1/(e.fps||1);for(let s=0,a=r.length;s!==a;++s)n.push(yur(r[s]).scale(i));const o=new this(e.name,e.duration,n,e.blendMode);return o.uuid=e.uuid,o}static toJSON(e){const n=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let o=0,s=r.length;o!==s;++o)n.push(Ts.toJSON(r[o]));return i}static CreateFromMorphTargetSequence(e,n,r,i){const o=n.length,s=[];for(let a=0;a1){const d=u[1];let h=i[d];h||(i[d]=h=[]),h.push(c)}}const s=[];for(const a in i)s.push(this.CreateFromMorphTargetSequence(a,i[a],n,r));return s}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(d,h,f,m,T){if(f.length!==0){const Q=[],_=[];HG(f,Q,_,m),Q.length!==0&&T.push(new d(h,Q,_))}},i=[],o=e.name||"default",s=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let d=0;d{n&&n(o),this.manager.itemEnd(e)},0),o;if(Rs[e]!==void 0){Rs[e].push({onLoad:n,onProgress:r,onError:i});return}Rs[e]=[],Rs[e].push({onLoad:n,onProgress:r,onError:i});const s=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(s).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const u=Rs[e],d=c.body.getReader(),h=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),f=h?parseInt(h):0,m=f!==0;let T=0;const Q=new ReadableStream({start(_){v();function v(){d.read().then(({done:y,value:b})=>{if(y)_.close();else{T+=b.byteLength;const E=new ProgressEvent("progress",{lengthComputable:m,loaded:T,total:f});for(let x=0,L=u.length;x{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return c.json();default:if(a===void 0)return c.text();{const d=/charset="?([^;"\s]*)"?/i.exec(a),h=d&&d[1]?d[1].toLowerCase():void 0,f=new TextDecoder(h);return c.arrayBuffer().then(m=>f.decode(m))}}}).then(c=>{xc.add(e,c);const u=Rs[e];delete Rs[e];for(let d=0,h=u.length;d{const u=Rs[e];if(u===void 0)throw this.manager.itemError(e),c;delete Rs[e];for(let d=0,h=u.length;d{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Sur extends r3{constructor(e){super(e)}load(e,n,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,s=xc.get(e);if(s!==void 0)return o.manager.itemStart(e),setTimeout(function(){n&&n(s),o.manager.itemEnd(e)},0),s;const a=Q0("img");function l(){u(),xc.add(e,this),n&&n(this),o.manager.itemEnd(e)}function c(d){u(),i&&i(d),o.manager.itemError(e),o.manager.itemEnd(e)}function u(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),o.manager.itemStart(e),a.src=e,a}}class BG extends r3{constructor(e){super(e)}load(e,n,r,i){const o=new Cr,s=new Sur(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(e,function(a){o.image=a,o.needsUpdate=!0,n!==void 0&&n(o)},r,i),o}}class U9 extends jn{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new It(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}const N_=new jt,Mk=new Le,Ok=new Le;class wE{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Zt(512,512),this.map=null,this.mapPass=null,this.matrix=new jt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new yE,this._frameExtents=new Zt(1,1),this._viewportCount=1,this._viewports=[new Nn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,r=this.matrix;Mk.setFromMatrixPosition(e.matrixWorld),n.position.copy(Mk),Ok.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(Ok),n.updateMatrixWorld(),N_.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(N_),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(N_)}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 Lur extends wE{constructor(){super(new Jr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const n=this.camera,r=vc*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,o=e.distance||n.far;(r!==n.fov||i!==n.aspect||o!==n.far)&&(n.fov=r,n.aspect=i,n.far=o,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class Cur extends U9{constructor(e,n,r=0,i=Math.PI/3,o=0,s=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(jn.DEFAULT_UP),this.updateMatrix(),this.target=new jn,this.distance=r,this.angle=i,this.penumbra=o,this.decay=s,this.map=null,this.shadow=new Lur}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),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 Rk=new jt,b4=new Le,D_=new Le;class Aur extends wE{constructor(){super(new Jr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Zt(4,2),this._viewportCount=6,this._viewports=[new Nn(2,1,1,1),new Nn(0,1,1,1),new Nn(3,1,1,1),new Nn(1,1,1,1),new Nn(3,0,1,1),new Nn(1,0,1,1)],this._cubeDirections=[new Le(1,0,0),new Le(-1,0,0),new Le(0,0,1),new Le(0,0,-1),new Le(0,1,0),new Le(0,-1,0)],this._cubeUps=[new Le(0,1,0),new Le(0,1,0),new Le(0,1,0),new Le(0,1,0),new Le(0,0,1),new Le(0,0,-1)]}updateMatrices(e,n=0){const r=this.camera,i=this.matrix,o=e.distance||r.far;o!==r.far&&(r.far=o,r.updateProjectionMatrix()),b4.setFromMatrixPosition(e.matrixWorld),r.position.copy(b4),D_.copy(r.position),D_.add(this._cubeDirections[n]),r.up.copy(this._cubeUps[n]),r.lookAt(D_),r.updateMatrixWorld(),i.makeTranslation(-b4.x,-b4.y,-b4.z),Rk.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Rk)}}class wur extends U9{constructor(e,n,r=0,i=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new Aur}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Mur extends wE{constructor(){super(new EE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class $G extends U9{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(jn.DEFAULT_UP),this.updateMatrix(),this.target=new jn,this.shadow=new Mur}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Our extends U9{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class z4{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";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,n,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,s=xc.get(e);if(s!==void 0)return o.manager.itemStart(e),setTimeout(function(){n&&n(s),o.manager.itemEnd(e)},0),s;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(o.options,{colorSpaceConversion:"none"}))}).then(function(l){xc.add(e,l),n&&n(l),o.manager.itemEnd(e)}).catch(function(l){i&&i(l),o.manager.itemError(e),o.manager.itemEnd(e)}),o.manager.itemStart(e)}}const ME="\\[\\]\\.:\\/",Nur=new RegExp("["+ME+"]","g"),OE="[^"+ME+"]",Dur="[^"+ME.replace("\\.","")+"]",Iur=/((?:WC+[\/:])*)/.source.replace("WC",OE),kur=/(WCOD+)?/.source.replace("WCOD",Dur),Pur=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",OE),Hur=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",OE),Vur=new RegExp("^"+Iur+kur+Pur+Hur+"$"),Fur=["material","materials","bones","map"];class Bur{constructor(e,n,r){const i=r||yn.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,n)}setValue(e,n){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,o=r.length;i!==o;++i)r[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].unbind()}}class yn{constructor(e,n,r){this.path=n,this.parsedPath=r||yn.parseTrackName(n),this.node=yn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,r){return e&&e.isAnimationObjectGroup?new yn.Composite(e,n,r):new yn(e,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Nur,"")}static parseTrackName(e){const n=Vur.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const o=r.nodeName.substring(i+1);Fur.indexOf(o)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=o)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(n);if(r!==void 0)return r}if(e.children){const r=function(o){for(let s=0;s=2.0 are supported."));return}const c=new vdr(o,{path:n||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[d]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+d+'".')}}c.setExtensions(s),c.setPlugins(a),c.parse(r,i)}parseAsync(e,n){const r=this;return new Promise(function(i,o){r.parse(e,n,i,o)})}}function Uur(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const Kt={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 Gur{constructor(e){this.parser=e,this.name=Kt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,n=this.parser.json.nodes||[];for(let r=0,i=n.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return n.loadTextureImage(e,o.source,s)}}class rdr{constructor(e){this.parser=e,this.name=Kt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const n=this.name,r=this.parser,i=r.json,o=i.textures[e];if(!o.extensions||!o.extensions[n])return null;const s=o.extensions[n],a=i.images[s.source];let l=r.textureLoader;if(a.uri){const c=r.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return r.loadTextureImage(e,s.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class idr{constructor(e){this.parser=e,this.name=Kt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const n=this.name,r=this.parser,i=r.json,o=i.textures[e];if(!o.extensions||!o.extensions[n])return null;const s=o.extensions[n],a=i.images[s.source];let l=r.textureLoader;if(a.uri){const c=r.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return r.loadTextureImage(e,s.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class odr{constructor(e){this.name=Kt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const n=this.parser.json,r=n.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],o=this.parser.getDependency("buffer",i.buffer),s=this.parser.options.meshoptDecoder;if(!s||!s.supported){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return o.then(function(a){const l=i.byteOffset||0,c=i.byteLength||0,u=i.count,d=i.byteStride,h=new Uint8Array(a,l,c);return s.decodeGltfBufferAsync?s.decodeGltfBufferAsync(u,d,h,i.mode,i.filter).then(function(f){return f.buffer}):s.ready.then(function(){const f=new ArrayBuffer(u*d);return s.decodeGltfBuffer(new Uint8Array(f),u,d,h,i.mode,i.filter),f})})}else return null}}class sdr{constructor(e){this.name=Kt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const n=this.parser.json,r=n.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=n.meshes[r.mesh];for(const c of i.primitives)if(c.mode!==Ui.TRIANGLES&&c.mode!==Ui.TRIANGLE_STRIP&&c.mode!==Ui.TRIANGLE_FAN&&c.mode!==void 0)return null;const s=r.extensions[this.name].attributes,a=[],l={};for(const c in s)a.push(this.parser.getDependency("accessor",s[c]).then(u=>(l[c]=u,l[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(c=>{const u=c.pop(),d=u.isGroup?u.children:[u],h=c[0].count,f=[];for(const m of d){const T=new jt,Q=new Le,_=new c1,v=new Le(1,1,1),y=new cur(m.geometry,m.material,h);for(let b=0;b0||t.search(/^data\:image\/jpeg/)===0?"image/jpeg":t.search(/\.webp($|\?)/i)>0||t.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const Qdr=new jt;class vdr{constructor(e={},n={}){this.json=e,this.extensions={},this.plugins={},this.options=n,this.cache=new Uur,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,o=-1;typeof navigator<"u"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,o=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||r||i&&o<98?this.textureLoader=new BG(this.options.manager):this.textureLoader=new Rur(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new FG(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,n){const r=this,i=this.json,o=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(s){return s._markDefs&&s._markDefs()}),Promise.all(this._invokeAll(function(s){return s.beforeRoot&&s.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(s){const a={scene:s[0][i.scene||0],scenes:s[0],animations:s[1],cameras:s[2],asset:i.asset,parser:r,userData:{}};return H1(o,a,i),Da(a,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(n)}_markDefs(){const e=this.json.nodes||[],n=this.json.skins||[],r=this.json.meshes||[];for(let i=0,o=n.length;i{const l=this.associations.get(s);l!=null&&this.associations.set(a,l);for(const[c,u]of s.children.entries())o(u,a.children[c])};return o(r,i),i.name+="_instance_"+e.uses[n]++,i}_invokeOne(e){const n=Object.values(this.plugins);n.push(this);for(let r=0;r=2&&Q.setY(C,x[L*l+1]),l>=3&&Q.setZ(C,x[L*l+2]),l>=4&&Q.setW(C,x[L*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return Q})}loadTexture(e){const n=this.json,r=this.options,o=n.textures[e].source,s=n.images[o];let a=this.textureLoader;if(s.uri){const l=r.manager.getHandler(s.uri);l!==null&&(a=l)}return this.loadTextureImage(e,o,a)}loadTextureImage(e,n,r){const i=this,o=this.json,s=o.textures[e],a=o.images[n],l=(a.uri||a.bufferView)+":"+s.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(n,r).then(function(u){u.flipY=!1,u.name=s.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const h=(o.samplers||{})[s.sampler]||{};return u.magFilter=Ik[h.magFilter]||di,u.minFilter=Ik[h.minFilter]||b2,u.wrapS=kk[h.wrapS]||gc,u.wrapT=kk[h.wrapT]||gc,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[l]=c,c}loadImageSource(e,n){const r=this,i=this.json,o=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(d=>d.clone());const s=i.images[e],a=self.URL||self.webkitURL;let l=s.uri||"",c=!1;if(s.bufferView!==void 0)l=r.getDependency("bufferView",s.bufferView).then(function(d){c=!0;const h=new Blob([d],{type:s.mimeType});return l=a.createObjectURL(h),l});else if(s.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(l).then(function(d){return new Promise(function(h,f){let m=h;n.isImageBitmapLoader===!0&&(m=function(T){const Q=new Cr(T);Q.needsUpdate=!0,h(Q)}),n.load(z4.resolveURL(d,o.path),m,void 0,f)})}).then(function(d){return c===!0&&a.revokeObjectURL(l),d.userData.mimeType=s.mimeType||_dr(s.uri),d}).catch(function(d){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),d});return this.sourceCache[e]=u,u}assignTexture(e,n,r,i){const o=this;return this.getDependency("texture",r.index).then(function(s){if(!s)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(s=s.clone(),s.channel=r.texCoord),o.extensions[Kt.KHR_TEXTURE_TRANSFORM]){const a=r.extensions!==void 0?r.extensions[Kt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=o.associations.get(s);s=o.extensions[Kt.KHR_TEXTURE_TRANSFORM].extendTexture(s,a),o.associations.set(s,l)}}return i!==void 0&&(s.colorSpace=i),e[n]=s,s})}assignFinalMaterial(e){const n=e.geometry;let r=e.material;const i=n.attributes.tangent===void 0,o=n.attributes.color!==void 0,s=n.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new PG,bo.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 kG,bo.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(a,l)),r=l}if(i||o||s){let a="ClonedMaterial:"+r.uuid+":";i&&(a+="derivative-tangents:"),o&&(a+="vertex-colors:"),s&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=r.clone(),o&&(l.vertexColors=!0),s&&(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 AE}loadMaterial(e){const n=this,r=this.json,i=this.extensions,o=r.materials[e];let s;const a={},l=o.extensions||{},c=[];if(l[Kt.KHR_MATERIALS_UNLIT]){const d=i[Kt.KHR_MATERIALS_UNLIT];s=d.getMaterialType(),c.push(d.extendParams(a,o,n))}else{const d=o.pbrMetallicRoughness||{};if(a.color=new It(1,1,1),a.opacity=1,Array.isArray(d.baseColorFactor)){const h=d.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],Ar),a.opacity=h[3]}d.baseColorTexture!==void 0&&c.push(n.assignTexture(a,"map",d.baseColorTexture,Zn)),a.metalness=d.metallicFactor!==void 0?d.metallicFactor:1,a.roughness=d.roughnessFactor!==void 0?d.roughnessFactor:1,d.metallicRoughnessTexture!==void 0&&(c.push(n.assignTexture(a,"metalnessMap",d.metallicRoughnessTexture)),c.push(n.assignTexture(a,"roughnessMap",d.metallicRoughnessTexture))),s=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(e,a)})))}o.doubleSided===!0&&(a.side=zo);const u=o.alphaMode||k_.OPAQUE;if(u===k_.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===k_.MASK&&(a.alphaTest=o.alphaCutoff!==void 0?o.alphaCutoff:.5)),o.normalTexture!==void 0&&s!==Va&&(c.push(n.assignTexture(a,"normalMap",o.normalTexture)),a.normalScale=new Zt(1,1),o.normalTexture.scale!==void 0)){const d=o.normalTexture.scale;a.normalScale.set(d,d)}if(o.occlusionTexture!==void 0&&s!==Va&&(c.push(n.assignTexture(a,"aoMap",o.occlusionTexture)),o.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=o.occlusionTexture.strength)),o.emissiveFactor!==void 0&&s!==Va){const d=o.emissiveFactor;a.emissive=new It().setRGB(d[0],d[1],d[2],Ar)}return o.emissiveTexture!==void 0&&s!==Va&&c.push(n.assignTexture(a,"emissiveMap",o.emissiveTexture,Zn)),Promise.all(c).then(function(){const d=new s(a);return o.name&&(d.name=o.name),Da(d,o),n.associations.set(d,{materials:e}),o.extensions&&H1(i,d,o),d})}createUniqueName(e){const n=yn.sanitizeNodeName(e||"");return n in this.nodeNamesUsed?n+"_"+ ++this.nodeNamesUsed[n]:(this.nodeNamesUsed[n]=0,n)}loadGeometries(e){const n=this,r=this.extensions,i=this.primitiveCache;function o(a){return r[Kt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,n).then(function(l){return Pk(l,a,n)})}const s=[];for(let a=0,l=e.length;a0&&mdr(_,o),_.name=n.createUniqueName(o.name||"mesh_"+e),Da(_,o),Q.extensions&&H1(i,_,Q),n.assignFinalMaterial(_),d.push(_)}for(let f=0,m=d.length;f1?u=new Z1:c.length===1?u=c[0]:u=new jn,u!==c[0])for(let d=0,h=c.length;d{const d=new Map;for(const[h,f]of i.associations)(h instanceof bo||h instanceof Cr)&&d.set(h,f);return u.traverse(h=>{const f=i.associations.get(h);f!=null&&d.set(h,f)}),d};return i.associations=c(o),o})}_createAnimationTracks(e,n,r,i,o){const s=[],a=e.name?e.name:e.uuid,l=[];Ea[o.path]===Ea.weights?e.traverse(function(h){h.morphTargetInfluences&&l.push(h.name?h.name:h.uuid)}):l.push(a);let c;switch(Ea[o.path]){case Ea.weights:c=bc;break;case Ea.rotation:c=S2;break;case Ea.position:case Ea.scale:c=Ec;break;default:switch(r.itemSize){case 1:c=bc;break;case 2:case 3:default:c=Ec;break}break}const u=i.interpolation!==void 0?pdr[i.interpolation]:Qc,d=this._getArrayFromAccessor(r);for(let h=0,f=l.length;h{Xe.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,et.emit("stop_webcam_video_stream"),Ke(()=>{Xe.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Xe.replace(),et.on("video_stream_image",t=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},Edr=["src"],xdr=["src"],Sdr={class:"controls"},Ldr={key:2};function Cdr(t,e,n,r,i,o){return k(),P("div",{class:"floating-frame bg-white",style:bn({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[5]||(e[5]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},[g("div",{class:"handle",onMousedown:e[0]||(e[0]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[1]||(e[1]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(k(),P("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,Edr)):ie("",!0),i.isVideoActive&&i.imageDataUrl==null?(k(),P("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,xdr)):ie("",!0),g("div",Sdr,[i.isVideoActive?ie("",!0):(k(),P("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]=(...s)=>o.startVideoStream&&o.startVideoStream(...s))},e[6]||(e[6]=[g("i",{"data-feather":"video"},null,-1)]))),i.isVideoActive?(k(),P("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]=(...s)=>o.stopVideoStream&&o.stopVideoStream(...s))},e[7]||(e[7]=[g("i",{"data-feather":"video"},null,-1)]))):ie("",!0),i.isVideoActive?(k(),P("span",Ldr,"FPS: "+ue(i.frameRate),1)):ie("",!0)])],36)}const Adr=Et(bdr,[["render",Cdr]]),wdr={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(){et.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ke(()=>{Xe.replace()})},stopAudioStream(){et.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ke(()=>{Xe.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Xe.replace(),et.on("update_spectrogram",t=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},Mdr=["src"],Odr={class:"controls"};function Rdr(t,e,n,r,i,o){return k(),P("div",{class:"floating-frame bg-white",style:bn({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[5]||(e[5]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},[g("div",{class:"handle",onMousedown:e[0]||(e[0]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[1]||(e[1]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(k(),P("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,Mdr)):ie("",!0),g("div",Odr,[i.isAudioActive?ie("",!0):(k(),P("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]=(...s)=>o.startAudioStream&&o.startAudioStream(...s))},e[6]||(e[6]=[g("i",{"data-feather":"mic"},null,-1)]))),i.isAudioActive?(k(),P("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]=(...s)=>o.stopAudioStream&&o.stopAudioStream(...s))},e[7]||(e[7]=[g("i",{"data-feather":"mic"},null,-1)]))):ie("",!0)])],36)}const Ndr=Et(wdr,[["render",Rdr]]),Ddr={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:Adr,AudioFrame:Ndr},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(t=>setTimeout(t,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ke(()=>{Xe.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 nur,this.camera=new Jr(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new DG,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const t=new za,e=new Ak({color:65280});this.cube=new ei(t,e),this.scene.add(this.cube);const n=new Our(4210752),r=new $G(16777215,.5);r.position.set(0,1,0),this.scene.add(n),this.scene.add(r),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:t,config:e}=this.$store.state;this.activePersonality=t[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(t){new $ur().load(t,n=>{this.scene.remove(this.cube),this.cube=n.scene,this.scene.add(this.cube)})},showBoxWithAvatar(t){this.cube&&this.scene.remove(this.cube);const e=new za,n=new BG().load(t),r=new Va({map:n});this.cube=new ei(e,r),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const t=new za,e=new Ak({color:65280});this.cube=new ei(t,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)}}},Idr={ref:"webglContainer"},kdr={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"},Pdr={key:0,class:"text-center"},Hdr={key:1,class:"text-center"},Vdr={class:"floating-frame2"},Fdr=["innerHTML"];function Bdr(t,e,n,r,i,o){const s=gt("VideoFrame"),a=gt("AudioFrame");return k(),P(ze,null,[g("div",Idr,null,512),g("div",kdr,[!i.activePersonality||!i.activePersonality.scene_path?(k(),P("div",Pdr," Personality does not have a 3d avatar. ")):ie("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(k(),P("div",Hdr," Personality does not have an avatar. ")):ie("",!0),g("div",Vdr,[g("div",{innerHTML:t.htmlContent},null,8,Fdr)])]),ae(s,{ref:"video_frame"},null,512),ae(a,{ref:"audio_frame"},null,512)],64)}const $dr=Et(Ddr,[["render",Bdr]]);let J5;const Udr=new Uint8Array(16);function Gdr(){if(!J5&&(J5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!J5))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J5(Udr)}const Er=[];for(let t=0;t<256;++t)Er.push((t+256).toString(16).slice(1));function qdr(t,e=0){return Er[t[e+0]]+Er[t[e+1]]+Er[t[e+2]]+Er[t[e+3]]+"-"+Er[t[e+4]]+Er[t[e+5]]+"-"+Er[t[e+6]]+Er[t[e+7]]+"-"+Er[t[e+8]]+Er[t[e+9]]+"-"+Er[t[e+10]]+Er[t[e+11]]+Er[t[e+12]]+Er[t[e+13]]+Er[t[e+14]]+Er[t[e+15]]}const zdr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hk={randomUUID:zdr};function Zs(t,e,n){if(Hk.randomUUID&&!e&&!t)return Hk.randomUUID();t=t||{};const r=t.random||(t.rng||Gdr)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,qdr(r)}class a2{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,n){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +}`;function U5r(t,e,n){let r=new yE;const i=new Zt,o=new Zt,s=new Nn,a=new V5r({depthPacking:xcr}),l=new F5r,c={},u=n.maxTextureSize,d={[ea]:gi,[gi]:ea,[zo]:zo},h=new x2({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Zt},radius:{value:4}},vertexShader:B5r,fragmentShader:$5r}),f=h.clone();f.defines.HORIZONTAL_PASS=1;const m=new hs;m.setAttribute("position",new ti(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const T=new ei(m,h),Q=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=rG;let _=this.type;this.render=function(E,x,L){if(Q.enabled===!1||Q.autoUpdate===!1&&Q.needsUpdate===!1||E.length===0)return;const M=t.getRenderTarget(),C=t.getActiveCubeFace(),A=t.getActiveMipmapLevel(),I=t.state;I.setBlending(Ua),I.buffers.color.setClear(1,1,1,1),I.buffers.depth.setTest(!0),I.setScissorTest(!1);const N=_!==Ds&&this.type===Ds,V=_===Ds&&this.type!==Ds;for(let R=0,B=E.length;Ru||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/G.x),i.x=o.x*G.x,U.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/G.y),i.y=o.y*G.y,U.mapSize.y=o.y)),U.map===null||N===!0||V===!0){const Y=this.type!==Ds?{minFilter:gr,magFilter:gr}:{};U.map!==null&&U.map.dispose(),U.map=new E2(i.x,i.y,Y),U.map.texture.name=F.name+".shadowMap",U.camera.updateProjectionMatrix()}t.setRenderTarget(U.map),t.clear();const Z=U.getViewportCount();for(let Y=0;Y0||x.map&&x.alphaTest>0){const I=C.uuid,N=x.uuid;let V=c[I];V===void 0&&(V={},c[I]=V);let R=V[N];R===void 0&&(R=C.clone(),V[N]=R),C=R}if(C.visible=x.visible,C.wireframe=x.wireframe,M===Ds?C.side=x.shadowSide!==null?x.shadowSide:x.side:C.side=x.shadowSide!==null?x.shadowSide:d[x.side],C.alphaMap=x.alphaMap,C.alphaTest=x.alphaTest,C.map=x.map,C.clipShadows=x.clipShadows,C.clippingPlanes=x.clippingPlanes,C.clipIntersection=x.clipIntersection,C.displacementMap=x.displacementMap,C.displacementScale=x.displacementScale,C.displacementBias=x.displacementBias,C.wireframeLinewidth=x.wireframeLinewidth,C.linewidth=x.linewidth,L.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const I=t.properties.get(C);I.light=L}return C}function b(E,x,L,M,C){if(E.visible===!1)return;if(E.layers.test(x.layers)&&(E.isMesh||E.isLine||E.isPoints)&&(E.castShadow||E.receiveShadow&&C===Ds)&&(!E.frustumCulled||r.intersectsObject(E))){E.modelViewMatrix.multiplyMatrices(L.matrixWorldInverse,E.matrixWorld);const N=e.update(E),V=E.material;if(Array.isArray(V)){const R=N.groups;for(let B=0,F=R.length;B=1):Y.indexOf("OpenGL ES")!==-1&&(Z=parseFloat(/^OpenGL ES (\d)/.exec(Y)[1]),G=Z>=2);let ee=null,pe={};const K=t.getParameter(t.SCISSOR_BOX),$=t.getParameter(t.VIEWPORT),ce=new Nn().fromArray(K),Ee=new Nn().fromArray($);function z(Qe,Ue,Ge,Ve){const Je=new Uint8Array(4),yt=t.createTexture();t.bindTexture(Qe,yt),t.texParameteri(Qe,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(Qe,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Rt=0;Rt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let T;const Q=new WeakMap;let _=!1;try{_=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(X,q){return _?new OffscreenCanvas(X,q):Q0("canvas")}function y(X,q,Te,fe){let ve=1;if((X.width>fe||X.height>fe)&&(ve=fe/Math.max(X.width,X.height)),ve<1||q===!0)if(typeof HTMLImageElement<"u"&&X instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&X instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&X instanceof ImageBitmap){const Me=q?Rd:Math.floor,Ie=Me(ve*X.width),Fe=Me(ve*X.height);T===void 0&&(T=v(Ie,Fe));const qe=Te?v(Ie,Fe):T;return qe.width=Ie,qe.height=Fe,qe.getContext("2d").drawImage(X,0,0,Ie,Fe),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+X.width+"x"+X.height+") to ("+Ie+"x"+Fe+")."),qe}else return"data"in X&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+X.width+"x"+X.height+")."),X;return X}function b(X){return hv(X.width)&&hv(X.height)}function E(X){return a?!1:X.wrapS!==qi||X.wrapT!==qi||X.minFilter!==gr&&X.minFilter!==di}function x(X,q){return X.generateMipmaps&&q&&X.minFilter!==gr&&X.minFilter!==di}function L(X){t.generateMipmap(X)}function M(X,q,Te,fe,ve=!1){if(a===!1)return q;if(X!==null){if(t[X]!==void 0)return t[X];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+X+"'")}let Me=q;if(q===t.RED&&(Te===t.FLOAT&&(Me=t.R32F),Te===t.HALF_FLOAT&&(Me=t.R16F),Te===t.UNSIGNED_BYTE&&(Me=t.R8)),q===t.RED_INTEGER&&(Te===t.UNSIGNED_BYTE&&(Me=t.R8UI),Te===t.UNSIGNED_SHORT&&(Me=t.R16UI),Te===t.UNSIGNED_INT&&(Me=t.R32UI),Te===t.BYTE&&(Me=t.R8I),Te===t.SHORT&&(Me=t.R16I),Te===t.INT&&(Me=t.R32I)),q===t.RG&&(Te===t.FLOAT&&(Me=t.RG32F),Te===t.HALF_FLOAT&&(Me=t.RG16F),Te===t.UNSIGNED_BYTE&&(Me=t.RG8)),q===t.RGBA){const Ie=ve?Ad:mn.getTransfer(fe);Te===t.FLOAT&&(Me=t.RGBA32F),Te===t.HALF_FLOAT&&(Me=t.RGBA16F),Te===t.UNSIGNED_BYTE&&(Me=Ie===Vn?t.SRGB8_ALPHA8:t.RGBA8),Te===t.UNSIGNED_SHORT_4_4_4_4&&(Me=t.RGBA4),Te===t.UNSIGNED_SHORT_5_5_5_1&&(Me=t.RGB5_A1)}return(Me===t.R16F||Me===t.R32F||Me===t.RG16F||Me===t.RG32F||Me===t.RGBA16F||Me===t.RGBA32F)&&e.get("EXT_color_buffer_float"),Me}function C(X,q,Te){return x(X,Te)===!0||X.isFramebufferTexture&&X.minFilter!==gr&&X.minFilter!==di?Math.log2(Math.max(q.width,q.height))+1:X.mipmaps!==void 0&&X.mipmaps.length>0?X.mipmaps.length:X.isCompressedTexture&&Array.isArray(X.image)?q.mipmaps.length:1}function A(X){return X===gr||X===uv||X===mu?t.NEAREST:t.LINEAR}function I(X){const q=X.target;q.removeEventListener("dispose",I),V(q),q.isVideoTexture&&m.delete(q)}function N(X){const q=X.target;q.removeEventListener("dispose",N),B(q)}function V(X){const q=r.get(X);if(q.__webglInit===void 0)return;const Te=X.source,fe=Q.get(Te);if(fe){const ve=fe[q.__cacheKey];ve.usedTimes--,ve.usedTimes===0&&R(X),Object.keys(fe).length===0&&Q.delete(Te)}r.remove(X)}function R(X){const q=r.get(X);t.deleteTexture(q.__webglTexture);const Te=X.source,fe=Q.get(Te);delete fe[q.__cacheKey],s.memory.textures--}function B(X){const q=X.texture,Te=r.get(X),fe=r.get(q);if(fe.__webglTexture!==void 0&&(t.deleteTexture(fe.__webglTexture),s.memory.textures--),X.depthTexture&&X.depthTexture.dispose(),X.isWebGLCubeRenderTarget)for(let ve=0;ve<6;ve++){if(Array.isArray(Te.__webglFramebuffer[ve]))for(let Me=0;Me=l&&console.warn("THREE.WebGLTextures: Trying to use "+X+" texture units while this GPU supports only "+l),F+=1,X}function Z(X){const q=[];return q.push(X.wrapS),q.push(X.wrapT),q.push(X.wrapR||0),q.push(X.magFilter),q.push(X.minFilter),q.push(X.anisotropy),q.push(X.internalFormat),q.push(X.format),q.push(X.type),q.push(X.generateMipmaps),q.push(X.premultiplyAlpha),q.push(X.flipY),q.push(X.unpackAlignment),q.push(X.colorSpace),q.join()}function Y(X,q){const Te=r.get(X);if(X.isVideoTexture&&Oe(X),X.isRenderTargetTexture===!1&&X.version>0&&Te.__version!==X.version){const fe=X.image;if(fe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(fe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{he(Te,X,q);return}}n.bindTexture(t.TEXTURE_2D,Te.__webglTexture,t.TEXTURE0+q)}function ee(X,q){const Te=r.get(X);if(X.version>0&&Te.__version!==X.version){he(Te,X,q);return}n.bindTexture(t.TEXTURE_2D_ARRAY,Te.__webglTexture,t.TEXTURE0+q)}function pe(X,q){const Te=r.get(X);if(X.version>0&&Te.__version!==X.version){he(Te,X,q);return}n.bindTexture(t.TEXTURE_3D,Te.__webglTexture,t.TEXTURE0+q)}function K(X,q){const Te=r.get(X);if(X.version>0&&Te.__version!==X.version){Se(Te,X,q);return}n.bindTexture(t.TEXTURE_CUBE_MAP,Te.__webglTexture,t.TEXTURE0+q)}const $={[gc]:t.REPEAT,[qi]:t.CLAMP_TO_EDGE,[Cd]:t.MIRRORED_REPEAT},ce={[gr]:t.NEAREST,[uv]:t.NEAREST_MIPMAP_NEAREST,[mu]:t.NEAREST_MIPMAP_LINEAR,[di]:t.LINEAR,[oG]:t.LINEAR_MIPMAP_NEAREST,[b2]:t.LINEAR_MIPMAP_LINEAR},Ee={[Lcr]:t.NEVER,[Rcr]:t.ALWAYS,[Ccr]:t.LESS,[TG]:t.LEQUAL,[Acr]:t.EQUAL,[Ocr]:t.GEQUAL,[wcr]:t.GREATER,[Mcr]:t.NOTEQUAL};function z(X,q,Te){if(Te?(t.texParameteri(X,t.TEXTURE_WRAP_S,$[q.wrapS]),t.texParameteri(X,t.TEXTURE_WRAP_T,$[q.wrapT]),(X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY)&&t.texParameteri(X,t.TEXTURE_WRAP_R,$[q.wrapR]),t.texParameteri(X,t.TEXTURE_MAG_FILTER,ce[q.magFilter]),t.texParameteri(X,t.TEXTURE_MIN_FILTER,ce[q.minFilter])):(t.texParameteri(X,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(X,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY)&&t.texParameteri(X,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(q.wrapS!==qi||q.wrapT!==qi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(X,t.TEXTURE_MAG_FILTER,A(q.magFilter)),t.texParameteri(X,t.TEXTURE_MIN_FILTER,A(q.minFilter)),q.minFilter!==gr&&q.minFilter!==di&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),q.compareFunction&&(t.texParameteri(X,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(X,t.TEXTURE_COMPARE_FUNC,Ee[q.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const fe=e.get("EXT_texture_filter_anisotropic");if(q.magFilter===gr||q.minFilter!==mu&&q.minFilter!==b2||q.type===Bs&&e.has("OES_texture_float_linear")===!1||a===!1&&q.type===g0&&e.has("OES_texture_half_float_linear")===!1)return;(q.anisotropy>1||r.get(q).__currentAnisotropy)&&(t.texParameterf(X,fe.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(q.anisotropy,i.getMaxAnisotropy())),r.get(q).__currentAnisotropy=q.anisotropy)}}function re(X,q){let Te=!1;X.__webglInit===void 0&&(X.__webglInit=!0,q.addEventListener("dispose",I));const fe=q.source;let ve=Q.get(fe);ve===void 0&&(ve={},Q.set(fe,ve));const Me=Z(q);if(Me!==X.__cacheKey){ve[Me]===void 0&&(ve[Me]={texture:t.createTexture(),usedTimes:0},s.memory.textures++,Te=!0),ve[Me].usedTimes++;const Ie=ve[X.__cacheKey];Ie!==void 0&&(ve[X.__cacheKey].usedTimes--,Ie.usedTimes===0&&R(q)),X.__cacheKey=Me,X.__webglTexture=ve[Me].texture}return Te}function he(X,q,Te){let fe=t.TEXTURE_2D;(q.isDataArrayTexture||q.isCompressedArrayTexture)&&(fe=t.TEXTURE_2D_ARRAY),q.isData3DTexture&&(fe=t.TEXTURE_3D);const ve=re(X,q),Me=q.source;n.bindTexture(fe,X.__webglTexture,t.TEXTURE0+Te);const Ie=r.get(Me);if(Me.version!==Ie.__version||ve===!0){n.activeTexture(t.TEXTURE0+Te);const Fe=mn.getPrimaries(mn.workingColorSpace),qe=q.colorSpace===ji?null:mn.getPrimaries(q.colorSpace),ot=q.colorSpace===ji||Fe===qe?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,q.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,q.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,ot);const it=E(q)&&b(q.image)===!1;let $e=y(q.image,it,!1,u);$e=He(q,$e);const Ot=b($e)||a,pt=o.convert(q.format,q.colorSpace);let ht=o.convert(q.type),Tt=M(q.internalFormat,pt,ht,q.colorSpace,q.isVideoTexture);z(fe,q,Ot);let rt;const ut=q.mipmaps,Qe=a&&q.isVideoTexture!==!0&&Tt!==fG,Ue=Ie.__version===void 0||ve===!0,Ge=C(q,$e,Ot);if(q.isDepthTexture)Tt=t.DEPTH_COMPONENT,a?q.type===Bs?Tt=t.DEPTH_COMPONENT32F:q.type===Ha?Tt=t.DEPTH_COMPONENT24:q.type===i2?Tt=t.DEPTH24_STENCIL8:Tt=t.DEPTH_COMPONENT16:q.type===Bs&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),q.format===o2&&Tt===t.DEPTH_COMPONENT&&q.type!==gE&&q.type!==Ha&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),q.type=Ha,ht=o.convert(q.type)),q.format===_c&&Tt===t.DEPTH_COMPONENT&&(Tt=t.DEPTH_STENCIL,q.type!==i2&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),q.type=i2,ht=o.convert(q.type))),Ue&&(Qe?n.texStorage2D(t.TEXTURE_2D,1,Tt,$e.width,$e.height):n.texImage2D(t.TEXTURE_2D,0,Tt,$e.width,$e.height,0,pt,ht,null));else if(q.isDataTexture)if(ut.length>0&&Ot){Qe&&Ue&&n.texStorage2D(t.TEXTURE_2D,Ge,Tt,ut[0].width,ut[0].height);for(let Ve=0,Je=ut.length;Ve>=1,Je>>=1}}else if(ut.length>0&&Ot){Qe&&Ue&&n.texStorage2D(t.TEXTURE_2D,Ge,Tt,ut[0].width,ut[0].height);for(let Ve=0,Je=ut.length;Ve0&&Ue++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Ue,rt,$e[0].width,$e[0].height));for(let Ve=0;Ve<6;Ve++)if(it){ut?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ve,0,0,0,$e[Ve].width,$e[Ve].height,ht,Tt,$e[Ve].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ve,0,rt,$e[Ve].width,$e[Ve].height,0,ht,Tt,$e[Ve].data);for(let Je=0;Je>Me),$e=Math.max(1,q.height>>Me);ve===t.TEXTURE_3D||ve===t.TEXTURE_2D_ARRAY?n.texImage3D(ve,Me,qe,it,$e,q.depth,0,Ie,Fe,null):n.texImage2D(ve,Me,qe,it,$e,0,Ie,Fe,null)}n.bindFramebuffer(t.FRAMEBUFFER,X),Ce(q)?h.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,fe,ve,r.get(Te).__webglTexture,0,De(q)):(ve===t.TEXTURE_2D||ve>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&ve<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,fe,ve,r.get(Te).__webglTexture,Me),n.bindFramebuffer(t.FRAMEBUFFER,null)}function se(X,q,Te){if(t.bindRenderbuffer(t.RENDERBUFFER,X),q.depthBuffer&&!q.stencilBuffer){let fe=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(Te||Ce(q)){const ve=q.depthTexture;ve&&ve.isDepthTexture&&(ve.type===Bs?fe=t.DEPTH_COMPONENT32F:ve.type===Ha&&(fe=t.DEPTH_COMPONENT24));const Me=De(q);Ce(q)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Me,fe,q.width,q.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,Me,fe,q.width,q.height)}else t.renderbufferStorage(t.RENDERBUFFER,fe,q.width,q.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,X)}else if(q.depthBuffer&&q.stencilBuffer){const fe=De(q);Te&&Ce(q)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,fe,t.DEPTH24_STENCIL8,q.width,q.height):Ce(q)?h.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,fe,t.DEPTH24_STENCIL8,q.width,q.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,q.width,q.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,X)}else{const fe=q.isWebGLMultipleRenderTargets===!0?q.texture:[q.texture];for(let ve=0;ve0){Te.__webglFramebuffer[Fe]=[];for(let qe=0;qe0){Te.__webglFramebuffer=[];for(let Fe=0;Fe0&&Ce(X)===!1){const Fe=Me?q:[q];Te.__webglMultisampledFramebuffer=t.createFramebuffer(),Te.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,Te.__webglMultisampledFramebuffer);for(let qe=0;qe0)for(let qe=0;qe0)for(let qe=0;qe0&&Ce(X)===!1){const q=X.isWebGLMultipleRenderTargets?X.texture:[X.texture],Te=X.width,fe=X.height;let ve=t.COLOR_BUFFER_BIT;const Me=[],Ie=X.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Fe=r.get(X),qe=X.isWebGLMultipleRenderTargets===!0;if(qe)for(let ot=0;ot0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&q.__useRenderToTexture!==!1}function Oe(X){const q=s.render.frame;m.get(X)!==q&&(m.set(X,q),X.update())}function He(X,q){const Te=X.colorSpace,fe=X.format,ve=X.type;return X.isCompressedTexture===!0||X.isVideoTexture===!0||X.format===pv||Te!==Ar&&Te!==ji&&(mn.getTransfer(Te)===Vn?a===!1?e.has("EXT_sRGB")===!0&&fe===zi?(X.format=pv,X.minFilter=di,X.generateMipmaps=!1):q=gG.sRGBToLinear(q):(fe!==zi||ve!==qa)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Te)),q}this.allocateTextureUnit=G,this.resetTextureUnits=U,this.setTexture2D=Y,this.setTexture2DArray=ee,this.setTexture3D=pe,this.setTextureCube=K,this.rebindTextures=oe,this.setupRenderTarget=_e,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=le,this.setupDepthRenderbuffer=j,this.setupFrameBufferTexture=we,this.useMultisampledRTT=Ce}function z5r(t,e,n){const r=n.isWebGL2;function i(o,s=ji){let a;const l=mn.getTransfer(s);if(o===qa)return t.UNSIGNED_BYTE;if(o===aG)return t.UNSIGNED_SHORT_4_4_4_4;if(o===lG)return t.UNSIGNED_SHORT_5_5_5_1;if(o===pcr)return t.BYTE;if(o===hcr)return t.SHORT;if(o===gE)return t.UNSIGNED_SHORT;if(o===sG)return t.INT;if(o===Ha)return t.UNSIGNED_INT;if(o===Bs)return t.FLOAT;if(o===g0)return r?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(o===Tcr)return t.ALPHA;if(o===zi)return t.RGBA;if(o===mcr)return t.LUMINANCE;if(o===gcr)return t.LUMINANCE_ALPHA;if(o===o2)return t.DEPTH_COMPONENT;if(o===_c)return t.DEPTH_STENCIL;if(o===pv)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(o===_cr)return t.RED;if(o===cG)return t.RED_INTEGER;if(o===Qcr)return t.RG;if(o===uG)return t.RG_INTEGER;if(o===dG)return t.RGBA_INTEGER;if(o===t_||o===n_||o===r_||o===i_)if(l===Vn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(o===t_)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(o===n_)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(o===r_)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(o===i_)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(o===t_)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(o===n_)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(o===r_)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(o===i_)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(o===XD||o===JD||o===eI||o===tI)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(o===XD)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(o===JD)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(o===eI)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(o===tI)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(o===fG)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(o===nI||o===rI)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(o===nI)return l===Vn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(o===rI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(o===iI||o===oI||o===sI||o===aI||o===lI||o===cI||o===uI||o===dI||o===fI||o===pI||o===hI||o===TI||o===mI||o===gI)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(o===iI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(o===oI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(o===sI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(o===aI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(o===lI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(o===cI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(o===uI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(o===dI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(o===fI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(o===pI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(o===hI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(o===TI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(o===mI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(o===gI)return l===Vn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(o===o_||o===_I||o===QI)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(o===o_)return l===Vn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(o===_I)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(o===QI)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(o===vcr||o===vI||o===yI||o===bI)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(o===o_)return a.COMPRESSED_RED_RGTC1_EXT;if(o===vI)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(o===yI)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(o===bI)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return o===i2?r?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[o]!==void 0?t[o]:null}return{convert:i}}class j5r extends Jr{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Z1 extends jn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const W5r={type:"move"};class w_{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Z1,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 Z1,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Le,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Le),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Z1,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Le,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Le),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 n=this._hand;if(n)for(const r of e.hand.values())this._getHandJoint(n,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,n,r){let i=null,o=null,s=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){s=!0;for(const T of e.hand.values()){const Q=n.getJointPose(T,r),_=this._getHandJoint(c,T);Q!==null&&(_.matrix.fromArray(Q.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.matrixWorldNeedsUpdate=!0,_.jointRadius=Q.radius),_.visible=Q!==null}const u=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],h=u.position.distanceTo(d.position),f=.02,m=.005;c.inputState.pinching&&h>f+m?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&h<=f-m&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(o=n.getPose(e.gripSpace,r),o!==null&&(l.matrix.fromArray(o.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,o.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(o.linearVelocity)):l.hasLinearVelocity=!1,o.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(o.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,r),i===null&&o!==null&&(i=o),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(W5r)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=o!==null),c!==null&&(c.visible=s!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const r=new Z1;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[n.jointName]=r,e.add(r)}return e.joints[n.jointName]}}class Y5r extends Jc{constructor(e,n){super();const r=this;let i=null,o=1,s=null,a="local-floor",l=1,c=null,u=null,d=null,h=null,f=null,m=null;const T=n.getContextAttributes();let Q=null,_=null;const v=[],y=[],b=new Zt;let E=null;const x=new Jr;x.layers.enable(1),x.viewport=new Nn;const L=new Jr;L.layers.enable(2),L.viewport=new Nn;const M=[x,L],C=new j5r;C.layers.enable(1),C.layers.enable(2);let A=null,I=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(K){let $=v[K];return $===void 0&&($=new w_,v[K]=$),$.getTargetRaySpace()},this.getControllerGrip=function(K){let $=v[K];return $===void 0&&($=new w_,v[K]=$),$.getGripSpace()},this.getHand=function(K){let $=v[K];return $===void 0&&($=new w_,v[K]=$),$.getHandSpace()};function N(K){const $=y.indexOf(K.inputSource);if($===-1)return;const ce=v[$];ce!==void 0&&(ce.update(K.inputSource,K.frame,c||s),ce.dispatchEvent({type:K.type,data:K.inputSource}))}function V(){i.removeEventListener("select",N),i.removeEventListener("selectstart",N),i.removeEventListener("selectend",N),i.removeEventListener("squeeze",N),i.removeEventListener("squeezestart",N),i.removeEventListener("squeezeend",N),i.removeEventListener("end",V),i.removeEventListener("inputsourceschange",R);for(let K=0;K=0&&(y[Ee]=null,v[Ee].disconnect(ce))}for(let $=0;$=y.length){y.push(ce),Ee=re;break}else if(y[re]===null){y[re]=ce,Ee=re;break}if(Ee===-1)break}const z=v[Ee];z&&z.connect(ce)}}const B=new Le,F=new Le;function U(K,$,ce){B.setFromMatrixPosition($.matrixWorld),F.setFromMatrixPosition(ce.matrixWorld);const Ee=B.distanceTo(F),z=$.projectionMatrix.elements,re=ce.projectionMatrix.elements,he=z[14]/(z[10]-1),Se=z[14]/(z[10]+1),we=(z[9]+1)/z[5],se=(z[9]-1)/z[5],W=(z[8]-1)/z[0],j=(re[8]+1)/re[0],oe=he*W,_e=he*j,ye=Ee/(-W+j),le=ye*-W;$.matrixWorld.decompose(K.position,K.quaternion,K.scale),K.translateX(le),K.translateZ(ye),K.matrixWorld.compose(K.position,K.quaternion,K.scale),K.matrixWorldInverse.copy(K.matrixWorld).invert();const De=he+ye,Ce=Se+ye,Oe=oe-le,He=_e+(Ee-le),X=we*Se/Ce*De,q=se*Se/Ce*De;K.projectionMatrix.makePerspective(Oe,He,X,q,De,Ce),K.projectionMatrixInverse.copy(K.projectionMatrix).invert()}function G(K,$){$===null?K.matrixWorld.copy(K.matrix):K.matrixWorld.multiplyMatrices($.matrixWorld,K.matrix),K.matrixWorldInverse.copy(K.matrixWorld).invert()}this.updateCamera=function(K){if(i===null)return;C.near=L.near=x.near=K.near,C.far=L.far=x.far=K.far,(A!==C.near||I!==C.far)&&(i.updateRenderState({depthNear:C.near,depthFar:C.far}),A=C.near,I=C.far);const $=K.parent,ce=C.cameras;G(C,$);for(let Ee=0;Ee0&&(Q.alphaTest.value=_.alphaTest);const v=e.get(_).envMap;if(v&&(Q.envMap.value=v,Q.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,Q.reflectivity.value=_.reflectivity,Q.ior.value=_.ior,Q.refractionRatio.value=_.refractionRatio),_.lightMap){Q.lightMap.value=_.lightMap;const y=t._useLegacyLights===!0?Math.PI:1;Q.lightMapIntensity.value=_.lightMapIntensity*y,n(_.lightMap,Q.lightMapTransform)}_.aoMap&&(Q.aoMap.value=_.aoMap,Q.aoMapIntensity.value=_.aoMapIntensity,n(_.aoMap,Q.aoMapTransform))}function s(Q,_){Q.diffuse.value.copy(_.color),Q.opacity.value=_.opacity,_.map&&(Q.map.value=_.map,n(_.map,Q.mapTransform))}function a(Q,_){Q.dashSize.value=_.dashSize,Q.totalSize.value=_.dashSize+_.gapSize,Q.scale.value=_.scale}function l(Q,_,v,y){Q.diffuse.value.copy(_.color),Q.opacity.value=_.opacity,Q.size.value=_.size*v,Q.scale.value=y*.5,_.map&&(Q.map.value=_.map,n(_.map,Q.uvTransform)),_.alphaMap&&(Q.alphaMap.value=_.alphaMap,n(_.alphaMap,Q.alphaMapTransform)),_.alphaTest>0&&(Q.alphaTest.value=_.alphaTest)}function c(Q,_){Q.diffuse.value.copy(_.color),Q.opacity.value=_.opacity,Q.rotation.value=_.rotation,_.map&&(Q.map.value=_.map,n(_.map,Q.mapTransform)),_.alphaMap&&(Q.alphaMap.value=_.alphaMap,n(_.alphaMap,Q.alphaMapTransform)),_.alphaTest>0&&(Q.alphaTest.value=_.alphaTest)}function u(Q,_){Q.specular.value.copy(_.specular),Q.shininess.value=Math.max(_.shininess,1e-4)}function d(Q,_){_.gradientMap&&(Q.gradientMap.value=_.gradientMap)}function h(Q,_){Q.metalness.value=_.metalness,_.metalnessMap&&(Q.metalnessMap.value=_.metalnessMap,n(_.metalnessMap,Q.metalnessMapTransform)),Q.roughness.value=_.roughness,_.roughnessMap&&(Q.roughnessMap.value=_.roughnessMap,n(_.roughnessMap,Q.roughnessMapTransform)),e.get(_).envMap&&(Q.envMapIntensity.value=_.envMapIntensity)}function f(Q,_,v){Q.ior.value=_.ior,_.sheen>0&&(Q.sheenColor.value.copy(_.sheenColor).multiplyScalar(_.sheen),Q.sheenRoughness.value=_.sheenRoughness,_.sheenColorMap&&(Q.sheenColorMap.value=_.sheenColorMap,n(_.sheenColorMap,Q.sheenColorMapTransform)),_.sheenRoughnessMap&&(Q.sheenRoughnessMap.value=_.sheenRoughnessMap,n(_.sheenRoughnessMap,Q.sheenRoughnessMapTransform))),_.clearcoat>0&&(Q.clearcoat.value=_.clearcoat,Q.clearcoatRoughness.value=_.clearcoatRoughness,_.clearcoatMap&&(Q.clearcoatMap.value=_.clearcoatMap,n(_.clearcoatMap,Q.clearcoatMapTransform)),_.clearcoatRoughnessMap&&(Q.clearcoatRoughnessMap.value=_.clearcoatRoughnessMap,n(_.clearcoatRoughnessMap,Q.clearcoatRoughnessMapTransform)),_.clearcoatNormalMap&&(Q.clearcoatNormalMap.value=_.clearcoatNormalMap,n(_.clearcoatNormalMap,Q.clearcoatNormalMapTransform),Q.clearcoatNormalScale.value.copy(_.clearcoatNormalScale),_.side===gi&&Q.clearcoatNormalScale.value.negate())),_.iridescence>0&&(Q.iridescence.value=_.iridescence,Q.iridescenceIOR.value=_.iridescenceIOR,Q.iridescenceThicknessMinimum.value=_.iridescenceThicknessRange[0],Q.iridescenceThicknessMaximum.value=_.iridescenceThicknessRange[1],_.iridescenceMap&&(Q.iridescenceMap.value=_.iridescenceMap,n(_.iridescenceMap,Q.iridescenceMapTransform)),_.iridescenceThicknessMap&&(Q.iridescenceThicknessMap.value=_.iridescenceThicknessMap,n(_.iridescenceThicknessMap,Q.iridescenceThicknessMapTransform))),_.transmission>0&&(Q.transmission.value=_.transmission,Q.transmissionSamplerMap.value=v.texture,Q.transmissionSamplerSize.value.set(v.width,v.height),_.transmissionMap&&(Q.transmissionMap.value=_.transmissionMap,n(_.transmissionMap,Q.transmissionMapTransform)),Q.thickness.value=_.thickness,_.thicknessMap&&(Q.thicknessMap.value=_.thicknessMap,n(_.thicknessMap,Q.thicknessMapTransform)),Q.attenuationDistance.value=_.attenuationDistance,Q.attenuationColor.value.copy(_.attenuationColor)),_.anisotropy>0&&(Q.anisotropyVector.value.set(_.anisotropy*Math.cos(_.anisotropyRotation),_.anisotropy*Math.sin(_.anisotropyRotation)),_.anisotropyMap&&(Q.anisotropyMap.value=_.anisotropyMap,n(_.anisotropyMap,Q.anisotropyMapTransform))),Q.specularIntensity.value=_.specularIntensity,Q.specularColor.value.copy(_.specularColor),_.specularColorMap&&(Q.specularColorMap.value=_.specularColorMap,n(_.specularColorMap,Q.specularColorMapTransform)),_.specularIntensityMap&&(Q.specularIntensityMap.value=_.specularIntensityMap,n(_.specularIntensityMap,Q.specularIntensityMapTransform))}function m(Q,_){_.matcap&&(Q.matcap.value=_.matcap)}function T(Q,_){const v=e.get(_).light;Q.referencePosition.value.setFromMatrixPosition(v.matrixWorld),Q.nearDistance.value=v.shadow.camera.near,Q.farDistance.value=v.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Z5r(t,e,n,r){let i={},o={},s=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(v,y){const b=y.program;r.uniformBlockBinding(v,b)}function c(v,y){let b=i[v.id];b===void 0&&(m(v),b=u(v),i[v.id]=b,v.addEventListener("dispose",Q));const E=y.program;r.updateUBOMapping(v,E);const x=e.render.frame;o[v.id]!==x&&(h(v),o[v.id]=x)}function u(v){const y=d();v.__bindingPointIndex=y;const b=t.createBuffer(),E=v.__size,x=v.usage;return t.bindBuffer(t.UNIFORM_BUFFER,b),t.bufferData(t.UNIFORM_BUFFER,E,x),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,y,b),b}function d(){for(let v=0;v0){x=b%E;const N=E-x;x!==0&&N-A.boundary<0&&(b+=E-x,C.__offset=b)}b+=A.storage}return x=b%E,x>0&&(b+=E-x),v.__size=b,v.__cache={},this}function T(v){const y={boundary:0,storage:0};return typeof v=="number"?(y.boundary=4,y.storage=4):v.isVector2?(y.boundary=8,y.storage=8):v.isVector3||v.isColor?(y.boundary=16,y.storage=12):v.isVector4?(y.boundary=16,y.storage=16):v.isMatrix3?(y.boundary=48,y.storage=48):v.isMatrix4?(y.boundary=64,y.storage=64):v.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",v),y}function Q(v){const y=v.target;y.removeEventListener("dispose",Q);const b=s.indexOf(y.__bindingPointIndex);s.splice(b,1),t.deleteBuffer(i[y.id]),delete i[y.id],delete o[y.id]}function _(){for(const v in i)t.deleteBuffer(i[v]);s=[],i={},o={}}return{bind:l,update:c,dispose:_}}class DG{constructor(e={}){const{canvas:n=Wcr(),context:r=null,depth:i=!0,stencil:o=!0,alpha:s=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:d=!1}=e;this.isWebGLRenderer=!0;let h;r!==null?h=r.getContextAttributes().alpha:h=s;const f=new Uint32Array(4),m=new Int32Array(4);let T=null,Q=null;const _=[],v=[];this.domElement=n,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=Zn,this._useLegacyLights=!1,this.toneMapping=Ga,this.toneMappingExposure=1;const y=this;let b=!1,E=0,x=0,L=null,M=-1,C=null;const A=new Nn,I=new Nn;let N=null;const V=new It(0);let R=0,B=n.width,F=n.height,U=1,G=null,Z=null;const Y=new Nn(0,0,B,F),ee=new Nn(0,0,B,F);let pe=!1;const K=new yE;let $=!1,ce=!1,Ee=null;const z=new jt,re=new Zt,he=new Le,Se={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function we(){return L===null?U:1}let se=r;function W(ne,Ae){for(let me=0;me{function Re(){if(J.forEach(function(ke){le.get(ke).currentProgram.isReady()&&J.delete(ke)}),J.size===0){de(ne);return}setTimeout(Re,10)}j.get("KHR_parallel_shader_compile")!==null?Re():setTimeout(Re,10)})};let Rt=null;function wn(ne){Rt&&Rt(ne)}function Bn(){$n.stop()}function Xt(){$n.start()}const $n=new CG;$n.setAnimationLoop(wn),typeof self<"u"&&$n.setContext(self),this.setAnimationLoop=function(ne){Rt=ne,rt.setAnimationLoop(ne),ne===null?$n.stop():$n.start()},rt.addEventListener("sessionstart",Bn),rt.addEventListener("sessionend",Xt),this.render=function(ne,Ae){if(Ae!==void 0&&Ae.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(b===!0)return;ne.matrixWorldAutoUpdate===!0&&ne.updateMatrixWorld(),Ae.parent===null&&Ae.matrixWorldAutoUpdate===!0&&Ae.updateMatrixWorld(),rt.enabled===!0&&rt.isPresenting===!0&&(rt.cameraAutoUpdate===!0&&rt.updateCamera(Ae),Ae=rt.getCamera()),ne.isScene===!0&&ne.onBeforeRender(y,ne,Ae,L),Q=Me.get(ne,v.length),Q.init(),v.push(Q),z.multiplyMatrices(Ae.projectionMatrix,Ae.matrixWorldInverse),K.setFromProjectionMatrix(z),ce=this.localClippingEnabled,$=Ie.init(this.clippingPlanes,ce),T=ve.get(ne,_.length),T.init(),_.push(T),hr(ne,Ae,0,y.sortObjects),T.finish(),y.sortObjects===!0&&T.sort(G,Z),this.info.render.frame++,$===!0&&Ie.beginShadows();const me=Q.state.shadowsArray;if(Fe.render(me,ne,Ae),$===!0&&Ie.endShadows(),this.info.autoReset===!0&&this.info.reset(),qe.render(T,ne),Q.setupLights(y._useLegacyLights),Ae.isArrayCamera){const J=Ae.cameras;for(let de=0,Re=J.length;de0?Q=v[v.length-1]:Q=null,_.pop(),_.length>0?T=_[_.length-1]:T=null};function hr(ne,Ae,me,J){if(ne.visible===!1)return;if(ne.layers.test(Ae.layers)){if(ne.isGroup)me=ne.renderOrder;else if(ne.isLOD)ne.autoUpdate===!0&&ne.update(Ae);else if(ne.isLight)Q.pushLight(ne),ne.castShadow&&Q.pushShadow(ne);else if(ne.isSprite){if(!ne.frustumCulled||K.intersectsSprite(ne)){J&&he.setFromMatrixPosition(ne.matrixWorld).applyMatrix4(z);const ke=q.update(ne),H=ne.material;H.visible&&T.push(ne,ke,H,me,he.z,null)}}else if((ne.isMesh||ne.isLine||ne.isPoints)&&(!ne.frustumCulled||K.intersectsObject(ne))){const ke=q.update(ne),H=ne.material;if(J&&(ne.boundingSphere!==void 0?(ne.boundingSphere===null&&ne.computeBoundingSphere(),he.copy(ne.boundingSphere.center)):(ke.boundingSphere===null&&ke.computeBoundingSphere(),he.copy(ke.boundingSphere.center)),he.applyMatrix4(ne.matrixWorld).applyMatrix4(z)),Array.isArray(H)){const je=ke.groups;for(let ft=0,dt=je.length;ft0&&$r(de,Re,Ae,me),J&&_e.viewport(A.copy(J)),de.length>0&&$t(de,Ae,me),Re.length>0&&$t(Re,Ae,me),ke.length>0&&$t(ke,Ae,me),_e.buffers.depth.setTest(!0),_e.buffers.depth.setMask(!0),_e.buffers.color.setMask(!0),_e.setPolygonOffset(!1)}function $r(ne,Ae,me,J){if((me.isScene===!0?me.overrideMaterial:null)!==null)return;const Re=oe.isWebGL2;Ee===null&&(Ee=new E2(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")?g0:qa,minFilter:b2,samples:Re?4:0})),y.getDrawingBufferSize(re),Re?Ee.setSize(re.x,re.y):Ee.setSize(Rd(re.x),Rd(re.y));const ke=y.getRenderTarget();y.setRenderTarget(Ee),y.getClearColor(V),R=y.getClearAlpha(),R<1&&y.setClearColor(16777215,.5),y.clear();const H=y.toneMapping;y.toneMapping=Ga,$t(ne,me,J),De.updateMultisampleRenderTarget(Ee),De.updateRenderTargetMipmap(Ee);let je=!1;for(let ft=0,dt=Ae.length;ft0),mt=!!me.morphAttributes.position,bt=!!me.morphAttributes.normal,qt=!!me.morphAttributes.color;let sn=Ga;J.toneMapped&&(L===null||L.isXRRenderTarget===!0)&&(sn=y.toneMapping);const Or=me.morphAttributes.position||me.morphAttributes.normal||me.morphAttributes.color,ln=Or!==void 0?Or.length:0,Ut=le.get(J),I2=Q.state.lights;if($===!0&&(ce===!0||ne!==C)){const Ur=ne===C&&J.id===M;Ie.setState(J,ne,Ur)}let Pn=!1;J.version===Ut.__version?(Ut.needsLights&&Ut.lightsStateVersion!==I2.state.version||Ut.outputColorSpace!==H||de.isBatchedMesh&&Ut.batching===!1||!de.isBatchedMesh&&Ut.batching===!0||de.isInstancedMesh&&Ut.instancing===!1||!de.isInstancedMesh&&Ut.instancing===!0||de.isSkinnedMesh&&Ut.skinning===!1||!de.isSkinnedMesh&&Ut.skinning===!0||de.isInstancedMesh&&Ut.instancingColor===!0&&de.instanceColor===null||de.isInstancedMesh&&Ut.instancingColor===!1&&de.instanceColor!==null||Ut.envMap!==je||J.fog===!0&&Ut.fog!==Re||Ut.numClippingPlanes!==void 0&&(Ut.numClippingPlanes!==Ie.numPlanes||Ut.numIntersection!==Ie.numIntersection)||Ut.vertexAlphas!==ft||Ut.vertexTangents!==dt||Ut.morphTargets!==mt||Ut.morphNormals!==bt||Ut.morphColors!==qt||Ut.toneMapping!==sn||oe.isWebGL2===!0&&Ut.morphTargetsCount!==ln)&&(Pn=!0):(Pn=!0,Ut.__version=J.version);let ko=Ut.currentProgram;Pn===!0&&(ko=zn(J,Ae,de));let o3=!1,ms=!1,k2=!1;const Qn=ko.getUniforms(),ki=Ut.uniforms;if(_e.useProgram(ko.program)&&(o3=!0,ms=!0,k2=!0),J.id!==M&&(M=J.id,ms=!0),o3||C!==ne){Qn.setValue(se,"projectionMatrix",ne.projectionMatrix),Qn.setValue(se,"viewMatrix",ne.matrixWorldInverse);const Ur=Qn.map.cameraPosition;Ur!==void 0&&Ur.setValue(se,he.setFromMatrixPosition(ne.matrixWorld)),oe.logarithmicDepthBuffer&&Qn.setValue(se,"logDepthBufFC",2/(Math.log(ne.far+1)/Math.LN2)),(J.isMeshPhongMaterial||J.isMeshToonMaterial||J.isMeshLambertMaterial||J.isMeshBasicMaterial||J.isMeshStandardMaterial||J.isShaderMaterial)&&Qn.setValue(se,"isOrthographic",ne.isOrthographicCamera===!0),C!==ne&&(C=ne,ms=!0,k2=!0)}if(de.isSkinnedMesh){Qn.setOptional(se,de,"bindMatrix"),Qn.setOptional(se,de,"bindMatrixInverse");const Ur=de.skeleton;Ur&&(oe.floatVertexTextures?(Ur.boneTexture===null&&Ur.computeBoneTexture(),Qn.setValue(se,"boneTexture",Ur.boneTexture,De)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}de.isBatchedMesh&&(Qn.setOptional(se,de,"batchingTexture"),Qn.setValue(se,"batchingTexture",de._matricesTexture,De));const si=me.morphAttributes;if((si.position!==void 0||si.normal!==void 0||si.color!==void 0&&oe.isWebGL2===!0)&&ot.update(de,me,ko),(ms||Ut.receiveShadow!==de.receiveShadow)&&(Ut.receiveShadow=de.receiveShadow,Qn.setValue(se,"receiveShadow",de.receiveShadow)),J.isMeshGouraudMaterial&&J.envMap!==null&&(ki.envMap.value=je,ki.flipEnvMap.value=je.isCubeTexture&&je.isRenderTargetTexture===!1?-1:1),ms&&(Qn.setValue(se,"toneMappingExposure",y.toneMappingExposure),Ut.needsLights&&co(ki,k2),Re&&J.fog===!0&&fe.refreshFogUniforms(ki,Re),fe.refreshMaterialUniforms(ki,J,U,F,Ee),gu.upload(se,Mr(Ut),ki,De)),J.isShaderMaterial&&J.uniformsNeedUpdate===!0&&(gu.upload(se,Mr(Ut),ki,De),J.uniformsNeedUpdate=!1),J.isSpriteMaterial&&Qn.setValue(se,"center",de.center),Qn.setValue(se,"modelViewMatrix",de.modelViewMatrix),Qn.setValue(se,"normalMatrix",de.normalMatrix),Qn.setValue(se,"modelMatrix",de.matrixWorld),J.isShaderMaterial||J.isRawShaderMaterial){const Ur=J.uniformsGroups;for(let P2=0,Pi=Ur.length;P20&&De.useMultisampledRTT(ne)===!1?de=le.get(ne).__webglMultisampledFramebuffer:Array.isArray(dt)?de=dt[me]:de=dt,A.copy(ne.viewport),I.copy(ne.scissor),N=ne.scissorTest}else A.copy(Y).multiplyScalar(U).floor(),I.copy(ee).multiplyScalar(U).floor(),N=pe;if(_e.bindFramebuffer(se.FRAMEBUFFER,de)&&oe.drawBuffers&&J&&_e.drawBuffers(ne,de),_e.viewport(A),_e.scissor(I),_e.setScissorTest(N),Re){const je=le.get(ne.texture);se.framebufferTexture2D(se.FRAMEBUFFER,se.COLOR_ATTACHMENT0,se.TEXTURE_CUBE_MAP_POSITIVE_X+Ae,je.__webglTexture,me)}else if(ke){const je=le.get(ne.texture),ft=Ae||0;se.framebufferTextureLayer(se.FRAMEBUFFER,se.COLOR_ATTACHMENT0,je.__webglTexture,me||0,ft)}M=-1},this.readRenderTargetPixels=function(ne,Ae,me,J,de,Re,ke){if(!(ne&&ne.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let H=le.get(ne).__webglFramebuffer;if(ne.isWebGLCubeRenderTarget&&ke!==void 0&&(H=H[ke]),H){_e.bindFramebuffer(se.FRAMEBUFFER,H);try{const je=ne.texture,ft=je.format,dt=je.type;if(ft!==zi&&Ot.convert(ft)!==se.getParameter(se.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const mt=dt===g0&&(j.has("EXT_color_buffer_half_float")||oe.isWebGL2&&j.has("EXT_color_buffer_float"));if(dt!==qa&&Ot.convert(dt)!==se.getParameter(se.IMPLEMENTATION_COLOR_READ_TYPE)&&!(dt===Bs&&(oe.isWebGL2||j.has("OES_texture_float")||j.has("WEBGL_color_buffer_float")))&&!mt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Ae>=0&&Ae<=ne.width-J&&me>=0&&me<=ne.height-de&&se.readPixels(Ae,me,J,de,Ot.convert(ft),Ot.convert(dt),Re)}finally{const je=L!==null?le.get(L).__webglFramebuffer:null;_e.bindFramebuffer(se.FRAMEBUFFER,je)}}},this.copyFramebufferToTexture=function(ne,Ae,me=0){const J=Math.pow(2,-me),de=Math.floor(Ae.image.width*J),Re=Math.floor(Ae.image.height*J);De.setTexture2D(Ae,0),se.copyTexSubImage2D(se.TEXTURE_2D,me,0,0,ne.x,ne.y,de,Re),_e.unbindTexture()},this.copyTextureToTexture=function(ne,Ae,me,J=0){const de=Ae.image.width,Re=Ae.image.height,ke=Ot.convert(me.format),H=Ot.convert(me.type);De.setTexture2D(me,0),se.pixelStorei(se.UNPACK_FLIP_Y_WEBGL,me.flipY),se.pixelStorei(se.UNPACK_PREMULTIPLY_ALPHA_WEBGL,me.premultiplyAlpha),se.pixelStorei(se.UNPACK_ALIGNMENT,me.unpackAlignment),Ae.isDataTexture?se.texSubImage2D(se.TEXTURE_2D,J,ne.x,ne.y,de,Re,ke,H,Ae.image.data):Ae.isCompressedTexture?se.compressedTexSubImage2D(se.TEXTURE_2D,J,ne.x,ne.y,Ae.mipmaps[0].width,Ae.mipmaps[0].height,ke,Ae.mipmaps[0].data):se.texSubImage2D(se.TEXTURE_2D,J,ne.x,ne.y,ke,H,Ae.image),J===0&&me.generateMipmaps&&se.generateMipmap(se.TEXTURE_2D),_e.unbindTexture()},this.copyTextureToTexture3D=function(ne,Ae,me,J,de=0){if(y.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Re=ne.max.x-ne.min.x+1,ke=ne.max.y-ne.min.y+1,H=ne.max.z-ne.min.z+1,je=Ot.convert(J.format),ft=Ot.convert(J.type);let dt;if(J.isData3DTexture)De.setTexture3D(J,0),dt=se.TEXTURE_3D;else if(J.isDataArrayTexture)De.setTexture2DArray(J,0),dt=se.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}se.pixelStorei(se.UNPACK_FLIP_Y_WEBGL,J.flipY),se.pixelStorei(se.UNPACK_PREMULTIPLY_ALPHA_WEBGL,J.premultiplyAlpha),se.pixelStorei(se.UNPACK_ALIGNMENT,J.unpackAlignment);const mt=se.getParameter(se.UNPACK_ROW_LENGTH),bt=se.getParameter(se.UNPACK_IMAGE_HEIGHT),qt=se.getParameter(se.UNPACK_SKIP_PIXELS),sn=se.getParameter(se.UNPACK_SKIP_ROWS),Or=se.getParameter(se.UNPACK_SKIP_IMAGES),ln=me.isCompressedTexture?me.mipmaps[0]:me.image;se.pixelStorei(se.UNPACK_ROW_LENGTH,ln.width),se.pixelStorei(se.UNPACK_IMAGE_HEIGHT,ln.height),se.pixelStorei(se.UNPACK_SKIP_PIXELS,ne.min.x),se.pixelStorei(se.UNPACK_SKIP_ROWS,ne.min.y),se.pixelStorei(se.UNPACK_SKIP_IMAGES,ne.min.z),me.isDataTexture||me.isData3DTexture?se.texSubImage3D(dt,de,Ae.x,Ae.y,Ae.z,Re,ke,H,je,ft,ln.data):me.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),se.compressedTexSubImage3D(dt,de,Ae.x,Ae.y,Ae.z,Re,ke,H,je,ln.data)):se.texSubImage3D(dt,de,Ae.x,Ae.y,Ae.z,Re,ke,H,je,ft,ln),se.pixelStorei(se.UNPACK_ROW_LENGTH,mt),se.pixelStorei(se.UNPACK_IMAGE_HEIGHT,bt),se.pixelStorei(se.UNPACK_SKIP_PIXELS,qt),se.pixelStorei(se.UNPACK_SKIP_ROWS,sn),se.pixelStorei(se.UNPACK_SKIP_IMAGES,Or),de===0&&J.generateMipmaps&&se.generateMipmap(dt),_e.unbindTexture()},this.initTexture=function(ne){ne.isCubeTexture?De.setTextureCube(ne,0):ne.isData3DTexture?De.setTexture3D(ne,0):ne.isDataArrayTexture||ne.isCompressedArrayTexture?De.setTexture2DArray(ne,0):De.setTexture2D(ne,0),_e.unbindTexture()},this.resetState=function(){E=0,x=0,L=null,_e.reset(),pt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return $s}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===QE?"display-p3":"srgb",n.unpackColorSpace=mn.workingColorSpace===V9?"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===Zn?s2:hG}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===s2?Zn:Ar}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 X5r extends DG{}X5r.prototype.isWebGL1Renderer=!0;class J5r extends jn{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,n){return super.copy(e,n),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 n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class eur{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=fv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=yo()}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,n){this.updateRanges.push({start:e,count:n})}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,n,r){e*=this.stride,r*=n.stride;for(let i=0,o=this.stride;il)continue;h.applyMatrix4(this.matrixWorld);const M=e.ray.origin.distanceTo(h);Me.far||n.push({distance:M,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,s.start),v=Math.min(Q.count,s.start+s.count);for(let y=_,b=v-1;yl)continue;h.applyMatrix4(this.matrixWorld);const x=e.ray.origin.distanceTo(h);xe.far||n.push({distance:x,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=i.length;o0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=i.length;oi.far)return;o.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:s})}}class AE extends bo{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new It(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 It(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=_E,this.normalScale=new Zt(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 aa extends AE{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 Zt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Pr(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new It(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 It(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new It(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 Ak extends bo{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new It(16777215),this.specular=new It(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new It(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=_E,this.normalScale=new Zt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=mE,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 X5(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function uur(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function dur(t){function e(i,o){return t[i]-t[o]}const n=t.length,r=new Array(n);for(let i=0;i!==n;++i)r[i]=i;return r.sort(e),r}function wk(t,e,n){const r=t.length,i=new t.constructor(r);for(let o=0,s=0;s!==r;++o){const a=n[o]*e;for(let l=0;l!==e;++l)i[s++]=t[a+l]}return i}function HG(t,e,n,r){let i=1,o=t[0];for(;o!==void 0&&o[r]===void 0;)o=t[i++];if(o===void 0)return;let s=o[r];if(s!==void 0)if(Array.isArray(s))do s=o[r],s!==void 0&&(e.push(o.time),n.push.apply(n,s)),o=t[i++];while(o!==void 0);else if(s.toArray!==void 0)do s=o[r],s!==void 0&&(e.push(o.time),s.toArray(n,n.length)),o=t[i++];while(o!==void 0);else do s=o[r],s!==void 0&&(e.push(o.time),n.push(s)),o=t[i++];while(o!==void 0)}class h6{constructor(e,n,r,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new n.constructor(r),this.sampleValues=n,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let r=this._cachedIndex,i=n[r],o=n[r-1];e:{t:{let s;n:{r:if(!(e=o)){const a=n[1];e=o)break t}s=r,r=0;break n}break e}for(;r>>1;en;)--s;if(++s,o!==0||s!==i){o>=s&&(s=Math.max(s,1),o=s-1);const a=this.getValueSize();this.times=r.slice(o,s),this.values=this.values.slice(o*a,s*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,o=r.length;o===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let s=null;for(let a=0;a!==o;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(s!==null&&s>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,s),e=!1;break}s=l}if(i!==void 0&&uur(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),n=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===s_,o=e.length-1;let s=1;for(let a=1;a0){e[s]=e[o];for(let a=o*r,l=s*r,c=0;c!==r;++c)n[l+c]=n[a+c];++s}return s!==e.length?(this.times=e.slice(0,s),this.values=n.slice(0,s*r)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),r=this.constructor,i=new r(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}Ts.prototype.TimeBufferType=Float32Array;Ts.prototype.ValueBufferType=Float32Array;Ts.prototype.DefaultInterpolation=Qc;class t3 extends Ts{}t3.prototype.ValueTypeName="bool";t3.prototype.ValueBufferType=Array;t3.prototype.DefaultInterpolation=_0;t3.prototype.InterpolantFactoryMethodLinear=void 0;t3.prototype.InterpolantFactoryMethodSmooth=void 0;class VG extends Ts{}VG.prototype.ValueTypeName="color";class bc extends Ts{}bc.prototype.ValueTypeName="number";class Tur extends h6{constructor(e,n,r,i){super(e,n,r,i)}interpolate_(e,n,r,i){const o=this.resultBuffer,s=this.sampleValues,a=this.valueSize,l=(r-n)/(i-n);let c=e*a;for(let u=c+a;c!==u;c+=4)c1.slerpFlat(o,0,s,c-a,s,c,l);return o}}class S2 extends Ts{InterpolantFactoryMethodLinear(e){return new Tur(this.times,this.values,this.getValueSize(),e)}}S2.prototype.ValueTypeName="quaternion";S2.prototype.DefaultInterpolation=Qc;S2.prototype.InterpolantFactoryMethodSmooth=void 0;class n3 extends Ts{}n3.prototype.ValueTypeName="string";n3.prototype.ValueBufferType=Array;n3.prototype.DefaultInterpolation=_0;n3.prototype.InterpolantFactoryMethodLinear=void 0;n3.prototype.InterpolantFactoryMethodSmooth=void 0;class Ec extends Ts{}Ec.prototype.ValueTypeName="vector";class mur{constructor(e,n=-1,r,i=ycr){this.name=e,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=yo(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],r=e.tracks,i=1/(e.fps||1);for(let s=0,a=r.length;s!==a;++s)n.push(_ur(r[s]).scale(i));const o=new this(e.name,e.duration,n,e.blendMode);return o.uuid=e.uuid,o}static toJSON(e){const n=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let o=0,s=r.length;o!==s;++o)n.push(Ts.toJSON(r[o]));return i}static CreateFromMorphTargetSequence(e,n,r,i){const o=n.length,s=[];for(let a=0;a1){const d=u[1];let h=i[d];h||(i[d]=h=[]),h.push(c)}}const s=[];for(const a in i)s.push(this.CreateFromMorphTargetSequence(a,i[a],n,r));return s}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(d,h,f,m,T){if(f.length!==0){const Q=[],_=[];HG(f,Q,_,m),Q.length!==0&&T.push(new d(h,Q,_))}},i=[],o=e.name||"default",s=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let d=0;d{n&&n(o),this.manager.itemEnd(e)},0),o;if(Rs[e]!==void 0){Rs[e].push({onLoad:n,onProgress:r,onError:i});return}Rs[e]=[],Rs[e].push({onLoad:n,onProgress:r,onError:i});const s=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(s).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const u=Rs[e],d=c.body.getReader(),h=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),f=h?parseInt(h):0,m=f!==0;let T=0;const Q=new ReadableStream({start(_){v();function v(){d.read().then(({done:y,value:b})=>{if(y)_.close();else{T+=b.byteLength;const E=new ProgressEvent("progress",{lengthComputable:m,loaded:T,total:f});for(let x=0,L=u.length;x{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return c.json();default:if(a===void 0)return c.text();{const d=/charset="?([^;"\s]*)"?/i.exec(a),h=d&&d[1]?d[1].toLowerCase():void 0,f=new TextDecoder(h);return c.arrayBuffer().then(m=>f.decode(m))}}}).then(c=>{xc.add(e,c);const u=Rs[e];delete Rs[e];for(let d=0,h=u.length;d{const u=Rs[e];if(u===void 0)throw this.manager.itemError(e),c;delete Rs[e];for(let d=0,h=u.length;d{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class bur extends r3{constructor(e){super(e)}load(e,n,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,s=xc.get(e);if(s!==void 0)return o.manager.itemStart(e),setTimeout(function(){n&&n(s),o.manager.itemEnd(e)},0),s;const a=Q0("img");function l(){u(),xc.add(e,this),n&&n(this),o.manager.itemEnd(e)}function c(d){u(),i&&i(d),o.manager.itemError(e),o.manager.itemEnd(e)}function u(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),o.manager.itemStart(e),a.src=e,a}}class BG extends r3{constructor(e){super(e)}load(e,n,r,i){const o=new Cr,s=new bur(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(e,function(a){o.image=a,o.needsUpdate=!0,n!==void 0&&n(o)},r,i),o}}class U9 extends jn{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new It(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}const N_=new jt,Mk=new Le,Ok=new Le;class wE{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Zt(512,512),this.map=null,this.mapPass=null,this.matrix=new jt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new yE,this._frameExtents=new Zt(1,1),this._viewportCount=1,this._viewports=[new Nn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,r=this.matrix;Mk.setFromMatrixPosition(e.matrixWorld),n.position.copy(Mk),Ok.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(Ok),n.updateMatrixWorld(),N_.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(N_),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(N_)}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 Eur extends wE{constructor(){super(new Jr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const n=this.camera,r=vc*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,o=e.distance||n.far;(r!==n.fov||i!==n.aspect||o!==n.far)&&(n.fov=r,n.aspect=i,n.far=o,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class xur extends U9{constructor(e,n,r=0,i=Math.PI/3,o=0,s=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(jn.DEFAULT_UP),this.updateMatrix(),this.target=new jn,this.distance=r,this.angle=i,this.penumbra=o,this.decay=s,this.map=null,this.shadow=new Eur}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),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 Rk=new jt,b4=new Le,D_=new Le;class Sur extends wE{constructor(){super(new Jr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Zt(4,2),this._viewportCount=6,this._viewports=[new Nn(2,1,1,1),new Nn(0,1,1,1),new Nn(3,1,1,1),new Nn(1,1,1,1),new Nn(3,0,1,1),new Nn(1,0,1,1)],this._cubeDirections=[new Le(1,0,0),new Le(-1,0,0),new Le(0,0,1),new Le(0,0,-1),new Le(0,1,0),new Le(0,-1,0)],this._cubeUps=[new Le(0,1,0),new Le(0,1,0),new Le(0,1,0),new Le(0,1,0),new Le(0,0,1),new Le(0,0,-1)]}updateMatrices(e,n=0){const r=this.camera,i=this.matrix,o=e.distance||r.far;o!==r.far&&(r.far=o,r.updateProjectionMatrix()),b4.setFromMatrixPosition(e.matrixWorld),r.position.copy(b4),D_.copy(r.position),D_.add(this._cubeDirections[n]),r.up.copy(this._cubeUps[n]),r.lookAt(D_),r.updateMatrixWorld(),i.makeTranslation(-b4.x,-b4.y,-b4.z),Rk.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Rk)}}class Lur extends U9{constructor(e,n,r=0,i=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new Sur}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Cur extends wE{constructor(){super(new EE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class $G extends U9{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(jn.DEFAULT_UP),this.updateMatrix(),this.target=new jn,this.shadow=new Cur}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Aur extends U9{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class z4{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";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,n,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,s=xc.get(e);if(s!==void 0)return o.manager.itemStart(e),setTimeout(function(){n&&n(s),o.manager.itemEnd(e)},0),s;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(o.options,{colorSpaceConversion:"none"}))}).then(function(l){xc.add(e,l),n&&n(l),o.manager.itemEnd(e)}).catch(function(l){i&&i(l),o.manager.itemError(e),o.manager.itemEnd(e)}),o.manager.itemStart(e)}}const ME="\\[\\]\\.:\\/",Mur=new RegExp("["+ME+"]","g"),OE="[^"+ME+"]",Our="[^"+ME.replace("\\.","")+"]",Rur=/((?:WC+[\/:])*)/.source.replace("WC",OE),Nur=/(WCOD+)?/.source.replace("WCOD",Our),Dur=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",OE),Iur=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",OE),kur=new RegExp("^"+Rur+Nur+Dur+Iur+"$"),Pur=["material","materials","bones","map"];class Hur{constructor(e,n,r){const i=r||bn.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,n)}setValue(e,n){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,o=r.length;i!==o;++i)r[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].unbind()}}class bn{constructor(e,n,r){this.path=n,this.parsedPath=r||bn.parseTrackName(n),this.node=bn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,r){return e&&e.isAnimationObjectGroup?new bn.Composite(e,n,r):new bn(e,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Mur,"")}static parseTrackName(e){const n=kur.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const o=r.nodeName.substring(i+1);Pur.indexOf(o)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=o)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(n);if(r!==void 0)return r}if(e.children){const r=function(o){for(let s=0;s=2.0 are supported."));return}const c=new gdr(o,{path:n||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[d]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+d+'".')}}c.setExtensions(s),c.setPlugins(a),c.parse(r,i)}parseAsync(e,n){const r=this;return new Promise(function(i,o){r.parse(e,n,i,o)})}}function Fur(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const Kt={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 Bur{constructor(e){this.parser=e,this.name=Kt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,n=this.parser.json.nodes||[];for(let r=0,i=n.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return n.loadTextureImage(e,o.source,s)}}class edr{constructor(e){this.parser=e,this.name=Kt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const n=this.name,r=this.parser,i=r.json,o=i.textures[e];if(!o.extensions||!o.extensions[n])return null;const s=o.extensions[n],a=i.images[s.source];let l=r.textureLoader;if(a.uri){const c=r.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return r.loadTextureImage(e,s.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class tdr{constructor(e){this.parser=e,this.name=Kt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const n=this.name,r=this.parser,i=r.json,o=i.textures[e];if(!o.extensions||!o.extensions[n])return null;const s=o.extensions[n],a=i.images[s.source];let l=r.textureLoader;if(a.uri){const c=r.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return r.loadTextureImage(e,s.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class ndr{constructor(e){this.name=Kt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const n=this.parser.json,r=n.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],o=this.parser.getDependency("buffer",i.buffer),s=this.parser.options.meshoptDecoder;if(!s||!s.supported){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return o.then(function(a){const l=i.byteOffset||0,c=i.byteLength||0,u=i.count,d=i.byteStride,h=new Uint8Array(a,l,c);return s.decodeGltfBufferAsync?s.decodeGltfBufferAsync(u,d,h,i.mode,i.filter).then(function(f){return f.buffer}):s.ready.then(function(){const f=new ArrayBuffer(u*d);return s.decodeGltfBuffer(new Uint8Array(f),u,d,h,i.mode,i.filter),f})})}else return null}}class rdr{constructor(e){this.name=Kt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const n=this.parser.json,r=n.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=n.meshes[r.mesh];for(const c of i.primitives)if(c.mode!==Ui.TRIANGLES&&c.mode!==Ui.TRIANGLE_STRIP&&c.mode!==Ui.TRIANGLE_FAN&&c.mode!==void 0)return null;const s=r.extensions[this.name].attributes,a=[],l={};for(const c in s)a.push(this.parser.getDependency("accessor",s[c]).then(u=>(l[c]=u,l[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(c=>{const u=c.pop(),d=u.isGroup?u.children:[u],h=c[0].count,f=[];for(const m of d){const T=new jt,Q=new Le,_=new c1,v=new Le(1,1,1),y=new sur(m.geometry,m.material,h);for(let b=0;b0||t.search(/^data\:image\/jpeg/)===0?"image/jpeg":t.search(/\.webp($|\?)/i)>0||t.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const mdr=new jt;class gdr{constructor(e={},n={}){this.json=e,this.extensions={},this.plugins={},this.options=n,this.cache=new Fur,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,o=-1;typeof navigator<"u"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,o=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||r||i&&o<98?this.textureLoader=new BG(this.options.manager):this.textureLoader=new wur(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new FG(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,n){const r=this,i=this.json,o=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(s){return s._markDefs&&s._markDefs()}),Promise.all(this._invokeAll(function(s){return s.beforeRoot&&s.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(s){const a={scene:s[0][i.scene||0],scenes:s[0],animations:s[1],cameras:s[2],asset:i.asset,parser:r,userData:{}};return H1(o,a,i),Da(a,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(n)}_markDefs(){const e=this.json.nodes||[],n=this.json.skins||[],r=this.json.meshes||[];for(let i=0,o=n.length;i{const l=this.associations.get(s);l!=null&&this.associations.set(a,l);for(const[c,u]of s.children.entries())o(u,a.children[c])};return o(r,i),i.name+="_instance_"+e.uses[n]++,i}_invokeOne(e){const n=Object.values(this.plugins);n.push(this);for(let r=0;r=2&&Q.setY(C,x[L*l+1]),l>=3&&Q.setZ(C,x[L*l+2]),l>=4&&Q.setW(C,x[L*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return Q})}loadTexture(e){const n=this.json,r=this.options,o=n.textures[e].source,s=n.images[o];let a=this.textureLoader;if(s.uri){const l=r.manager.getHandler(s.uri);l!==null&&(a=l)}return this.loadTextureImage(e,o,a)}loadTextureImage(e,n,r){const i=this,o=this.json,s=o.textures[e],a=o.images[n],l=(a.uri||a.bufferView)+":"+s.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(n,r).then(function(u){u.flipY=!1,u.name=s.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const h=(o.samplers||{})[s.sampler]||{};return u.magFilter=Ik[h.magFilter]||di,u.minFilter=Ik[h.minFilter]||b2,u.wrapS=kk[h.wrapS]||gc,u.wrapT=kk[h.wrapT]||gc,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[l]=c,c}loadImageSource(e,n){const r=this,i=this.json,o=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(d=>d.clone());const s=i.images[e],a=self.URL||self.webkitURL;let l=s.uri||"",c=!1;if(s.bufferView!==void 0)l=r.getDependency("bufferView",s.bufferView).then(function(d){c=!0;const h=new Blob([d],{type:s.mimeType});return l=a.createObjectURL(h),l});else if(s.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(l).then(function(d){return new Promise(function(h,f){let m=h;n.isImageBitmapLoader===!0&&(m=function(T){const Q=new Cr(T);Q.needsUpdate=!0,h(Q)}),n.load(z4.resolveURL(d,o.path),m,void 0,f)})}).then(function(d){return c===!0&&a.revokeObjectURL(l),d.userData.mimeType=s.mimeType||Tdr(s.uri),d}).catch(function(d){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),d});return this.sourceCache[e]=u,u}assignTexture(e,n,r,i){const o=this;return this.getDependency("texture",r.index).then(function(s){if(!s)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(s=s.clone(),s.channel=r.texCoord),o.extensions[Kt.KHR_TEXTURE_TRANSFORM]){const a=r.extensions!==void 0?r.extensions[Kt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=o.associations.get(s);s=o.extensions[Kt.KHR_TEXTURE_TRANSFORM].extendTexture(s,a),o.associations.set(s,l)}}return i!==void 0&&(s.colorSpace=i),e[n]=s,s})}assignFinalMaterial(e){const n=e.geometry;let r=e.material;const i=n.attributes.tangent===void 0,o=n.attributes.color!==void 0,s=n.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new PG,bo.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 kG,bo.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(a,l)),r=l}if(i||o||s){let a="ClonedMaterial:"+r.uuid+":";i&&(a+="derivative-tangents:"),o&&(a+="vertex-colors:"),s&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=r.clone(),o&&(l.vertexColors=!0),s&&(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 AE}loadMaterial(e){const n=this,r=this.json,i=this.extensions,o=r.materials[e];let s;const a={},l=o.extensions||{},c=[];if(l[Kt.KHR_MATERIALS_UNLIT]){const d=i[Kt.KHR_MATERIALS_UNLIT];s=d.getMaterialType(),c.push(d.extendParams(a,o,n))}else{const d=o.pbrMetallicRoughness||{};if(a.color=new It(1,1,1),a.opacity=1,Array.isArray(d.baseColorFactor)){const h=d.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],Ar),a.opacity=h[3]}d.baseColorTexture!==void 0&&c.push(n.assignTexture(a,"map",d.baseColorTexture,Zn)),a.metalness=d.metallicFactor!==void 0?d.metallicFactor:1,a.roughness=d.roughnessFactor!==void 0?d.roughnessFactor:1,d.metallicRoughnessTexture!==void 0&&(c.push(n.assignTexture(a,"metalnessMap",d.metallicRoughnessTexture)),c.push(n.assignTexture(a,"roughnessMap",d.metallicRoughnessTexture))),s=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(e,a)})))}o.doubleSided===!0&&(a.side=zo);const u=o.alphaMode||k_.OPAQUE;if(u===k_.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===k_.MASK&&(a.alphaTest=o.alphaCutoff!==void 0?o.alphaCutoff:.5)),o.normalTexture!==void 0&&s!==Va&&(c.push(n.assignTexture(a,"normalMap",o.normalTexture)),a.normalScale=new Zt(1,1),o.normalTexture.scale!==void 0)){const d=o.normalTexture.scale;a.normalScale.set(d,d)}if(o.occlusionTexture!==void 0&&s!==Va&&(c.push(n.assignTexture(a,"aoMap",o.occlusionTexture)),o.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=o.occlusionTexture.strength)),o.emissiveFactor!==void 0&&s!==Va){const d=o.emissiveFactor;a.emissive=new It().setRGB(d[0],d[1],d[2],Ar)}return o.emissiveTexture!==void 0&&s!==Va&&c.push(n.assignTexture(a,"emissiveMap",o.emissiveTexture,Zn)),Promise.all(c).then(function(){const d=new s(a);return o.name&&(d.name=o.name),Da(d,o),n.associations.set(d,{materials:e}),o.extensions&&H1(i,d,o),d})}createUniqueName(e){const n=bn.sanitizeNodeName(e||"");return n in this.nodeNamesUsed?n+"_"+ ++this.nodeNamesUsed[n]:(this.nodeNamesUsed[n]=0,n)}loadGeometries(e){const n=this,r=this.extensions,i=this.primitiveCache;function o(a){return r[Kt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,n).then(function(l){return Pk(l,a,n)})}const s=[];for(let a=0,l=e.length;a0&&pdr(_,o),_.name=n.createUniqueName(o.name||"mesh_"+e),Da(_,o),Q.extensions&&H1(i,_,Q),n.assignFinalMaterial(_),d.push(_)}for(let f=0,m=d.length;f1?u=new Z1:c.length===1?u=c[0]:u=new jn,u!==c[0])for(let d=0,h=c.length;d{const d=new Map;for(const[h,f]of i.associations)(h instanceof bo||h instanceof Cr)&&d.set(h,f);return u.traverse(h=>{const f=i.associations.get(h);f!=null&&d.set(h,f)}),d};return i.associations=c(o),o})}_createAnimationTracks(e,n,r,i,o){const s=[],a=e.name?e.name:e.uuid,l=[];Ea[o.path]===Ea.weights?e.traverse(function(h){h.morphTargetInfluences&&l.push(h.name?h.name:h.uuid)}):l.push(a);let c;switch(Ea[o.path]){case Ea.weights:c=bc;break;case Ea.rotation:c=S2;break;case Ea.position:case Ea.scale:c=Ec;break;default:switch(r.itemSize){case 1:c=bc;break;case 2:case 3:default:c=Ec;break}break}const u=i.interpolation!==void 0?udr[i.interpolation]:Qc,d=this._getArrayFromAccessor(r);for(let h=0,f=l.length;h{Xe.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,et.emit("stop_webcam_video_stream"),Ke(()=>{Xe.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Xe.replace(),et.on("video_stream_image",t=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},vdr=["src"],ydr=["src"],bdr={class:"controls"},Edr={key:2};function xdr(t,e,n,r,i,o){return k(),P("div",{class:"floating-frame bg-white",style:gn({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[5]||(e[5]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},[g("div",{class:"handle",onMousedown:e[0]||(e[0]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[1]||(e[1]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(k(),P("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,vdr)):ie("",!0),i.isVideoActive&&i.imageDataUrl==null?(k(),P("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,ydr)):ie("",!0),g("div",bdr,[i.isVideoActive?ie("",!0):(k(),P("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]=(...s)=>o.startVideoStream&&o.startVideoStream(...s))},e[6]||(e[6]=[g("i",{"data-feather":"video"},null,-1)]))),i.isVideoActive?(k(),P("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]=(...s)=>o.stopVideoStream&&o.stopVideoStream(...s))},e[7]||(e[7]=[g("i",{"data-feather":"video"},null,-1)]))):ie("",!0),i.isVideoActive?(k(),P("span",Edr,"FPS: "+ue(i.frameRate),1)):ie("",!0)])],36)}const Sdr=Et(Qdr,[["render",xdr]]),Ldr={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(){et.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ke(()=>{Xe.replace()})},stopAudioStream(){et.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ke(()=>{Xe.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Xe.replace(),et.on("update_spectrogram",t=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},Cdr=["src"],Adr={class:"controls"};function wdr(t,e,n,r,i,o){return k(),P("div",{class:"floating-frame bg-white",style:gn({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[5]||(e[5]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},[g("div",{class:"handle",onMousedown:e[0]||(e[0]=ge((...s)=>o.startDrag&&o.startDrag(...s),["stop"])),onMouseup:e[1]||(e[1]=ge((...s)=>o.stopDrag&&o.stopDrag(...s),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(k(),P("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,Cdr)):ie("",!0),g("div",Adr,[i.isAudioActive?ie("",!0):(k(),P("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]=(...s)=>o.startAudioStream&&o.startAudioStream(...s))},e[6]||(e[6]=[g("i",{"data-feather":"mic"},null,-1)]))),i.isAudioActive?(k(),P("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]=(...s)=>o.stopAudioStream&&o.stopAudioStream(...s))},e[7]||(e[7]=[g("i",{"data-feather":"mic"},null,-1)]))):ie("",!0)])],36)}const Mdr=Et(Ldr,[["render",wdr]]),Odr={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:Sdr,AudioFrame:Mdr},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(t=>setTimeout(t,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ke(()=>{Xe.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 J5r,this.camera=new Jr(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new DG,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const t=new za,e=new Ak({color:65280});this.cube=new ei(t,e),this.scene.add(this.cube);const n=new Aur(4210752),r=new $G(16777215,.5);r.position.set(0,1,0),this.scene.add(n),this.scene.add(r),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:t,config:e}=this.$store.state;this.activePersonality=t[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(t){new Vur().load(t,n=>{this.scene.remove(this.cube),this.cube=n.scene,this.scene.add(this.cube)})},showBoxWithAvatar(t){this.cube&&this.scene.remove(this.cube);const e=new za,n=new BG().load(t),r=new Va({map:n});this.cube=new ei(e,r),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const t=new za,e=new Ak({color:65280});this.cube=new ei(t,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)}}},Rdr={ref:"webglContainer"},Ndr={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"},Ddr={key:0,class:"text-center"},Idr={key:1,class:"text-center"},kdr={class:"floating-frame2"},Pdr=["innerHTML"];function Hdr(t,e,n,r,i,o){const s=gt("VideoFrame"),a=gt("AudioFrame");return k(),P(ze,null,[g("div",Rdr,null,512),g("div",Ndr,[!i.activePersonality||!i.activePersonality.scene_path?(k(),P("div",Ddr," Personality does not have a 3d avatar. ")):ie("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(k(),P("div",Idr," Personality does not have an avatar. ")):ie("",!0),g("div",kdr,[g("div",{innerHTML:t.htmlContent},null,8,Pdr)])]),ae(s,{ref:"video_frame"},null,512),ae(a,{ref:"audio_frame"},null,512)],64)}const Vdr=Et(Odr,[["render",Hdr]]);let J5;const Fdr=new Uint8Array(16);function Bdr(){if(!J5&&(J5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!J5))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J5(Fdr)}const Er=[];for(let t=0;t<256;++t)Er.push((t+256).toString(16).slice(1));function $dr(t,e=0){return Er[t[e+0]]+Er[t[e+1]]+Er[t[e+2]]+Er[t[e+3]]+"-"+Er[t[e+4]]+Er[t[e+5]]+"-"+Er[t[e+6]]+Er[t[e+7]]+"-"+Er[t[e+8]]+Er[t[e+9]]+"-"+Er[t[e+10]]+Er[t[e+11]]+Er[t[e+12]]+Er[t[e+13]]+Er[t[e+14]]+Er[t[e+15]]}const Udr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hk={randomUUID:Udr};function Zs(t,e,n){if(Hk.randomUUID&&!e&&!t)return Hk.randomUUID();t=t||{};const r=t.random||(t.rng||Bdr)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,$dr(r)}class a2{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,n){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,n),this._listeners.push(n)}unsubscribe(e){if(this.listenerMap.has(e)){const n=this.listenerMap.get(e);this.listenerMap.delete(e);const r=this._listeners.indexOf(n);r>=0&&this._listeners.splice(r,1)}}registerProxy(e,n){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,n),this.proxies.push(n)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const n=this.proxyMap.get(e);this.proxyMap.delete(e);const r=this.proxies.indexOf(n);r>=0&&this.proxies.splice(r,1)}}class Ln extends a2{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(n=>n(e,this.entity))}}class Vr extends a2{constructor(e){super(),this.entity=e}emit(e){let n=!1;const r=()=>[n=!0];for(const i of Array.from(this.listeners.values()))if(i(e,r,this.entity),n)return{prevented:!0};return{prevented:!1}}}class qG extends a2{execute(e,n){let r=e;for(const i of this.listeners)r=i(r,n);return r}}class Di extends qG{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class jdr extends a2{constructor(e){super(),this.entity=e}execute(e){const n=[];for(const r of this.listeners)n.push(r(e,this.entity));return n}}function Uo(){const t=Symbol(),e=new Map,n=new Set,r=(l,c)=>{c instanceof a2&&c.registerProxy(t,()=>{var u,d;return(d=(u=e.get(l))===null||u===void 0?void 0:u.listeners)!==null&&d!==void 0?d:[]})},i=l=>{const c=new a2;e.set(l,c),n.forEach(u=>r(l,u[l]))},o=l=>{n.add(l);for(const c of e.keys())r(c,l[c])},s=l=>{for(const c of e.keys())l[c]instanceof a2&&l[c].unregisterProxy(t);n.delete(l)},a=()=>{n.forEach(l=>s(l)),e.clear()};return new Proxy({},{get(l,c){return c==="addTarget"?o:c==="removeTarget"?s:c==="destroy"?a:typeof c!="string"||c.startsWith("_")?l[c]:(e.has(c)||i(c),e.get(c))}})}class Vk{constructor(e,n){if(this.destructed=!1,this.events={destruct:new Ln(this)},!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Zs(),this.from=e,this.to=n,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class zG{constructor(e,n){if(!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Zs(),this.from=e,this.to=n}}function vv(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[n,e(r)]))}class jG{constructor(){this._title="",this.id=Zs(),this.events={loaded:new Ln(this),beforeAddInput:new Vr(this),addInput:new Ln(this),beforeRemoveInput:new Vr(this),removeInput:new Ln(this),beforeAddOutput:new Vr(this),addOutput:new Ln(this),beforeRemoveOutput:new Vr(this),removeOutput:new Ln(this),beforeTitleChanged:new Vr(this),titleChanged:new Ln(this),update:new Ln(this)},this.hooks={beforeLoad:new Di(this),afterSave:new Di(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,n){return this.addInterface("input",e,n)}addOutput(e,n){return this.addInterface("output",e,n)}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(([n,r])=>{this.inputs[n]&&(this.inputs[n].load(r),this.inputs[n].nodeId=this.id)}),Object.entries(e.outputs).forEach(([n,r])=>{this.outputs[n]&&(this.outputs[n].load(r),this.outputs[n].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=vv(this.inputs,i=>i.save()),n=vv(this.outputs,i=>i.save()),r={type:this.type,id:this.id,title:this.title,inputs:e,outputs:n};return this.hooks.afterSave.execute(r)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,n])=>this.initializeIntf("input",e,n)),Object.entries(this.outputs).forEach(([e,n])=>this.initializeIntf("output",e,n))}initializeIntf(e,n,r){r.isInput=e==="input",r.nodeId=this.id,r.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:n,intf:r}))}addInterface(e,n,r){const i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,o=e==="input"?this.events.addInput:this.events.addOutput,s=e==="input"?this.inputs:this.outputs;return i.emit(r).prevented?!1:(s[n]=r,this.initializeIntf(e,n,r),o.emit(r),!0)}removeInterface(e,n){const r=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,o=e==="input"?this.inputs[n]:this.outputs[n];if(!o||r.emit(o).prevented)return!1;if(o.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===o||a.to===o).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return o.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[n]:delete this.outputs[n],i.emit(o),!0}}let WG=class extends jG{load(e){super.load(e)}save(){return super.save()}};function i3(t){return class extends WG{constructor(){var e,n;super(),this.type=t.type,this.inputs={},this.outputs={},this.calculate=t.calculate?(r,i)=>t.calculate.call(this,r,i):void 0,this._title=(e=t.title)!==null&&e!==void 0?e:t.type,this.executeFactory("input",t.inputs),this.executeFactory("output",t.outputs),(n=t.onCreate)===null||n===void 0||n.call(this)}onPlaced(){var e;(e=t.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=t.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,n){Object.keys(n||{}).forEach(r=>{const i=n[r]();e==="input"?this.addInput(r,i):this.addOutput(r,i)})}}}class Wn{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,n){this.id=Zs(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Ln(this),beforeSetValue:new Vr(this),setValue:new Ln(this),updated:new Ln(this)},this.hooks={load:new Di(this),save:new Di(this)},this._connectionCount=0,this.name=e,this._value=n}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,...n){return e(this,...n),this}}const Sc="__baklava_SubgraphInputNode",Lc="__baklava_SubgraphOutputNode";class YG extends WG{constructor(){super(),this.graphInterfaceId=Zs()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class RE extends YG{constructor(){super(...arguments),this.type=Sc,this.inputs={name:new Wn("Name","Input")},this.outputs={placeholder:new Wn("Value",void 0)}}static isGraphInputNode(e){return e.type===Sc}}class NE extends YG{constructor(){super(...arguments),this.type=Lc,this.inputs={name:new Wn("Name","Output"),placeholder:new Wn("Value",void 0)},this.outputs={output:new Wn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Lc}}class T6{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(n=>n.type===Sc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===Lc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Zs(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Vr(this),addNode:new Ln(this),beforeRemoveNode:new Vr(this),removeNode:new Ln(this),beforeAddConnection:new Vr(this),addConnection:new Ln(this),checkConnection:new Vr(this),beforeRemoveConnection:new Vr(this),removeConnection:new Ln(this)},this.hooks={save:new Di(this),load:new Di(this),checkConnection:new jdr(this)},this.nodeEvents=Uo(),this.nodeHooks=Uo(),this.connectionEvents=Uo(),this.editor=e,this.template=n,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(n=>n.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 n=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(r=>n.includes(r.from)||n.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,n){const r=this.checkConnection(e,n);if(!r.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:n}).prevented)return;for(const o of r.connectionsInDanger){const s=this.connections.find(a=>a.id===o.id);s&&this.removeConnection(s)}const i=new Vk(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,n){if(!e||!n)return{connectionAllowed:!1};const r=this.findNodeById(e.nodeId),i=this.findNodeById(n.nodeId);if(r&&i&&r===i)return{connectionAllowed:!1};if(e.isInput&&!n.isInput){const a=e;e=n,n=a}if(e.isInput||!n.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===n))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:n}).prevented)return{connectionAllowed:!1};const o=this.hooks.checkConnection.execute({from:e,to:n});if(o.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const s=Array.from(new Set(o.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new zG(e,n),connectionsInDanger:s}}findNodeInterface(e){for(const n of this.nodes){for(const r in n.inputs){const i=n.inputs[r];if(i.id===e)return i}for(const r in n.outputs){const i=n.outputs[r];if(i.id===e)return i}}}findNodeById(e){return this.nodes.find(n=>n.id===e)}load(e){try{this._loading=!0;const n=[];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){n.push(`Node type ${r.type} is not registered`);continue}const o=new i.type;this.addNode(o),o.load(r)}for(const r of e.connections){const i=this.findNodeInterface(r.from),o=this.findNodeInterface(r.to);if(i)if(o){const s=new Vk(i,o);s.id=r.id,this.internalAddConnection(s)}else{n.push(`Could not find interface with id ${r.to}`);continue}else{n.push(`Could not find interface with id ${r.from}`);continue}}return this.hooks.load.execute(e),n}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(n=>n.save()),connections:this.connections.map(n=>({id:n.id,from:n.from.id,to:n.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 v0="__baklava_GraphNode-";function Cc(t){return v0+t.id}const Wdr=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function Ydr(t){return class extends jG{constructor(){super(...arguments),this.type=Cc(t),this.inputs={},this.outputs={},this.template=t,this.calculate=async(n,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 o=r.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)o.set(l.nodeInterfaceId,n[l.id]);const s=await r.engine.runGraph(this.subgraph,o,r.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(i=s.get(l.nodeId))===null||i===void 0?void 0:i.get("output");return a._calculationResults=s,a}}get title(){return this._title}set title(n){this.template.name=n}load(n){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(n.graphState),super.load(n)}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,n=>{this._title=n}),this.initialize()}onDestroy(){var n;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(n=this.subgraph)===null||n===void 0||n.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 n of this.subgraph.inputs)n.id in this.inputs?this.inputs[n.id].name=n.name:this.addInput(n.id,this.createProxyInterface(n,!0));for(const n of Object.keys(this.inputs))this.subgraph.inputs.some(r=>r.id===n)||this.removeInput(n);for(const n of this.subgraph.outputs)n.id in this.outputs?this.outputs[n.id].name=n.name:this.addOutput(n.id,this.createProxyInterface(n,!1));for(const n of Object.keys(this.outputs))this.subgraph.outputs.some(r=>r.id===n)||this.removeOutput(n);this.addOutput("_calculationResults",new Wn("_calculationResults",void 0).setHidden(!0))}createProxyInterface(n,r){const i=new Wn(n.name,void 0);return new Proxy(i,{get:(o,s)=>{var a,l,c;if(Wdr.includes(s)||s in o||typeof s=="string"&&s.startsWith("__v_"))return Reflect.get(o,s);let u;if(r){const f=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(m=>RE.isGraphInputNode(m)&&m.graphInterfaceId===n.id);u=f==null?void 0:f.outputs.placeholder.id}else{const f=(l=this.subgraph)===null||l===void 0?void 0:l.nodes.find(m=>NE.isGraphOutputNode(m)&&m.graphInterfaceId===n.id);u=f==null?void 0:f.inputs.placeholder.id}const d=(c=this.subgraph)===null||c===void 0?void 0:c.connections.find(f=>{var m;return u===((m=r?f.from:f.to)===null||m===void 0?void 0:m.id)}),h=r?d==null?void 0:d.to:d==null?void 0:d.from;if(h)return Reflect.get(h,s)}})}}}class G9{static fromGraph(e,n){return new G9(e.save(),n)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const n=this.editor.nodeTypes.get(Cc(this));n&&(n.title=e)}get inputs(){return this.nodes.filter(n=>n.type===Sc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===Lc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Zs(),this._name="Subgraph",this.events={nameChanged:new Ln(this),updated:new Ln(this)},this.hooks={beforeLoad:new Di(this),afterSave:new Di(this)},this.editor=n,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 n=new Map,r=h=>{const f=Zs();return n.set(h,f),f},i=h=>{const f=n.get(h);if(!f)throw new Error(`Unable to create graph from template: Could not map old id ${h} to new id`);return f},o=h=>vv(h,f=>({id:r(f.id),templateId:f.id,value:f.value})),s=this.nodes.map(h=>({...h,id:r(h.id),inputs:o(h.inputs),outputs:o(h.outputs)})),a=this.connections.map(h=>({id:r(h.id),from:i(h.from),to:i(h.to)})),l=this.inputs.map(h=>({id:h.id,name:h.name,nodeId:i(h.nodeId),nodeInterfaceId:i(h.nodeInterfaceId)})),c=this.outputs.map(h=>({id:h.id,name:h.name,nodeId:i(h.nodeId),nodeInterfaceId:i(h.nodeInterfaceId)})),u={id:Zs(),nodes:s,connections:a,inputs:l,outputs:c};return e||(e=new T6(this.editor)),e.load(u).forEach(h=>console.warn(h)),e.template=this,e}}class Kdr{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 Vr(this),registerNodeType:new Ln(this),beforeUnregisterNodeType:new Vr(this),unregisterNodeType:new Ln(this),beforeAddGraphTemplate:new Vr(this),addGraphTemplate:new Ln(this),beforeRemoveGraphTemplate:new Vr(this),removeGraphTemplate:new Ln(this),registerGraph:new Ln(this),unregisterGraph:new Ln(this)},this.hooks={save:new Di(this),load:new Di(this)},this.graphTemplateEvents=Uo(),this.graphTemplateHooks=Uo(),this.graphEvents=Uo(),this.graphHooks=Uo(),this.nodeEvents=Uo(),this.nodeHooks=Uo(),this.connectionEvents=Uo(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new T6(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(RE),this.registerNodeType(NE)}registerNodeType(e,n){var r,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:n}).prevented)return;const o=new e;this._nodeTypes.set(o.type,{type:e,category:(r=n==null?void 0:n.category)!==null&&r!==void 0?r:"default",title:(i=n==null?void 0:n.title)!==null&&i!==void 0?i:o.title}),this.events.registerNodeType.emit({type:e,options:n})}unregisterNodeType(e){const n=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(n)){if(this.events.beforeUnregisterNodeType.emit(n).prevented)return;this._nodeTypes.delete(n),this.events.unregisterNodeType.emit(n)}}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 n=Ydr(e);this.registerNodeType(n,{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 n=Cc(e);for(const r of[this.graph,...this.graphs.values()]){const i=r.nodes.filter(o=>o.type===n);for(const o of i)r.removeNode(o)}this.unregisterNodeType(n),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 G9(r,this);this.addGraphTemplate(i)});const n=this._graph.load(e.graph);return this.events.loaded.emit(),n.forEach(r=>console.warn(r)),n}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(n=>n.save())};return this.hooks.save.execute(e)}}function Zdr(t,e){const n=new Map;e.graphs.forEach(r=>{r.nodes.forEach(i=>n.set(i.id,i))}),t.forEach((r,i)=>{const o=n.get(i);o&&r.forEach((s,a)=>{const l=o.outputs[a];l&&(l.value=s)})})}class KG extends Error{constructor(){super("Cycle detected")}}function Xdr(t){return typeof t=="string"}function ZG(t,e){const n=new Map,r=new Map,i=new Map;let o,s;if(t instanceof T6)o=t.nodes,s=t.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");o=t,s=e}o.forEach(c=>{Object.values(c.inputs).forEach(u=>n.set(u.id,c.id)),Object.values(c.outputs).forEach(u=>n.set(u.id,c.id))}),o.forEach(c=>{const u=s.filter(h=>h.from&&n.get(h.from.id)===c.id),d=new Set(u.map(h=>n.get(h.to.id)).filter(Xdr));r.set(c.id,d),i.set(c,u)});const a=o.slice();s.forEach(c=>{const u=a.findIndex(d=>n.get(c.to.id)===d.id);u>=0&&a.splice(u,1)});const l=[];for(;a.length>0;){const c=a.pop();l.push(c);const u=r.get(c.id);for(;u.size>0;){const d=u.values().next().value;if(u.delete(d),Array.from(r.values()).every(h=>!h.has(d))){const h=o.find(f=>f.id===d);a.push(h)}}}if(Array.from(r.values()).some(c=>c.size>0))throw new KG;return{calculationOrder:l,connectionsFromNode:i,interfaceIdToNodeId:n}}function Jdr(t,e){try{return ZG(t,e),!1}catch(n){if(n instanceof KG)return!0;throw n}}var ci;(function(t){t.Running="Running",t.Idle="Idle",t.Paused="Paused",t.Stopped="Stopped"})(ci||(ci={}));class e7r{get status(){return this.isRunning?ci.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Vr(this),afterRun:new Ln(this),statusChange:new Ln(this),beforeNodeCalculation:new Ln(this),afterNodeCalculation:new Ln(this)},this.hooks={gatherCalculationData:new Di(this),transferData:new qG},this.recalculateOrder=!0,this.internalStatus=ci.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(n,r)=>{r.graph&&!r.graph.loading&&r.graph.activeTransactions===0&&this.internalOnChange(r,n??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,n=>this.checkConnection(n.from,n.to))}start(){this.internalStatus===ci.Stopped&&(this.internalStatus=ci.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===ci.Idle&&(this.internalStatus=ci.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===ci.Paused&&(this.internalStatus=ci.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===ci.Idle||this.internalStatus===ci.Paused)&&(this.internalStatus=ci.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...n){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,...n);return this.events.afterRun.emit(r),r}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,n){if(e.templateId){const o=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!o)return{connectionAllowed:!0,connectionsInDanger:[]};e=o}if(n.templateId){const o=this.findInterfaceByTemplateId(this.editor.graph.nodes,n.templateId);if(!o)return{connectionAllowed:!0,connectionsInDanger:[]};n=o}const r=new zG(e,n);let i=this.editor.graph.connections.slice();return n.allowMultipleConnections||(i=i.filter(o=>o.to!==n)),i.push(r),Jdr(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:n.allowMultipleConnections?[]:this.editor.graph.connections.filter(o=>o.to===n)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const n=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(n,...e)}validateNodeCalculationOutput(e,n){if(typeof n!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(r=>{if(!(r in n))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${r}"`)})}internalOnChange(e,n){this.internalStatus===ci.Idle&&this.onChange(this.recalculateOrder,e,n)}findInterfaceByTemplateId(e,n){for(const r of e)for(const i of[...Object.values(r.inputs),...Object.values(r.outputs)])if(i.templateId===n)return i;return null}}class t7r extends e7r{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,n,r){this.order.has(e.id)||this.order.set(e.id,ZG(e));const{calculationOrder:i,connectionsFromNode:o}=this.order.get(e.id),s=new Map;for(const a of i){const l={};Object.entries(a.inputs).forEach(([u,d])=>{l[u]=this.getInterfaceValue(n,d.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let c;if(a.calculate)c=await a.calculate(l,{globalValues:r,engine:this});else{c={};for(const[u,d]of Object.entries(a.outputs))c[u]=this.getInterfaceValue(n,d.id)}this.validateNodeCalculationOutput(a,c),this.events.afterNodeCalculation.emit({outputValues:c,node:a}),s.set(a.id,new Map(Object.entries(c))),o.has(a)&&o.get(a).forEach(u=>{var d;const h=(d=Object.entries(a.outputs).find(([,m])=>m.id===u.from.id))===null||d===void 0?void 0:d[0];if(!h)throw new Error(`Could not find key for interface ${u.from.id} +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,n),this.proxies.push(n)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const n=this.proxyMap.get(e);this.proxyMap.delete(e);const r=this.proxies.indexOf(n);r>=0&&this.proxies.splice(r,1)}}class Ln extends a2{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(n=>n(e,this.entity))}}class Vr extends a2{constructor(e){super(),this.entity=e}emit(e){let n=!1;const r=()=>[n=!0];for(const i of Array.from(this.listeners.values()))if(i(e,r,this.entity),n)return{prevented:!0};return{prevented:!1}}}class qG extends a2{execute(e,n){let r=e;for(const i of this.listeners)r=i(r,n);return r}}class Di extends qG{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class Gdr extends a2{constructor(e){super(),this.entity=e}execute(e){const n=[];for(const r of this.listeners)n.push(r(e,this.entity));return n}}function Uo(){const t=Symbol(),e=new Map,n=new Set,r=(l,c)=>{c instanceof a2&&c.registerProxy(t,()=>{var u,d;return(d=(u=e.get(l))===null||u===void 0?void 0:u.listeners)!==null&&d!==void 0?d:[]})},i=l=>{const c=new a2;e.set(l,c),n.forEach(u=>r(l,u[l]))},o=l=>{n.add(l);for(const c of e.keys())r(c,l[c])},s=l=>{for(const c of e.keys())l[c]instanceof a2&&l[c].unregisterProxy(t);n.delete(l)},a=()=>{n.forEach(l=>s(l)),e.clear()};return new Proxy({},{get(l,c){return c==="addTarget"?o:c==="removeTarget"?s:c==="destroy"?a:typeof c!="string"||c.startsWith("_")?l[c]:(e.has(c)||i(c),e.get(c))}})}class Vk{constructor(e,n){if(this.destructed=!1,this.events={destruct:new Ln(this)},!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Zs(),this.from=e,this.to=n,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class zG{constructor(e,n){if(!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Zs(),this.from=e,this.to=n}}function vv(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[n,e(r)]))}class jG{constructor(){this._title="",this.id=Zs(),this.events={loaded:new Ln(this),beforeAddInput:new Vr(this),addInput:new Ln(this),beforeRemoveInput:new Vr(this),removeInput:new Ln(this),beforeAddOutput:new Vr(this),addOutput:new Ln(this),beforeRemoveOutput:new Vr(this),removeOutput:new Ln(this),beforeTitleChanged:new Vr(this),titleChanged:new Ln(this),update:new Ln(this)},this.hooks={beforeLoad:new Di(this),afterSave:new Di(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,n){return this.addInterface("input",e,n)}addOutput(e,n){return this.addInterface("output",e,n)}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(([n,r])=>{this.inputs[n]&&(this.inputs[n].load(r),this.inputs[n].nodeId=this.id)}),Object.entries(e.outputs).forEach(([n,r])=>{this.outputs[n]&&(this.outputs[n].load(r),this.outputs[n].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=vv(this.inputs,i=>i.save()),n=vv(this.outputs,i=>i.save()),r={type:this.type,id:this.id,title:this.title,inputs:e,outputs:n};return this.hooks.afterSave.execute(r)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,n])=>this.initializeIntf("input",e,n)),Object.entries(this.outputs).forEach(([e,n])=>this.initializeIntf("output",e,n))}initializeIntf(e,n,r){r.isInput=e==="input",r.nodeId=this.id,r.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:n,intf:r}))}addInterface(e,n,r){const i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,o=e==="input"?this.events.addInput:this.events.addOutput,s=e==="input"?this.inputs:this.outputs;return i.emit(r).prevented?!1:(s[n]=r,this.initializeIntf(e,n,r),o.emit(r),!0)}removeInterface(e,n){const r=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,o=e==="input"?this.inputs[n]:this.outputs[n];if(!o||r.emit(o).prevented)return!1;if(o.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===o||a.to===o).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return o.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[n]:delete this.outputs[n],i.emit(o),!0}}let WG=class extends jG{load(e){super.load(e)}save(){return super.save()}};function i3(t){return class extends WG{constructor(){var e,n;super(),this.type=t.type,this.inputs={},this.outputs={},this.calculate=t.calculate?(r,i)=>t.calculate.call(this,r,i):void 0,this._title=(e=t.title)!==null&&e!==void 0?e:t.type,this.executeFactory("input",t.inputs),this.executeFactory("output",t.outputs),(n=t.onCreate)===null||n===void 0||n.call(this)}onPlaced(){var e;(e=t.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=t.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,n){Object.keys(n||{}).forEach(r=>{const i=n[r]();e==="input"?this.addInput(r,i):this.addOutput(r,i)})}}}class Wn{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,n){this.id=Zs(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Ln(this),beforeSetValue:new Vr(this),setValue:new Ln(this),updated:new Ln(this)},this.hooks={load:new Di(this),save:new Di(this)},this._connectionCount=0,this.name=e,this._value=n}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,...n){return e(this,...n),this}}const Sc="__baklava_SubgraphInputNode",Lc="__baklava_SubgraphOutputNode";class YG extends WG{constructor(){super(),this.graphInterfaceId=Zs()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class RE extends YG{constructor(){super(...arguments),this.type=Sc,this.inputs={name:new Wn("Name","Input")},this.outputs={placeholder:new Wn("Value",void 0)}}static isGraphInputNode(e){return e.type===Sc}}class NE extends YG{constructor(){super(...arguments),this.type=Lc,this.inputs={name:new Wn("Name","Output"),placeholder:new Wn("Value",void 0)},this.outputs={output:new Wn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Lc}}class T6{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(n=>n.type===Sc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===Lc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Zs(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Vr(this),addNode:new Ln(this),beforeRemoveNode:new Vr(this),removeNode:new Ln(this),beforeAddConnection:new Vr(this),addConnection:new Ln(this),checkConnection:new Vr(this),beforeRemoveConnection:new Vr(this),removeConnection:new Ln(this)},this.hooks={save:new Di(this),load:new Di(this),checkConnection:new Gdr(this)},this.nodeEvents=Uo(),this.nodeHooks=Uo(),this.connectionEvents=Uo(),this.editor=e,this.template=n,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(n=>n.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 n=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(r=>n.includes(r.from)||n.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,n){const r=this.checkConnection(e,n);if(!r.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:n}).prevented)return;for(const o of r.connectionsInDanger){const s=this.connections.find(a=>a.id===o.id);s&&this.removeConnection(s)}const i=new Vk(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,n){if(!e||!n)return{connectionAllowed:!1};const r=this.findNodeById(e.nodeId),i=this.findNodeById(n.nodeId);if(r&&i&&r===i)return{connectionAllowed:!1};if(e.isInput&&!n.isInput){const a=e;e=n,n=a}if(e.isInput||!n.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===n))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:n}).prevented)return{connectionAllowed:!1};const o=this.hooks.checkConnection.execute({from:e,to:n});if(o.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const s=Array.from(new Set(o.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new zG(e,n),connectionsInDanger:s}}findNodeInterface(e){for(const n of this.nodes){for(const r in n.inputs){const i=n.inputs[r];if(i.id===e)return i}for(const r in n.outputs){const i=n.outputs[r];if(i.id===e)return i}}}findNodeById(e){return this.nodes.find(n=>n.id===e)}load(e){try{this._loading=!0;const n=[];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){n.push(`Node type ${r.type} is not registered`);continue}const o=new i.type;this.addNode(o),o.load(r)}for(const r of e.connections){const i=this.findNodeInterface(r.from),o=this.findNodeInterface(r.to);if(i)if(o){const s=new Vk(i,o);s.id=r.id,this.internalAddConnection(s)}else{n.push(`Could not find interface with id ${r.to}`);continue}else{n.push(`Could not find interface with id ${r.from}`);continue}}return this.hooks.load.execute(e),n}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(n=>n.save()),connections:this.connections.map(n=>({id:n.id,from:n.from.id,to:n.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 v0="__baklava_GraphNode-";function Cc(t){return v0+t.id}const qdr=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function zdr(t){return class extends jG{constructor(){super(...arguments),this.type=Cc(t),this.inputs={},this.outputs={},this.template=t,this.calculate=async(n,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 o=r.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)o.set(l.nodeInterfaceId,n[l.id]);const s=await r.engine.runGraph(this.subgraph,o,r.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(i=s.get(l.nodeId))===null||i===void 0?void 0:i.get("output");return a._calculationResults=s,a}}get title(){return this._title}set title(n){this.template.name=n}load(n){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(n.graphState),super.load(n)}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,n=>{this._title=n}),this.initialize()}onDestroy(){var n;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(n=this.subgraph)===null||n===void 0||n.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 n of this.subgraph.inputs)n.id in this.inputs?this.inputs[n.id].name=n.name:this.addInput(n.id,this.createProxyInterface(n,!0));for(const n of Object.keys(this.inputs))this.subgraph.inputs.some(r=>r.id===n)||this.removeInput(n);for(const n of this.subgraph.outputs)n.id in this.outputs?this.outputs[n.id].name=n.name:this.addOutput(n.id,this.createProxyInterface(n,!1));for(const n of Object.keys(this.outputs))this.subgraph.outputs.some(r=>r.id===n)||this.removeOutput(n);this.addOutput("_calculationResults",new Wn("_calculationResults",void 0).setHidden(!0))}createProxyInterface(n,r){const i=new Wn(n.name,void 0);return new Proxy(i,{get:(o,s)=>{var a,l,c;if(qdr.includes(s)||s in o||typeof s=="string"&&s.startsWith("__v_"))return Reflect.get(o,s);let u;if(r){const f=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(m=>RE.isGraphInputNode(m)&&m.graphInterfaceId===n.id);u=f==null?void 0:f.outputs.placeholder.id}else{const f=(l=this.subgraph)===null||l===void 0?void 0:l.nodes.find(m=>NE.isGraphOutputNode(m)&&m.graphInterfaceId===n.id);u=f==null?void 0:f.inputs.placeholder.id}const d=(c=this.subgraph)===null||c===void 0?void 0:c.connections.find(f=>{var m;return u===((m=r?f.from:f.to)===null||m===void 0?void 0:m.id)}),h=r?d==null?void 0:d.to:d==null?void 0:d.from;if(h)return Reflect.get(h,s)}})}}}class G9{static fromGraph(e,n){return new G9(e.save(),n)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const n=this.editor.nodeTypes.get(Cc(this));n&&(n.title=e)}get inputs(){return this.nodes.filter(n=>n.type===Sc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===Lc).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Zs(),this._name="Subgraph",this.events={nameChanged:new Ln(this),updated:new Ln(this)},this.hooks={beforeLoad:new Di(this),afterSave:new Di(this)},this.editor=n,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 n=new Map,r=h=>{const f=Zs();return n.set(h,f),f},i=h=>{const f=n.get(h);if(!f)throw new Error(`Unable to create graph from template: Could not map old id ${h} to new id`);return f},o=h=>vv(h,f=>({id:r(f.id),templateId:f.id,value:f.value})),s=this.nodes.map(h=>({...h,id:r(h.id),inputs:o(h.inputs),outputs:o(h.outputs)})),a=this.connections.map(h=>({id:r(h.id),from:i(h.from),to:i(h.to)})),l=this.inputs.map(h=>({id:h.id,name:h.name,nodeId:i(h.nodeId),nodeInterfaceId:i(h.nodeInterfaceId)})),c=this.outputs.map(h=>({id:h.id,name:h.name,nodeId:i(h.nodeId),nodeInterfaceId:i(h.nodeInterfaceId)})),u={id:Zs(),nodes:s,connections:a,inputs:l,outputs:c};return e||(e=new T6(this.editor)),e.load(u).forEach(h=>console.warn(h)),e.template=this,e}}class jdr{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 Vr(this),registerNodeType:new Ln(this),beforeUnregisterNodeType:new Vr(this),unregisterNodeType:new Ln(this),beforeAddGraphTemplate:new Vr(this),addGraphTemplate:new Ln(this),beforeRemoveGraphTemplate:new Vr(this),removeGraphTemplate:new Ln(this),registerGraph:new Ln(this),unregisterGraph:new Ln(this)},this.hooks={save:new Di(this),load:new Di(this)},this.graphTemplateEvents=Uo(),this.graphTemplateHooks=Uo(),this.graphEvents=Uo(),this.graphHooks=Uo(),this.nodeEvents=Uo(),this.nodeHooks=Uo(),this.connectionEvents=Uo(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new T6(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(RE),this.registerNodeType(NE)}registerNodeType(e,n){var r,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:n}).prevented)return;const o=new e;this._nodeTypes.set(o.type,{type:e,category:(r=n==null?void 0:n.category)!==null&&r!==void 0?r:"default",title:(i=n==null?void 0:n.title)!==null&&i!==void 0?i:o.title}),this.events.registerNodeType.emit({type:e,options:n})}unregisterNodeType(e){const n=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(n)){if(this.events.beforeUnregisterNodeType.emit(n).prevented)return;this._nodeTypes.delete(n),this.events.unregisterNodeType.emit(n)}}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 n=zdr(e);this.registerNodeType(n,{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 n=Cc(e);for(const r of[this.graph,...this.graphs.values()]){const i=r.nodes.filter(o=>o.type===n);for(const o of i)r.removeNode(o)}this.unregisterNodeType(n),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 G9(r,this);this.addGraphTemplate(i)});const n=this._graph.load(e.graph);return this.events.loaded.emit(),n.forEach(r=>console.warn(r)),n}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(n=>n.save())};return this.hooks.save.execute(e)}}function Wdr(t,e){const n=new Map;e.graphs.forEach(r=>{r.nodes.forEach(i=>n.set(i.id,i))}),t.forEach((r,i)=>{const o=n.get(i);o&&r.forEach((s,a)=>{const l=o.outputs[a];l&&(l.value=s)})})}class KG extends Error{constructor(){super("Cycle detected")}}function Ydr(t){return typeof t=="string"}function ZG(t,e){const n=new Map,r=new Map,i=new Map;let o,s;if(t instanceof T6)o=t.nodes,s=t.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");o=t,s=e}o.forEach(c=>{Object.values(c.inputs).forEach(u=>n.set(u.id,c.id)),Object.values(c.outputs).forEach(u=>n.set(u.id,c.id))}),o.forEach(c=>{const u=s.filter(h=>h.from&&n.get(h.from.id)===c.id),d=new Set(u.map(h=>n.get(h.to.id)).filter(Ydr));r.set(c.id,d),i.set(c,u)});const a=o.slice();s.forEach(c=>{const u=a.findIndex(d=>n.get(c.to.id)===d.id);u>=0&&a.splice(u,1)});const l=[];for(;a.length>0;){const c=a.pop();l.push(c);const u=r.get(c.id);for(;u.size>0;){const d=u.values().next().value;if(u.delete(d),Array.from(r.values()).every(h=>!h.has(d))){const h=o.find(f=>f.id===d);a.push(h)}}}if(Array.from(r.values()).some(c=>c.size>0))throw new KG;return{calculationOrder:l,connectionsFromNode:i,interfaceIdToNodeId:n}}function Kdr(t,e){try{return ZG(t,e),!1}catch(n){if(n instanceof KG)return!0;throw n}}var ci;(function(t){t.Running="Running",t.Idle="Idle",t.Paused="Paused",t.Stopped="Stopped"})(ci||(ci={}));class Zdr{get status(){return this.isRunning?ci.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Vr(this),afterRun:new Ln(this),statusChange:new Ln(this),beforeNodeCalculation:new Ln(this),afterNodeCalculation:new Ln(this)},this.hooks={gatherCalculationData:new Di(this),transferData:new qG},this.recalculateOrder=!0,this.internalStatus=ci.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(n,r)=>{r.graph&&!r.graph.loading&&r.graph.activeTransactions===0&&this.internalOnChange(r,n??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(n,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,n=>this.checkConnection(n.from,n.to))}start(){this.internalStatus===ci.Stopped&&(this.internalStatus=ci.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===ci.Idle&&(this.internalStatus=ci.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===ci.Paused&&(this.internalStatus=ci.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===ci.Idle||this.internalStatus===ci.Paused)&&(this.internalStatus=ci.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...n){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,...n);return this.events.afterRun.emit(r),r}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,n){if(e.templateId){const o=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!o)return{connectionAllowed:!0,connectionsInDanger:[]};e=o}if(n.templateId){const o=this.findInterfaceByTemplateId(this.editor.graph.nodes,n.templateId);if(!o)return{connectionAllowed:!0,connectionsInDanger:[]};n=o}const r=new zG(e,n);let i=this.editor.graph.connections.slice();return n.allowMultipleConnections||(i=i.filter(o=>o.to!==n)),i.push(r),Kdr(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:n.allowMultipleConnections?[]:this.editor.graph.connections.filter(o=>o.to===n)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const n=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(n,...e)}validateNodeCalculationOutput(e,n){if(typeof n!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(r=>{if(!(r in n))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${r}"`)})}internalOnChange(e,n){this.internalStatus===ci.Idle&&this.onChange(this.recalculateOrder,e,n)}findInterfaceByTemplateId(e,n){for(const r of e)for(const i of[...Object.values(r.inputs),...Object.values(r.outputs)])if(i.templateId===n)return i;return null}}class Xdr extends Zdr{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,n,r){this.order.has(e.id)||this.order.set(e.id,ZG(e));const{calculationOrder:i,connectionsFromNode:o}=this.order.get(e.id),s=new Map;for(const a of i){const l={};Object.entries(a.inputs).forEach(([u,d])=>{l[u]=this.getInterfaceValue(n,d.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let c;if(a.calculate)c=await a.calculate(l,{globalValues:r,engine:this});else{c={};for(const[u,d]of Object.entries(a.outputs))c[u]=this.getInterfaceValue(n,d.id)}this.validateNodeCalculationOutput(a,c),this.events.afterNodeCalculation.emit({outputValues:c,node:a}),s.set(a.id,new Map(Object.entries(c))),o.has(a)&&o.get(a).forEach(u=>{var d;const h=(d=Object.entries(a.outputs).find(([,m])=>m.id===u.from.id))===null||d===void 0?void 0:d[0];if(!h)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 f=this.hooks.transferData.execute(c[h],u);u.to.allowMultipleConnections?n.has(u.to.id)?n.get(u.to.id).push(f):n.set(u.to.id,[f]):n.set(u.to.id,f)})}return s}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const n=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,n,e)}getInputValues(e){const n=new Map;for(const r of e.nodes)Object.values(r.inputs).forEach(i=>{i.connectionCount===0&&n.set(i.id,i.value)}),r.calculate||Object.values(r.outputs).forEach(i=>{n.set(i.id,i.value)});return n}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,n){if(!e.has(n))throw new Error(`Could not find value for interface ${n} -This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(n)}}const n7r=["INPUT","TEXTAREA","SELECT"];function XG(t){return n7r.includes(t.tagName)}let yv=null;function r7r(t){yv=t}function Ii(){if(!yv)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:yv}}function ao(){const{viewModel:t}=Ii();return{graph:bu(t.value,"displayedGraph"),switchGraph:t.value.switchGraph}}function JG(t){const{graph:e}=ao(),n=At(null),r=At(null);return{dragging:vt(()=>!!n.value),onPointerDown:l=>{n.value={x:l.pageX,y:l.pageY},r.value={x:t.value.x,y:t.value.y}},onPointerMove:l=>{if(n.value){const c=l.pageX-n.value.x,u=l.pageY-n.value.y;t.value.x=r.value.x+c/e.value.scaling,t.value.y=r.value.y+u/e.value.scaling}},onPointerUp:()=>{n.value=null,r.value=null}}}function eq(t,e,n){if(!e.template)return!1;if(Cc(e.template)===n)return!0;const r=t.graphTemplates.find(o=>Cc(o)===n);return r?r.nodes.filter(o=>o.type.startsWith(v0)).some(o=>eq(t,e,o.type)):!1}function tq(t){return vt(()=>{const e=Array.from(t.value.editor.nodeTypes.entries()),n=new Set(e.map(([,i])=>i.category)),r=[];for(const i of n.values()){let o=e.filter(([,s])=>s.category===i);t.value.displayedGraph.template?o=o.filter(([s])=>!eq(t.value.editor,t.value.displayedGraph,s)):o=o.filter(([s])=>![Sc,Lc].includes(s)),o.length>0&&r.push({name:i,nodeTypes:Object.fromEntries(o)})}return r.sort((i,o)=>i.name==="default"?-1:o.name==="default"||i.name>o.name?1:-1),r})}function nq(){const{graph:t}=ao();return{transform:(n,r)=>{const i=n/t.value.scaling-t.value.panning.x,o=r/t.value.scaling-t.value.panning.y;return[i,o]}}}function i7r(){const{graph:t}=ao();let e=[],n=-1,r={x:0,y:0};const i=vt(()=>t.value.panning),o=JG(i),s=vt(()=>({"transform-origin":"0 0",transform:`scale(${t.value.scaling}) translate(${t.value.panning.x}px, ${t.value.panning.y}px)`})),a=(f,m,T)=>{const Q=[f/t.value.scaling-t.value.panning.x,m/t.value.scaling-t.value.panning.y],_=[f/T-t.value.panning.x,m/T-t.value.panning.y],v=[_[0]-Q[0],_[1]-Q[1]];t.value.panning.x+=v[0],t.value.panning.y+=v[1],t.value.scaling=T},l=f=>{f.preventDefault();let m=f.deltaY;f.deltaMode===1&&(m*=32);const T=t.value.scaling*(1-m/3e3);a(f.offsetX,f.offsetY,T)},c=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:s,...o,onPointerDown:f=>{if(e.push(f),o.onPointerDown(f),e.length===2){const{ax:m,ay:T,bx:Q,by:_}=c();r={x:m+(Q-m)/2,y:T+(_-T)/2}}},onPointerMove:f=>{for(let m=0;m0){const E=t.value.scaling*(1+(b-n)/500);a(r.x,r.y,E)}n=b}else o.onPointerMove(f)},onPointerUp:f=>{e=e.filter(m=>m.pointerId!==f.pointerId),n=-1,o.onPointerUp()},onMouseWheel:l}}var Wi=(t=>(t[t.NONE=0]="NONE",t[t.ALLOWED=1]="ALLOWED",t[t.FORBIDDEN=2]="FORBIDDEN",t))(Wi||{});const rq=Symbol();function o7r(){const{graph:t}=ao(),e=At(null),n=At(null),r=a=>{e.value&&(e.value.mx=a.offsetX/t.value.scaling-t.value.panning.x,e.value.my=a.offsetY/t.value.scaling-t.value.panning.y)},i=()=>{if(n.value){if(e.value)return;const a=t.value.connections.find(l=>l.to===n.value);n.value.isInput&&a?(e.value={status:Wi.NONE,from:a.from},t.value.removeConnection(a)):e.value={status:Wi.NONE,from:n.value},e.value.mx=void 0,e.value.my=void 0}},o=()=>{if(e.value&&n.value){if(e.value.from===n.value)return;t.value.addConnection(e.value.from,e.value.to)}e.value=null},s=a=>{if(n.value=a??null,a&&e.value){e.value.to=a;const l=t.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?Wi.ALLOWED:Wi.FORBIDDEN,l.connectionAllowed){const c=l.connectionsInDanger.map(u=>u.id);t.value.connections.forEach(u=>{c.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=Wi.NONE,t.value.connections.forEach(l=>{l.isInDanger=!1}))};return Vl(rq,{temporaryConnection:e,hoveredOver:s}),{temporaryConnection:e,onMouseMove:r,onMouseDown:i,onMouseUp:o,hoveredOver:s}}function s7r(t){const e=At(!1),n=At(0),r=At(0),i=tq(t),{transform:o}=nq(),s=vt(()=>{let u=[];const d={};for(const f of i.value){const m=Object.entries(f.nodeTypes).map(([T,Q])=>({label:Q.title,value:"addNode:"+T}));f.name==="default"?u=m:d[f.name]=m}const h=[...Object.entries(d).map(([f,m])=>({label:f,submenu:m}))];return h.length>0&&u.length>0&&h.push({isDivider:!0}),h.push(...u),h}),a=vt(()=>t.value.settings.contextMenu.additionalItems.length===0?s.value:[{label:"Add node",submenu:s.value},...t.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!t.value.commandHandler.canExecuteCommand(u.command)})]);function l(u){const d=u.target;if(!(d instanceof Element)||XG(d))return;u.preventDefault(),e.value=!0;const h=d.getBoundingClientRect(),m=d.closest(".baklava-editor").getBoundingClientRect();n.value=h.x+u.offsetX-m.x,r.value=h.y+u.offsetY-m.y}function c(u){if(u.startsWith("addNode:")){const d=u.substring(8),h=t.value.editor.nodeTypes.get(d);if(!h)return;const f=ni(new h.type);t.value.displayedGraph.addNode(f);const[m,T]=o(n.value,r.value);f.position.x=m,f.position.y=T}else if(u.startsWith("command:")){const d=u.substring(8);t.value.commandHandler.canExecuteCommand(d)&&t.value.commandHandler.executeCommand(d)}}return{show:e,x:n,y:r,items:a,open:l,onClick:c}}const _u="START_SELECTION_BOX";function a7r(t){const{viewModel:e}=Ii(),{graph:n}=ao(),r=vt(()=>n.value.nodes),i=At(!1),o=At(!1),s=At([0,0]),a=At([0,0]);Lr(e,()=>{e.value.commandHandler.hasCommand(_u)||(e.value.commandHandler.registerCommand(_u,{canExecute:()=>!0,execute(){i.value=!0}}),e.value.commandHandler.registerHotkey(["b"],_u))},{immediate:!0});function l(_){return[_.clientX-t.value.getBoundingClientRect().left,_.clientY-t.value.getBoundingClientRect().top]}function c(_){return i.value?(o.value=!0,i.value=!1,s.value=l(_),a.value=l(_),document.addEventListener("pointermove",u),document.addEventListener("pointerup",d),!0):!1}function u(_){s.value=l(_)}function d(_){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",d),s.value=l(_),o.value=!1;const v=h();for(const y of v)e.value.displayedGraph.selectedNodes.push(y)}function h(){const _=f(),y=document.querySelector(".baklava-editor").getBoundingClientRect();return r.value.filter(b=>{const E=m(b,y);return T(_,E)})}function f(){return{left:Math.min(s.value[0],a.value[0]),top:Math.min(s.value[1],a.value[1]),right:Math.max(s.value[0],a.value[0]),bottom:Math.max(s.value[1],a.value[1])}}function m(_,v){const y=document.getElementById(_.id),b=y?y.getBoundingClientRect():{x:0,y:0,width:0,height:0},E=b.x-v.left,x=b.y-v.top;return{left:E,top:x,right:E+b.width,bottom:x+b.height}}function T(_,v){return _.leftv.left&&_.topv.top}function Q(){return{width:Math.abs(a.value[0]-s.value[0])+"px",height:Math.abs(a.value[1]-s.value[1])+"px",left:(a.value[0]>s.value[0]?s.value[0]:a.value[0])+"px",top:(a.value[1]>s.value[1]?s.value[1]:a.value[1])+"px"}}return ni({startSelection:i,isSelecting:o,start:s,end:a,onPointerDown:c,getStyles:Q})}const l7r=sr({setup(){const{viewModel:t}=Ii(),{graph:e}=ao();return{styles:vt(()=>{const r=t.value.settings.background,i=e.value.panning.x*e.value.scaling,o=e.value.panning.y*e.value.scaling,s=e.value.scaling*r.gridSize,a=s/r.gridDivision,l=`${s}px ${s}px, ${s}px ${s}px`,c=e.value.scaling>r.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${i}px top ${o}px`,backgroundSize:`${l} ${c}`}})}}}),Xn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function c7r(t,e,n,r,i,o){return k(),P("div",{class:"background",style:bn(t.styles)},null,4)}const u7r=Xn(l7r,[["render",c7r]]);function d7r(t){return oP()?(Xq(t),!0):!1}function DE(t){return typeof t=="function"?t():Ft(t)}const iq=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const f7r=Object.prototype.toString,p7r=t=>f7r.call(t)==="[object Object]",Qu=()=>{},h7r=T7r();function T7r(){var t,e;return iq&&((t=window==null?void 0:window.navigator)==null?void 0:t.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 m7r(t,e,n=!1){return e.reduce((r,i)=>(i in t&&(!n||t[i]!==void 0)&&(r[i]=t[i]),r),{})}function g7r(t,e={}){if(!ur(t))return Cz(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const r in t.value)n[r]=Lz(()=>({get(){return t.value[r]},set(i){var o;if((o=DE(e.replaceRef))!=null?o:!0)if(Array.isArray(t.value)){const a=[...t.value];a[r]=i,t.value=a}else{const a={...t.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[r]=i}}));return n}function w4(t){var e;const n=DE(t);return(e=n==null?void 0:n.$el)!=null?e:n}const IE=iq?window:void 0;function j4(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=IE):[e,n,r,i]=t,!e)return Qu;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,h,f)=>(u.addEventListener(d,h,f),()=>u.removeEventListener(d,h,f)),l=Lr(()=>[w4(e),DE(i)],([u,d])=>{if(s(),!u)return;const h=p7r(d)?{...d}:d;o.push(...n.flatMap(f=>r.map(m=>a(u,f,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return d7r(c),c}let Fk=!1;function oq(t,e,n={}){const{window:r=IE,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return Qu;h7r&&!Fk&&(Fk=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Qu)),r.document.documentElement.addEventListener("click",Qu));let a=!0;const l=h=>i.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(m=>m===h.target||h.composedPath().includes(m));{const m=w4(f);return m&&(h.target===m||h.composedPath().includes(m))}}),u=[j4(r,"click",h=>{const f=w4(t);if(!(!f||f===h.target||h.composedPath().includes(f))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:o}),j4(r,"pointerdown",h=>{const f=w4(t);a=!l(h)&&!!(f&&!h.composedPath().includes(f))},{passive:!0}),s&&j4(r,"blur",h=>{setTimeout(()=>{var f;const m=w4(t);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}const sq={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},_7r=Object.keys(sq);function Q7r(t={}){const{target:e=IE}=t,n=At(!1),r=At(t.initialValue||{});Object.assign(r.value,sq,r.value);const i=o=>{n.value=!0,!(t.pointerTypes&&!t.pointerTypes.includes(o.pointerType))&&(r.value=m7r(o,_7r,!1))};if(e){const o={passive:!0};j4(e,["pointerdown","pointermove","pointerup"],i,o),j4(e,"pointerleave",()=>n.value=!1,o)}return{...g7r(r),isInside:n}}const v7r=["onMouseenter","onMouseleave","onClick"],y7r={class:"flex-fill"},b7r={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},E7r=g("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[g("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),x7r=[E7r],kE=sr({__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(t,{emit:e}){const n=t,r=e;let i=null;const o=At(null),s=At(-1),a=At(0),l=At({x:!1,y:!1}),c=vt(()=>n.flippable&&(l.value.x||n.isFlipped.x)),u=vt(()=>n.flippable&&(l.value.y||n.isFlipped.y)),d=vt(()=>{const v={};return n.isNested||(v.top=(u.value?n.y-a.value:n.y)+"px",v.left=n.x+"px"),v}),h=vt(()=>({"--flipped-x":c.value,"--flipped-y":u.value,"--nested":n.isNested})),f=vt(()=>n.items.map(v=>({...v,hover:!1})));Lr([()=>n.y,()=>n.items],()=>{var v,y,b,E;a.value=n.items.length*30;const x=((y=(v=o.value)==null?void 0:v.parentElement)==null?void 0:y.offsetWidth)??0,L=((E=(b=o.value)==null?void 0:b.parentElement)==null?void 0:E.offsetHeight)??0;l.value.x=!n.isNested&&n.x>x*.75,l.value.y=!n.isNested&&n.y+a.value>L-20}),oq(o,()=>{n.modelValue&&r("update:modelValue",!1)});const m=v=>{!v.submenu&&v.value&&(r("click",v.value),r("update:modelValue",!1))},T=v=>{r("click",v),s.value=-1,n.isNested||r("update:modelValue",!1)},Q=(v,y)=>{n.items[y].submenu&&(s.value=y,i!==null&&(clearTimeout(i),i=null))},_=(v,y)=>{n.items[y].submenu&&(i=window.setTimeout(()=>{s.value=-1,i=null},200))};return(v,y)=>{const b=gt("ContextMenu",!0);return k(),wt(Ai,{name:"slide-fade"},{default:Be(()=>[te(g("div",{ref_key:"el",ref:o,class:We(["baklava-context-menu",h.value]),style:bn(d.value)},[(k(!0),P(ze,null,lt(f.value,(E,x)=>(k(),P(ze,null,[E.isDivider?(k(),P("div",{key:`d-${x}`,class:"divider"})):(k(),P("div",{key:`i-${x}`,class:We(["item",{submenu:!!E.submenu,"--disabled":!!E.disabled}]),onMouseenter:L=>Q(L,x),onMouseleave:L=>_(L,x),onClick:ge(L=>m(E),["stop","prevent"])},[g("div",y7r,ue(E.label),1),E.submenu?(k(),P("div",b7r,x7r)):ie("",!0),E.submenu?(k(),wt(b,{key:1,"model-value":s.value===x,items:E.submenu,"is-nested":!0,"is-flipped":{x:c.value,y:u.value},flippable:v.flippable,onClick:T},null,8,["model-value","items","is-flipped","flippable"])):ie("",!0)],42,v7r))],64))),256))],6),[[Ht,v.modelValue]])]),_:1})}}}),S7r={},L7r={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"},C7r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),A7r=g("circle",{cx:"12",cy:"12",r:"1"},null,-1),w7r=g("circle",{cx:"12",cy:"19",r:"1"},null,-1),M7r=g("circle",{cx:"12",cy:"5",r:"1"},null,-1),O7r=[C7r,A7r,w7r,M7r];function R7r(t,e){return k(),P("svg",L7r,O7r)}const aq=Xn(S7r,[["render",R7r]]),N7r=["id"],D7r={key:0,class:"__tooltip"},I7r={key:2,class:"align-middle"},Bk=sr({__name:"NodeInterface",props:{node:{},intf:{}},setup(t){const e=(Q,_=100)=>{const v=typeof(Q==null?void 0:Q.toString)=="function"?String(Q):"";return v.length>_?v.slice(0,_)+"...":v},n=t,{viewModel:r}=Ii(),{hoveredOver:i,temporaryConnection:o}=Xi(rq),s=At(null),a=vt(()=>n.intf.connectionCount>0),l=At(!1),c=vt(()=>r.value.settings.displayValueOnHover&&l.value),u=vt(()=>({"--input":n.intf.isInput,"--output":!n.intf.isInput,"--connected":a.value})),d=vt(()=>n.intf.component&&(!n.intf.isInput||!n.intf.port||n.intf.connectionCount===0)),h=()=>{l.value=!0,i(n.intf)},f=()=>{l.value=!1,i(void 0)},m=()=>{s.value&&r.value.hooks.renderInterface.execute({intf:n.intf,el:s.value})},T=()=>{const Q=r.value.displayedGraph.sidebar;Q.nodeId=n.node.id,Q.optionName=n.intf.name,Q.visible=!0};return ls(m),E0(m),(Q,_)=>{var v;return k(),P("div",{id:Q.intf.id,ref_key:"el",ref:s,class:We(["baklava-node-interface",u.value])},[Q.intf.port?(k(),P("div",{key:0,class:We(["__port",{"--selected":((v=Ft(o))==null?void 0:v.from)===Q.intf}]),onPointerover:h,onPointerout:f},[er(Q.$slots,"portTooltip",{showTooltip:c.value},()=>[c.value===!0?(k(),P("span",D7r,ue(e(Q.intf.value)),1)):ie("",!0)])],34)):ie("",!0),d.value?(k(),wt(jd(Q.intf.component),{key:1,modelValue:Q.intf.value,"onUpdate:modelValue":_[0]||(_[0]=y=>Q.intf.value=y),node:Q.node,intf:Q.intf,onOpenSidebar:T},null,40,["modelValue","node","intf"])):(k(),P("span",I7r,ue(Q.intf.name),1))],10,N7r)}}}),k7r=["id","data-node-type"],P7r={class:"__title-label"},H7r={class:"__menu"},V7r={class:"__outputs"},F7r={class:"__inputs"},B7r=sr({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(t,{emit:e}){const n=t,r=e,{viewModel:i}=Ii(),{graph:o,switchGraph:s}=ao(),a=At(null),l=At(!1),c=At(""),u=At(null),d=At(!1),h=At(!1),f=vt(()=>{const N=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return n.node.type.startsWith(v0)&&N.push({value:"editSubgraph",label:"Edit Subgraph"}),N}),m=vt(()=>({"--selected":n.selected,"--dragging":n.dragging,"--two-column":!!n.node.twoColumn})),T=vt(()=>({"--reverse-y":n.node.reverseY??i.value.settings.nodes.reverseY})),Q=vt(()=>{var N,V;return{top:`${((N=n.node.position)==null?void 0:N.y)??0}px`,left:`${((V=n.node.position)==null?void 0:V.x)??0}px`,"--width":`${n.node.width??i.value.settings.nodes.defaultWidth}px`}}),_=vt(()=>Object.values(n.node.inputs).filter(N=>!N.hidden)),v=vt(()=>Object.values(n.node.outputs).filter(N=>!N.hidden)),y=()=>{r("select")},b=N=>{n.selected||y(),r("start-drag",N)},E=()=>{h.value=!0},x=async N=>{var V;switch(N){case"delete":o.value.removeNode(n.node);break;case"rename":c.value=n.node.title,l.value=!0,await Ke(),(V=u.value)==null||V.focus();break;case"editSubgraph":s(n.node.template);break}},L=()=>{n.node.title=c.value,l.value=!1},M=()=>{a.value&&i.value.hooks.renderNode.execute({node:n.node,el:a.value})},C=N=>{d.value=!0,N.preventDefault()},A=N=>{if(!d.value)return;const V=n.node.width+N.movementX/o.value.scaling,R=i.value.settings.nodes.minWidth,B=i.value.settings.nodes.maxWidth;n.node.width=Math.max(R,Math.min(B,V))},I=()=>{d.value=!1};return ls(()=>{M(),window.addEventListener("mousemove",A),window.addEventListener("mouseup",I)}),E0(M),Oc(()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",I)}),(N,V)=>(k(),P("div",{id:N.node.id,ref_key:"el",ref:a,class:We(["baklava-node",m.value]),style:bn(Q.value),"data-node-type":N.node.type,onPointerdown:y},[Ft(i).settings.nodes.resizable?(k(),P("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):ie("",!0),er(N.$slots,"title",{},()=>[g("div",{class:"__title",onPointerdown:ge(b,["self","stop"])},[l.value?te((k(),P("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":V[1]||(V[1]=R=>c.value=R),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:L,onKeydown:ri(L,["enter"])},null,544)),[[Ne,c.value]]):(k(),P(ze,{key:0},[g("div",P7r,ue(N.node.title),1),g("div",H7r,[ae(aq,{class:"--clickable",onClick:E}),ae(Ft(kE),{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=R=>h.value=R),x:0,y:0,items:f.value,onClick:x},null,8,["modelValue","items"])])],64))],32)]),er(N.$slots,"content",{},()=>[g("div",{class:We(["__content",T.value]),onKeydown:V[2]||(V[2]=ri(ge(()=>{},["stop"]),["delete"]))},[g("div",V7r,[(k(!0),P(ze,null,lt(v.value,R=>er(N.$slots,"nodeInterface",{key:R.id,type:"output",node:N.node,intf:R},()=>[ae(Bk,{node:N.node,intf:R},null,8,["node","intf"])])),128))]),g("div",F7r,[(k(!0),P(ze,null,lt(_.value,R=>er(N.$slots,"nodeInterface",{key:R.id,type:"input",node:N.node,intf:R},()=>[ae(Bk,{node:N.node,intf:R},null,8,["node","intf"])])),128))])],34)])],46,k7r))}}),$7r=sr({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:Wi.NONE},isTemporary:{type:Boolean,default:!1}},setup(t){const{viewModel:e}=Ii(),{graph:n}=ao(),r=(s,a)=>{const l=(s+n.value.panning.x)*n.value.scaling,c=(a+n.value.panning.y)*n.value.scaling;return[l,c]},i=vt(()=>{const[s,a]=r(t.x1,t.y1),[l,c]=r(t.x2,t.y2);if(e.value.settings.useStraightConnections)return`M ${s} ${a} L ${l} ${c}`;{const u=.3*Math.abs(s-l);return`M ${s} ${a} C ${s+u} ${a}, ${l-u} ${c}, ${l} ${c}`}}),o=vt(()=>({"--temporary":t.isTemporary,"--allowed":t.state===Wi.ALLOWED,"--forbidden":t.state===Wi.FORBIDDEN}));return{d:i,classes:o}}}),U7r=["d"];function G7r(t,e,n,r,i,o){return k(),P("path",{class:We(["baklava-connection",t.classes]),d:t.d},null,10,U7r)}const lq=Xn($7r,[["render",G7r]]);function q7r(t){return document.getElementById(t.id)}function Ac(t){const e=document.getElementById(t.id),n=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:n&&n.length>0?n[0]:null}}const z7r=sr({components:{"connection-view":lq},props:{connection:{type:Object,required:!0}},setup(t){const{graph:e}=ao();let n;const r=At({x1:0,y1:0,x2:0,y2:0}),i=vt(()=>t.connection.isInDanger?Wi.FORBIDDEN:Wi.NONE),o=vt(()=>{var c;return(c=e.value.findNodeById(t.connection.from.nodeId))==null?void 0:c.position}),s=vt(()=>{var c;return(c=e.value.findNodeById(t.connection.to.nodeId))==null?void 0:c.position}),a=c=>c.node&&c.interface&&c.port?[c.node.offsetLeft+c.interface.offsetLeft+c.port.offsetLeft+c.port.clientWidth/2,c.node.offsetTop+c.interface.offsetTop+c.port.offsetTop+c.port.clientHeight/2]:[0,0],l=()=>{const c=Ac(t.connection.from),u=Ac(t.connection.to);c.node&&u.node&&(n||(n=new ResizeObserver(()=>{l()}),n.observe(c.node),n.observe(u.node)));const[d,h]=a(c),[f,m]=a(u);r.value={x1:d,y1:h,x2:f,y2:m}};return ls(async()=>{await Ke(),l()}),Oc(()=>{n&&n.disconnect()}),Lr([o,s],()=>l(),{deep:!0}),{d:r,state:i}}});function j7r(t,e,n,r,i,o){const s=gt("connection-view");return k(),wt(s,{x1:t.d.x1,y1:t.d.y1,x2:t.d.x2,y2:t.d.y2,state:t.state},null,8,["x1","y1","x2","y2","state"])}const W7r=Xn(z7r,[["render",j7r]]);function Nd(t){return t.node&&t.interface&&t.port?[t.node.offsetLeft+t.interface.offsetLeft+t.port.offsetLeft+t.port.clientWidth/2,t.node.offsetTop+t.interface.offsetTop+t.port.offsetTop+t.port.clientHeight/2]:[0,0]}const Y7r=sr({components:{"connection-view":lq},props:{connection:{type:Object,required:!0}},setup(t){const e=vt(()=>t.connection?t.connection.status:Wi.NONE);return{d:vt(()=>{if(!t.connection)return{input:[0,0],output:[0,0]};const r=Nd(Ac(t.connection.from)),i=t.connection.to?Nd(Ac(t.connection.to)):[t.connection.mx||r[0],t.connection.my||r[1]];return t.connection.from.isInput?{input:i,output:r}:{input:r,output:i}}),status:e}}});function K7r(t,e,n,r,i,o){const s=gt("connection-view");return k(),wt(s,{x1:t.d.input[0],y1:t.d.input[1],x2:t.d.output[0],y2:t.d.output[1],state:t.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const Z7r=Xn(Y7r,[["render",K7r]]),X7r=sr({setup(){const{viewModel:t}=Ii(),{graph:e}=ao(),n=At(null),r=bu(t.value.settings.sidebar,"width"),i=vt(()=>t.value.settings.sidebar.resizable),o=vt(()=>{const d=e.value.sidebar.nodeId;return e.value.nodes.find(h=>h.id===d)}),s=vt(()=>({width:`${r.value}px`})),a=vt(()=>o.value?[...Object.values(o.value.inputs),...Object.values(o.value.outputs)].filter(h=>h.displayInSidebar&&h.component):[]),l=()=>{e.value.sidebar.visible=!1},c=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=d=>{var h,f;const m=((f=(h=n.value)==null?void 0:h.parentElement)==null?void 0:f.getBoundingClientRect().width)??500;let T=r.value-d.movementX;T<300?T=300:T>.9*m&&(T=.9*m),r.value=T};return{el:n,graph:e,resizable:i,node:o,styles:s,displayedInterfaces:a,startResize:c,close:l}}}),J7r={class:"__header"},e8r={class:"__node-name"};function t8r(t,e,n,r,i,o){return k(),P("div",{ref:"el",class:We(["baklava-sidebar",{"--open":t.graph.sidebar.visible}]),style:bn(t.styles)},[t.resizable?(k(),P("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...s)=>t.startResize&&t.startResize(...s))},null,32)):ie("",!0),g("div",J7r,[g("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...s)=>t.close&&t.close(...s))},"×"),g("div",e8r,[g("b",null,ue(t.node?t.node.title:""),1)])]),(k(!0),P(ze,null,lt(t.displayedInterfaces,s=>(k(),P("div",{key:s.id,class:"__interface"},[(k(),wt(jd(s.component),{modelValue:s.value,"onUpdate:modelValue":a=>s.value=a,node:t.node,intf:s},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const n8r=Xn(X7r,[["render",t8r]]),r8r=sr({__name:"Minimap",setup(t){const{viewModel:e}=Ii(),{graph:n}=ao(),r=At(null),i=At(!1);let o,s=!1,a={x1:0,y1:0,x2:0,y2:0},l;const c=()=>{var x,L;if(!o)return;o.canvas.width=r.value.offsetWidth,o.canvas.height=r.value.offsetHeight;const M=new Map,C=new Map;for(const R of n.value.nodes){const B=q7r(R),F=(B==null?void 0:B.offsetWidth)??0,U=(B==null?void 0:B.offsetHeight)??0,G=((x=R.position)==null?void 0:x.x)??0,Z=((L=R.position)==null?void 0:L.y)??0;M.set(R,{x1:G,y1:Z,x2:G+F,y2:Z+U}),C.set(R,B)}const A={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const R of M.values())R.x1A.x2&&(A.x2=R.x2),R.y2>A.y2&&(A.y2=R.y2);const I=50;A.x1-=I,A.y1-=I,A.x2+=I,A.y2+=I,a=A;const N=o.canvas.width/o.canvas.height,V=(a.x2-a.x1)/(a.y2-a.y1);if(N>V){const R=(N-V)*(a.y2-a.y1)*.5;a.x1-=R,a.x2+=R}else{const R=a.x2-a.x1,B=a.y2-a.y1,F=(R-N*B)/N*.5;a.y1-=F,a.y2+=F}o.clearRect(0,0,o.canvas.width,o.canvas.height),o.strokeStyle="white";for(const R of n.value.connections){const[B,F]=Nd(Ac(R.from)),[U,G]=Nd(Ac(R.to)),[Z,Y]=u(B,F),[ee,pe]=u(U,G);if(o.beginPath(),o.moveTo(Z,Y),e.value.settings.useStraightConnections)o.lineTo(ee,pe);else{const K=.3*Math.abs(Z-ee);o.bezierCurveTo(Z+K,Y,ee-K,pe,ee,pe)}o.stroke()}o.strokeStyle="lightgray";for(const[R,B]of M.entries()){const[F,U]=u(B.x1,B.y1),[G,Z]=u(B.x2,B.y2);o.fillStyle=h(C.get(R)),o.beginPath(),o.rect(F,U,G-F,Z-U),o.fill(),o.stroke()}if(i.value){const R=m(),[B,F]=u(R.x1,R.y1),[U,G]=u(R.x2,R.y2);o.fillStyle="rgba(255, 255, 255, 0.2)",o.fillRect(B,F,U-B,G-F)}},u=(x,L)=>[(x-a.x1)/(a.x2-a.x1)*o.canvas.width,(L-a.y1)/(a.y2-a.y1)*o.canvas.height],d=(x,L)=>[x*(a.x2-a.x1)/o.canvas.width+a.x1,L*(a.y2-a.y1)/o.canvas.height+a.y1],h=x=>{if(x){const L=x.querySelector(".__content");if(L){const C=f(L);if(C)return C}const M=f(x);if(M)return M}return"gray"},f=x=>{const L=getComputedStyle(x).backgroundColor;if(L&&L!=="rgba(0, 0, 0, 0)")return L},m=()=>{const x=r.value.parentElement.offsetWidth,L=r.value.parentElement.offsetHeight,M=x/n.value.scaling-n.value.panning.x,C=L/n.value.scaling-n.value.panning.y;return{x1:-n.value.panning.x,y1:-n.value.panning.y,x2:M,y2:C}},T=x=>{x.button===0&&(s=!0,Q(x))},Q=x=>{if(s){const[L,M]=d(x.offsetX,x.offsetY),C=m(),A=(C.x2-C.x1)/2,I=(C.y2-C.y1)/2;n.value.panning.x=-(L-A),n.value.panning.y=-(M-I)}},_=()=>{s=!1},v=()=>{i.value=!0},y=()=>{i.value=!1,_()};Lr([i,n.value.panning,()=>n.value.scaling,()=>n.value.connections.length],()=>{c()});const b=vt(()=>n.value.nodes.map(x=>x.position)),E=vt(()=>n.value.nodes.map(x=>x.width));return Lr([b,E],()=>{c()},{deep:!0}),ls(()=>{o=r.value.getContext("2d"),o.imageSmoothingQuality="high",c(),l=setInterval(c,500)}),Oc(()=>{clearInterval(l)}),(x,L)=>(k(),P("canvas",{ref_key:"canvas",ref:r,class:"baklava-minimap",onMouseenter:v,onMouseleave:y,onMousedown:ge(T,["self"]),onMousemove:ge(Q,["self"]),onMouseup:_,onContextmenu:L[0]||(L[0]=ge(()=>{},["stop","prevent"]))},null,544))}}),i8r=sr({components:{ContextMenu:kE,VerticalDots:aq},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(t){const{viewModel:e}=Ii(),{switchGraph:n}=ao(),r=At(!1),i=vt(()=>t.type.startsWith(v0));return{showContextMenu:r,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{r.value=!0},onContextMenuClick:l=>{const c=t.type.substring(v0.length),u=e.value.editor.graphTemplates.find(d=>d.id===c);if(u)switch(l){case"editSubgraph":n(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),o8r=["data-node-type"],s8r={class:"__title"},a8r={class:"__title-label"},l8r={key:0,class:"__menu"};function c8r(t,e,n,r,i,o){const s=gt("vertical-dots"),a=gt("context-menu");return k(),P("div",{class:"baklava-node --palette","data-node-type":t.type},[g("div",s8r,[g("div",a8r,ue(t.title),1),t.hasContextMenu?(k(),P("div",l8r,[ae(s,{class:"--clickable",onPointerdown:e[0]||(e[0]=ge(()=>{},["stop","prevent"])),onClick:ge(t.openContextMenu,["stop","prevent"])},null,8,["onClick"]),ae(a,{modelValue:t.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>t.showContextMenu=l),x:-100,y:0,items:t.contextMenuItems,onClick:t.onContextMenuClick,onPointerdown:e[2]||(e[2]=ge(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):ie("",!0)])],8,o8r)}const $k=Xn(i8r,[["render",c8r]]),u8r={key:0},d8r=sr({__name:"NodePalette",setup(t){const{viewModel:e}=Ii(),{x:n,y:r}=Q7r(),{transform:i}=nq(),o=tq(e),s=Xi("editorEl"),a=At(null),l=vt(()=>{if(!a.value||!(s!=null&&s.value))return{};const{left:u,top:d}=s.value.getBoundingClientRect();return{top:`${r.value-d}px`,left:`${n.value-u}px`}}),c=(u,d)=>{a.value={type:u,nodeInformation:d};const h=()=>{const f=ni(new d.type);e.value.displayedGraph.addNode(f);const m=s.value.getBoundingClientRect(),[T,Q]=i(n.value-m.left,r.value-m.top);f.position.x=T,f.position.y=Q,a.value=null,document.removeEventListener("pointerup",h)};document.addEventListener("pointerup",h)};return(u,d)=>(k(),P(ze,null,[g("div",{class:"baklava-node-palette",onContextmenu:d[0]||(d[0]=ge(()=>{},["stop","prevent"]))},[(k(!0),P(ze,null,lt(Ft(o),h=>(k(),P("section",{key:h.name},[h.name!=="default"?(k(),P("h1",u8r,ue(h.name),1)):ie("",!0),(k(!0),P(ze,null,lt(h.nodeTypes,(f,m)=>(k(),wt($k,{key:m,type:m,title:f.title,onPointerdown:T=>c(m,f)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),ae(Ai,{name:"fade"},{default:Be(()=>[a.value?(k(),P("div",{key:0,class:"baklava-dragged-node",style:bn(l.value)},[ae($k,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):ie("",!0)]),_:1})],64))}});let eu;const f8r=new Uint8Array(16);function p8r(){if(!eu&&(eu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!eu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eu(f8r)}const xr=[];for(let t=0;t<256;++t)xr.push((t+256).toString(16).slice(1));function h8r(t,e=0){return xr[t[e+0]]+xr[t[e+1]]+xr[t[e+2]]+xr[t[e+3]]+"-"+xr[t[e+4]]+xr[t[e+5]]+"-"+xr[t[e+6]]+xr[t[e+7]]+"-"+xr[t[e+8]]+xr[t[e+9]]+"-"+xr[t[e+10]]+xr[t[e+11]]+xr[t[e+12]]+xr[t[e+13]]+xr[t[e+14]]+xr[t[e+15]]}const T8r=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Uk={randomUUID:T8r};function Dd(t,e,n){if(Uk.randomUUID&&!e&&!t)return Uk.randomUUID();t=t||{};const r=t.random||(t.rng||p8r)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,h8r(r)}const y0="SAVE_SUBGRAPH";function m8r(t,e){const n=()=>{const r=t.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(y0,{canExecute:()=>{var r;return t.value!==((r=t.value.editor)==null?void 0:r.graph)},execute:n})}const g8r={},_8r={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"},Q8r=g("polyline",{points:"6 9 12 15 18 9"},null,-1),v8r=[Q8r];function y8r(t,e){return k(),P("svg",_8r,v8r)}const b8r=Xn(g8r,[["render",y8r]]),E8r=sr({components:{"i-arrow":b8r},props:{intf:{type:Object,required:!0}},setup(t){const e=At(null),n=At(!1),r=vt(()=>t.intf.items.find(s=>typeof s=="string"?s===t.intf.value:s.value===t.intf.value)),i=vt(()=>r.value?typeof r.value=="string"?r.value:r.value.text:""),o=s=>{t.intf.value=typeof s=="string"?s:s.value};return oq(e,()=>{n.value=!1}),{el:e,open:n,selectedItem:r,selectedText:i,setSelected:o}}}),x8r=["title"],S8r={class:"__selected"},L8r={class:"__text"},C8r={class:"__icon"},A8r={class:"__dropdown"},w8r={class:"item --header"},M8r=["onClick"];function O8r(t,e,n,r,i,o){const s=gt("i-arrow");return k(),P("div",{ref:"el",class:We(["baklava-select",{"--open":t.open}]),title:t.intf.name,onClick:e[0]||(e[0]=a=>t.open=!t.open)},[g("div",S8r,[g("div",L8r,ue(t.selectedText),1),g("div",C8r,[ae(s)])]),ae(Ai,{name:"slide-fade"},{default:Be(()=>[te(g("div",A8r,[g("div",w8r,ue(t.intf.name),1),(k(!0),P(ze,null,lt(t.intf.items,(a,l)=>(k(),P("div",{key:l,class:We(["item",{"--active":a===t.selectedItem}]),onClick:c=>t.setSelected(a)},ue(typeof a=="string"?a:a.text),11,M8r))),128))],512),[[Ht,t.open]])]),_:1})],10,x8r)}const R8r=Xn(E8r,[["render",O8r]]);class N8r extends Wn{constructor(e,n,r){super(e,n),this.component=Ud(R8r),this.items=r}}const D8r=sr({props:{intf:{type:Object,required:!0}}});function I8r(t,e,n,r,i,o){return k(),P("div",null,ue(t.intf.value),1)}const k8r=Xn(D8r,[["render",I8r]]);class P8r extends Wn{constructor(e,n){super(e,n),this.component=Ud(k8r),this.setPort(!1)}}const H8r=sr({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){return{v:vt({get:()=>t.modelValue,set:r=>{e("update:modelValue",r)}})}}}),V8r=["placeholder","title"];function F8r(t,e,n,r,i,o){return k(),P("div",null,[te(g("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>t.v=s),type:"text",class:"baklava-input",placeholder:t.intf.name,title:t.intf.name},null,8,V8r),[[Ne,t.v]])])}const B8r=Xn(H8r,[["render",F8r]]);class m6 extends Wn{constructor(){super(...arguments),this.component=Ud(B8r)}}class cq extends RE{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new m6("Name","Input").setPort(!1)},this.outputs={placeholder:new Wn("Connection",void 0)}}}class uq extends NE{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new m6("Name","Output").setPort(!1),placeholder:new Wn("Connection",void 0)},this.outputs={output:new Wn("Output",void 0).setHidden(!0)}}}const dq="CREATE_SUBGRAPH",Gk=[Sc,Lc];function $8r(t,e,n){const r=()=>t.value.selectedNodes.filter(o=>!Gk.includes(o.type)).length>0,i=()=>{const{viewModel:o}=Ii(),s=t.value,a=t.value.editor;if(s.selectedNodes.length===0)return;const l=s.selectedNodes.filter(C=>!Gk.includes(C.type)),c=l.flatMap(C=>Object.values(C.inputs)),u=l.flatMap(C=>Object.values(C.outputs)),d=s.connections.filter(C=>!u.includes(C.from)&&c.includes(C.to)),h=s.connections.filter(C=>u.includes(C.from)&&!c.includes(C.to)),f=s.connections.filter(C=>u.includes(C.from)&&c.includes(C.to)),m=l.map(C=>C.save()),T=f.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),Q=new Map,{xLeft:_,xRight:v,yTop:y}=U8r(l);for(const[C,A]of d.entries()){const I=new cq;I.inputs.name.value=A.to.name,m.push({...I.save(),position:{x:v-o.value.settings.nodes.defaultWidth-100,y:y+C*200}}),T.push({id:Dd(),from:I.outputs.placeholder.id,to:A.to.id}),Q.set(A.to.id,I.graphInterfaceId)}for(const[C,A]of h.entries()){const I=new uq;I.inputs.name.value=A.from.name,m.push({...I.save(),position:{x:_+100,y:y+C*200}}),T.push({id:Dd(),from:A.from.id,to:I.inputs.placeholder.id}),Q.set(A.from.id,I.graphInterfaceId)}const b=ni(new G9({connections:T,nodes:m,inputs:[],outputs:[]},a));a.addGraphTemplate(b);const E=a.nodeTypes.get(Cc(b));if(!E)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");s.activeTransactions++;const x=ni(new E.type);s.addNode(x);const L=Math.round(l.map(C=>C.position.x).reduce((C,A)=>C+A,0)/l.length),M=Math.round(l.map(C=>C.position.y).reduce((C,A)=>C+A,0)/l.length);x.position.x=L,x.position.y=M,d.forEach(C=>{s.removeConnection(C),s.addConnection(C.from,x.inputs[Q.get(C.to.id)])}),h.forEach(C=>{s.removeConnection(C),s.addConnection(x.outputs[Q.get(C.from.id)],C.to)}),l.forEach(C=>s.removeNode(C)),s.activeTransactions--,e.canExecuteCommand(y0)&&e.executeCommand(y0),n(b),t.value.panning={...s.panning},t.value.scaling=s.scaling};e.registerCommand(dq,{canExecute:r,execute:i})}function U8r(t){const e=t.reduce((i,o)=>{const s=o.position.x;return s{const s=o.position.y;return s{const s=o.position.x+o.width;return s>i?s:i},-1/0),xRight:e,yTop:n}}class qk{constructor(e,n){this.type=e,e==="addNode"?this.nodeId=n:this.nodeState=n}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 n=e.editor.nodeTypes.get(this.nodeState.type);if(!n)return;const r=new n.type;e.addNode(r),r.load(this.nodeState),this.nodeId=r.id}removeNode(e){const n=e.nodes.find(r=>r.id===this.nodeId);n&&(this.nodeState=n.save(),e.removeNode(n))}}class zk{constructor(e,n){if(this.type=e,e==="addConnection")this.connectionId=n;else{const r=n;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 n=e.findNodeInterface(this.connectionState.from),r=e.findNodeInterface(this.connectionState.to);if(!n||!r)return;const i=e.addConnection(n,r);i&&(i.id=this.connectionState.id),this.connectionId=i==null?void 0:i.id}removeConnection(e){const n=e.connections.find(r=>r.id===this.connectionId);n&&(this.connectionState={id:n.id,from:n.from.id,to:n.to.id},e.removeConnection(n))}}class G8r{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 n=this.steps.length-1;n>=0;n--)this.steps[n].undo(e)}redo(e){for(let n=0;n{if(!o.value)if(a.value)l.value.push(Q);else for(s.value!==i.value.length-1&&(i.value=i.value.slice(0,s.value+1)),i.value.push(Q),s.value++;i.value.length>r.value;)i.value.shift()},u=()=>{a.value=!0},d=()=>{a.value=!1,l.value.length>0&&(c(new G8r(l.value)),l.value=[])},h=()=>i.value.length!==0&&s.value!==-1,f=()=>{h()&&(o.value=!0,i.value[s.value--].undo(t.value),o.value=!1)},m=()=>i.value.length!==0&&s.value{m()&&(o.value=!0,i.value[++s.value].redo(t.value),o.value=!1)};return Lr(t,(Q,_)=>{_&&(_.events.addNode.unsubscribe(n),_.events.removeNode.unsubscribe(n),_.events.addConnection.unsubscribe(n),_.events.removeConnection.unsubscribe(n)),Q&&(Q.events.addNode.subscribe(n,v=>{c(new qk("addNode",v.id))}),Q.events.removeNode.subscribe(n,v=>{c(new qk("removeNode",v.save()))}),Q.events.addConnection.subscribe(n,v=>{c(new zk("addConnection",v.id))}),Q.events.removeConnection.subscribe(n,v=>{c(new zk("removeConnection",v))}))},{immediate:!0}),e.registerCommand(bv,{canExecute:h,execute:f}),e.registerCommand(Ev,{canExecute:m,execute:T}),e.registerCommand(PE,{canExecute:()=>!a.value,execute:u}),e.registerCommand(HE,{canExecute:()=>a.value,execute:d}),e.registerHotkey(["Control","z"],bv),e.registerHotkey(["Control","y"],Ev),ni({maxSteps:r})}const xv="DELETE_NODES";function z8r(t,e){e.registerCommand(xv,{canExecute:()=>t.value.selectedNodes.length>0,execute(){e.executeCommand(PE);for(let n=t.value.selectedNodes.length-1;n>=0;n--){const r=t.value.selectedNodes[n];t.value.removeNode(r)}e.executeCommand(HE)}}),e.registerHotkey(["Delete"],xv)}const fq="SWITCH_TO_MAIN_GRAPH";function j8r(t,e,n){e.registerCommand(fq,{canExecute:()=>t.value!==t.value.editor.graph,execute:()=>{e.executeCommand(y0),n(t.value.editor.graph)}})}function W8r(t,e,n){z8r(t,e),$8r(t,e,n),m8r(t,e),j8r(t,e,n)}const Sv="COPY",Lv="PASTE",Y8r="CLEAR_CLIPBOARD";function K8r(t,e,n){const r=Symbol("ClipboardToken"),i=At(""),o=At(""),s=vt(()=>!i.value),a=()=>{i.value="",o.value=""},l=()=>{const d=t.value.selectedNodes.flatMap(f=>[...Object.values(f.inputs),...Object.values(f.outputs)]),h=t.value.connections.filter(f=>d.includes(f.from)||d.includes(f.to)).map(f=>({from:f.from.id,to:f.to.id}));o.value=JSON.stringify(h),i.value=JSON.stringify(t.value.selectedNodes.map(f=>f.save()))},c=(d,h,f)=>{for(const m of d){let T;if((!f||f==="input")&&(T=Object.values(m.inputs).find(Q=>Q.id===h)),!T&&(!f||f==="output")&&(T=Object.values(m.outputs).find(Q=>Q.id===h)),T)return T}},u=()=>{if(s.value)return;const d=new Map,h=JSON.parse(i.value),f=JSON.parse(o.value),m=[],T=[],Q=t.value;n.executeCommand(PE);for(const _ of h){const v=e.value.nodeTypes.get(_.type);if(!v){console.warn(`Node type ${_.type} not registered`);return}const y=new v.type,b=y.id;m.push(y),y.hooks.beforeLoad.subscribe(r,E=>{const x=E;return x.position&&(x.position.x+=100,x.position.y+=100),y.hooks.beforeLoad.unsubscribe(r),x}),Q.addNode(y),y.load({..._,id:b}),y.id=b,d.set(_.id,b);for(const E of Object.values(y.inputs)){const x=Dd();d.set(E.id,x),E.id=x}for(const E of Object.values(y.outputs)){const x=Dd();d.set(E.id,x),E.id=x}}for(const _ of f){const v=c(m,d.get(_.from),"output"),y=c(m,d.get(_.to),"input");if(!v||!y)continue;const b=Q.addConnection(v,y);b&&T.push(b)}return t.value.selectedNodes=m,n.executeCommand(HE),{newNodes:m,newConnections:T}};return n.registerCommand(Sv,{canExecute:()=>t.value.selectedNodes.length>0,execute:l}),n.registerHotkey(["Control","c"],Sv),n.registerCommand(Lv,{canExecute:()=>!s.value,execute:u}),n.registerHotkey(["Control","v"],Lv),n.registerCommand(Y8r,{canExecute:()=>!0,execute:a}),ni({isEmpty:s})}const Z8r="OPEN_SIDEBAR";function X8r(t,e){e.registerCommand(Z8r,{execute:n=>{t.value.sidebar.nodeId=n,t.value.sidebar.visible=!0},canExecute:()=>!0})}function J8r(t,e){X8r(t,e)}const e9r={},t9r={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"},n9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),r9r=g("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),i9r=[n9r,r9r];function o9r(t,e){return k(),P("svg",t9r,i9r)}const s9r=Xn(e9r,[["render",o9r]]),a9r={},l9r={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"},c9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),u9r=g("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),d9r=[c9r,u9r];function f9r(t,e){return k(),P("svg",l9r,d9r)}const p9r=Xn(a9r,[["render",f9r]]),h9r={},T9r={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"},m9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),g9r=g("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),_9r=g("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),Q9r=g("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),v9r=[m9r,g9r,_9r,Q9r];function y9r(t,e){return k(),P("svg",T9r,v9r)}const b9r=Xn(h9r,[["render",y9r]]),E9r={},x9r={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"},S9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),L9r=g("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),C9r=g("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),A9r=[S9r,L9r,C9r];function w9r(t,e){return k(),P("svg",x9r,A9r)}const M9r=Xn(E9r,[["render",w9r]]),O9r={},R9r={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"},N9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),D9r=g("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),I9r=g("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),k9r=[N9r,D9r,I9r];function P9r(t,e){return k(),P("svg",R9r,k9r)}const H9r=Xn(O9r,[["render",P9r]]),V9r={},F9r={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"},B9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),$9r=g("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),U9r=g("circle",{cx:"12",cy:"14",r:"2"},null,-1),G9r=g("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),q9r=[B9r,$9r,U9r,G9r];function z9r(t,e){return k(),P("svg",F9r,q9r)}const j9r=Xn(V9r,[["render",z9r]]),W9r={},Y9r={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"},K9r=jl('',6),Z9r=[K9r];function X9r(t,e){return k(),P("svg",Y9r,Z9r)}const J9r=Xn(W9r,[["render",X9r]]),efr={},tfr={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"},nfr=jl('',18),rfr=[nfr];function ifr(t,e){return k(),P("svg",tfr,rfr)}const ofr=Xn(efr,[["render",ifr]]),sfr={},afr={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"},lfr=jl('',6),cfr=[lfr];function ufr(t,e){return k(),P("svg",afr,cfr)}const dfr=Xn(sfr,[["render",ufr]]),ffr=sr({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:t}=Ii();return{viewModel:t}}}),pfr=["disabled","title"];function hfr(t,e,n,r,i,o){return k(),P("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!t.viewModel.commandHandler.canExecuteCommand(t.command),title:t.title,onClick:e[0]||(e[0]=s=>t.viewModel.commandHandler.executeCommand(t.command))},[t.icon?(k(),wt(jd(t.icon),{key:0})):(k(),P(ze,{key:1},[nt(ue(t.title),1)],64))],8,pfr)}const Tfr=Xn(ffr,[["render",hfr]]),mfr=sr({components:{ToolbarButton:Tfr},setup(){const{viewModel:t}=Ii();return{isSubgraph:vt(()=>t.value.displayedGraph!==t.value.editor.graph),commands:[{command:Sv,title:"Copy",icon:H9r},{command:Lv,title:"Paste",icon:M9r},{command:xv,title:"Delete selected nodes",icon:dfr},{command:bv,title:"Undo",icon:s9r},{command:Ev,title:"Redo",icon:p9r},{command:_u,title:"Box Select",icon:ofr},{command:dq,title:"Create Subgraph",icon:J9r}],subgraphCommands:[{command:y0,title:"Save Subgraph",icon:j9r},{command:fq,title:"Back to Main Graph",icon:b9r}]}}});function gfr(t,e,n,r,i,o){const s=gt("toolbar-button");return k(),P("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=ge(()=>{},["stop","prevent"]))},[(k(!0),P(ze,null,lt(t.commands,a=>(k(),wt(s,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),t.isSubgraph?(k(!0),P(ze,{key:0},lt(t.subgraphCommands,a=>(k(),wt(s,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):ie("",!0)],32)}const _fr=Xn(mfr,[["render",gfr]]),Qfr={class:"connections-container"},vfr=sr({__name:"Editor",props:{viewModel:{}},setup(t){const e=t,n=Symbol("EditorToken"),r=bu(e,"viewModel");r7r(r);const i=At(null);Vl("editorEl",i);const o=vt(()=>e.viewModel.displayedGraph.nodes),s=vt(()=>e.viewModel.displayedGraph.nodes.map(M=>JG(bu(M,"position")))),a=vt(()=>e.viewModel.displayedGraph.connections),l=vt(()=>e.viewModel.displayedGraph.selectedNodes),c=i7r(),u=o7r(),d=s7r(r),h=a7r(i),f=vt(()=>({...c.styles.value})),m=At(0);e.viewModel.editor.hooks.load.subscribe(n,M=>(m.value++,M));const T=M=>{c.onPointerMove(M),u.onMouseMove(M)},Q=M=>{if(M.button===0){if(h.onPointerDown(M))return;M.target===i.value&&(E(),c.onPointerDown(M)),u.onMouseDown()}},_=M=>{c.onPointerUp(M),u.onMouseUp()},v=M=>{M.key==="Tab"&&M.preventDefault(),e.viewModel.commandHandler.handleKeyDown(M)},y=M=>{e.viewModel.commandHandler.handleKeyUp(M)},b=M=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||E(),e.viewModel.displayedGraph.selectedNodes.push(M)},E=()=>{e.viewModel.displayedGraph.selectedNodes=[]},x=M=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const A=o.value.indexOf(C),I=s.value[A];I.onPointerDown(M),document.addEventListener("pointermove",I.onPointerMove)}document.addEventListener("pointerup",L)},L=()=>{for(const M of e.viewModel.displayedGraph.selectedNodes){const C=o.value.indexOf(M),A=s.value[C];A.onPointerUp(),document.removeEventListener("pointermove",A.onPointerMove)}document.removeEventListener("pointerup",L)};return(M,C)=>(k(),P("div",{ref_key:"el",ref:i,tabindex:"-1",class:We(["baklava-editor",{"baklava-ignore-mouse":!!Ft(u).temporaryConnection.value||Ft(c).dragging.value,"--temporary-connection":!!Ft(u).temporaryConnection.value,"--start-selection-box":Ft(h).startSelection}]),onPointermove:ge(T,["self"]),onPointerdown:Q,onPointerup:_,onWheel:C[1]||(C[1]=ge((...A)=>Ft(c).onMouseWheel&&Ft(c).onMouseWheel(...A),["self"])),onKeydown:v,onKeyup:y,onContextmenu:C[2]||(C[2]=(...A)=>Ft(d).open&&Ft(d).open(...A))},[er(M.$slots,"background",{},()=>[ae(u7r)]),er(M.$slots,"toolbar",{},()=>[M.viewModel.settings.toolbar.enabled?(k(),wt(_fr,{key:0})):ie("",!0)]),er(M.$slots,"palette",{},()=>[M.viewModel.settings.palette.enabled?(k(),wt(d8r,{key:0})):ie("",!0)]),(k(),P("svg",Qfr,[(k(!0),P(ze,null,lt(a.value,A=>(k(),P("g",{key:A.id+m.value.toString()},[er(M.$slots,"connection",{connection:A},()=>[ae(W7r,{connection:A},null,8,["connection"])])]))),128)),er(M.$slots,"temporaryConnection",{temporaryConnection:Ft(u).temporaryConnection.value},()=>[Ft(u).temporaryConnection.value?(k(),wt(Z7r,{key:0,connection:Ft(u).temporaryConnection.value},null,8,["connection"])):ie("",!0)])])),g("div",{class:"node-container",style:bn(f.value)},[ae(Gs,{name:"fade"},{default:Be(()=>[(k(!0),P(ze,null,lt(o.value,(A,I)=>er(M.$slots,"node",{key:A.id+m.value.toString(),node:A,selected:l.value.includes(A),dragging:s.value[I].dragging.value,onSelect:N=>b(A),onStartDrag:x},()=>[ae(B7r,{node:A,selected:l.value.includes(A),dragging:s.value[I].dragging.value,onSelect:N=>b(A),onStartDrag:x},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),er(M.$slots,"sidebar",{},()=>[M.viewModel.settings.sidebar.enabled?(k(),wt(n8r,{key:0})):ie("",!0)]),er(M.$slots,"minimap",{},()=>[M.viewModel.settings.enableMinimap?(k(),wt(r8r,{key:0})):ie("",!0)]),er(M.$slots,"contextMenu",{contextMenu:Ft(d)},()=>[M.viewModel.settings.contextMenu.enabled?(k(),wt(kE,{key:0,modelValue:Ft(d).show.value,"onUpdate:modelValue":C[0]||(C[0]=A=>Ft(d).show.value=A),items:Ft(d).items.value,x:Ft(d).x.value,y:Ft(d).y.value,onClick:Ft(d).onClick},null,8,["modelValue","items","x","y","onClick"])):ie("",!0)]),Ft(h).isSelecting?(k(),P("div",{key:0,class:"selection-box",style:bn(Ft(h).getStyles())},null,4)):ie("",!0)],34))}});function yfr(t){const e=At([]),n=At([]);return{pressedKeys:e,handleKeyDown:s=>{e.value.includes(s.key)||e.value.push(s.key),!(document.activeElement&&XG(document.activeElement))&&n.value.forEach(a=>{var l,c;a.keys.every(u=>e.value.includes(u))&&((l=a.options)!=null&&l.preventDefault&&s.preventDefault(),(c=a.options)!=null&&c.stopPropagation&&s.stopPropagation(),t(a.commandName))})},handleKeyUp:s=>{const a=e.value.indexOf(s.key);a>=0&&e.value.splice(a,1)},registerHotkey:(s,a,l)=>{n.value.push({keys:s,commandName:a,options:l})}}}const bfr=()=>{const t=At(new Map),e=s=>t.value.has(s),n=(s,a)=>{if(t.value.has(s))throw new Error(`Command "${s}" already exists`);t.value.set(s,a)},r=(s,a=!1,...l)=>{if(!t.value.has(s)){if(a)throw new Error(`[CommandHandler] Command ${s} not registered`);return}return t.value.get(s).execute(...l)},i=(s,a=!1,...l)=>{if(!t.value.has(s)){if(a)throw new Error(`[CommandHandler] Command ${s} not registered`);return!1}return t.value.get(s).canExecute(l)},o=yfr(r);return ni({hasCommand:e,registerCommand:n,executeCommand:r,canExecuteCommand:i,...o})},Efr=t=>!(t instanceof T6);function xfr(t,e){return{switchGraph:r=>{let i;if(Efr(r))i=new T6(t.value),r.createGraph(i);else{if(r!==t.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!==t.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 Sfr(t,e){t.position=t.position??{x:0,y:0},t.disablePointerEvents=!1,t.twoColumn=t.twoColumn??!1,t.width=t.width??e.defaultWidth}const Lfr=()=>({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 Cfr(t){const e=At(new Kdr),n=Symbol("ViewModelToken"),r=At(null),i=yz(r),{switchGraph:o}=xfr(e,r),s=vt(()=>i.value&&i.value!==e.value.graph),a=ni(Lfr()),l=bfr(),c=q8r(i,l),u=K8r(i,e,l),d={renderNode:new Di(null),renderInterface:new Di(null)};return W8r(i,l,o),J8r(i,l),Lr(e,(h,f)=>{f&&(f.events.registerGraph.unsubscribe(n),f.graphEvents.beforeAddNode.unsubscribe(n),h.nodeHooks.beforeLoad.unsubscribe(n),h.nodeHooks.afterSave.unsubscribe(n),h.graphTemplateHooks.beforeLoad.unsubscribe(n),h.graphTemplateHooks.afterSave.unsubscribe(n),h.graph.hooks.load.unsubscribe(n),h.graph.hooks.save.unsubscribe(n)),h&&(h.nodeHooks.beforeLoad.subscribe(n,(m,T)=>(T.position=m.position??{x:0,y:0},T.width=m.width??a.nodes.defaultWidth,T.twoColumn=m.twoColumn??!1,m)),h.nodeHooks.afterSave.subscribe(n,(m,T)=>(m.position=T.position,m.width=T.width,m.twoColumn=T.twoColumn,m)),h.graphTemplateHooks.beforeLoad.subscribe(n,(m,T)=>(T.panning=m.panning,T.scaling=m.scaling,m)),h.graphTemplateHooks.afterSave.subscribe(n,(m,T)=>(m.panning=T.panning,m.scaling=T.scaling,m)),h.graph.hooks.load.subscribe(n,(m,T)=>(T.panning=m.panning,T.scaling=m.scaling,m)),h.graph.hooks.save.subscribe(n,(m,T)=>(m.panning=T.panning,m.scaling=T.scaling,m)),h.graphEvents.beforeAddNode.subscribe(n,m=>Sfr(m,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(cq,{category:"Subgraphs"}),e.value.registerNodeType(uq,{category:"Subgraphs"}),o(h.graph))},{immediate:!0}),ni({editor:e,displayedGraph:i,isSubgraph:s,settings:a,commandHandler:l,history:c,clipboard:u,hooks:d,switchGraph:o})}const Afr=i3({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Wn("Request",""),agent_name:()=>new N8r("Personality","",go.state.config.personalities).setPort(!1)},outputs:{response:()=>new Wn("Response","")},async calculate({request:t}){console.log(go.state.config.personalities);let e="";try{e=(await xe.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),wfr=i3({type:"RAGNode",title:"RAG",inputs:{request:()=>new Wn("Prompt",""),document_path:()=>new m6("Document path","").setPort(!1)},outputs:{prompt:()=>new Wn("Prompt with Data","")},async calculate({request:t,document_path:e}){let n="";try{n=(await xe.get("/rag",{params:{text:t,doc_path:e}})).data}catch(r){console.error(r)}return{response:n}}}),jk=i3({type:"Task",title:"Task",inputs:{description:()=>new m6("Task description","").setPort(!1)},outputs:{prompt:()=>new Wn("Prompt")},calculate({description:t}){return{prompt:t}}}),Wk=i3({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Wn("Input","")},outputs:{response:()=>new P8r("Text","")},async calculate({request:t}){}}),Yk=i3({type:"LLMNode",title:"LLM",inputs:{request:()=>new Wn("Request","")},outputs:{response:()=>new Wn("Response","")},async calculate({request:t}){console.log(go.state.config.personalities);let e="";try{e=(await xe.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),Mfr=i3({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Wn("Question",""),outputs:()=>new m6("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Wn("Response","")}}),Ofr=sr({components:{"baklava-editor":vfr},setup(){const t=Cfr(),e=new t7r(t.editor);t.editor.registerNodeType(Afr),t.editor.registerNodeType(jk),t.editor.registerNodeType(wfr),t.editor.registerNodeType(Wk),t.editor.registerNodeType(Yk),t.editor.registerNodeType(Mfr);const n=Symbol();e.events.afterRun.subscribe(n,a=>{e.pause(),Zdr(a,t.editor),e.resume()}),e.start();function r(a,l,c){const u=new a;return t.displayedGraph.addNode(u),u.position.x=l,u.position.y=c,u}const i=r(jk,300,140),o=r(Yk,550,140),s=r(Wk,850,140);return t.displayedGraph.addConnection(i.outputs.prompt,o.inputs.request),t.displayedGraph.addConnection(o.outputs.response,s.inputs.text2display),{baklava:t,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),Rfr={style:{width:"100vw",height:"100vh"}};function Nfr(t,e,n,r,i,o){const s=gt("baklava-editor");return k(),P("div",Rfr,[ae(s,{"view-model":t.baklava},null,8,["view-model"]),g("button",{onClick:e[0]||(e[0]=(...a)=>t.saveGraph&&t.saveGraph(...a))},"Save Graph"),g("button",{onClick:e[1]||(e[1]=(...a)=>t.loadGraph&&t.loadGraph(...a))},"Load Graph")])}const Dfr=Et(Ofr,[["render",Nfr]]),Ifr={},kfr={style:{width:"100vw",height:"100vh"}},Pfr=["src"];function Hfr(t,e,n,r,i,o){return k(),P("div",kfr,[g("iframe",{src:t.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,Pfr)])}const Vfr=Et(Ifr,[["render",Hfr]]),Ffr={},Bfr={style:{width:"100vw",height:"100vh"}},$fr=["src"];function Ufr(t,e,n,r,i,o){return k(),P("div",Bfr,[g("iframe",{src:t.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,$fr)])}const Gfr=Et(Ffr,[["render",Ufr]]),qfr={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)}}},zfr={class:"app-card flex flex-col h-full"},jfr={class:"flex-grow"},Wfr={class:"flex items-center mb-4"},Yfr=["src"],Kfr={class:"font-bold text-xl text-gray-800"},Zfr={class:"text-sm text-gray-600"},Xfr={class:"text-sm text-gray-600"},Jfr={class:"text-sm text-gray-600"},epr={class:"text-sm text-gray-600"},tpr={class:"text-sm text-gray-600"},npr={class:"mb-4"},rpr={class:"text-sm text-gray-600 h-20 overflow-y-auto"},ipr={class:"text-sm text-gray-600 mb-2"},opr={key:0,class:"mb-4"},spr={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},apr={class:"mt-auto pt-4 border-t"},lpr={class:"flex justify-between items-center flex-wrap"},cpr=["title"],upr=["fill"];function dpr(t,e,n,r,i,o){return k(),P("div",zfr,[g("div",jfr,[g("div",Wfr,[g("img",{src:n.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,Yfr),g("div",null,[g("h3",Kfr,ue(n.app.name),1),g("p",Zfr,"Author: "+ue(n.app.author),1),g("p",Xfr,"Version: "+ue(n.app.version),1),g("p",Jfr,"Category: "+ue(n.app.category),1),g("p",epr,"Creation date: "+ue(o.formatDate(n.app.creation_date)),1),g("p",tpr,"Last update: "+ue(o.formatDate(n.app.last_update_date)),1),g("p",{class:We(["text-sm",n.app.is_public?"text-green-600":"text-orange-600"])},ue(n.app.is_public?"Public App":"Local App"),3)])]),g("div",npr,[e[10]||(e[10]=g("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),g("p",rpr,ue(n.app.description),1)]),g("p",ipr,"AI Model: "+ue(n.app.model_name),1),n.app.disclaimer&&n.app.disclaimer.trim()!==""?(k(),P("div",opr,[e[11]||(e[11]=g("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),g("p",spr,ue(n.app.disclaimer),1)])):ie("",!0)]),g("div",apr,[g("div",lpr,[g("button",{onClick:e[0]||(e[0]=ge(s=>t.$emit("toggle-favorite",n.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(k(),P("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[12]||(e[12]=[g("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,upr))],8,cpr),n.app.installed?(k(),P("button",{key:0,onClick:e[1]||(e[1]=ge(s=>t.$emit("uninstall",n.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):n.app.existsInFolder?(k(),P("button",{key:1,onClick:e[2]||(e[2]=ge(s=>t.$emit("delete",n.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):(k(),P("button",{key:2,onClick:e[3]||(e[3]=ge(s=>t.$emit("install",n.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))),n.app.installed?(k(),P("button",{key:3,onClick:e[4]||(e[4]=ge(s=>t.$emit("edit",n.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):ie("",!0),g("button",{onClick:e[5]||(e[5]=ge(s=>t.$emit("download",n.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)])),n.app.has_readme?(k(),P("button",{key:4,onClick:e[6]||(e[6]=ge(s=>t.$emit("help",n.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):ie("",!0),n.app.installed?(k(),P("button",{key:5,onClick:e[7]||(e[7]=ge(s=>t.$emit("open",n.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):ie("",!0),n.app.has_server&&n.app.installed?(k(),P("button",{key:6,onClick:e[8]||(e[8]=ge(s=>t.$emit("start-server",n.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]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):ie("",!0),n.app.has_update?(k(),P("button",{key:7,onClick:e[9]||(e[9]=ge(s=>t.$emit("install",n.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]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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),g("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)]))):ie("",!0)])])])}const fpr=Et(qfr,[["render",dpr],["__scopeId","data-v-ae134649"]]),ppr={components:{AppCard:fpr},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 t=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))]},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory,r=this.showOnlyInstalled&&t.installed||this.showOnlyUnInstalled&&!t.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&n&&r})},sortedAndFilteredApps(){return[...this.filteredApps].sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=this.getDateValue(t.creation_date)-this.getDateValue(e.creation_date);break;case"update":n=this.getDateValue(t.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.appName))}},methods:{getDateValue(t){if(!t)return 0;const e=new Date(t);return isNaN(e.getTime())?0:e.getTime()},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(t){console.log("Toggling favorite"),console.log(t);const e=this.favorites.indexOf(t);e===-1?this.favorites.push(t):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const t=localStorage.getItem("appZooFavorites");console.log("savedFavorites",t),t&&(this.favorites=JSON.parse(t))},startServer(t){const e={client_id:this.$store.state.client_id,app_name:t};this.$store.state.messageBox.showBlockingMessage(`Loading server. -This may take some time the first time as some libraries need to be installed.`),xe.post("/apps/start_server",e).then(n=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",n.data.message),this.$notify({type:"success",title:"Server Starting",text:n.data.message})}).catch(n=>{var r,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",n),this.$notify({type:"error",title:"Server Start Failed",text:((i=(r=n.response)==null?void 0:r.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(t){this.selectedFile=t.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,n;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const t=new FormData;t.append("file",this.selectedFile),t.append("client_id",this.$store.state.client_id);try{const r=await xe.post("/upload_app",t,{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=((n=(e=r.response)==null?void 0:e.data)==null?void 0:n.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const t=await xe.get("/apps");this.apps=t.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 t=await xe.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 t=await xe.get("/github/apps");this.githubApps=t.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(t){if(t.installed){this.selectedApp=t;const e=await xe.get(`/apps/${t.folder_name}/README.md`);this.appCode=cn(e.data)}else this.showMessage(`Please install ${t.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(t){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${t}`);try{await xe.post(`/install/${t}`,{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(t){this.loading=!0;try{await xe.post(`/uninstall/${t}`,{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(t){this.loading=!0;try{await xe.post(`/delete/${t}`,{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(t){this.loading=!0;try{const e=await xe.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:t.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(t){this.isLoading=!0,this.error=null;try{const e=await xe.post("/download_app",{client_id:this.$store.state.client_id,app_name:t},{responseType:"arraybuffer"}),n=e.headers["content-disposition"],r=n&&n.match(/filename="?(.+)"?/i),i=r?r[1]:"app.zip",o=new Blob([e.data],{type:"application/zip"}),s=window.URL.createObjectURL(o),a=document.createElement("a");a.style.display="none",a.href=s,a.download=i,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(s),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(t){t.installed?window.open(`/apps/${t.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${t.name} before opening.`,!1)},showMessage(t,e){this.message=t,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},hpr={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},Tpr={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},mpr={class:"flex flex-wrap items-center justify-between gap-4"},gpr={class:"flex items-center space-x-4"},_pr=["disabled"],Qpr={key:0},vpr={key:1,class:"error"},ypr={class:"relative flex-grow max-w-md"},bpr={class:"flex items-center space-x-4"},Epr=["value"],xpr={class:"flex items-center space-x-4"},Spr={for:"installed-only",class:"font-semibold"},Lpr={for:"installed-only",class:"font-semibold"},Cpr={class:"flex items-center space-x-4"},Apr={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},wpr={key:1,class:"pb-20"},Mpr={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},Opr={class:"text-2xl font-bold mb-4"},Rpr={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},Npr={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Dpr={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},Ipr={class:"flex justify-between items-center mb-4"},kpr={class:"text-2xl font-bold"},Ppr=["srcdoc"],Hpr={key:1,class:"text-center text-red-500"};function Vpr(t,e,n,r,i,o){const s=gt("app-card");return k(),P("div",hpr,[g("nav",Tpr,[g("div",mpr,[g("div",gpr,[g("button",{onClick:e[0]||(e[0]=(...a)=>o.fetchGithubApps&&o.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[g("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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),nt(" Refresh ")])),g("button",{onClick:e[1]||(e[1]=(...a)=>o.openAppsFolder&&o.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[g("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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),nt(" Open Folder ")])),g("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>o.onFileSelected&&o.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),g("button",{onClick:e[3]||(e[3]=(...a)=>o.triggerFileInput&&o.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},ue(i.isUploading?"Uploading...":"Upload App"),9,_pr)]),i.message?(k(),P("p",Qpr,ue(i.message),1)):ie("",!0),i.error?(k(),P("p",vpr,ue(i.error),1)):ie("",!0),g("div",ypr,[te(g("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),[[Ne,i.searchQuery]]),e[13]||(e[13]=g("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"},[g("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))]),g("div",bpr,[e[15]||(e[15]=g("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),te(g("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]=g("option",{value:"all"},"All Categories",-1)),(k(!0),P(ze,null,lt(o.categories,a=>(k(),P("option",{key:a,value:a},ue(a),9,Epr))),128))],512),[[hn,i.selectedCategory]])]),g("div",xpr,[g("label",Spr,[te(g("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>i.showOnlyInstalled=a),class:"mr-2"},null,512),[[at,i.showOnlyInstalled]]),e[16]||(e[16]=nt(" Show only installed apps "))]),g("label",Lpr,[te(g("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>i.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[at,i.showOnlyUnInstalled]]),e[17]||(e[17]=nt(" Show only non installed apps "))])]),g("div",Cpr,[e[19]||(e[19]=g("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),te(g("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]=[g("option",{value:"name"},"Name",-1),g("option",{value:"author"},"Author",-1),g("option",{value:"date"},"Creation Date",-1),g("option",{value:"update"},"Last Update",-1)]),512),[[hn,i.sortBy]]),g("button",{onClick:e[9]||(e[9]=(...a)=>o.toggleSortOrder&&o.toggleSortOrder(...a)),class:"btn btn-secondary"},ue(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(k(),P("div",Apr,e[20]||(e[20]=[g("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),g("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(k(),P("div",wpr,[e[21]||(e[21]=g("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),g("div",Mpr,[(k(!0),P(ze,null,lt(o.favoriteApps,a=>(k(),wt(s,{key:a.appName,app:a,onToggleFavorite:o.toggleFavorite,onInstall:o.installApp,onUninstall:o.uninstallApp,onDelete:o.deleteApp,onEdit:o.editApp,onDownload:o.downloadApp,onHelp:o.handleAppClick,onOpen:o.openApp,onStartServer:o.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),g("h2",Opr,ue(o.currentCategoryName)+" ("+ue(o.sortedAndFilteredApps.length)+")",1),g("div",Rpr,[(k(!0),P(ze,null,lt(o.sortedAndFilteredApps,a=>(k(),wt(s,{key:a.name,app:a,onToggleFavorite:o.toggleFavorite,onInstall:o.installApp,onUninstall:o.uninstallApp,onDelete:o.deleteApp,onEdit:o.editApp,onDownload:o.downloadApp,onHelp:o.handleAppClick,onOpen:o.openApp,onStartServer:o.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),i.selectedApp?(k(),P("div",Npr,[g("div",Dpr,[g("div",Ipr,[g("h2",kpr,ue(i.selectedApp.name),1),g("button",{onClick:e[10]||(e[10]=(...a)=>o.backToZoo&&o.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?(k(),P("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,Ppr)):(k(),P("p",Hpr,"Please install this app to view its code."))])])):ie("",!0),i.message?(k(),P("div",{key:3,class:We(["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}])},ue(i.message),3)):ie("",!0)])}const Fpr=Et(ppr,[["render",Vpr]]),Bpr={components:{PersonalityEntry:kU},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(t){this.$store.commit("setConfig",t)}},combinedApps(){this.personalities.map(e=>e.name);const t=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))].sort((t,e)=>t.localeCompare(e))},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory;return e&&n})},sortedAndFilteredPersonalities(){return[...this.filteredApps].sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=this.getDateValue(t.creation_date)-this.getDateValue(e.creation_date);break;case"update":n=this.getDateValue(t.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.uid))}},methods:{getDateValue(t){if(!t)return 0;const e=new Date(t);return isNaN(e.getTime())?0:e.getTime()},async onPersonalitySelected(t){if(console.log("on pers",t),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",t),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=t.language==null?t.full_path:t.full_path+":"+t.language;if(console.log("pth",e),t.isMounted&&this.configFile.personalities.includes(e)){const n=await this.select_personality(t);console.log("pers is mounted",n),n&&n.status&&n.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(n)}}const Jdr=["INPUT","TEXTAREA","SELECT"];function XG(t){return Jdr.includes(t.tagName)}let yv=null;function e7r(t){yv=t}function Ii(){if(!yv)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:yv}}function ao(){const{viewModel:t}=Ii();return{graph:bu(t.value,"displayedGraph"),switchGraph:t.value.switchGraph}}function JG(t){const{graph:e}=ao(),n=At(null),r=At(null);return{dragging:vt(()=>!!n.value),onPointerDown:l=>{n.value={x:l.pageX,y:l.pageY},r.value={x:t.value.x,y:t.value.y}},onPointerMove:l=>{if(n.value){const c=l.pageX-n.value.x,u=l.pageY-n.value.y;t.value.x=r.value.x+c/e.value.scaling,t.value.y=r.value.y+u/e.value.scaling}},onPointerUp:()=>{n.value=null,r.value=null}}}function eq(t,e,n){if(!e.template)return!1;if(Cc(e.template)===n)return!0;const r=t.graphTemplates.find(o=>Cc(o)===n);return r?r.nodes.filter(o=>o.type.startsWith(v0)).some(o=>eq(t,e,o.type)):!1}function tq(t){return vt(()=>{const e=Array.from(t.value.editor.nodeTypes.entries()),n=new Set(e.map(([,i])=>i.category)),r=[];for(const i of n.values()){let o=e.filter(([,s])=>s.category===i);t.value.displayedGraph.template?o=o.filter(([s])=>!eq(t.value.editor,t.value.displayedGraph,s)):o=o.filter(([s])=>![Sc,Lc].includes(s)),o.length>0&&r.push({name:i,nodeTypes:Object.fromEntries(o)})}return r.sort((i,o)=>i.name==="default"?-1:o.name==="default"||i.name>o.name?1:-1),r})}function nq(){const{graph:t}=ao();return{transform:(n,r)=>{const i=n/t.value.scaling-t.value.panning.x,o=r/t.value.scaling-t.value.panning.y;return[i,o]}}}function t7r(){const{graph:t}=ao();let e=[],n=-1,r={x:0,y:0};const i=vt(()=>t.value.panning),o=JG(i),s=vt(()=>({"transform-origin":"0 0",transform:`scale(${t.value.scaling}) translate(${t.value.panning.x}px, ${t.value.panning.y}px)`})),a=(f,m,T)=>{const Q=[f/t.value.scaling-t.value.panning.x,m/t.value.scaling-t.value.panning.y],_=[f/T-t.value.panning.x,m/T-t.value.panning.y],v=[_[0]-Q[0],_[1]-Q[1]];t.value.panning.x+=v[0],t.value.panning.y+=v[1],t.value.scaling=T},l=f=>{f.preventDefault();let m=f.deltaY;f.deltaMode===1&&(m*=32);const T=t.value.scaling*(1-m/3e3);a(f.offsetX,f.offsetY,T)},c=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:s,...o,onPointerDown:f=>{if(e.push(f),o.onPointerDown(f),e.length===2){const{ax:m,ay:T,bx:Q,by:_}=c();r={x:m+(Q-m)/2,y:T+(_-T)/2}}},onPointerMove:f=>{for(let m=0;m0){const E=t.value.scaling*(1+(b-n)/500);a(r.x,r.y,E)}n=b}else o.onPointerMove(f)},onPointerUp:f=>{e=e.filter(m=>m.pointerId!==f.pointerId),n=-1,o.onPointerUp()},onMouseWheel:l}}var Wi=(t=>(t[t.NONE=0]="NONE",t[t.ALLOWED=1]="ALLOWED",t[t.FORBIDDEN=2]="FORBIDDEN",t))(Wi||{});const rq=Symbol();function n7r(){const{graph:t}=ao(),e=At(null),n=At(null),r=a=>{e.value&&(e.value.mx=a.offsetX/t.value.scaling-t.value.panning.x,e.value.my=a.offsetY/t.value.scaling-t.value.panning.y)},i=()=>{if(n.value){if(e.value)return;const a=t.value.connections.find(l=>l.to===n.value);n.value.isInput&&a?(e.value={status:Wi.NONE,from:a.from},t.value.removeConnection(a)):e.value={status:Wi.NONE,from:n.value},e.value.mx=void 0,e.value.my=void 0}},o=()=>{if(e.value&&n.value){if(e.value.from===n.value)return;t.value.addConnection(e.value.from,e.value.to)}e.value=null},s=a=>{if(n.value=a??null,a&&e.value){e.value.to=a;const l=t.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?Wi.ALLOWED:Wi.FORBIDDEN,l.connectionAllowed){const c=l.connectionsInDanger.map(u=>u.id);t.value.connections.forEach(u=>{c.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=Wi.NONE,t.value.connections.forEach(l=>{l.isInDanger=!1}))};return Vl(rq,{temporaryConnection:e,hoveredOver:s}),{temporaryConnection:e,onMouseMove:r,onMouseDown:i,onMouseUp:o,hoveredOver:s}}function r7r(t){const e=At(!1),n=At(0),r=At(0),i=tq(t),{transform:o}=nq(),s=vt(()=>{let u=[];const d={};for(const f of i.value){const m=Object.entries(f.nodeTypes).map(([T,Q])=>({label:Q.title,value:"addNode:"+T}));f.name==="default"?u=m:d[f.name]=m}const h=[...Object.entries(d).map(([f,m])=>({label:f,submenu:m}))];return h.length>0&&u.length>0&&h.push({isDivider:!0}),h.push(...u),h}),a=vt(()=>t.value.settings.contextMenu.additionalItems.length===0?s.value:[{label:"Add node",submenu:s.value},...t.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!t.value.commandHandler.canExecuteCommand(u.command)})]);function l(u){const d=u.target;if(!(d instanceof Element)||XG(d))return;u.preventDefault(),e.value=!0;const h=d.getBoundingClientRect(),m=d.closest(".baklava-editor").getBoundingClientRect();n.value=h.x+u.offsetX-m.x,r.value=h.y+u.offsetY-m.y}function c(u){if(u.startsWith("addNode:")){const d=u.substring(8),h=t.value.editor.nodeTypes.get(d);if(!h)return;const f=ni(new h.type);t.value.displayedGraph.addNode(f);const[m,T]=o(n.value,r.value);f.position.x=m,f.position.y=T}else if(u.startsWith("command:")){const d=u.substring(8);t.value.commandHandler.canExecuteCommand(d)&&t.value.commandHandler.executeCommand(d)}}return{show:e,x:n,y:r,items:a,open:l,onClick:c}}const _u="START_SELECTION_BOX";function i7r(t){const{viewModel:e}=Ii(),{graph:n}=ao(),r=vt(()=>n.value.nodes),i=At(!1),o=At(!1),s=At([0,0]),a=At([0,0]);Lr(e,()=>{e.value.commandHandler.hasCommand(_u)||(e.value.commandHandler.registerCommand(_u,{canExecute:()=>!0,execute(){i.value=!0}}),e.value.commandHandler.registerHotkey(["b"],_u))},{immediate:!0});function l(_){return[_.clientX-t.value.getBoundingClientRect().left,_.clientY-t.value.getBoundingClientRect().top]}function c(_){return i.value?(o.value=!0,i.value=!1,s.value=l(_),a.value=l(_),document.addEventListener("pointermove",u),document.addEventListener("pointerup",d),!0):!1}function u(_){s.value=l(_)}function d(_){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",d),s.value=l(_),o.value=!1;const v=h();for(const y of v)e.value.displayedGraph.selectedNodes.push(y)}function h(){const _=f(),y=document.querySelector(".baklava-editor").getBoundingClientRect();return r.value.filter(b=>{const E=m(b,y);return T(_,E)})}function f(){return{left:Math.min(s.value[0],a.value[0]),top:Math.min(s.value[1],a.value[1]),right:Math.max(s.value[0],a.value[0]),bottom:Math.max(s.value[1],a.value[1])}}function m(_,v){const y=document.getElementById(_.id),b=y?y.getBoundingClientRect():{x:0,y:0,width:0,height:0},E=b.x-v.left,x=b.y-v.top;return{left:E,top:x,right:E+b.width,bottom:x+b.height}}function T(_,v){return _.leftv.left&&_.topv.top}function Q(){return{width:Math.abs(a.value[0]-s.value[0])+"px",height:Math.abs(a.value[1]-s.value[1])+"px",left:(a.value[0]>s.value[0]?s.value[0]:a.value[0])+"px",top:(a.value[1]>s.value[1]?s.value[1]:a.value[1])+"px"}}return ni({startSelection:i,isSelecting:o,start:s,end:a,onPointerDown:c,getStyles:Q})}const o7r=sr({setup(){const{viewModel:t}=Ii(),{graph:e}=ao();return{styles:vt(()=>{const r=t.value.settings.background,i=e.value.panning.x*e.value.scaling,o=e.value.panning.y*e.value.scaling,s=e.value.scaling*r.gridSize,a=s/r.gridDivision,l=`${s}px ${s}px, ${s}px ${s}px`,c=e.value.scaling>r.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${i}px top ${o}px`,backgroundSize:`${l} ${c}`}})}}}),Xn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function s7r(t,e,n,r,i,o){return k(),P("div",{class:"background",style:gn(t.styles)},null,4)}const a7r=Xn(o7r,[["render",s7r]]);function l7r(t){return oP()?(Xq(t),!0):!1}function DE(t){return typeof t=="function"?t():Ft(t)}const iq=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const c7r=Object.prototype.toString,u7r=t=>c7r.call(t)==="[object Object]",Qu=()=>{},d7r=f7r();function f7r(){var t,e;return iq&&((t=window==null?void 0:window.navigator)==null?void 0:t.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 p7r(t,e,n=!1){return e.reduce((r,i)=>(i in t&&(!n||t[i]!==void 0)&&(r[i]=t[i]),r),{})}function h7r(t,e={}){if(!ur(t))return Cz(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const r in t.value)n[r]=Lz(()=>({get(){return t.value[r]},set(i){var o;if((o=DE(e.replaceRef))!=null?o:!0)if(Array.isArray(t.value)){const a=[...t.value];a[r]=i,t.value=a}else{const a={...t.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[r]=i}}));return n}function w4(t){var e;const n=DE(t);return(e=n==null?void 0:n.$el)!=null?e:n}const IE=iq?window:void 0;function j4(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=IE):[e,n,r,i]=t,!e)return Qu;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,h,f)=>(u.addEventListener(d,h,f),()=>u.removeEventListener(d,h,f)),l=Lr(()=>[w4(e),DE(i)],([u,d])=>{if(s(),!u)return;const h=u7r(d)?{...d}:d;o.push(...n.flatMap(f=>r.map(m=>a(u,f,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return l7r(c),c}let Fk=!1;function oq(t,e,n={}){const{window:r=IE,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return Qu;d7r&&!Fk&&(Fk=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Qu)),r.document.documentElement.addEventListener("click",Qu));let a=!0;const l=h=>i.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(m=>m===h.target||h.composedPath().includes(m));{const m=w4(f);return m&&(h.target===m||h.composedPath().includes(m))}}),u=[j4(r,"click",h=>{const f=w4(t);if(!(!f||f===h.target||h.composedPath().includes(f))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:o}),j4(r,"pointerdown",h=>{const f=w4(t);a=!l(h)&&!!(f&&!h.composedPath().includes(f))},{passive:!0}),s&&j4(r,"blur",h=>{setTimeout(()=>{var f;const m=w4(t);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}const sq={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},T7r=Object.keys(sq);function m7r(t={}){const{target:e=IE}=t,n=At(!1),r=At(t.initialValue||{});Object.assign(r.value,sq,r.value);const i=o=>{n.value=!0,!(t.pointerTypes&&!t.pointerTypes.includes(o.pointerType))&&(r.value=p7r(o,T7r,!1))};if(e){const o={passive:!0};j4(e,["pointerdown","pointermove","pointerup"],i,o),j4(e,"pointerleave",()=>n.value=!1,o)}return{...h7r(r),isInside:n}}const g7r=["onMouseenter","onMouseleave","onClick"],_7r={class:"flex-fill"},Q7r={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},v7r=g("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[g("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),y7r=[v7r],kE=sr({__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(t,{emit:e}){const n=t,r=e;let i=null;const o=At(null),s=At(-1),a=At(0),l=At({x:!1,y:!1}),c=vt(()=>n.flippable&&(l.value.x||n.isFlipped.x)),u=vt(()=>n.flippable&&(l.value.y||n.isFlipped.y)),d=vt(()=>{const v={};return n.isNested||(v.top=(u.value?n.y-a.value:n.y)+"px",v.left=n.x+"px"),v}),h=vt(()=>({"--flipped-x":c.value,"--flipped-y":u.value,"--nested":n.isNested})),f=vt(()=>n.items.map(v=>({...v,hover:!1})));Lr([()=>n.y,()=>n.items],()=>{var v,y,b,E;a.value=n.items.length*30;const x=((y=(v=o.value)==null?void 0:v.parentElement)==null?void 0:y.offsetWidth)??0,L=((E=(b=o.value)==null?void 0:b.parentElement)==null?void 0:E.offsetHeight)??0;l.value.x=!n.isNested&&n.x>x*.75,l.value.y=!n.isNested&&n.y+a.value>L-20}),oq(o,()=>{n.modelValue&&r("update:modelValue",!1)});const m=v=>{!v.submenu&&v.value&&(r("click",v.value),r("update:modelValue",!1))},T=v=>{r("click",v),s.value=-1,n.isNested||r("update:modelValue",!1)},Q=(v,y)=>{n.items[y].submenu&&(s.value=y,i!==null&&(clearTimeout(i),i=null))},_=(v,y)=>{n.items[y].submenu&&(i=window.setTimeout(()=>{s.value=-1,i=null},200))};return(v,y)=>{const b=gt("ContextMenu",!0);return k(),wt(Ai,{name:"slide-fade"},{default:Be(()=>[te(g("div",{ref_key:"el",ref:o,class:We(["baklava-context-menu",h.value]),style:gn(d.value)},[(k(!0),P(ze,null,lt(f.value,(E,x)=>(k(),P(ze,null,[E.isDivider?(k(),P("div",{key:`d-${x}`,class:"divider"})):(k(),P("div",{key:`i-${x}`,class:We(["item",{submenu:!!E.submenu,"--disabled":!!E.disabled}]),onMouseenter:L=>Q(L,x),onMouseleave:L=>_(L,x),onClick:ge(L=>m(E),["stop","prevent"])},[g("div",_7r,ue(E.label),1),E.submenu?(k(),P("div",Q7r,y7r)):ie("",!0),E.submenu?(k(),wt(b,{key:1,"model-value":s.value===x,items:E.submenu,"is-nested":!0,"is-flipped":{x:c.value,y:u.value},flippable:v.flippable,onClick:T},null,8,["model-value","items","is-flipped","flippable"])):ie("",!0)],42,g7r))],64))),256))],6),[[Ht,v.modelValue]])]),_:1})}}}),b7r={},E7r={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"},x7r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),S7r=g("circle",{cx:"12",cy:"12",r:"1"},null,-1),L7r=g("circle",{cx:"12",cy:"19",r:"1"},null,-1),C7r=g("circle",{cx:"12",cy:"5",r:"1"},null,-1),A7r=[x7r,S7r,L7r,C7r];function w7r(t,e){return k(),P("svg",E7r,A7r)}const aq=Xn(b7r,[["render",w7r]]),M7r=["id"],O7r={key:0,class:"__tooltip"},R7r={key:2,class:"align-middle"},Bk=sr({__name:"NodeInterface",props:{node:{},intf:{}},setup(t){const e=(Q,_=100)=>{const v=typeof(Q==null?void 0:Q.toString)=="function"?String(Q):"";return v.length>_?v.slice(0,_)+"...":v},n=t,{viewModel:r}=Ii(),{hoveredOver:i,temporaryConnection:o}=Xi(rq),s=At(null),a=vt(()=>n.intf.connectionCount>0),l=At(!1),c=vt(()=>r.value.settings.displayValueOnHover&&l.value),u=vt(()=>({"--input":n.intf.isInput,"--output":!n.intf.isInput,"--connected":a.value})),d=vt(()=>n.intf.component&&(!n.intf.isInput||!n.intf.port||n.intf.connectionCount===0)),h=()=>{l.value=!0,i(n.intf)},f=()=>{l.value=!1,i(void 0)},m=()=>{s.value&&r.value.hooks.renderInterface.execute({intf:n.intf,el:s.value})},T=()=>{const Q=r.value.displayedGraph.sidebar;Q.nodeId=n.node.id,Q.optionName=n.intf.name,Q.visible=!0};return ls(m),E0(m),(Q,_)=>{var v;return k(),P("div",{id:Q.intf.id,ref_key:"el",ref:s,class:We(["baklava-node-interface",u.value])},[Q.intf.port?(k(),P("div",{key:0,class:We(["__port",{"--selected":((v=Ft(o))==null?void 0:v.from)===Q.intf}]),onPointerover:h,onPointerout:f},[er(Q.$slots,"portTooltip",{showTooltip:c.value},()=>[c.value===!0?(k(),P("span",O7r,ue(e(Q.intf.value)),1)):ie("",!0)])],34)):ie("",!0),d.value?(k(),wt(jd(Q.intf.component),{key:1,modelValue:Q.intf.value,"onUpdate:modelValue":_[0]||(_[0]=y=>Q.intf.value=y),node:Q.node,intf:Q.intf,onOpenSidebar:T},null,40,["modelValue","node","intf"])):(k(),P("span",R7r,ue(Q.intf.name),1))],10,M7r)}}}),N7r=["id","data-node-type"],D7r={class:"__title-label"},I7r={class:"__menu"},k7r={class:"__outputs"},P7r={class:"__inputs"},H7r=sr({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(t,{emit:e}){const n=t,r=e,{viewModel:i}=Ii(),{graph:o,switchGraph:s}=ao(),a=At(null),l=At(!1),c=At(""),u=At(null),d=At(!1),h=At(!1),f=vt(()=>{const N=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return n.node.type.startsWith(v0)&&N.push({value:"editSubgraph",label:"Edit Subgraph"}),N}),m=vt(()=>({"--selected":n.selected,"--dragging":n.dragging,"--two-column":!!n.node.twoColumn})),T=vt(()=>({"--reverse-y":n.node.reverseY??i.value.settings.nodes.reverseY})),Q=vt(()=>{var N,V;return{top:`${((N=n.node.position)==null?void 0:N.y)??0}px`,left:`${((V=n.node.position)==null?void 0:V.x)??0}px`,"--width":`${n.node.width??i.value.settings.nodes.defaultWidth}px`}}),_=vt(()=>Object.values(n.node.inputs).filter(N=>!N.hidden)),v=vt(()=>Object.values(n.node.outputs).filter(N=>!N.hidden)),y=()=>{r("select")},b=N=>{n.selected||y(),r("start-drag",N)},E=()=>{h.value=!0},x=async N=>{var V;switch(N){case"delete":o.value.removeNode(n.node);break;case"rename":c.value=n.node.title,l.value=!0,await Ke(),(V=u.value)==null||V.focus();break;case"editSubgraph":s(n.node.template);break}},L=()=>{n.node.title=c.value,l.value=!1},M=()=>{a.value&&i.value.hooks.renderNode.execute({node:n.node,el:a.value})},C=N=>{d.value=!0,N.preventDefault()},A=N=>{if(!d.value)return;const V=n.node.width+N.movementX/o.value.scaling,R=i.value.settings.nodes.minWidth,B=i.value.settings.nodes.maxWidth;n.node.width=Math.max(R,Math.min(B,V))},I=()=>{d.value=!1};return ls(()=>{M(),window.addEventListener("mousemove",A),window.addEventListener("mouseup",I)}),E0(M),Oc(()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",I)}),(N,V)=>(k(),P("div",{id:N.node.id,ref_key:"el",ref:a,class:We(["baklava-node",m.value]),style:gn(Q.value),"data-node-type":N.node.type,onPointerdown:y},[Ft(i).settings.nodes.resizable?(k(),P("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):ie("",!0),er(N.$slots,"title",{},()=>[g("div",{class:"__title",onPointerdown:ge(b,["self","stop"])},[l.value?te((k(),P("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":V[1]||(V[1]=R=>c.value=R),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:L,onKeydown:ri(L,["enter"])},null,544)),[[Ne,c.value]]):(k(),P(ze,{key:0},[g("div",D7r,ue(N.node.title),1),g("div",I7r,[ae(aq,{class:"--clickable",onClick:E}),ae(Ft(kE),{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=R=>h.value=R),x:0,y:0,items:f.value,onClick:x},null,8,["modelValue","items"])])],64))],32)]),er(N.$slots,"content",{},()=>[g("div",{class:We(["__content",T.value]),onKeydown:V[2]||(V[2]=ri(ge(()=>{},["stop"]),["delete"]))},[g("div",k7r,[(k(!0),P(ze,null,lt(v.value,R=>er(N.$slots,"nodeInterface",{key:R.id,type:"output",node:N.node,intf:R},()=>[ae(Bk,{node:N.node,intf:R},null,8,["node","intf"])])),128))]),g("div",P7r,[(k(!0),P(ze,null,lt(_.value,R=>er(N.$slots,"nodeInterface",{key:R.id,type:"input",node:N.node,intf:R},()=>[ae(Bk,{node:N.node,intf:R},null,8,["node","intf"])])),128))])],34)])],46,N7r))}}),V7r=sr({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:Wi.NONE},isTemporary:{type:Boolean,default:!1}},setup(t){const{viewModel:e}=Ii(),{graph:n}=ao(),r=(s,a)=>{const l=(s+n.value.panning.x)*n.value.scaling,c=(a+n.value.panning.y)*n.value.scaling;return[l,c]},i=vt(()=>{const[s,a]=r(t.x1,t.y1),[l,c]=r(t.x2,t.y2);if(e.value.settings.useStraightConnections)return`M ${s} ${a} L ${l} ${c}`;{const u=.3*Math.abs(s-l);return`M ${s} ${a} C ${s+u} ${a}, ${l-u} ${c}, ${l} ${c}`}}),o=vt(()=>({"--temporary":t.isTemporary,"--allowed":t.state===Wi.ALLOWED,"--forbidden":t.state===Wi.FORBIDDEN}));return{d:i,classes:o}}}),F7r=["d"];function B7r(t,e,n,r,i,o){return k(),P("path",{class:We(["baklava-connection",t.classes]),d:t.d},null,10,F7r)}const lq=Xn(V7r,[["render",B7r]]);function $7r(t){return document.getElementById(t.id)}function Ac(t){const e=document.getElementById(t.id),n=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:n&&n.length>0?n[0]:null}}const U7r=sr({components:{"connection-view":lq},props:{connection:{type:Object,required:!0}},setup(t){const{graph:e}=ao();let n;const r=At({x1:0,y1:0,x2:0,y2:0}),i=vt(()=>t.connection.isInDanger?Wi.FORBIDDEN:Wi.NONE),o=vt(()=>{var c;return(c=e.value.findNodeById(t.connection.from.nodeId))==null?void 0:c.position}),s=vt(()=>{var c;return(c=e.value.findNodeById(t.connection.to.nodeId))==null?void 0:c.position}),a=c=>c.node&&c.interface&&c.port?[c.node.offsetLeft+c.interface.offsetLeft+c.port.offsetLeft+c.port.clientWidth/2,c.node.offsetTop+c.interface.offsetTop+c.port.offsetTop+c.port.clientHeight/2]:[0,0],l=()=>{const c=Ac(t.connection.from),u=Ac(t.connection.to);c.node&&u.node&&(n||(n=new ResizeObserver(()=>{l()}),n.observe(c.node),n.observe(u.node)));const[d,h]=a(c),[f,m]=a(u);r.value={x1:d,y1:h,x2:f,y2:m}};return ls(async()=>{await Ke(),l()}),Oc(()=>{n&&n.disconnect()}),Lr([o,s],()=>l(),{deep:!0}),{d:r,state:i}}});function G7r(t,e,n,r,i,o){const s=gt("connection-view");return k(),wt(s,{x1:t.d.x1,y1:t.d.y1,x2:t.d.x2,y2:t.d.y2,state:t.state},null,8,["x1","y1","x2","y2","state"])}const q7r=Xn(U7r,[["render",G7r]]);function Nd(t){return t.node&&t.interface&&t.port?[t.node.offsetLeft+t.interface.offsetLeft+t.port.offsetLeft+t.port.clientWidth/2,t.node.offsetTop+t.interface.offsetTop+t.port.offsetTop+t.port.clientHeight/2]:[0,0]}const z7r=sr({components:{"connection-view":lq},props:{connection:{type:Object,required:!0}},setup(t){const e=vt(()=>t.connection?t.connection.status:Wi.NONE);return{d:vt(()=>{if(!t.connection)return{input:[0,0],output:[0,0]};const r=Nd(Ac(t.connection.from)),i=t.connection.to?Nd(Ac(t.connection.to)):[t.connection.mx||r[0],t.connection.my||r[1]];return t.connection.from.isInput?{input:i,output:r}:{input:r,output:i}}),status:e}}});function j7r(t,e,n,r,i,o){const s=gt("connection-view");return k(),wt(s,{x1:t.d.input[0],y1:t.d.input[1],x2:t.d.output[0],y2:t.d.output[1],state:t.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const W7r=Xn(z7r,[["render",j7r]]),Y7r=sr({setup(){const{viewModel:t}=Ii(),{graph:e}=ao(),n=At(null),r=bu(t.value.settings.sidebar,"width"),i=vt(()=>t.value.settings.sidebar.resizable),o=vt(()=>{const d=e.value.sidebar.nodeId;return e.value.nodes.find(h=>h.id===d)}),s=vt(()=>({width:`${r.value}px`})),a=vt(()=>o.value?[...Object.values(o.value.inputs),...Object.values(o.value.outputs)].filter(h=>h.displayInSidebar&&h.component):[]),l=()=>{e.value.sidebar.visible=!1},c=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=d=>{var h,f;const m=((f=(h=n.value)==null?void 0:h.parentElement)==null?void 0:f.getBoundingClientRect().width)??500;let T=r.value-d.movementX;T<300?T=300:T>.9*m&&(T=.9*m),r.value=T};return{el:n,graph:e,resizable:i,node:o,styles:s,displayedInterfaces:a,startResize:c,close:l}}}),K7r={class:"__header"},Z7r={class:"__node-name"};function X7r(t,e,n,r,i,o){return k(),P("div",{ref:"el",class:We(["baklava-sidebar",{"--open":t.graph.sidebar.visible}]),style:gn(t.styles)},[t.resizable?(k(),P("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...s)=>t.startResize&&t.startResize(...s))},null,32)):ie("",!0),g("div",K7r,[g("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...s)=>t.close&&t.close(...s))},"×"),g("div",Z7r,[g("b",null,ue(t.node?t.node.title:""),1)])]),(k(!0),P(ze,null,lt(t.displayedInterfaces,s=>(k(),P("div",{key:s.id,class:"__interface"},[(k(),wt(jd(s.component),{modelValue:s.value,"onUpdate:modelValue":a=>s.value=a,node:t.node,intf:s},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const J7r=Xn(Y7r,[["render",X7r]]),e8r=sr({__name:"Minimap",setup(t){const{viewModel:e}=Ii(),{graph:n}=ao(),r=At(null),i=At(!1);let o,s=!1,a={x1:0,y1:0,x2:0,y2:0},l;const c=()=>{var x,L;if(!o)return;o.canvas.width=r.value.offsetWidth,o.canvas.height=r.value.offsetHeight;const M=new Map,C=new Map;for(const R of n.value.nodes){const B=$7r(R),F=(B==null?void 0:B.offsetWidth)??0,U=(B==null?void 0:B.offsetHeight)??0,G=((x=R.position)==null?void 0:x.x)??0,Z=((L=R.position)==null?void 0:L.y)??0;M.set(R,{x1:G,y1:Z,x2:G+F,y2:Z+U}),C.set(R,B)}const A={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const R of M.values())R.x1A.x2&&(A.x2=R.x2),R.y2>A.y2&&(A.y2=R.y2);const I=50;A.x1-=I,A.y1-=I,A.x2+=I,A.y2+=I,a=A;const N=o.canvas.width/o.canvas.height,V=(a.x2-a.x1)/(a.y2-a.y1);if(N>V){const R=(N-V)*(a.y2-a.y1)*.5;a.x1-=R,a.x2+=R}else{const R=a.x2-a.x1,B=a.y2-a.y1,F=(R-N*B)/N*.5;a.y1-=F,a.y2+=F}o.clearRect(0,0,o.canvas.width,o.canvas.height),o.strokeStyle="white";for(const R of n.value.connections){const[B,F]=Nd(Ac(R.from)),[U,G]=Nd(Ac(R.to)),[Z,Y]=u(B,F),[ee,pe]=u(U,G);if(o.beginPath(),o.moveTo(Z,Y),e.value.settings.useStraightConnections)o.lineTo(ee,pe);else{const K=.3*Math.abs(Z-ee);o.bezierCurveTo(Z+K,Y,ee-K,pe,ee,pe)}o.stroke()}o.strokeStyle="lightgray";for(const[R,B]of M.entries()){const[F,U]=u(B.x1,B.y1),[G,Z]=u(B.x2,B.y2);o.fillStyle=h(C.get(R)),o.beginPath(),o.rect(F,U,G-F,Z-U),o.fill(),o.stroke()}if(i.value){const R=m(),[B,F]=u(R.x1,R.y1),[U,G]=u(R.x2,R.y2);o.fillStyle="rgba(255, 255, 255, 0.2)",o.fillRect(B,F,U-B,G-F)}},u=(x,L)=>[(x-a.x1)/(a.x2-a.x1)*o.canvas.width,(L-a.y1)/(a.y2-a.y1)*o.canvas.height],d=(x,L)=>[x*(a.x2-a.x1)/o.canvas.width+a.x1,L*(a.y2-a.y1)/o.canvas.height+a.y1],h=x=>{if(x){const L=x.querySelector(".__content");if(L){const C=f(L);if(C)return C}const M=f(x);if(M)return M}return"gray"},f=x=>{const L=getComputedStyle(x).backgroundColor;if(L&&L!=="rgba(0, 0, 0, 0)")return L},m=()=>{const x=r.value.parentElement.offsetWidth,L=r.value.parentElement.offsetHeight,M=x/n.value.scaling-n.value.panning.x,C=L/n.value.scaling-n.value.panning.y;return{x1:-n.value.panning.x,y1:-n.value.panning.y,x2:M,y2:C}},T=x=>{x.button===0&&(s=!0,Q(x))},Q=x=>{if(s){const[L,M]=d(x.offsetX,x.offsetY),C=m(),A=(C.x2-C.x1)/2,I=(C.y2-C.y1)/2;n.value.panning.x=-(L-A),n.value.panning.y=-(M-I)}},_=()=>{s=!1},v=()=>{i.value=!0},y=()=>{i.value=!1,_()};Lr([i,n.value.panning,()=>n.value.scaling,()=>n.value.connections.length],()=>{c()});const b=vt(()=>n.value.nodes.map(x=>x.position)),E=vt(()=>n.value.nodes.map(x=>x.width));return Lr([b,E],()=>{c()},{deep:!0}),ls(()=>{o=r.value.getContext("2d"),o.imageSmoothingQuality="high",c(),l=setInterval(c,500)}),Oc(()=>{clearInterval(l)}),(x,L)=>(k(),P("canvas",{ref_key:"canvas",ref:r,class:"baklava-minimap",onMouseenter:v,onMouseleave:y,onMousedown:ge(T,["self"]),onMousemove:ge(Q,["self"]),onMouseup:_,onContextmenu:L[0]||(L[0]=ge(()=>{},["stop","prevent"]))},null,544))}}),t8r=sr({components:{ContextMenu:kE,VerticalDots:aq},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(t){const{viewModel:e}=Ii(),{switchGraph:n}=ao(),r=At(!1),i=vt(()=>t.type.startsWith(v0));return{showContextMenu:r,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{r.value=!0},onContextMenuClick:l=>{const c=t.type.substring(v0.length),u=e.value.editor.graphTemplates.find(d=>d.id===c);if(u)switch(l){case"editSubgraph":n(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),n8r=["data-node-type"],r8r={class:"__title"},i8r={class:"__title-label"},o8r={key:0,class:"__menu"};function s8r(t,e,n,r,i,o){const s=gt("vertical-dots"),a=gt("context-menu");return k(),P("div",{class:"baklava-node --palette","data-node-type":t.type},[g("div",r8r,[g("div",i8r,ue(t.title),1),t.hasContextMenu?(k(),P("div",o8r,[ae(s,{class:"--clickable",onPointerdown:e[0]||(e[0]=ge(()=>{},["stop","prevent"])),onClick:ge(t.openContextMenu,["stop","prevent"])},null,8,["onClick"]),ae(a,{modelValue:t.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>t.showContextMenu=l),x:-100,y:0,items:t.contextMenuItems,onClick:t.onContextMenuClick,onPointerdown:e[2]||(e[2]=ge(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):ie("",!0)])],8,n8r)}const $k=Xn(t8r,[["render",s8r]]),a8r={key:0},l8r=sr({__name:"NodePalette",setup(t){const{viewModel:e}=Ii(),{x:n,y:r}=m7r(),{transform:i}=nq(),o=tq(e),s=Xi("editorEl"),a=At(null),l=vt(()=>{if(!a.value||!(s!=null&&s.value))return{};const{left:u,top:d}=s.value.getBoundingClientRect();return{top:`${r.value-d}px`,left:`${n.value-u}px`}}),c=(u,d)=>{a.value={type:u,nodeInformation:d};const h=()=>{const f=ni(new d.type);e.value.displayedGraph.addNode(f);const m=s.value.getBoundingClientRect(),[T,Q]=i(n.value-m.left,r.value-m.top);f.position.x=T,f.position.y=Q,a.value=null,document.removeEventListener("pointerup",h)};document.addEventListener("pointerup",h)};return(u,d)=>(k(),P(ze,null,[g("div",{class:"baklava-node-palette",onContextmenu:d[0]||(d[0]=ge(()=>{},["stop","prevent"]))},[(k(!0),P(ze,null,lt(Ft(o),h=>(k(),P("section",{key:h.name},[h.name!=="default"?(k(),P("h1",a8r,ue(h.name),1)):ie("",!0),(k(!0),P(ze,null,lt(h.nodeTypes,(f,m)=>(k(),wt($k,{key:m,type:m,title:f.title,onPointerdown:T=>c(m,f)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),ae(Ai,{name:"fade"},{default:Be(()=>[a.value?(k(),P("div",{key:0,class:"baklava-dragged-node",style:gn(l.value)},[ae($k,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):ie("",!0)]),_:1})],64))}});let eu;const c8r=new Uint8Array(16);function u8r(){if(!eu&&(eu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!eu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eu(c8r)}const xr=[];for(let t=0;t<256;++t)xr.push((t+256).toString(16).slice(1));function d8r(t,e=0){return xr[t[e+0]]+xr[t[e+1]]+xr[t[e+2]]+xr[t[e+3]]+"-"+xr[t[e+4]]+xr[t[e+5]]+"-"+xr[t[e+6]]+xr[t[e+7]]+"-"+xr[t[e+8]]+xr[t[e+9]]+"-"+xr[t[e+10]]+xr[t[e+11]]+xr[t[e+12]]+xr[t[e+13]]+xr[t[e+14]]+xr[t[e+15]]}const f8r=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Uk={randomUUID:f8r};function Dd(t,e,n){if(Uk.randomUUID&&!e&&!t)return Uk.randomUUID();t=t||{};const r=t.random||(t.rng||u8r)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,d8r(r)}const y0="SAVE_SUBGRAPH";function p8r(t,e){const n=()=>{const r=t.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(y0,{canExecute:()=>{var r;return t.value!==((r=t.value.editor)==null?void 0:r.graph)},execute:n})}const h8r={},T8r={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"},m8r=g("polyline",{points:"6 9 12 15 18 9"},null,-1),g8r=[m8r];function _8r(t,e){return k(),P("svg",T8r,g8r)}const Q8r=Xn(h8r,[["render",_8r]]),v8r=sr({components:{"i-arrow":Q8r},props:{intf:{type:Object,required:!0}},setup(t){const e=At(null),n=At(!1),r=vt(()=>t.intf.items.find(s=>typeof s=="string"?s===t.intf.value:s.value===t.intf.value)),i=vt(()=>r.value?typeof r.value=="string"?r.value:r.value.text:""),o=s=>{t.intf.value=typeof s=="string"?s:s.value};return oq(e,()=>{n.value=!1}),{el:e,open:n,selectedItem:r,selectedText:i,setSelected:o}}}),y8r=["title"],b8r={class:"__selected"},E8r={class:"__text"},x8r={class:"__icon"},S8r={class:"__dropdown"},L8r={class:"item --header"},C8r=["onClick"];function A8r(t,e,n,r,i,o){const s=gt("i-arrow");return k(),P("div",{ref:"el",class:We(["baklava-select",{"--open":t.open}]),title:t.intf.name,onClick:e[0]||(e[0]=a=>t.open=!t.open)},[g("div",b8r,[g("div",E8r,ue(t.selectedText),1),g("div",x8r,[ae(s)])]),ae(Ai,{name:"slide-fade"},{default:Be(()=>[te(g("div",S8r,[g("div",L8r,ue(t.intf.name),1),(k(!0),P(ze,null,lt(t.intf.items,(a,l)=>(k(),P("div",{key:l,class:We(["item",{"--active":a===t.selectedItem}]),onClick:c=>t.setSelected(a)},ue(typeof a=="string"?a:a.text),11,C8r))),128))],512),[[Ht,t.open]])]),_:1})],10,y8r)}const w8r=Xn(v8r,[["render",A8r]]);class M8r extends Wn{constructor(e,n,r){super(e,n),this.component=Ud(w8r),this.items=r}}const O8r=sr({props:{intf:{type:Object,required:!0}}});function R8r(t,e,n,r,i,o){return k(),P("div",null,ue(t.intf.value),1)}const N8r=Xn(O8r,[["render",R8r]]);class D8r extends Wn{constructor(e,n){super(e,n),this.component=Ud(N8r),this.setPort(!1)}}const I8r=sr({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){return{v:vt({get:()=>t.modelValue,set:r=>{e("update:modelValue",r)}})}}}),k8r=["placeholder","title"];function P8r(t,e,n,r,i,o){return k(),P("div",null,[te(g("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>t.v=s),type:"text",class:"baklava-input",placeholder:t.intf.name,title:t.intf.name},null,8,k8r),[[Ne,t.v]])])}const H8r=Xn(I8r,[["render",P8r]]);class m6 extends Wn{constructor(){super(...arguments),this.component=Ud(H8r)}}class cq extends RE{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new m6("Name","Input").setPort(!1)},this.outputs={placeholder:new Wn("Connection",void 0)}}}class uq extends NE{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new m6("Name","Output").setPort(!1),placeholder:new Wn("Connection",void 0)},this.outputs={output:new Wn("Output",void 0).setHidden(!0)}}}const dq="CREATE_SUBGRAPH",Gk=[Sc,Lc];function V8r(t,e,n){const r=()=>t.value.selectedNodes.filter(o=>!Gk.includes(o.type)).length>0,i=()=>{const{viewModel:o}=Ii(),s=t.value,a=t.value.editor;if(s.selectedNodes.length===0)return;const l=s.selectedNodes.filter(C=>!Gk.includes(C.type)),c=l.flatMap(C=>Object.values(C.inputs)),u=l.flatMap(C=>Object.values(C.outputs)),d=s.connections.filter(C=>!u.includes(C.from)&&c.includes(C.to)),h=s.connections.filter(C=>u.includes(C.from)&&!c.includes(C.to)),f=s.connections.filter(C=>u.includes(C.from)&&c.includes(C.to)),m=l.map(C=>C.save()),T=f.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),Q=new Map,{xLeft:_,xRight:v,yTop:y}=F8r(l);for(const[C,A]of d.entries()){const I=new cq;I.inputs.name.value=A.to.name,m.push({...I.save(),position:{x:v-o.value.settings.nodes.defaultWidth-100,y:y+C*200}}),T.push({id:Dd(),from:I.outputs.placeholder.id,to:A.to.id}),Q.set(A.to.id,I.graphInterfaceId)}for(const[C,A]of h.entries()){const I=new uq;I.inputs.name.value=A.from.name,m.push({...I.save(),position:{x:_+100,y:y+C*200}}),T.push({id:Dd(),from:A.from.id,to:I.inputs.placeholder.id}),Q.set(A.from.id,I.graphInterfaceId)}const b=ni(new G9({connections:T,nodes:m,inputs:[],outputs:[]},a));a.addGraphTemplate(b);const E=a.nodeTypes.get(Cc(b));if(!E)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");s.activeTransactions++;const x=ni(new E.type);s.addNode(x);const L=Math.round(l.map(C=>C.position.x).reduce((C,A)=>C+A,0)/l.length),M=Math.round(l.map(C=>C.position.y).reduce((C,A)=>C+A,0)/l.length);x.position.x=L,x.position.y=M,d.forEach(C=>{s.removeConnection(C),s.addConnection(C.from,x.inputs[Q.get(C.to.id)])}),h.forEach(C=>{s.removeConnection(C),s.addConnection(x.outputs[Q.get(C.from.id)],C.to)}),l.forEach(C=>s.removeNode(C)),s.activeTransactions--,e.canExecuteCommand(y0)&&e.executeCommand(y0),n(b),t.value.panning={...s.panning},t.value.scaling=s.scaling};e.registerCommand(dq,{canExecute:r,execute:i})}function F8r(t){const e=t.reduce((i,o)=>{const s=o.position.x;return s{const s=o.position.y;return s{const s=o.position.x+o.width;return s>i?s:i},-1/0),xRight:e,yTop:n}}class qk{constructor(e,n){this.type=e,e==="addNode"?this.nodeId=n:this.nodeState=n}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 n=e.editor.nodeTypes.get(this.nodeState.type);if(!n)return;const r=new n.type;e.addNode(r),r.load(this.nodeState),this.nodeId=r.id}removeNode(e){const n=e.nodes.find(r=>r.id===this.nodeId);n&&(this.nodeState=n.save(),e.removeNode(n))}}class zk{constructor(e,n){if(this.type=e,e==="addConnection")this.connectionId=n;else{const r=n;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 n=e.findNodeInterface(this.connectionState.from),r=e.findNodeInterface(this.connectionState.to);if(!n||!r)return;const i=e.addConnection(n,r);i&&(i.id=this.connectionState.id),this.connectionId=i==null?void 0:i.id}removeConnection(e){const n=e.connections.find(r=>r.id===this.connectionId);n&&(this.connectionState={id:n.id,from:n.from.id,to:n.to.id},e.removeConnection(n))}}class B8r{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 n=this.steps.length-1;n>=0;n--)this.steps[n].undo(e)}redo(e){for(let n=0;n{if(!o.value)if(a.value)l.value.push(Q);else for(s.value!==i.value.length-1&&(i.value=i.value.slice(0,s.value+1)),i.value.push(Q),s.value++;i.value.length>r.value;)i.value.shift()},u=()=>{a.value=!0},d=()=>{a.value=!1,l.value.length>0&&(c(new B8r(l.value)),l.value=[])},h=()=>i.value.length!==0&&s.value!==-1,f=()=>{h()&&(o.value=!0,i.value[s.value--].undo(t.value),o.value=!1)},m=()=>i.value.length!==0&&s.value{m()&&(o.value=!0,i.value[++s.value].redo(t.value),o.value=!1)};return Lr(t,(Q,_)=>{_&&(_.events.addNode.unsubscribe(n),_.events.removeNode.unsubscribe(n),_.events.addConnection.unsubscribe(n),_.events.removeConnection.unsubscribe(n)),Q&&(Q.events.addNode.subscribe(n,v=>{c(new qk("addNode",v.id))}),Q.events.removeNode.subscribe(n,v=>{c(new qk("removeNode",v.save()))}),Q.events.addConnection.subscribe(n,v=>{c(new zk("addConnection",v.id))}),Q.events.removeConnection.subscribe(n,v=>{c(new zk("removeConnection",v))}))},{immediate:!0}),e.registerCommand(bv,{canExecute:h,execute:f}),e.registerCommand(Ev,{canExecute:m,execute:T}),e.registerCommand(PE,{canExecute:()=>!a.value,execute:u}),e.registerCommand(HE,{canExecute:()=>a.value,execute:d}),e.registerHotkey(["Control","z"],bv),e.registerHotkey(["Control","y"],Ev),ni({maxSteps:r})}const xv="DELETE_NODES";function U8r(t,e){e.registerCommand(xv,{canExecute:()=>t.value.selectedNodes.length>0,execute(){e.executeCommand(PE);for(let n=t.value.selectedNodes.length-1;n>=0;n--){const r=t.value.selectedNodes[n];t.value.removeNode(r)}e.executeCommand(HE)}}),e.registerHotkey(["Delete"],xv)}const fq="SWITCH_TO_MAIN_GRAPH";function G8r(t,e,n){e.registerCommand(fq,{canExecute:()=>t.value!==t.value.editor.graph,execute:()=>{e.executeCommand(y0),n(t.value.editor.graph)}})}function q8r(t,e,n){U8r(t,e),V8r(t,e,n),p8r(t,e),G8r(t,e,n)}const Sv="COPY",Lv="PASTE",z8r="CLEAR_CLIPBOARD";function j8r(t,e,n){const r=Symbol("ClipboardToken"),i=At(""),o=At(""),s=vt(()=>!i.value),a=()=>{i.value="",o.value=""},l=()=>{const d=t.value.selectedNodes.flatMap(f=>[...Object.values(f.inputs),...Object.values(f.outputs)]),h=t.value.connections.filter(f=>d.includes(f.from)||d.includes(f.to)).map(f=>({from:f.from.id,to:f.to.id}));o.value=JSON.stringify(h),i.value=JSON.stringify(t.value.selectedNodes.map(f=>f.save()))},c=(d,h,f)=>{for(const m of d){let T;if((!f||f==="input")&&(T=Object.values(m.inputs).find(Q=>Q.id===h)),!T&&(!f||f==="output")&&(T=Object.values(m.outputs).find(Q=>Q.id===h)),T)return T}},u=()=>{if(s.value)return;const d=new Map,h=JSON.parse(i.value),f=JSON.parse(o.value),m=[],T=[],Q=t.value;n.executeCommand(PE);for(const _ of h){const v=e.value.nodeTypes.get(_.type);if(!v){console.warn(`Node type ${_.type} not registered`);return}const y=new v.type,b=y.id;m.push(y),y.hooks.beforeLoad.subscribe(r,E=>{const x=E;return x.position&&(x.position.x+=100,x.position.y+=100),y.hooks.beforeLoad.unsubscribe(r),x}),Q.addNode(y),y.load({..._,id:b}),y.id=b,d.set(_.id,b);for(const E of Object.values(y.inputs)){const x=Dd();d.set(E.id,x),E.id=x}for(const E of Object.values(y.outputs)){const x=Dd();d.set(E.id,x),E.id=x}}for(const _ of f){const v=c(m,d.get(_.from),"output"),y=c(m,d.get(_.to),"input");if(!v||!y)continue;const b=Q.addConnection(v,y);b&&T.push(b)}return t.value.selectedNodes=m,n.executeCommand(HE),{newNodes:m,newConnections:T}};return n.registerCommand(Sv,{canExecute:()=>t.value.selectedNodes.length>0,execute:l}),n.registerHotkey(["Control","c"],Sv),n.registerCommand(Lv,{canExecute:()=>!s.value,execute:u}),n.registerHotkey(["Control","v"],Lv),n.registerCommand(z8r,{canExecute:()=>!0,execute:a}),ni({isEmpty:s})}const W8r="OPEN_SIDEBAR";function Y8r(t,e){e.registerCommand(W8r,{execute:n=>{t.value.sidebar.nodeId=n,t.value.sidebar.visible=!0},canExecute:()=>!0})}function K8r(t,e){Y8r(t,e)}const Z8r={},X8r={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"},J8r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e9r=g("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),t9r=[J8r,e9r];function n9r(t,e){return k(),P("svg",X8r,t9r)}const r9r=Xn(Z8r,[["render",n9r]]),i9r={},o9r={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"},s9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a9r=g("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),l9r=[s9r,a9r];function c9r(t,e){return k(),P("svg",o9r,l9r)}const u9r=Xn(i9r,[["render",c9r]]),d9r={},f9r={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"},p9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),h9r=g("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),T9r=g("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),m9r=g("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),g9r=[p9r,h9r,T9r,m9r];function _9r(t,e){return k(),P("svg",f9r,g9r)}const Q9r=Xn(d9r,[["render",_9r]]),v9r={},y9r={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"},b9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),E9r=g("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),x9r=g("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),S9r=[b9r,E9r,x9r];function L9r(t,e){return k(),P("svg",y9r,S9r)}const C9r=Xn(v9r,[["render",L9r]]),A9r={},w9r={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"},M9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),O9r=g("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),R9r=g("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),N9r=[M9r,O9r,R9r];function D9r(t,e){return k(),P("svg",w9r,N9r)}const I9r=Xn(A9r,[["render",D9r]]),k9r={},P9r={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"},H9r=g("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),V9r=g("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),F9r=g("circle",{cx:"12",cy:"14",r:"2"},null,-1),B9r=g("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),$9r=[H9r,V9r,F9r,B9r];function U9r(t,e){return k(),P("svg",P9r,$9r)}const G9r=Xn(k9r,[["render",U9r]]),q9r={},z9r={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"},j9r=jl('',6),W9r=[j9r];function Y9r(t,e){return k(),P("svg",z9r,W9r)}const K9r=Xn(q9r,[["render",Y9r]]),Z9r={},X9r={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"},J9r=jl('',18),efr=[J9r];function tfr(t,e){return k(),P("svg",X9r,efr)}const nfr=Xn(Z9r,[["render",tfr]]),rfr={},ifr={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"},ofr=jl('',6),sfr=[ofr];function afr(t,e){return k(),P("svg",ifr,sfr)}const lfr=Xn(rfr,[["render",afr]]),cfr=sr({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:t}=Ii();return{viewModel:t}}}),ufr=["disabled","title"];function dfr(t,e,n,r,i,o){return k(),P("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!t.viewModel.commandHandler.canExecuteCommand(t.command),title:t.title,onClick:e[0]||(e[0]=s=>t.viewModel.commandHandler.executeCommand(t.command))},[t.icon?(k(),wt(jd(t.icon),{key:0})):(k(),P(ze,{key:1},[nt(ue(t.title),1)],64))],8,ufr)}const ffr=Xn(cfr,[["render",dfr]]),pfr=sr({components:{ToolbarButton:ffr},setup(){const{viewModel:t}=Ii();return{isSubgraph:vt(()=>t.value.displayedGraph!==t.value.editor.graph),commands:[{command:Sv,title:"Copy",icon:I9r},{command:Lv,title:"Paste",icon:C9r},{command:xv,title:"Delete selected nodes",icon:lfr},{command:bv,title:"Undo",icon:r9r},{command:Ev,title:"Redo",icon:u9r},{command:_u,title:"Box Select",icon:nfr},{command:dq,title:"Create Subgraph",icon:K9r}],subgraphCommands:[{command:y0,title:"Save Subgraph",icon:G9r},{command:fq,title:"Back to Main Graph",icon:Q9r}]}}});function hfr(t,e,n,r,i,o){const s=gt("toolbar-button");return k(),P("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=ge(()=>{},["stop","prevent"]))},[(k(!0),P(ze,null,lt(t.commands,a=>(k(),wt(s,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),t.isSubgraph?(k(!0),P(ze,{key:0},lt(t.subgraphCommands,a=>(k(),wt(s,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):ie("",!0)],32)}const Tfr=Xn(pfr,[["render",hfr]]),mfr={class:"connections-container"},gfr=sr({__name:"Editor",props:{viewModel:{}},setup(t){const e=t,n=Symbol("EditorToken"),r=bu(e,"viewModel");e7r(r);const i=At(null);Vl("editorEl",i);const o=vt(()=>e.viewModel.displayedGraph.nodes),s=vt(()=>e.viewModel.displayedGraph.nodes.map(M=>JG(bu(M,"position")))),a=vt(()=>e.viewModel.displayedGraph.connections),l=vt(()=>e.viewModel.displayedGraph.selectedNodes),c=t7r(),u=n7r(),d=r7r(r),h=i7r(i),f=vt(()=>({...c.styles.value})),m=At(0);e.viewModel.editor.hooks.load.subscribe(n,M=>(m.value++,M));const T=M=>{c.onPointerMove(M),u.onMouseMove(M)},Q=M=>{if(M.button===0){if(h.onPointerDown(M))return;M.target===i.value&&(E(),c.onPointerDown(M)),u.onMouseDown()}},_=M=>{c.onPointerUp(M),u.onMouseUp()},v=M=>{M.key==="Tab"&&M.preventDefault(),e.viewModel.commandHandler.handleKeyDown(M)},y=M=>{e.viewModel.commandHandler.handleKeyUp(M)},b=M=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||E(),e.viewModel.displayedGraph.selectedNodes.push(M)},E=()=>{e.viewModel.displayedGraph.selectedNodes=[]},x=M=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const A=o.value.indexOf(C),I=s.value[A];I.onPointerDown(M),document.addEventListener("pointermove",I.onPointerMove)}document.addEventListener("pointerup",L)},L=()=>{for(const M of e.viewModel.displayedGraph.selectedNodes){const C=o.value.indexOf(M),A=s.value[C];A.onPointerUp(),document.removeEventListener("pointermove",A.onPointerMove)}document.removeEventListener("pointerup",L)};return(M,C)=>(k(),P("div",{ref_key:"el",ref:i,tabindex:"-1",class:We(["baklava-editor",{"baklava-ignore-mouse":!!Ft(u).temporaryConnection.value||Ft(c).dragging.value,"--temporary-connection":!!Ft(u).temporaryConnection.value,"--start-selection-box":Ft(h).startSelection}]),onPointermove:ge(T,["self"]),onPointerdown:Q,onPointerup:_,onWheel:C[1]||(C[1]=ge((...A)=>Ft(c).onMouseWheel&&Ft(c).onMouseWheel(...A),["self"])),onKeydown:v,onKeyup:y,onContextmenu:C[2]||(C[2]=(...A)=>Ft(d).open&&Ft(d).open(...A))},[er(M.$slots,"background",{},()=>[ae(a7r)]),er(M.$slots,"toolbar",{},()=>[M.viewModel.settings.toolbar.enabled?(k(),wt(Tfr,{key:0})):ie("",!0)]),er(M.$slots,"palette",{},()=>[M.viewModel.settings.palette.enabled?(k(),wt(l8r,{key:0})):ie("",!0)]),(k(),P("svg",mfr,[(k(!0),P(ze,null,lt(a.value,A=>(k(),P("g",{key:A.id+m.value.toString()},[er(M.$slots,"connection",{connection:A},()=>[ae(q7r,{connection:A},null,8,["connection"])])]))),128)),er(M.$slots,"temporaryConnection",{temporaryConnection:Ft(u).temporaryConnection.value},()=>[Ft(u).temporaryConnection.value?(k(),wt(W7r,{key:0,connection:Ft(u).temporaryConnection.value},null,8,["connection"])):ie("",!0)])])),g("div",{class:"node-container",style:gn(f.value)},[ae(Gs,{name:"fade"},{default:Be(()=>[(k(!0),P(ze,null,lt(o.value,(A,I)=>er(M.$slots,"node",{key:A.id+m.value.toString(),node:A,selected:l.value.includes(A),dragging:s.value[I].dragging.value,onSelect:N=>b(A),onStartDrag:x},()=>[ae(H7r,{node:A,selected:l.value.includes(A),dragging:s.value[I].dragging.value,onSelect:N=>b(A),onStartDrag:x},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),er(M.$slots,"sidebar",{},()=>[M.viewModel.settings.sidebar.enabled?(k(),wt(J7r,{key:0})):ie("",!0)]),er(M.$slots,"minimap",{},()=>[M.viewModel.settings.enableMinimap?(k(),wt(e8r,{key:0})):ie("",!0)]),er(M.$slots,"contextMenu",{contextMenu:Ft(d)},()=>[M.viewModel.settings.contextMenu.enabled?(k(),wt(kE,{key:0,modelValue:Ft(d).show.value,"onUpdate:modelValue":C[0]||(C[0]=A=>Ft(d).show.value=A),items:Ft(d).items.value,x:Ft(d).x.value,y:Ft(d).y.value,onClick:Ft(d).onClick},null,8,["modelValue","items","x","y","onClick"])):ie("",!0)]),Ft(h).isSelecting?(k(),P("div",{key:0,class:"selection-box",style:gn(Ft(h).getStyles())},null,4)):ie("",!0)],34))}});function _fr(t){const e=At([]),n=At([]);return{pressedKeys:e,handleKeyDown:s=>{e.value.includes(s.key)||e.value.push(s.key),!(document.activeElement&&XG(document.activeElement))&&n.value.forEach(a=>{var l,c;a.keys.every(u=>e.value.includes(u))&&((l=a.options)!=null&&l.preventDefault&&s.preventDefault(),(c=a.options)!=null&&c.stopPropagation&&s.stopPropagation(),t(a.commandName))})},handleKeyUp:s=>{const a=e.value.indexOf(s.key);a>=0&&e.value.splice(a,1)},registerHotkey:(s,a,l)=>{n.value.push({keys:s,commandName:a,options:l})}}}const Qfr=()=>{const t=At(new Map),e=s=>t.value.has(s),n=(s,a)=>{if(t.value.has(s))throw new Error(`Command "${s}" already exists`);t.value.set(s,a)},r=(s,a=!1,...l)=>{if(!t.value.has(s)){if(a)throw new Error(`[CommandHandler] Command ${s} not registered`);return}return t.value.get(s).execute(...l)},i=(s,a=!1,...l)=>{if(!t.value.has(s)){if(a)throw new Error(`[CommandHandler] Command ${s} not registered`);return!1}return t.value.get(s).canExecute(l)},o=_fr(r);return ni({hasCommand:e,registerCommand:n,executeCommand:r,canExecuteCommand:i,...o})},vfr=t=>!(t instanceof T6);function yfr(t,e){return{switchGraph:r=>{let i;if(vfr(r))i=new T6(t.value),r.createGraph(i);else{if(r!==t.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!==t.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 bfr(t,e){t.position=t.position??{x:0,y:0},t.disablePointerEvents=!1,t.twoColumn=t.twoColumn??!1,t.width=t.width??e.defaultWidth}const Efr=()=>({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 xfr(t){const e=At(new jdr),n=Symbol("ViewModelToken"),r=At(null),i=yz(r),{switchGraph:o}=yfr(e,r),s=vt(()=>i.value&&i.value!==e.value.graph),a=ni(Efr()),l=Qfr(),c=$8r(i,l),u=j8r(i,e,l),d={renderNode:new Di(null),renderInterface:new Di(null)};return q8r(i,l,o),K8r(i,l),Lr(e,(h,f)=>{f&&(f.events.registerGraph.unsubscribe(n),f.graphEvents.beforeAddNode.unsubscribe(n),h.nodeHooks.beforeLoad.unsubscribe(n),h.nodeHooks.afterSave.unsubscribe(n),h.graphTemplateHooks.beforeLoad.unsubscribe(n),h.graphTemplateHooks.afterSave.unsubscribe(n),h.graph.hooks.load.unsubscribe(n),h.graph.hooks.save.unsubscribe(n)),h&&(h.nodeHooks.beforeLoad.subscribe(n,(m,T)=>(T.position=m.position??{x:0,y:0},T.width=m.width??a.nodes.defaultWidth,T.twoColumn=m.twoColumn??!1,m)),h.nodeHooks.afterSave.subscribe(n,(m,T)=>(m.position=T.position,m.width=T.width,m.twoColumn=T.twoColumn,m)),h.graphTemplateHooks.beforeLoad.subscribe(n,(m,T)=>(T.panning=m.panning,T.scaling=m.scaling,m)),h.graphTemplateHooks.afterSave.subscribe(n,(m,T)=>(m.panning=T.panning,m.scaling=T.scaling,m)),h.graph.hooks.load.subscribe(n,(m,T)=>(T.panning=m.panning,T.scaling=m.scaling,m)),h.graph.hooks.save.subscribe(n,(m,T)=>(m.panning=T.panning,m.scaling=T.scaling,m)),h.graphEvents.beforeAddNode.subscribe(n,m=>bfr(m,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(cq,{category:"Subgraphs"}),e.value.registerNodeType(uq,{category:"Subgraphs"}),o(h.graph))},{immediate:!0}),ni({editor:e,displayedGraph:i,isSubgraph:s,settings:a,commandHandler:l,history:c,clipboard:u,hooks:d,switchGraph:o})}const Sfr=i3({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Wn("Request",""),agent_name:()=>new M8r("Personality","",go.state.config.personalities).setPort(!1)},outputs:{response:()=>new Wn("Response","")},async calculate({request:t}){console.log(go.state.config.personalities);let e="";try{e=(await xe.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),Lfr=i3({type:"RAGNode",title:"RAG",inputs:{request:()=>new Wn("Prompt",""),document_path:()=>new m6("Document path","").setPort(!1)},outputs:{prompt:()=>new Wn("Prompt with Data","")},async calculate({request:t,document_path:e}){let n="";try{n=(await xe.get("/rag",{params:{text:t,doc_path:e}})).data}catch(r){console.error(r)}return{response:n}}}),jk=i3({type:"Task",title:"Task",inputs:{description:()=>new m6("Task description","").setPort(!1)},outputs:{prompt:()=>new Wn("Prompt")},calculate({description:t}){return{prompt:t}}}),Wk=i3({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Wn("Input","")},outputs:{response:()=>new D8r("Text","")},async calculate({request:t}){}}),Yk=i3({type:"LLMNode",title:"LLM",inputs:{request:()=>new Wn("Request","")},outputs:{response:()=>new Wn("Response","")},async calculate({request:t}){console.log(go.state.config.personalities);let e="";try{e=(await xe.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),Cfr=i3({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Wn("Question",""),outputs:()=>new m6("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Wn("Response","")}}),Afr=sr({components:{"baklava-editor":gfr},setup(){const t=xfr(),e=new Xdr(t.editor);t.editor.registerNodeType(Sfr),t.editor.registerNodeType(jk),t.editor.registerNodeType(Lfr),t.editor.registerNodeType(Wk),t.editor.registerNodeType(Yk),t.editor.registerNodeType(Cfr);const n=Symbol();e.events.afterRun.subscribe(n,a=>{e.pause(),Wdr(a,t.editor),e.resume()}),e.start();function r(a,l,c){const u=new a;return t.displayedGraph.addNode(u),u.position.x=l,u.position.y=c,u}const i=r(jk,300,140),o=r(Yk,550,140),s=r(Wk,850,140);return t.displayedGraph.addConnection(i.outputs.prompt,o.inputs.request),t.displayedGraph.addConnection(o.outputs.response,s.inputs.text2display),{baklava:t,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),wfr={style:{width:"100vw",height:"100vh"}};function Mfr(t,e,n,r,i,o){const s=gt("baklava-editor");return k(),P("div",wfr,[ae(s,{"view-model":t.baklava},null,8,["view-model"]),g("button",{onClick:e[0]||(e[0]=(...a)=>t.saveGraph&&t.saveGraph(...a))},"Save Graph"),g("button",{onClick:e[1]||(e[1]=(...a)=>t.loadGraph&&t.loadGraph(...a))},"Load Graph")])}const Ofr=Et(Afr,[["render",Mfr]]),Rfr={},Nfr={style:{width:"100vw",height:"100vh"}},Dfr=["src"];function Ifr(t,e,n,r,i,o){return k(),P("div",Nfr,[g("iframe",{src:t.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,Dfr)])}const kfr=Et(Rfr,[["render",Ifr]]),Pfr={},Hfr={style:{width:"100vw",height:"100vh"}},Vfr=["src"];function Ffr(t,e,n,r,i,o){return k(),P("div",Hfr,[g("iframe",{src:t.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,Vfr)])}const Bfr=Et(Pfr,[["render",Ffr]]),$fr={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)}}},Ufr={class:"app-card flex flex-col h-full"},Gfr={class:"flex-grow"},qfr={class:"flex items-center mb-4"},zfr=["src"],jfr={class:"font-bold text-xl text-gray-800"},Wfr={class:"text-sm text-gray-600"},Yfr={class:"text-sm text-gray-600"},Kfr={class:"text-sm text-gray-600"},Zfr={class:"text-sm text-gray-600"},Xfr={class:"text-sm text-gray-600"},Jfr={class:"mb-4"},epr={class:"text-sm text-gray-600 h-20 overflow-y-auto"},tpr={class:"text-sm text-gray-600 mb-2"},npr={key:0,class:"mb-4"},rpr={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},ipr={class:"mt-auto pt-4 border-t"},opr={class:"flex justify-between items-center flex-wrap"},spr=["title"],apr=["fill"];function lpr(t,e,n,r,i,o){return k(),P("div",Ufr,[g("div",Gfr,[g("div",qfr,[g("img",{src:n.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,zfr),g("div",null,[g("h3",jfr,ue(n.app.name),1),g("p",Wfr,"Author: "+ue(n.app.author),1),g("p",Yfr,"Version: "+ue(n.app.version),1),g("p",Kfr,"Category: "+ue(n.app.category),1),g("p",Zfr,"Creation date: "+ue(o.formatDate(n.app.creation_date)),1),g("p",Xfr,"Last update: "+ue(o.formatDate(n.app.last_update_date)),1),g("p",{class:We(["text-sm",n.app.is_public?"text-green-600":"text-orange-600"])},ue(n.app.is_public?"Public App":"Local App"),3)])]),g("div",Jfr,[e[10]||(e[10]=g("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),g("p",epr,ue(n.app.description),1)]),g("p",tpr,"AI Model: "+ue(n.app.model_name),1),n.app.disclaimer&&n.app.disclaimer.trim()!==""?(k(),P("div",npr,[e[11]||(e[11]=g("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),g("p",rpr,ue(n.app.disclaimer),1)])):ie("",!0)]),g("div",ipr,[g("div",opr,[g("button",{onClick:e[0]||(e[0]=ge(s=>t.$emit("toggle-favorite",n.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(k(),P("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[12]||(e[12]=[g("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,apr))],8,spr),n.app.installed?(k(),P("button",{key:0,onClick:e[1]||(e[1]=ge(s=>t.$emit("uninstall",n.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):n.app.existsInFolder?(k(),P("button",{key:1,onClick:e[2]||(e[2]=ge(s=>t.$emit("delete",n.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):(k(),P("button",{key:2,onClick:e[3]||(e[3]=ge(s=>t.$emit("install",n.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))),n.app.installed?(k(),P("button",{key:3,onClick:e[4]||(e[4]=ge(s=>t.$emit("edit",n.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):ie("",!0),g("button",{onClick:e[5]||(e[5]=ge(s=>t.$emit("download",n.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)])),n.app.has_readme?(k(),P("button",{key:4,onClick:e[6]||(e[6]=ge(s=>t.$emit("help",n.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):ie("",!0),n.app.installed?(k(),P("button",{key:5,onClick:e[7]||(e[7]=ge(s=>t.$emit("open",n.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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)]))):ie("",!0),n.app.has_server&&n.app.installed?(k(),P("button",{key:6,onClick:e[8]||(e[8]=ge(s=>t.$emit("start-server",n.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]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):ie("",!0),n.app.has_update?(k(),P("button",{key:7,onClick:e[9]||(e[9]=ge(s=>t.$emit("install",n.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]=[g("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[g("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),g("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)]))):ie("",!0)])])])}const cpr=Et($fr,[["render",lpr],["__scopeId","data-v-ae134649"]]),upr={components:{AppCard:cpr},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 t=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))]},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory,r=this.showOnlyInstalled&&t.installed||this.showOnlyUnInstalled&&!t.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&n&&r})},sortedAndFilteredApps(){return[...this.filteredApps].sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=this.getDateValue(t.creation_date)-this.getDateValue(e.creation_date);break;case"update":n=this.getDateValue(t.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.appName))}},methods:{getDateValue(t){if(!t)return 0;const e=new Date(t);return isNaN(e.getTime())?0:e.getTime()},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(t){console.log("Toggling favorite"),console.log(t);const e=this.favorites.indexOf(t);e===-1?this.favorites.push(t):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const t=localStorage.getItem("appZooFavorites");console.log("savedFavorites",t),t&&(this.favorites=JSON.parse(t))},startServer(t){const e={client_id:this.$store.state.client_id,app_name:t};this.$store.state.messageBox.showBlockingMessage(`Loading server. +This may take some time the first time as some libraries need to be installed.`),xe.post("/apps/start_server",e).then(n=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",n.data.message),this.$notify({type:"success",title:"Server Starting",text:n.data.message})}).catch(n=>{var r,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",n),this.$notify({type:"error",title:"Server Start Failed",text:((i=(r=n.response)==null?void 0:r.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(t){this.selectedFile=t.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,n;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const t=new FormData;t.append("file",this.selectedFile),t.append("client_id",this.$store.state.client_id);try{const r=await xe.post("/upload_app",t,{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=((n=(e=r.response)==null?void 0:e.data)==null?void 0:n.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const t=await xe.get("/apps");this.apps=t.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 t=await xe.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 t=await xe.get("/github/apps");this.githubApps=t.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(t){if(t.installed){this.selectedApp=t;const e=await xe.get(`/apps/${t.folder_name}/README.md`);this.appCode=cn(e.data)}else this.showMessage(`Please install ${t.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(t){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${t}`);try{await xe.post(`/install/${t}`,{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(t){this.loading=!0;try{await xe.post(`/uninstall/${t}`,{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(t){this.loading=!0;try{await xe.post(`/delete/${t}`,{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(t){this.loading=!0;try{const e=await xe.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:t.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(t){this.isLoading=!0,this.error=null;try{const e=await xe.post("/download_app",{client_id:this.$store.state.client_id,app_name:t},{responseType:"arraybuffer"}),n=e.headers["content-disposition"],r=n&&n.match(/filename="?(.+)"?/i),i=r?r[1]:"app.zip",o=new Blob([e.data],{type:"application/zip"}),s=window.URL.createObjectURL(o),a=document.createElement("a");a.style.display="none",a.href=s,a.download=i,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(s),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(t){t.installed?window.open(`/apps/${t.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${t.name} before opening.`,!1)},showMessage(t,e){this.message=t,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},dpr={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},fpr={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},ppr={class:"flex flex-wrap items-center justify-between gap-4"},hpr={class:"flex items-center space-x-4"},Tpr=["disabled"],mpr={key:0},gpr={key:1,class:"error"},_pr={class:"relative flex-grow max-w-md"},Qpr={class:"flex items-center space-x-4"},vpr=["value"],ypr={class:"flex items-center space-x-4"},bpr={for:"installed-only",class:"font-semibold"},Epr={for:"installed-only",class:"font-semibold"},xpr={class:"flex items-center space-x-4"},Spr={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},Lpr={key:1,class:"pb-20"},Cpr={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},Apr={class:"text-2xl font-bold mb-4"},wpr={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},Mpr={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Opr={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},Rpr={class:"flex justify-between items-center mb-4"},Npr={class:"text-2xl font-bold"},Dpr=["srcdoc"],Ipr={key:1,class:"text-center text-red-500"};function kpr(t,e,n,r,i,o){const s=gt("app-card");return k(),P("div",dpr,[g("nav",fpr,[g("div",ppr,[g("div",hpr,[g("button",{onClick:e[0]||(e[0]=(...a)=>o.fetchGithubApps&&o.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[g("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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),nt(" Refresh ")])),g("button",{onClick:e[1]||(e[1]=(...a)=>o.openAppsFolder&&o.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[g("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[g("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),nt(" Open Folder ")])),g("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>o.onFileSelected&&o.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),g("button",{onClick:e[3]||(e[3]=(...a)=>o.triggerFileInput&&o.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},ue(i.isUploading?"Uploading...":"Upload App"),9,Tpr)]),i.message?(k(),P("p",mpr,ue(i.message),1)):ie("",!0),i.error?(k(),P("p",gpr,ue(i.error),1)):ie("",!0),g("div",_pr,[te(g("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),[[Ne,i.searchQuery]]),e[13]||(e[13]=g("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"},[g("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))]),g("div",Qpr,[e[15]||(e[15]=g("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),te(g("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]=g("option",{value:"all"},"All Categories",-1)),(k(!0),P(ze,null,lt(o.categories,a=>(k(),P("option",{key:a,value:a},ue(a),9,vpr))),128))],512),[[hn,i.selectedCategory]])]),g("div",ypr,[g("label",bpr,[te(g("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>i.showOnlyInstalled=a),class:"mr-2"},null,512),[[at,i.showOnlyInstalled]]),e[16]||(e[16]=nt(" Show only installed apps "))]),g("label",Epr,[te(g("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>i.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[at,i.showOnlyUnInstalled]]),e[17]||(e[17]=nt(" Show only non installed apps "))])]),g("div",xpr,[e[19]||(e[19]=g("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),te(g("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]=[g("option",{value:"name"},"Name",-1),g("option",{value:"author"},"Author",-1),g("option",{value:"date"},"Creation Date",-1),g("option",{value:"update"},"Last Update",-1)]),512),[[hn,i.sortBy]]),g("button",{onClick:e[9]||(e[9]=(...a)=>o.toggleSortOrder&&o.toggleSortOrder(...a)),class:"btn btn-secondary"},ue(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(k(),P("div",Spr,e[20]||(e[20]=[g("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),g("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(k(),P("div",Lpr,[e[21]||(e[21]=g("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),g("div",Cpr,[(k(!0),P(ze,null,lt(o.favoriteApps,a=>(k(),wt(s,{key:a.appName,app:a,onToggleFavorite:o.toggleFavorite,onInstall:o.installApp,onUninstall:o.uninstallApp,onDelete:o.deleteApp,onEdit:o.editApp,onDownload:o.downloadApp,onHelp:o.handleAppClick,onOpen:o.openApp,onStartServer:o.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),g("h2",Apr,ue(o.currentCategoryName)+" ("+ue(o.sortedAndFilteredApps.length)+")",1),g("div",wpr,[(k(!0),P(ze,null,lt(o.sortedAndFilteredApps,a=>(k(),wt(s,{key:a.name,app:a,onToggleFavorite:o.toggleFavorite,onInstall:o.installApp,onUninstall:o.uninstallApp,onDelete:o.deleteApp,onEdit:o.editApp,onDownload:o.downloadApp,onHelp:o.handleAppClick,onOpen:o.openApp,onStartServer:o.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),i.selectedApp?(k(),P("div",Mpr,[g("div",Opr,[g("div",Rpr,[g("h2",Npr,ue(i.selectedApp.name),1),g("button",{onClick:e[10]||(e[10]=(...a)=>o.backToZoo&&o.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?(k(),P("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,Dpr)):(k(),P("p",Ipr,"Please install this app to view its code."))])])):ie("",!0),i.message?(k(),P("div",{key:3,class:We(["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}])},ue(i.message),3)):ie("",!0)])}const Ppr=Et(upr,[["render",kpr]]),Hpr={components:{PersonalityEntry:kU},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(t){this.$store.commit("setConfig",t)}},combinedApps(){this.personalities.map(e=>e.name);const t=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))].sort((t,e)=>t.localeCompare(e))},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory;return e&&n})},sortedAndFilteredPersonalities(){return[...this.filteredApps].sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=this.getDateValue(t.creation_date)-this.getDateValue(e.creation_date);break;case"update":n=this.getDateValue(t.last_update_date)-this.getDateValue(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.uid))}},methods:{getDateValue(t){if(!t)return 0;const e=new Date(t);return isNaN(e.getTime())?0:e.getTime()},async onPersonalitySelected(t){if(console.log("on pers",t),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",t),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=t.language==null?t.full_path:t.full_path+":"+t.language;if(console.log("pth",e),t.isMounted&&this.configFile.personalities.includes(e)){const n=await this.select_personality(t);console.log("pers is mounted",n),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+t.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: `+t.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(t);Ke(()=>{feather.replace()})}},onModelSelected(t){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}t&&(t.isInstalled?this.update_model(t.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=t.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: `+t.name,4,!0),Ke(()=>{feather.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(n=>{this.$store.commit("setIsModelOk",n)})):(this.$store.state.toast.showToast(`Couldn't select model: @@ -4079,4 +4079,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(t){await this.unmountPersonality(t),await this.mountPersonality(t)},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,console.log("Personality path:",t.personality.path),xe.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:t.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(t){await xe.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:t.personality.folder})},showMessage(t,e){this.message=t,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)}},$pr={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"},Upr={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},Gpr={class:"flex flex-wrap items-center justify-between gap-4"},qpr={key:0},zpr={key:1,class:"error"},jpr={class:"relative flex-grow max-w-md"},Wpr={class:"flex items-center space-x-4"},Ypr=["value"],Kpr={class:"flex items-center space-x-4"},Zpr={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},Xpr={key:1},Jpr={class:"container mx-auto px-4 flex flex-column pb-20"},ehr={key:0},thr={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},nhr={class:"container mx-auto px-4 flex flex-column pb-20"},rhr={class:"text-2xl font-bold my-8"},ihr={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},ohr={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},shr={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},ahr={class:"flex justify-between items-center mb-4"},lhr={class:"text-2xl font-bold"},chr=["srcdoc"],uhr={key:1,class:"text-center text-red-500"};function dhr(t,e,n,r,i,o){const s=gt("personality-entry");return k(),P("div",$pr,[g("nav",Upr,[g("div",Gpr,[i.message?(k(),P("p",qpr,ue(i.message),1)):ie("",!0),i.error?(k(),P("p",zpr,ue(i.error),1)):ie("",!0),g("div",jpr,[te(g("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),[[Ne,i.searchQuery]]),e[5]||(e[5]=g("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"},[g("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))]),g("div",Wpr,[e[7]||(e[7]=g("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),te(g("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]=g("option",{value:"all"},"All Categories",-1)),(k(!0),P(ze,null,lt(o.categories,a=>(k(),P("option",{key:a,value:a},ue(a),9,Ypr))),128))],512),[[hn,i.selectedCategory]])]),g("div",Kpr,[e[9]||(e[9]=g("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),te(g("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]=[g("option",{value:"name"},"Name",-1),g("option",{value:"author"},"Author",-1),g("option",{value:"date"},"Creation Date",-1),g("option",{value:"update"},"Last Update",-1)]),512),[[hn,i.sortBy]]),g("button",{onClick:e[3]||(e[3]=(...a)=>o.toggleSortOrder&&o.toggleSortOrder(...a)),class:"btn btn-secondary"},ue(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(k(),P("div",Zpr,e[10]||(e[10]=[g("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),g("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(k(),P("div",Xpr,[g("div",Jpr,[o.favoriteApps.length>0&&!i.searchQuery?(k(),P("div",ehr,[e[11]||(e[11]=g("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),g("div",thr,[(k(!0),P(ze,null,lt(o.favoriteApps,a=>(k(),wt(s,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-edit":o.editPersonality,"on-copy-to-custom":o.copyToCustom,"on-reinstall":o.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":o.handleOpenFolder,"on-toggle-favorite":o.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))])])):ie("",!0)]),g("div",nhr,[g("h2",rhr,ue(o.currentCategoryName)+" ("+ue(o.sortedAndFilteredPersonalities.length)+")",1),g("div",ihr,[(k(!0),P(ze,null,lt(o.sortedAndFilteredPersonalities,a=>(k(),wt(s,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-edit":o.editPersonality,"on-copy-to-custom":o.copyToCustom,"on-reinstall":o.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":o.handleOpenFolder,"toggle-favorite":o.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?(k(),P("div",ohr,[g("div",shr,[g("div",ahr,[g("h2",lhr,ue(i.selectedApp.name),1),g("button",{onClick:e[4]||(e[4]=(...a)=>t.backToZoo&&t.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?(k(),P("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,chr)):(k(),P("p",uhr,"Please install this app to view its code."))])])):ie("",!0),i.message?(k(),P("div",{key:3,class:We(["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}])},ue(i.message),3)):ie("",!0),e[12]||(e[12]=g("div",{class:"h-20"},null,-1))])}const fhr=Et(Bpr,[["render",dhr],["__scopeId","data-v-f8c39e0b"]]),phr=LZ({history:iZ("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:Fpr},{path:"/personalities_view/",name:"PersonalitiesZoo",component:fhr},{path:"/auto_sd_view/",name:"AutoSD",component:Gfr},{path:"/comfyui_view/",name:"ComfyUI",component:Vfr},{path:"/playground/",name:"playground",component:WGn},{path:"/extensions/",name:"extensions",component:rqn},{path:"/help_view/",name:"help_view",component:hqn},{path:"/settings/",name:"settings",component:Eir},{path:"/training/",name:"training",component:kir},{path:"/quantizing/",name:"quantizing",component:$ir},{path:"/",name:"discussions",component:Ilr},{path:"/interactive/",name:"interactive",component:$dr},{path:"/nodes/",name:"nodes",component:Dfr}]}),q9=vW(OBn);function hhr(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const go=jW({state(){return{theme_vars:{lollms_title:"LoLLMS",falling_object:"L",activate_dropping_animation:!1,lollms_welcome_short_message:"Welcome to LoLLMS WebUI",lollms_welcome_message:"Embark on a journey through the realm of advanced AI with LoLLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence."},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(t,e){const n=t.personalities.findIndex(r=>r.full_path===e.full_path);n!==-1?t.personalities[n]=e:console.log("Can't uipdate personality beceause it was Not found:",e.full_path)},setThemeVars(t,e){t.theme_vars=e},setLeftPanelCollapsed(t,e){t.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(t,e){t.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(t,e){t.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(t,e){t.personalities_ready=e},setisRTOn(t,e){t.is_rt_on=e},setLanguages(t,e){t.languages=e},setLanguage(t,e){t.language=e},setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setIsModelOk(t,e){t.isModelOk=e},setIsGenerating(t,e){t.isGenerating=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setbindingsZoo(t,e){t.bindingsZoo=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setCurrentBinding(t,e){t.currentBinding=e},setCurrentModel(t,e){t.currentModel=e},setDatabases(t,e){t.databases=e},setTheme(t){this.currentTheme=t}},getters:{getThemeVars(t){return t.theme_vars},getLeftPanelCollapsed(t){return t.leftPanelCollapsed},getRightPanelCollapsed(t){return t.rightPanelCollapsed},getViewMode(t){return t.view_mode},getpersonalitiesReady(t){return t.personalities_ready},getisRTOn(t){return t.is_rt_on},getLanguages(t){return t.languages},getLanguage(t){return t.language},getIsConnected(t){return t.isConnected},getIsModelOk(t){return t.isModelOk},getIsGenerating(t){return t.isGenerating},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsZoo(t){return t.bindingsZoo},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getCyrrentBinding(t){return t.currentBinding},getCurrentModel(t){return t.currentModel}},actions:{async getVersion(){try{let t=await xe.get("/get_lollms_webui_version",{});t&&(console.log("getting version"),console.log(t.data.version_main),t=t.data,t.version_type!=""?this.state.version=`${t.version_main}.${t.version_secondary} ${t.version_type} (${t.version_codename})`:this.state.version=`${t.version_main}.${t.version_secondary} (${t.version_codename})`,console.log(this.state.version))}catch{console.error("Coudln't get version")}},async refreshConfig({commit:t}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await pq("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await Bo("list_databases");console.log("databases:",e),t("setDatabases",e)},async fetchisRTOn({commit:t}){const n=(await xe.get("/is_rt_on")).data.status;t("setisRTOn",n)},async fetchLanguages({commit:t}){console.log("get_personality_languages_list",this.state.client_id);const e=await xe.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("languages",n),t("setLanguages",n)},async fetchLanguage({commit:t}){console.log("get_personality_language",this.state.client_id);const e=await xe.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("language",n),t("setLanguage",n)},async changeLanguage({commit:t},e){console.log("Changing language to ",e);let n=await xe.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await xe.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const r=n.data;console.log("languages",r),t("setLanguages",r),n=await xe.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("language",i),t("setLanguage",i),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",i)},async deleteLanguage({commit:t},e){console.log("Deleting ",e);let n=await xe.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await xe.post("/get_personality_languages_list",{client_id:this.state.client_id});const r=n.data;t("setLanguages",r),n=await xe.post("/get_personality_language",{client_id:this.state.client_id});const i=n.data;t("setLanguage",i)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await Bo("get_all_personalities"),r=Object.keys(n);for(let i=0;i{let c=!1;for(const d of this.state.config.personalities)d.includes(o+"/"+l.folder)&&(c=!0);let u={};return u=l,u.category=o,u.full_path=o+"/"+l.folder,u.isMounted=c,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,o)=>i.name.localeCompare(o.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let i=0;ia.full_path==o);if(s>=0){let a=hhr(this.state.personalities[s]);a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else n.push(i),console.log("Couldn't load personality : ",o)}for(let i=n.length-1;i>=0;i--)this.state.config.personalities.splice(n[i],1),this.state.config.active_personality_id>n[i]&&(this.state.config.active_personality_id-=1);t("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:t}){let e=await Bo("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(r=>r.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),t("setbindingsZoo",e);const n=e.findIndex(r=>r.name==this.state.config.binding_name);n!=-1&&t("setCurrentBinding",e[n])},async refreshModelsZoo({commit:t}){const n=(await xe.get("/get_available_models")).data;t("setModelsZoo",n)},async refreshModelStatus({commit:t}){let e=await Bo("get_model_status");t("setIsModelOk",e.status)},async refreshModels({commit:t}){let e=await Bo("list_models"),n=await Bo("get_active_model");n!=null&&t("setselectedModel",n.model),t("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&&t("setCurrentModel",this.state.modelsZoo[r])},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Bo("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Bo("ram_usage")},async refreshVramUsage({commit:t}){const e=await Bo("vram_usage"),n=[];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)}},Vpr={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"},Fpr={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},Bpr={class:"flex flex-wrap items-center justify-between gap-4"},$pr={key:0},Upr={key:1,class:"error"},Gpr={class:"relative flex-grow max-w-md"},qpr={class:"flex items-center space-x-4"},zpr=["value"],jpr={class:"flex items-center space-x-4"},Wpr={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},Ypr={key:1},Kpr={class:"container mx-auto px-4 flex flex-column pb-20"},Zpr={key:0},Xpr={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},Jpr={class:"container mx-auto px-4 flex flex-column pb-20"},ehr={class:"text-2xl font-bold my-8"},thr={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},nhr={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},rhr={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},ihr={class:"flex justify-between items-center mb-4"},ohr={class:"text-2xl font-bold"},shr=["srcdoc"],ahr={key:1,class:"text-center text-red-500"};function lhr(t,e,n,r,i,o){const s=gt("personality-entry");return k(),P("div",Vpr,[g("nav",Fpr,[g("div",Bpr,[i.message?(k(),P("p",$pr,ue(i.message),1)):ie("",!0),i.error?(k(),P("p",Upr,ue(i.error),1)):ie("",!0),g("div",Gpr,[te(g("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),[[Ne,i.searchQuery]]),e[5]||(e[5]=g("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"},[g("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))]),g("div",qpr,[e[7]||(e[7]=g("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),te(g("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]=g("option",{value:"all"},"All Categories",-1)),(k(!0),P(ze,null,lt(o.categories,a=>(k(),P("option",{key:a,value:a},ue(a),9,zpr))),128))],512),[[hn,i.selectedCategory]])]),g("div",jpr,[e[9]||(e[9]=g("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),te(g("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]=[g("option",{value:"name"},"Name",-1),g("option",{value:"author"},"Author",-1),g("option",{value:"date"},"Creation Date",-1),g("option",{value:"update"},"Last Update",-1)]),512),[[hn,i.sortBy]]),g("button",{onClick:e[3]||(e[3]=(...a)=>o.toggleSortOrder&&o.toggleSortOrder(...a)),class:"btn btn-secondary"},ue(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(k(),P("div",Wpr,e[10]||(e[10]=[g("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),g("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(k(),P("div",Ypr,[g("div",Kpr,[o.favoriteApps.length>0&&!i.searchQuery?(k(),P("div",Zpr,[e[11]||(e[11]=g("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),g("div",Xpr,[(k(!0),P(ze,null,lt(o.favoriteApps,a=>(k(),wt(s,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-edit":o.editPersonality,"on-copy-to-custom":o.copyToCustom,"on-reinstall":o.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":o.handleOpenFolder,"on-toggle-favorite":o.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))])])):ie("",!0)]),g("div",Jpr,[g("h2",ehr,ue(o.currentCategoryName)+" ("+ue(o.sortedAndFilteredPersonalities.length)+")",1),g("div",thr,[(k(!0),P(ze,null,lt(o.sortedAndFilteredPersonalities,a=>(k(),wt(s,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-edit":o.editPersonality,"on-copy-to-custom":o.copyToCustom,"on-reinstall":o.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":o.handleOpenFolder,"toggle-favorite":o.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?(k(),P("div",nhr,[g("div",rhr,[g("div",ihr,[g("h2",ohr,ue(i.selectedApp.name),1),g("button",{onClick:e[4]||(e[4]=(...a)=>t.backToZoo&&t.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?(k(),P("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,shr)):(k(),P("p",ahr,"Please install this app to view its code."))])])):ie("",!0),i.message?(k(),P("div",{key:3,class:We(["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}])},ue(i.message),3)):ie("",!0),e[12]||(e[12]=g("div",{class:"h-20"},null,-1))])}const chr=Et(Hpr,[["render",lhr],["__scopeId","data-v-f8c39e0b"]]),uhr=LZ({history:iZ("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:Ppr},{path:"/personalities_view/",name:"PersonalitiesZoo",component:chr},{path:"/auto_sd_view/",name:"AutoSD",component:Bfr},{path:"/comfyui_view/",name:"ComfyUI",component:kfr},{path:"/playground/",name:"playground",component:WGn},{path:"/extensions/",name:"extensions",component:rqn},{path:"/help_view/",name:"help_view",component:hqn},{path:"/settings/",name:"settings",component:Eir},{path:"/training/",name:"training",component:kir},{path:"/quantizing/",name:"quantizing",component:$ir},{path:"/",name:"discussions",component:Rlr},{path:"/interactive/",name:"interactive",component:Vdr},{path:"/nodes/",name:"nodes",component:Ofr}]}),q9=vW(OBn);function dhr(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const go=jW({state(){return{theme_vars:{lollms_title:"LoLLMS",falling_object:"L",activate_dropping_animation:!1,lollms_welcome_short_message:"Welcome to LoLLMS WebUI",lollms_welcome_message:"Embark on a journey through the realm of advanced AI with LoLLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence."},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(t,e){const n=t.personalities.findIndex(r=>r.full_path===e.full_path);n!==-1?t.personalities[n]=e:console.log("Can't uipdate personality beceause it was Not found:",e.full_path)},setThemeVars(t,e){t.theme_vars=e},setLeftPanelCollapsed(t,e){t.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(t,e){t.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(t,e){t.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(t,e){t.personalities_ready=e},setisRTOn(t,e){t.is_rt_on=e},setLanguages(t,e){t.languages=e},setLanguage(t,e){t.language=e},setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setIsModelOk(t,e){t.isModelOk=e},setIsGenerating(t,e){t.isGenerating=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setbindingsZoo(t,e){t.bindingsZoo=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setCurrentBinding(t,e){t.currentBinding=e},setCurrentModel(t,e){t.currentModel=e},setDatabases(t,e){t.databases=e},setTheme(t){this.currentTheme=t}},getters:{getThemeVars(t){return t.theme_vars},getLeftPanelCollapsed(t){return t.leftPanelCollapsed},getRightPanelCollapsed(t){return t.rightPanelCollapsed},getViewMode(t){return t.view_mode},getpersonalitiesReady(t){return t.personalities_ready},getisRTOn(t){return t.is_rt_on},getLanguages(t){return t.languages},getLanguage(t){return t.language},getIsConnected(t){return t.isConnected},getIsModelOk(t){return t.isModelOk},getIsGenerating(t){return t.isGenerating},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsZoo(t){return t.bindingsZoo},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getCyrrentBinding(t){return t.currentBinding},getCurrentModel(t){return t.currentModel}},actions:{async getVersion(){try{let t=await xe.get("/get_lollms_webui_version",{});t&&(console.log("getting version"),console.log(t.data.version_main),t=t.data,t.version_type!=""?this.state.version=`${t.version_main}.${t.version_secondary} ${t.version_type} (${t.version_codename})`:this.state.version=`${t.version_main}.${t.version_secondary} (${t.version_codename})`,console.log(this.state.version))}catch{console.error("Coudln't get version")}},async refreshConfig({commit:t}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await pq("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await Bo("list_databases");console.log("databases:",e),t("setDatabases",e)},async fetchisRTOn({commit:t}){const n=(await xe.get("/is_rt_on")).data.status;t("setisRTOn",n)},async fetchLanguages({commit:t}){console.log("get_personality_languages_list",this.state.client_id);const e=await xe.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("languages",n),t("setLanguages",n)},async fetchLanguage({commit:t}){console.log("get_personality_language",this.state.client_id);const e=await xe.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("language",n),t("setLanguage",n)},async changeLanguage({commit:t},e){console.log("Changing language to ",e);let n=await xe.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await xe.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const r=n.data;console.log("languages",r),t("setLanguages",r),n=await xe.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("language",i),t("setLanguage",i),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",i)},async deleteLanguage({commit:t},e){console.log("Deleting ",e);let n=await xe.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await xe.post("/get_personality_languages_list",{client_id:this.state.client_id});const r=n.data;t("setLanguages",r),n=await xe.post("/get_personality_language",{client_id:this.state.client_id});const i=n.data;t("setLanguage",i)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await Bo("get_all_personalities"),r=Object.keys(n);for(let i=0;i{let c=!1;for(const d of this.state.config.personalities)d.includes(o+"/"+l.folder)&&(c=!0);let u={};return u=l,u.category=o,u.full_path=o+"/"+l.folder,u.isMounted=c,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,o)=>i.name.localeCompare(o.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let i=0;ia.full_path==o);if(s>=0){let a=dhr(this.state.personalities[s]);a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else n.push(i),console.log("Couldn't load personality : ",o)}for(let i=n.length-1;i>=0;i--)this.state.config.personalities.splice(n[i],1),this.state.config.active_personality_id>n[i]&&(this.state.config.active_personality_id-=1);t("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:t}){let e=await Bo("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(r=>r.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),t("setbindingsZoo",e);const n=e.findIndex(r=>r.name==this.state.config.binding_name);n!=-1&&t("setCurrentBinding",e[n])},async refreshModelsZoo({commit:t}){const n=(await xe.get("/get_available_models")).data;t("setModelsZoo",n)},async refreshModelStatus({commit:t}){let e=await Bo("get_model_status");t("setIsModelOk",e.status)},async refreshModels({commit:t}){let e=await Bo("list_models"),n=await Bo("get_active_model");n!=null&&t("setselectedModel",n.model),t("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&&t("setCurrentModel",this.state.modelsZoo[r])},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Bo("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Bo("ram_usage")},async refreshVramUsage({commit:t}){const e=await Bo("vram_usage"),n=[];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}.spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.execute-button{display:flex;align-items:center;gap:.5rem}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS +*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.prose{color:inherit}.prose h1{margin-bottom:1rem;margin-top:1.5rem;font-size:1.5rem;line-height:2rem;font-weight:700}.prose h2{margin-bottom:.75rem;margin-top:1.25rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}.prose h3{margin-bottom:.5rem;margin-top:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700}.prose p{margin-bottom:1rem}.prose ul{margin-bottom:1rem;list-style-type:disc;padding-left:1.25rem}.prose ol{margin-bottom:1rem;list-style-type:decimal;padding-left:1.25rem}.prose code{border-radius:.25rem;background-color:rgb(229 231 235 / var(--tw-bg-opacity));--tw-bg-opacity: .1;padding:.125rem .25rem;font-family:JetBrains Mono,Consolas,monospace;font-size:.875rem;line-height:1.25rem}.prose pre{margin-bottom:1rem;overflow-x:auto;border-radius:.5rem;padding:1rem}.prose pre code{background-color:transparent;padding:0}.prose blockquote{margin-top:1rem;margin-bottom:1rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding-left:1rem;font-style:italic}.prose a{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));text-decoration-line:underline}.prose a:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.prose::-webkit-scrollbar{width:.5rem}.prose::-webkit-scrollbar-track{background-color:transparent}.prose::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.prose::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.prose{scroll-behavior:smooth}.math{display:inline-block}.mathjax_block{display:block}.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-a223fde0]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-a223fde0]{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-a223fde0]{transform:translateY(-100%)}.topbar-content[data-v-a223fde0]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-a223fde0]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-a223fde0]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-a223fde0]{transform:scale(1.2)}.placeholder[data-v-a223fde0]{height:10px}.topbar-container[data-v-a223fde0]{position:relative;width:100%}.hover-zone[data-v-a223fde0]{opacity:0}.error[data-v-a223fde0]{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}.toggle-checkbox[data-v-70bac901]{position:relative;height:1.25rem;width:2.25rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.toggle-checkbox[data-v-70bac901]:checked{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.toggle-checkbox[data-v-70bac901]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.toggle-checkbox[data-v-70bac901]:before{content:"";position:absolute;left:.125rem;top:.125rem;height:1rem;width:1rem;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-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.toggle-checkbox[data-v-70bac901]:checked:before{--tw-translate-x: 1rem;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))}.input-field[data-v-70bac901]{width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.5rem .75rem;--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);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.input-field[data-v-70bac901]:focus{border-color:transparent;--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-field[data-v-70bac901]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.heartbeat-text[data-v-70bac901]{font-size:24px;animation:pulsate-70bac901 1.5s infinite}@keyframes pulsate-70bac901{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-70bac901],.list-enter-active[data-v-70bac901],.list-leave-active[data-v-70bac901]{transition:all .5s ease}.list-enter-from[data-v-70bac901]{transform:translatey(-30px)}.list-leave-to[data-v-70bac901]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-70bac901]{position:absolute}.bounce-enter-active[data-v-70bac901]{animation:bounce-in-70bac901 .5s}.bounce-leave-active[data-v-70bac901]{animation:bounce-in-70bac901 .5s reverse}@keyframes bounce-in-70bac901{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-70bac901]{background-color:#0ff}.hover[data-v-70bac901]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-70bac901]{font-weight:700}.control-buttons[data-v-2b3580ce]{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-2b3580ce]{transform:translate(0)}.control-buttons-inner[data-v-2b3580ce]{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}.border-t-primary[data-v-2cb174d6]{border-color:#e2e8f0;border-top-color:currentColor}@keyframes spin-2cb174d6{to{transform:rotate(360deg)}}.animate-spin[data-v-2cb174d6]{animation:spin-2cb174d6 .8s linear infinite}.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-c3280f2d]{position:relative;padding-top:10px}.custom-scrollbar[data-v-c3280f2d]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-c3280f2d]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-c3280f2d]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-c3280f2d]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.list-move[data-v-c3280f2d],.list-enter-active[data-v-c3280f2d],.list-leave-active[data-v-c3280f2d]{transition:all .5s ease}.list-enter-from[data-v-c3280f2d]{transform:translatey(-30px)}.list-leave-to[data-v-c3280f2d]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-c3280f2d]{position:absolute}@keyframes rolling-ball-d9375d3e{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-d9375d3e{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-d9375d3e{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-d9375d3e]{animation:rolling-ball-d9375d3e 4s infinite ease-in-out,bounce-d9375d3e 1s infinite ease-in-out}.animate-fade-in-up[data-v-d9375d3e]{animation:fade-in-up-d9375d3e 1.5s ease-out}.floating-button-container[data-v-d9375d3e]{position:fixed;bottom:30px;right:30px;z-index:9999}.floating-button[data-v-d9375d3e]{position:fixed;bottom:30px;right:30px;width:100px;height:100px;border-radius:50%;background-color:#ff4500e6;display:flex;justify-content:center;align-items:center;box-shadow:0 0 30px #ff4500cc;animation:pulse-d9375d3e 1.5s infinite,glow-d9375d3e 2s infinite,wobble-d9375d3e 3s infinite;overflow:hidden;z-index:9999;transition:all .3s ease}.floating-button[data-v-d9375d3e]:hover{transform:scale(1.2) rotate(5deg);background-color:#ff4500}.tooltip[data-v-d9375d3e]{position:absolute;background-color:#000c;color:#fff;padding:8px 12px;border-radius:8px;font-size:16px;font-weight:700;white-space:nowrap;opacity:0;transition:opacity .3s ease,transform .3s ease;pointer-events:none;top:-50px;left:50%;transform:translate(-50%) scale(.9)}.floating-button:hover .tooltip[data-v-d9375d3e]{opacity:1;transform:translate(-50%) scale(1)}@keyframes pulse-d9375d3e{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes glow-d9375d3e{0%{box-shadow:0 0 30px #ff4500cc}50%{box-shadow:0 0 60px #ff4500,0 0 90px #ff450099}to{box-shadow:0 0 30px #ff4500cc}}@keyframes wobble-d9375d3e{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}.hidden[data-v-d9375d3e]{display:none}.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}.glow-effect[data-v-85f3dede]{box-shadow:0 0 5px 2px #00ffffb3;animation:glow-85f3dede 1.5s ease-in-out infinite alternate}@keyframes glow-85f3dede{0%{box-shadow:0 0 5px 2px #00ffffb3}to{box-shadow:0 0 20px 2px #00ffffb3}}.personalities-container[data-v-aeb57e08]{position:relative}.skills-lib-icon[data-v-aeb57e08]{position:absolute;top:-2px;right:-2px;z-index:10;font-size:5px;width:2px;height:2px}.skills-lib-icon i[data-v-aeb57e08]{width:2px;height:2px}@keyframes giggle-aeb57e08{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-aeb57e08]{animation:giggle-aeb57e08 1.5s infinite ease-in-out}.custom-scrollbar[data-v-aeb57e08]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-aeb57e08]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-aeb57e08]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-aeb57e08]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-aeb57e08{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-aeb57e08]{animation:custom-pulse-aeb57e08 2s infinite}.slide-right-enter-active[data-v-aeb57e08],.slide-right-leave-active[data-v-aeb57e08]{transition:transform .3s ease}.slide-right-enter[data-v-aeb57e08],.slide-right-leave-to[data-v-aeb57e08]{transform:translate(-100%)}.slide-left-enter-active[data-v-aeb57e08],.slide-left-leave-active[data-v-aeb57e08]{transition:transform .3s ease}.slide-left-enter[data-v-aeb57e08],.slide-left-leave-to[data-v-aeb57e08]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-aeb57e08]{animation:fade-and-fly-enter-aeb57e08 .5s ease}.fade-and-fly-leave-active[data-v-aeb57e08]{animation:fade-and-fly-leave-aeb57e08 .5s ease}@keyframes fade-and-fly-enter-aeb57e08{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-aeb57e08{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-aeb57e08],.list-enter-active[data-v-aeb57e08],.list-leave-active[data-v-aeb57e08]{transition:all .5s ease}.list-enter-from[data-v-aeb57e08]{transform:translatey(-30px)}.list-leave-to[data-v-aeb57e08]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-aeb57e08]{position:absolute}@keyframes float-aeb57e08{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-aeb57e08]{animation:float-aeb57e08 linear infinite}@keyframes star-move-aeb57e08{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-aeb57e08]{animation:star-move-aeb57e08 linear infinite}@keyframes fall-aeb57e08{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-aeb57e08]{animation:fall-aeb57e08 linear infinite}@keyframes glow-aeb57e08{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-aeb57e08]{animation:glow-aeb57e08 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-aeb57e08{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-aeb57e08{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-aeb57e08]{animation:roll-aeb57e08 4s linear infinite}.toolbar[data-v-aeb57e08]{position:relative;width:100%}.toolbar-container[data-v-aeb57e08]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-aeb57e08]{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-aeb57e08]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-aeb57e08]{position:relative}.expandable-menu[data-v-aeb57e08]{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-aeb57e08],.menu-visible[data-v-aeb57e08]{display:flex}.menu-item[data-v-aeb57e08]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-aeb57e08]:hover{background-color:#f0f0f0}.dot[data-v-aeb57e08]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-aeb57e08]{background-color:green}.dot-red[data-v-aeb57e08]{background-color:red}.animate-pulse[data-v-aeb57e08]{animation:pulse-aeb57e08 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-aeb57e08{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-aeb57e08]{position:relative;width:48px;height:48px}.logo-image[data-v-aeb57e08]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-aeb57e08{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-aeb57e08]{animation:bounce-aeb57e08 1s infinite}@keyframes roll-and-bounce-aeb57e08{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-aeb57e08{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:Inter,Outfit,PTSans,Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,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:JetBrains Mono,Consolas,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}.not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.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-1{top:-.25rem;right:-.25rem;bottom:-.25rem;left:-.25rem}.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-12{bottom:-3rem}.-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-0\.5{left:.125rem}.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-0\.5{top:.125rem}.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%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.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}.float-right{float:right}.float-left{float:left}.float-none{float:none}.clear-left{clear:left}.clear-right{clear:right}.clear-both{clear:both}.clear-none{clear:none}.-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-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-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-6{margin-left:1.5rem}.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}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.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!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.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-\[300px\]{height:300px}.h-\[400px\]{height:400px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-0{max-height:0px}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-72{max-height:18rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[500px\]{max-height:500px}.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-\[200px\]{min-height:200px}.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-1\/3{width:33.333333%}.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-2\/3{width:66.666667%}.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-\[15rem\]{width:15rem}.w-\[16rem\]{width:16rem}.w-\[300px\]{width:300px}.w-\[500px\]{width:500px}.w-\[this-is\\\\\]{width:this-is\\}.w-\[this-is\]{width:this-is}.w-\[weird-and-invalid\]{width:weird-and-invalid}.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-0{min-width:0px}.min-w-96{min-width:24rem}.min-w-\[200px\]{min-width:200px}.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-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.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}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.border-separate{border-collapse:separate}.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-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))!important}.transform,.transform-cpu{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-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) 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}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-auto{touch-action:auto}.touch-none{touch-action:none}.touch-pan-x{--tw-pan-x: pan-x;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-left{--tw-pan-x: pan-left;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-right{--tw-pan-x: pan-right;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-up{--tw-pan-y: pan-up;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-down{--tw-pan-y: pan-down;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pinch-zoom{--tw-pinch-zoom: pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-proximity{--tw-scroll-snap-strictness: proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.snap-normal{scroll-snap-stop:normal}.snap-always{scroll-snap-stop:always}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.break-before-auto{-moz-column-break-before:auto;break-before:auto}.break-before-avoid{-moz-column-break-before:avoid;break-before:avoid}.break-before-all{-moz-column-break-before:all;break-before:all}.break-before-avoid-page{-moz-column-break-before:avoid;break-before:avoid-page}.break-before-page{-moz-column-break-before:page;break-before:page}.break-before-left{-moz-column-break-before:left;break-before:left}.break-before-right{-moz-column-break-before:right;break-before:right}.break-before-column{-moz-column-break-before:column;break-before:column}.break-inside-auto{-moz-column-break-inside:auto;break-inside:auto}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.break-inside-avoid-page{break-inside:avoid-page}.break-inside-avoid-column{-moz-column-break-inside:avoid;break-inside:avoid-column}.break-after-auto{-moz-column-break-after:auto;break-after:auto}.break-after-avoid{-moz-column-break-after:avoid;break-after:avoid}.break-after-all{-moz-column-break-after:all;break-after:all}.break-after-avoid-page{-moz-column-break-after:avoid;break-after:avoid-page}.break-after-page{-moz-column-break-after:page;break-after:page}.break-after-left{-moz-column-break-after:left;break-after:left}.break-after-right{-moz-column-break-after:right;break-after:right}.break-after-column{-moz-column-break-after:column;break-after:column}.grid-flow-row{grid-auto-flow:row}.grid-flow-col{grid-auto-flow:column}.grid-flow-dense{grid-auto-flow:dense}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-flow-col-dense{grid-auto-flow:column dense}.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-\[200px\,1fr\]{grid-template-columns:200px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.place-content-baseline{place-content:baseline}.place-content-stretch{place-content:stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-baseline{place-items:baseline}.place-items-stretch{place-items:stretch}.content-center{align-content:center}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.content-baseline{align-content:baseline}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.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))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 1}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.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-y-reverse>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 1}.divide-x-reverse>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 1}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-dashed>:not([hidden])~:not([hidden]){border-style:dashed}.divide-dotted>:not([hidden])~:not([hidden]){border-style:dotted}.divide-double>:not([hidden])~:not([hidden]){border-style:double}.divide-none>:not([hidden])~:not([hidden]){border-style:none}.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))}.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.self-baseline{align-self:baseline}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.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-x-clip{overflow-x:clip}.overflow-y-clip{overflow-y:clip}.overflow-x-visible{overflow-x:visible}.overflow-y-visible{overflow-y:visible}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-auto{overscroll-behavior:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-none{overscroll-behavior:none}.overscroll-y-auto{overscroll-behavior-y:auto}.overscroll-y-contain{overscroll-behavior-y:contain}.overscroll-y-none{overscroll-behavior-y:none}.overscroll-x-auto{overscroll-behavior-x:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.overscroll-x-none{overscroll-behavior-x:none}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.text-clip{text-overflow:clip}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-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{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.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}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x{border-left-width:1px;border-right-width:1px}.border-y{border-top-width:1px;border-bottom-width:1px}.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-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-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-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.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-200{--tw-border-opacity: 1;border-color:rgb(251 213 213 / 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-b-gray-900{--tw-border-opacity: 1;border-bottom-color:rgb(17 24 39 / var(--tw-border-opacity))}.border-t-primary{border-top-color:var(--color-primary)}.bg-\[rgb\(255\,0\,0\)\]{--tw-bg-opacity: 1;background-color:rgb(255 0 0 / var(--tw-bg-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-50\/50{background-color:#f9fafb80}.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-50{--tw-bg-opacity: 1;background-color:rgb(243 250 247 / 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-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-50{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / 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-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-10{--tw-bg-opacity: .1}.bg-opacity-5{--tw-bg-opacity: .05}.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-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-500{--tw-gradient-to: #0E9F6E 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\/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%}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.bg-fixed{background-attachment:fixed}.bg-local{background-attachment:local}.bg-scroll{background-attachment:scroll}.bg-clip-border{background-clip:border-box}.bg-clip-padding{background-clip:padding-box}.bg-clip-content{background-clip:content-box}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-repeat{background-repeat:repeat}.bg-no-repeat{background-repeat:no-repeat}.bg-repeat-x{background-repeat:repeat-x}.bg-repeat-y{background-repeat:repeat-y}.bg-repeat-round{background-repeat:round}.bg-repeat-space{background-repeat:space}.bg-origin-border{background-origin:border-box}.bg-origin-padding{background-origin:padding-box}.bg-origin-content{background-origin:content-box}.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}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.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-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-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}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.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-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-top{vertical-align:text-top}.align-text-bottom{vertical-align:text-bottom}.align-sub{vertical-align:sub}.align-super{vertical-align:super}.font-mono{font-family:JetBrains Mono,Consolas,monospace}.font-sans{font-family:Inter,Outfit,PTSans,Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,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}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.normal-nums{font-variant-numeric:normal}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.slashed-zero{--tw-slashed-zero: slashed-zero;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.lining-nums{--tw-numeric-figure: lining-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.oldstyle-nums{--tw-numeric-figure: oldstyle-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.proportional-nums{--tw-numeric-spacing: proportional-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.diagonal-fractions{--tw-numeric-fraction: diagonal-fractions;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.stacked-fractions{--tw-numeric-fraction: stacked-fractions;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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-\[\#336699\]\/\[\.35\]{color:#33669959}.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-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}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.accent-blue-500{accent-color:#3F83F8}.accent-blue-600{accent-color:#1C64F2}.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}.bg-blend-normal{background-blend-mode:normal}.bg-blend-multiply{background-blend-mode:multiply}.bg-blend-screen{background-blend-mode:screen}.bg-blend-overlay{background-blend-mode:overlay}.bg-blend-darken{background-blend-mode:darken}.bg-blend-lighten{background-blend-mode:lighten}.bg-blend-color-dodge{background-blend-mode:color-dodge}.bg-blend-color-burn{background-blend-mode:color-burn}.bg-blend-hard-light{background-blend-mode:hard-light}.bg-blend-soft-light{background-blend-mode:soft-light}.bg-blend-difference{background-blend-mode:difference}.bg-blend-exclusion{background-blend-mode:exclusion}.bg-blend-hue{background-blend-mode:hue}.bg-blend-saturation{background-blend-mode:saturation}.bg-blend-color{background-blend-mode:color}.bg-blend-luminosity{background-blend-mode:luminosity}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.mix-blend-plus-lighter{mix-blend-mode:plus-lighter}.\!shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.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}.outline-dashed{outline-style:dashed}.outline-dotted{outline-style:dotted}.outline-double{outline-style:double}.ring{--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)}.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-inset{--tw-ring-inset: inset}.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{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px 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-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)}.invert{--tw-invert: invert(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)}.sepia{--tw-sepia: sepia(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)!important}.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)}.filter-none{filter:none}.backdrop-blur{--tw-backdrop-blur: blur(8px);-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-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-grayscale{--tw-backdrop-grayscale: grayscale(100%);-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-invert{--tw-backdrop-invert: invert(100%);-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-sepia{--tw-backdrop-sepia: sepia(100%);-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)}.backdrop-filter-none{-webkit-backdrop-filter:none;backdrop-filter:none}.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-700{transition-duration:.7s}.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)}.content-\[\'this-is-also-valid\]-weirdly-enough\'\]{--tw-content: "this-is-also-valid]-weirdly-enough";content:var(--tw-content)}.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-family:Inter,Outfit,PTSans,Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-size:1rem;line-height:1.5rem;line-height:1.625;letter-spacing:-.025em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}@media (min-width: 768px){p{font-size:1.125rem;line-height:1.75rem;line-height:2}}table{border-collapse:collapse;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}table:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}th,td{border-width:1px;--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));padding:.5rem}th:is(.dark *),td:is(.dark *){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}tr:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}tr:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}ul,ol{margin-top:1rem;margin-bottom:1rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:1.75rem}ul{margin-left:.5rem;list-style-type:disc}ul>: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))}li{position:relative;padding-left:.5rem}ol{margin-left:.5rem;list-style-type:decimal}ol>: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))}ul ul,ol ol,ul ol,ol ul{margin-top:.5rem;margin-bottom:0;margin-left:1.5rem}li::marker{color:#4b5563}: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))}.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:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.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}.animated-progressbar-bg{position:relative;height:2.5rem;width:100%;overflow:hidden;border-radius:.125rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #172554 var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 37 84 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #233876 var(--tw-gradient-to-position);--tw-shadow: 0 0 15px rgba(245,158,11,.2);--tw-shadow-colored: 0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.animated-progressbar-bg:is(.dark *){--tw-gradient-from: #000000 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);--tw-gradient-to: #172554 var(--tw-gradient-to-position)}.animated-progressbar-fg{position:absolute;top:0;left:0;height:100%;background-image:linear-gradient(to right,var(--tw-gradient-stops));--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);--tw-gradient-to: #76A9FA var(--tw-gradient-to-position);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.animated-progressbar-fg:is(.dark *){--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);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.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))}.discussion-toolbox{display:flex;--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));align-items:center;gap:.5rem;border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.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);transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.group:hover .discussion-toolbox{--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))}.discussion-toolbox:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.lollms-title-style{text-shadow:2px 2px 4px rgba(0,0,0,.2),2px 2px 0px white,-2px -2px 0px white,2px -2px 0px white,-2px 2px 0px white;background:linear-gradient(45deg,#f59e0b,#fbbf24);-webkit-background-clip:text;background-clip:text}.chat-bar{position:relative;display:flex;flex-grow:1;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:.5rem;--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));padding:.25rem;--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity));--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)}.chat-bar: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)}.chat-bar:is(.dark *){--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.chat-bar{height:50px;transition:all .3s ease}.chat-bar:hover{box-shadow:0 4px 6px -1px #00ff001a,0 2px 4px -1px #00ff000f}.svg-button{border-radius:9999px;padding:.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.svg-button: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));--tw-ring-offset-width: 2px}.svg-button:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.svg-button:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.svg-button:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.svg-button:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.svg-button:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.nav-button{border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nav-button:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.nav-button:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.nav-button:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.nav-button-active{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.nav-button-active:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.nav-button-active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.nav-button-active:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-on{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.btn-on:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.btn-off{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.btn-off:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.interesting-facts{margin-top:1.5rem;margin-bottom:1.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));border-radius:.5rem;background-color:#fffc;padding:1rem;--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)}.interesting-facts: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))}.interesting-facts:is(.dark *){background-color:#1f2937cc}.toolbar-button{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:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.context-menu{position:absolute;background-color:#fff;border:1px solid #e0e0e0;box-shadow:0 2px 10px #0000001a;border-radius:4px;padding:8px 0;min-width:150px;z-index:1000}.context-menu-item{padding:8px 16px;font-size:14px;color:#333;cursor:pointer;transition:background-color .2s ease}.context-menu-item:hover{background-color:#f5f5f5}.context-menu-separator{height:1px;background-color:#e0e0e0;margin:4px 0}.context-menu-item-disabled{color:#999;cursor:not-allowed}.context-menu-item-icon{margin-right:8px}.steps-container{margin-bottom:1rem;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.steps-header{display:flex;cursor:pointer;align-items:center;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:1rem}.steps-header:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.steps-title{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600}.step-item{margin-bottom:.5rem;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));padding-left:1rem}.steps-container{margin-bottom:1rem;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.steps-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.steps-header{display:flex;cursor:pointer;align-items:center;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));padding:1rem}.steps-header:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.steps-icon{margin-right:1rem}.steps-summary{flex-grow:1}.steps-title{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.steps-title:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.steps-status{margin:0;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.steps-status:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.toggle-icon{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.toggle-icon:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.steps-content{padding:1rem}.steps-list{margin:0;list-style-type:none;padding:0}.step-item{margin-bottom:.5rem;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding-left:1rem}.step-item:last-child{margin-bottom:0}.step-item:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.step-container{margin-bottom:1rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.step-wrapper{display:flex;align-items:flex-start;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.75rem}.step-wrapper:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.step-icon{margin-right:.75rem;height:1.5rem;width:1.5rem;flex-shrink:0}.icon-success{height:1.5rem;width:1.5rem;--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.icon-fail{height:1.5rem;width:1.5rem;--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.icon-spinner{height:1.5rem;width:1.5rem}@keyframes spin{to{transform:rotate(360deg)}}.icon-spinner{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));border-top-color:transparent}.icon-spinner:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.step-content{flex-grow:1}.step-text{font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.step-text:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.step-description{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.fade-enter-active,.fade-leave-active{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.fade-enter,.fade-leave-to{opacity:0}.status-icon{cursor:pointer;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.icon{height:1.5rem;width:1.5rem}.icon-success{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.icon-success:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.icon-fail{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.icon-fail:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.icon-text{font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.icon-text:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}.sm\:container{max-width:640px}@media (min-width: 768px){.sm\:container{max-width:768px}}@media (min-width: 1024px){.sm\:container{max-width:1024px}}@media (min-width: 1280px){.sm\:container{max-width:1280px}}@media (min-width: 1536px){.sm\:container{max-width:1536px}}}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[2px\]:after{content:var(--tw-content);left:2px}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-gray-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.last\:mb-0:last-child{margin-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.checked\:translate-x-6:checked{--tw-translate-x: 1.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))}.checked\:bg-blue-500:checked{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.checked\:bg-red-500:checked{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.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\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content);--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))}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.peer:focus~.peer-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.peer:focus~.peer-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)}.peer:focus~.peer-focus\:ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.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-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(63 131 248 / 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-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-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / 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-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-100:hover{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / 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-50:hover{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / 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-300:hover{--tw-bg-opacity: 1;background-color:rgb(250 202 21 / 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-green-500:hover{--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)}.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-green-600:hover{--tw-gradient-to: #057A55 var(--tw-gradient-to-position)}.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\:font-bold:hover{font-weight:700}.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-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / 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\:shadow-lg: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)}.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}.before\:hover\:text-center:hover:before{content:var(--tw-content);text-align:center}.hover\:before\:text-center:hover:before{content:var(--tw-content);text-align:center}.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-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / 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-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / 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}.focus\:hover\:text-center:hover:focus{text-align:center}.hover\:focus\:text-center:focus:hover{text-align:center}.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\: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-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(155 28 28 / 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-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-700\/50:is(.dark *){background-color:#37415180}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/20:is(.dark *){background-color:#1f293733}.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\/20:is(.dark *){background-color:#01473733}.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\/20:is(.dark *){background-color:#771d1d33}.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-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-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)}.peer:focus~.dark\:peer-focus\:ring-blue-800:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.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-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / 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-600\/50:hover:is(.dark *){background-color:#4b556380}.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-700\/50:hover:is(.dark *){background-color:#37415180}.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-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / 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))}.dark\:hover\:bg-yellow-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(194 120 3 / 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-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.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}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:mr-4{margin-right:1rem}.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\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}.sm\:underline{text-decoration-line:underline}}@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\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-2\/3{width:66.666667%}.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\:grid-cols-\[300px\,1fr\]{grid-template-columns:300px 1fr}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.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-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)))}.md\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * 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\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-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\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.dark\:lg\:hover\:\[paint-order\:markers\]:hover:is(.dark *){paint-order:markers}}@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 1b895e0f..6da87d70 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - - + +
diff --git a/web/src/components/Message.vue b/web/src/components/Message.vue index 02c7c49d..e6f65872 100644 --- a/web/src/components/Message.vue +++ b/web/src/components/Message.vue @@ -58,35 +58,57 @@ Your browser does not support the audio element. -
-
-
-
- -
-
-

Processing Info

-

{{ message.status_message }}

-
- {{ expanded ? '▲' : '▼' }} -
- -
-
    -
  • - -
  • -
+
+ +
+
+ + {{ message.status_message }} +
+ + +
+
+
+ +
+
+
-
+ + + +
\ No newline at end of file diff --git a/web/src/components/Step.vue b/web/src/components/Step.vue index 8f3624bf..7d923d28 100644 --- a/web/src/components/Step.vue +++ b/web/src/components/Step.vue @@ -1,22 +1,47 @@