From 22c63467c7d6e2ded5329e513625be653ce058be Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 1 Jan 2024 01:49:14 +0100 Subject: [PATCH] upgraded and added more languages to audio xTTS --- api/__init__.py | 3 +- .../frontend/package-lock.json | 91 +++++++++++++++++++ .../lollms_installer/frontend/package.json | 1 + scripts/python/lollms_installer/main.py | 55 ++++++++++- scripts/python/lollms_installer/models_zoo | 1 + ...{index-ba9f58be.css => index-1bbab987.css} | 2 +- .../{index-c1cddf3b.js => index-5ced427f.js} | 12 +-- web/dist/index.html | 4 +- web/src/components/ChatBox.vue | 2 +- web/src/views/DiscussionsView.vue | 4 +- web/src/views/SettingsView.vue | 4 +- 11 files changed, 162 insertions(+), 17 deletions(-) create mode 160000 scripts/python/lollms_installer/models_zoo rename web/dist/assets/{index-ba9f58be.css => index-1bbab987.css} (98%) rename web/dist/assets/{index-c1cddf3b.js => index-5ced427f.js} (97%) diff --git a/api/__init__.py b/api/__init__.py index 1d29b41f..34a98636 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -816,6 +816,7 @@ class LoLLMsAPI(LollmsApplication): def create_empty_message(data): client_id = request.sid type = data.get("type",0) + message = data.get("message","") if type==0: ASCIIColors.info(f"Building empty User message requested by : {client_id}") # send the message to the bot @@ -824,7 +825,7 @@ class LoLLMsAPI(LollmsApplication): if not self.model: self.error("No model selected. Please make sure you select a model before starting generation", client_id = client_id) return - self.new_message(client_id, self.config.user_name, "", sender_type=SENDER_TYPES.SENDER_TYPES_USER, open=True) + self.new_message(client_id, self.config.user_name, message, sender_type=SENDER_TYPES.SENDER_TYPES_USER, open=True) self.socketio.sleep(0.01) else: if self.personality is None: diff --git a/scripts/python/lollms_installer/frontend/package-lock.json b/scripts/python/lollms_installer/frontend/package-lock.json index 0f742732..08eba053 100644 --- a/scripts/python/lollms_installer/frontend/package-lock.json +++ b/scripts/python/lollms_installer/frontend/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "autoprefixer": "^10.4.16", + "axios": "^1.6.3", "flowbite": "^2.2.1", "postcss": "^8.4.32", "tailwind-scrollbar": "^3.0.5", @@ -841,6 +842,11 @@ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, "node_modules/autoprefixer": { "version": "10.4.16", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", @@ -877,6 +883,16 @@ "postcss": "^8.1.0" } }, + "node_modules/axios": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.3.tgz", + "integrity": "sha512-fWyNdeawGam70jXSVlKl+SUNVcL6j6W79CuSIPfi6HnDUmSCH6gyUys/HrqHeA/wU0Az41rRgean494d0Jb+ww==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -1020,6 +1036,17 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/commander": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", @@ -1057,6 +1084,14 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -1198,6 +1233,25 @@ "mini-svg-data-uri": "^1.4.3" } }, + "node_modules/follow-redirects": { + "version": "1.15.4", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", + "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/foreground-child": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", @@ -1213,6 +1267,19 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fraction.js": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", @@ -1428,6 +1495,25 @@ "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mini-svg-data-uri": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", @@ -1720,6 +1806,11 @@ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", diff --git a/scripts/python/lollms_installer/frontend/package.json b/scripts/python/lollms_installer/frontend/package.json index 23cc0ae7..ee419c54 100644 --- a/scripts/python/lollms_installer/frontend/package.json +++ b/scripts/python/lollms_installer/frontend/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "autoprefixer": "^10.4.16", + "axios": "^1.6.3", "flowbite": "^2.2.1", "postcss": "^8.4.32", "tailwind-scrollbar": "^3.0.5", diff --git a/scripts/python/lollms_installer/main.py b/scripts/python/lollms_installer/main.py index ab8f3f0c..819c7ecf 100644 --- a/scripts/python/lollms_installer/main.py +++ b/scripts/python/lollms_installer/main.py @@ -1,5 +1,56 @@ from fastapi import FastAPI from fastapi.staticfiles import StaticFiles -app = FastAPI() +from pydantic import BaseModel +import uvicorn +from lollms.paths import LollmsPaths +from lollms.utilities import check_and_install_torch, PackageManager +from pathlib import Path +from ascii_colors import ASCIIColors +import subprocess +from pathlib import Path -app.mount("/", StaticFiles(directory="dist")) \ No newline at end of file +from starlette.responses import FileResponse +from starlette.requests import Request + +root_path =Path(__file__).parent.parent.parent.parent +global_path = root_path/"global_paths_cfg.yaml" +ASCIIColors.yellow(f"global_path: {global_path}") +lollms_paths = LollmsPaths(global_path) +shared_folder = lollms_paths.personal_path/"shared" +sd_folder = shared_folder / "auto_sd" +output_dir = lollms_paths.personal_path / "outputs/sd" +output_dir.mkdir(parents=True, exist_ok=True) +script_path = sd_folder / "lollms_sd.bat" +output_folder = lollms_paths.personal_outputs_path/"audio_out" + +ASCIIColors.red(" ") +ASCIIColors.red(" __ _____ __ __ _____ _____ ") +ASCIIColors.red("| | | | | | | | | __|") +ASCIIColors.red("| |__| | | |__| |__| | | |__ |") +ASCIIColors.red("|_____|_____|_____|_____|_|_|_|_____|") +ASCIIColors.red(" Configurator ") +ASCIIColors.red(" LoLLMS configuratoin tool") +ASCIIColors.yellow(f"Root dir : {root_path}") +app = FastAPI(debug=True) + +class Item(BaseModel): + name: str + price: float + +# Serve the index.html file for all routes +@app.get("/{full_path:path}") +async def serve_index(request: Request, full_path: Path): + if str(full_path).endswith(".js"): + return FileResponse(root_path/"scripts/python/lollms_installer/frontend/dist"/full_path, media_type="application/javascript") + return FileResponse(root_path/"scripts/python/lollms_installer/frontend/dist/index.html") + +app.mount("/", StaticFiles(directory=root_path/"scripts/python/lollms_installer/frontend/dist"), name="static") + +@app.post("/start_installing") +def start_installing(item: Item): + + # Your code here + return {"message": "Item created successfully"} + +if __name__ == "__main__": + uvicorn.run(app, host="0.0.0.0", port=8000) \ No newline at end of file diff --git a/scripts/python/lollms_installer/models_zoo b/scripts/python/lollms_installer/models_zoo new file mode 160000 index 00000000..6d78abe1 --- /dev/null +++ b/scripts/python/lollms_installer/models_zoo @@ -0,0 +1 @@ +Subproject commit 6d78abe11265d37b77f851a442df875f70595263 diff --git a/web/dist/assets/index-ba9f58be.css b/web/dist/assets/index-1bbab987.css similarity index 98% rename from web/dist/assets/index-ba9f58be.css rename to web/dist/assets/index-1bbab987.css index 26762774..365b554e 100644 --- a/web/dist/assets/index-ba9f58be.css +++ b/web/dist/assets/index-1bbab987.css @@ -5,4 +5,4 @@ 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}.hovered{transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transform:scale(1.1)}.active{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;pointer-events:all}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:250px;background-color:#fff;z-index:1000;display:none}.settings-button{cursor:pointer;padding:10px;border:1px solid #ddd;border-radius:5px;color:#333;font-size:14px}.settings-button:hover{background-color:#eee}.settings-button:active{background-color:#ddd}.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}.scrollbar[data-v-b19a05a8]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar{width:8px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.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}.selected-choice{background-color:#bde4ff}.heartbeat-text[data-v-d8f7398d]{font-size:24px;animation:pulsate-d8f7398d 1.5s infinite}@keyframes pulsate-d8f7398d{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-d8f7398d],.list-enter-active[data-v-d8f7398d],.list-leave-active[data-v-d8f7398d]{transition:all .5s ease}.list-enter-from[data-v-d8f7398d]{transform:translatey(-30px)}.list-leave-to[data-v-d8f7398d]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-d8f7398d]{position:absolute}.bounce-enter-active[data-v-d8f7398d]{animation:bounce-in-d8f7398d .5s}.bounce-leave-active[data-v-d8f7398d]{animation:bounce-in-d8f7398d .5s reverse}@keyframes bounce-in-d8f7398d{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-d8f7398d]{background-color:#0ff}.hover[data-v-d8f7398d]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-d8f7398d]{font-weight:700}.collapsible-section{cursor:pointer;margin-bottom:10px;font-weight:700}.collapsible-section:hover{color:#1a202c}.collapsible-section .toggle-icon{margin-right:.25rem}.collapsible-section .toggle-icon i{color:#4a5568}.collapsible-section .toggle-icon i:hover{color:#1a202c}.json-viewer{max-height:300px;max-width:700px;flex:auto;overflow-y:auto;padding:10px;background-color:#f1f1f1;border:1px solid #ccc;border-radius:4px}.json-viewer .toggle-icon{cursor:pointer;margin-right:.25rem}.json-viewer .toggle-icon i{color:#4a5568}.json-viewer .toggle-icon i:hover{color:#1a202c}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}.bounce-enter-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s}.bounce-leave-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s reverse}@keyframes bounce-in-d16a58b9{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-52cfa09c]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-52cfa09c]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-52cfa09c]{top:calc(-100% - 2rem)}.list-move[data-v-b2f77eff],.list-enter-active[data-v-b2f77eff],.list-leave-active[data-v-b2f77eff]{transition:all .5s ease}.list-enter-from[data-v-b2f77eff]{transform:translatey(-30px)}.list-leave-to[data-v-b2f77eff]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-b2f77eff]{position:absolute}.slide-right-enter-active[data-v-ac366642],.slide-right-leave-active[data-v-ac366642]{transition:transform .3s ease}.slide-right-enter[data-v-ac366642],.slide-right-leave-to[data-v-ac366642]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-ac366642]{animation:fade-and-fly-enter-ac366642 .5s ease}.fade-and-fly-leave-active[data-v-ac366642]{animation:fade-and-fly-leave-ac366642 .5s ease}@keyframes fade-and-fly-enter-ac366642{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-ac366642{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-ac366642],.list-enter-active[data-v-ac366642],.list-leave-active[data-v-ac366642]{transition:all .5s ease}.list-enter-from[data-v-ac366642]{transform:translatey(-30px)}.list-leave-to[data-v-ac366642]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-ac366642]{position:absolute}.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}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{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:white;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}html{scroll-behavior:smooth}@font-face{font-family:Roboto;src:url(/assets/Roboto-Regular-7277cfb8.ttf) format("truetype")}@font-face{font-family:PTSans;src:url(/assets/PTSans-Regular-23b91352.ttf) format("truetype")}*,: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: }::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: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-7{left:1.75rem}.left-9{left:2.25rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.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}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.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-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-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}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.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-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-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-6{max-height:1.5rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[900px\]{min-height:900px}.min-h-full{min-height:100%}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-4\/6{width:66.666667%}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.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-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-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.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-\[23rem\]{max-width:23rem}.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-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}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-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-75{--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))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,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))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.-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-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))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{--tw-border-opacity: 1;border-color:rgb(19 46 89 / 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{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.border-primary-light{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(240 112 14 / var(--tw-bg-opacity))}.bg-bg-dark-tone-panel{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}.bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(226 237 255 / var(--tw-bg-opacity))}.bg-bg-light-discussion{--tw-bg-opacity: 1;background-color:rgb(197 216 248 / var(--tw-bg-opacity))}.bg-bg-light-tone{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.bg-bg-light-tone-panel{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / 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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.bg-primary-light{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(15 217 116 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: #e2edff var(--tw-gradient-from-position);--tw-gradient-to: rgb(226 237 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: #b9d2f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(185 210 247 / 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-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-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(226 237 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2edff var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-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%}.fill-blue-600{fill:#1c64f2}.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:#0fd974}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-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}.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-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;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}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / 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-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-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-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{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-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-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))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale-0{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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:auto}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: #e2edff !important}.scrollbar-track-bg-light-tone{--scrollbar-track: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: #8fb5ef !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}.odd\:bg-bg-light-tone:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.even\:bg-bg-light-discussion-odd:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(214 231 255 / var(--tw-bg-opacity))}.even\:bg-bg-light-tone-panel:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.group\/avatar:hover .group-hover\/avatar\:visible,.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-y-10{--tw-translate-y: -2.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))}.group:hover .group-hover\:border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-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\/avatar:hover .group-hover\/avatar\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:block:hover{display:block}.hover\:h-8:hover{height:2rem}.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-95:hover{--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))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.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-primary:hover{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.hover\:border-primary-light:hover{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.hover\:border-secondary:hover{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.hover\:bg-bg-light-tone:hover{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.hover\:bg-bg-light-tone-panel:hover{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-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-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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.hover\:bg-primary-light:hover{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:fill-primary:hover{fill:#0e8ef0}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(14 142 240 / 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-secondary:hover{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: #0e8ef0 !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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-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-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}.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))}.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: #0fd974 !important}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){--tw-border-opacity: 1;border-color:rgb(226 237 255 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){--tw-bg-opacity: 1;background-color:rgb(19 46 89 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-discussion){--tw-bg-opacity: 1;background-color:rgb(67 94 138 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone-panel){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-70){--tw-bg-opacity: .7}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:from-bg-dark){--tw-gradient-from: #132e59 var(--tw-gradient-from-position);--tw-gradient-to: rgb(19 46 89 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:from-bg-dark-tone){--tw-gradient-from: #25477d var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 71 125 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:via-bg-dark){--tw-gradient-to: rgb(19 46 89 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #132e59 var(--tw-gradient-via-position), var(--tw-gradient-to)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:fill-white){fill:#fff}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\: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)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-offset-gray-700){--tw-ring-offset-color: #374151}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:scrollbar-track-bg-dark){--scrollbar-track: #132e59 !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: #4367a3 !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(40 68 113 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-primary:hover){--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-bg-dark-tone:hover){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary:hover){--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone):hover{--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:fill-primary:hover){fill:#0e8ef0}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:scrollbar-thumb-primary){--scrollbar-thumb-hover: #0e8ef0 !important}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-secondary:focus){--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-secondary:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-gray-700:focus){--tw-ring-offset-color: #374151}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:my-2{margin-top:.5rem;margin-bottom:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-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))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} +*/.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}.hovered{transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transform:scale(1.1)}.active{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;pointer-events:all}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:250px;background-color:#fff;z-index:1000;display:none}.settings-button{cursor:pointer;padding:10px;border:1px solid #ddd;border-radius:5px;color:#333;font-size:14px}.settings-button:hover{background-color:#eee}.settings-button:active{background-color:#ddd}.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}.scrollbar[data-v-b19a05a8]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar{width:8px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.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}.selected-choice{background-color:#bde4ff}.heartbeat-text[data-v-e34a1409]{font-size:24px;animation:pulsate-e34a1409 1.5s infinite}@keyframes pulsate-e34a1409{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-e34a1409],.list-enter-active[data-v-e34a1409],.list-leave-active[data-v-e34a1409]{transition:all .5s ease}.list-enter-from[data-v-e34a1409]{transform:translatey(-30px)}.list-leave-to[data-v-e34a1409]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e34a1409]{position:absolute}.bounce-enter-active[data-v-e34a1409]{animation:bounce-in-e34a1409 .5s}.bounce-leave-active[data-v-e34a1409]{animation:bounce-in-e34a1409 .5s reverse}@keyframes bounce-in-e34a1409{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-e34a1409]{background-color:#0ff}.hover[data-v-e34a1409]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-e34a1409]{font-weight:700}.collapsible-section{cursor:pointer;margin-bottom:10px;font-weight:700}.collapsible-section:hover{color:#1a202c}.collapsible-section .toggle-icon{margin-right:.25rem}.collapsible-section .toggle-icon i{color:#4a5568}.collapsible-section .toggle-icon i:hover{color:#1a202c}.json-viewer{max-height:300px;max-width:700px;flex:auto;overflow-y:auto;padding:10px;background-color:#f1f1f1;border:1px solid #ccc;border-radius:4px}.json-viewer .toggle-icon{cursor:pointer;margin-right:.25rem}.json-viewer .toggle-icon i{color:#4a5568}.json-viewer .toggle-icon i:hover{color:#1a202c}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}.bounce-enter-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s}.bounce-leave-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s reverse}@keyframes bounce-in-d16a58b9{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-52cfa09c]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-52cfa09c]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-52cfa09c]{top:calc(-100% - 2rem)}.list-move[data-v-78f521f6],.list-enter-active[data-v-78f521f6],.list-leave-active[data-v-78f521f6]{transition:all .5s ease}.list-enter-from[data-v-78f521f6]{transform:translatey(-30px)}.list-leave-to[data-v-78f521f6]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-78f521f6]{position:absolute}.slide-right-enter-active[data-v-00bcb9ec],.slide-right-leave-active[data-v-00bcb9ec]{transition:transform .3s ease}.slide-right-enter[data-v-00bcb9ec],.slide-right-leave-to[data-v-00bcb9ec]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-00bcb9ec]{animation:fade-and-fly-enter-00bcb9ec .5s ease}.fade-and-fly-leave-active[data-v-00bcb9ec]{animation:fade-and-fly-leave-00bcb9ec .5s ease}@keyframes fade-and-fly-enter-00bcb9ec{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-00bcb9ec{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-00bcb9ec],.list-enter-active[data-v-00bcb9ec],.list-leave-active[data-v-00bcb9ec]{transition:all .5s ease}.list-enter-from[data-v-00bcb9ec]{transform:translatey(-30px)}.list-leave-to[data-v-00bcb9ec]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-00bcb9ec]{position:absolute}.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}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{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:white;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}html{scroll-behavior:smooth}@font-face{font-family:Roboto;src:url(/assets/Roboto-Regular-7277cfb8.ttf) format("truetype")}@font-face{font-family:PTSans;src:url(/assets/PTSans-Regular-23b91352.ttf) format("truetype")}*,: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: }::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: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-7{left:1.75rem}.left-9{left:2.25rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.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}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.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-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-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}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.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-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-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-6{max-height:1.5rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[900px\]{min-height:900px}.min-h-full{min-height:100%}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-4\/6{width:66.666667%}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.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-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-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.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-\[23rem\]{max-width:23rem}.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-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}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-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-75{--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))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,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))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.-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-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))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{--tw-border-opacity: 1;border-color:rgb(19 46 89 / 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{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.border-primary-light{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(240 112 14 / var(--tw-bg-opacity))}.bg-bg-dark-tone-panel{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}.bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(226 237 255 / var(--tw-bg-opacity))}.bg-bg-light-discussion{--tw-bg-opacity: 1;background-color:rgb(197 216 248 / var(--tw-bg-opacity))}.bg-bg-light-tone{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.bg-bg-light-tone-panel{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / 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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.bg-primary-light{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(15 217 116 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: #e2edff var(--tw-gradient-from-position);--tw-gradient-to: rgb(226 237 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: #b9d2f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(185 210 247 / 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-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-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(226 237 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2edff var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-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%}.fill-blue-600{fill:#1c64f2}.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:#0fd974}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-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}.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-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;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}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / 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-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-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-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{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-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-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))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale-0{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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:auto}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: #e2edff !important}.scrollbar-track-bg-light-tone{--scrollbar-track: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: #8fb5ef !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}.odd\:bg-bg-light-tone:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.even\:bg-bg-light-discussion-odd:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(214 231 255 / var(--tw-bg-opacity))}.even\:bg-bg-light-tone-panel:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.group\/avatar:hover .group-hover\/avatar\:visible,.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-y-10{--tw-translate-y: -2.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))}.group:hover .group-hover\:border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-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\/avatar:hover .group-hover\/avatar\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:block:hover{display:block}.hover\:h-8:hover{height:2rem}.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-95:hover{--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))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.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-primary:hover{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.hover\:border-primary-light:hover{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.hover\:border-secondary:hover{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.hover\:bg-bg-light-tone:hover{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.hover\:bg-bg-light-tone-panel:hover{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-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-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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.hover\:bg-primary-light:hover{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:fill-primary:hover{fill:#0e8ef0}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(14 142 240 / 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-secondary:hover{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: #0e8ef0 !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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-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-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}.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))}.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: #0fd974 !important}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){--tw-border-opacity: 1;border-color:rgb(226 237 255 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){--tw-bg-opacity: 1;background-color:rgb(19 46 89 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-discussion){--tw-bg-opacity: 1;background-color:rgb(67 94 138 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone-panel){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-70){--tw-bg-opacity: .7}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:from-bg-dark){--tw-gradient-from: #132e59 var(--tw-gradient-from-position);--tw-gradient-to: rgb(19 46 89 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:from-bg-dark-tone){--tw-gradient-from: #25477d var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 71 125 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:via-bg-dark){--tw-gradient-to: rgb(19 46 89 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #132e59 var(--tw-gradient-via-position), var(--tw-gradient-to)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:fill-white){fill:#fff}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\: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)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-offset-gray-700){--tw-ring-offset-color: #374151}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:scrollbar-track-bg-dark){--scrollbar-track: #132e59 !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: #4367a3 !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(40 68 113 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-primary:hover){--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-bg-dark-tone:hover){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary:hover){--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone):hover{--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:fill-primary:hover){fill:#0e8ef0}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:scrollbar-thumb-primary){--scrollbar-thumb-hover: #0e8ef0 !important}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-secondary:focus){--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-secondary:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-gray-700:focus){--tw-ring-offset-color: #374151}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:my-2{margin-top:.5rem;margin-bottom:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-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))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/assets/index-c1cddf3b.js b/web/dist/assets/index-5ced427f.js similarity index 97% rename from web/dist/assets/index-c1cddf3b.js rename to web/dist/assets/index-5ced427f.js index 2642ad19..d4a2f5cf 100644 --- a/web/dist/assets/index-c1cddf3b.js +++ b/web/dist/assets/index-5ced427f.js @@ -93,7 +93,7 @@ License: MIT `:"\r"}(X,O)),P=!1,x.delimiter)N(x.delimiter)&&(x.delimiter=x.delimiter(X),Z.meta.delimiter=x.delimiter);else{var F=function(se,te,be,xe,B){var ae,ne,re,w;B=B||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var A=0;A=I)return Ge(!0)}else for(G=L,L++;;){if((G=K.indexOf(y,G+1))===-1)return le||de.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:j.length,index:L}),Ee();if(G===Z-1)return Ee(K.substring(L,G).replace(A,y));if(y!==z||K[G+1]!==z){if(y===z||G===0||K[G-1]!==z){re!==-1&&re=I)return Ge(!0);break}de.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:j.length,index:L}),G++}}else G++}return Ee();function ee(Me){j.push(Me),fe=L}function ve(Me){var tt=0;if(Me!==-1){var We=K.substring(G+1,Me);We&&We.trim()===""&&(tt=We.length)}return tt}function Ee(Me){return le||(Me===void 0&&(Me=K.substring(L)),X.push(Me),L=Z,ee(X),ye&&et()),Ge()}function Ie(Me){L=Me,ee(X),X=[],w=K.indexOf(P,L)}function Ge(Me){return{data:j,errors:de,meta:{delimiter:R,linebreak:P,aborted:Y,truncated:!!Me,cursor:fe+(q||0)}}}function et(){W(Ge()),j=[],de=[]}},this.abort=function(){Y=!0},this.getCharIndex=function(){return L}}function b(x){var y=x.data,R=o[y.workerId],P=!1;if(y.error)R.userError(y.error,y.file);else if(y.results&&y.results.data){var k={abort:function(){P=!0,S(y.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(N(R.userStep)){for(var W=0;Wn.text()).then(n=>{const{data:e}=yXe.parse(n,{header:!0});console.log("Recovered data"),console.log(e),this.faqs=e}).catch(n=>{console.error("Error loading FAQs:",n)})},parseMultiline(n){return n.replace(/\n/g,"
")}}},pr=n=>(Gs("data-v-b19a05a8"),n=n(),zs(),n),TXe={class:"container flex-row mx-auto p-4 bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-1 md:grid-cols-2 gap-4"},xXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"About Lord of large Language Models",-1)),CXe={class:"mb-4"},RXe=pr(()=>_("p",null,[$e("Discord link: "),_("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/YgnaFMAQ"},"https://discord.gg/YgnaFMAQ")],-1)),AXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"Frequently Asked Questions",-1)),wXe={class:"list-disc pl-4"},OXe={class:"text-xl font-bold mb-1"},NXe=["innerHTML"],MXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"Contact Us",-1)),IXe=pr(()=>_("p",{class:"mb-4"},"If you have any further questions or need assistance, feel free to reach out to me.",-1)),DXe=pr(()=>_("p",null,[$e("Discord link: "),_("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/YgnaFMAQ"},"https://discord.gg/YgnaFMAQ")],-1)),LXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"Credits",-1)),kXe=pr(()=>_("p",{class:"mb-4"},[$e("This project is developed by "),_("span",{class:"font-bold"},"ParisNeo"),$e(" With help from the community.")],-1)),PXe=pr(()=>_("p",{class:"mb-4"},[_("span",{class:"font-bold"},[_("a",{href:"https://github.com/ParisNeo/lollms-webui/graphs/contributors"},"Check out the full list of developers here and show them some love.")])],-1)),UXe=["href"];function FXe(n,e,t,i,r,s){const o=St("Card");return M(),D("div",TXe,[Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[xXe,_("p",CXe," Lollms version "+me(s.version),1),RXe]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[AXe,_("ul",wXe,[(M(!0),D(Xe,null,gt(r.faqs,(a,l)=>(M(),D("li",{key:l},[_("h3",OXe,me(a.question),1),_("p",{class:"mb-4",innerHTML:s.parseMultiline(a.answer)},null,8,NXe)]))),128))])]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[MXe,IXe,DXe]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[LXe,kXe,PXe,_("p",null,[$e("Check out the project on "),_("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:r.githubLink,target:"_blank",rel:"noopener noreferrer"},"GitHub",8,UXe),$e(".")])]),_:1})])}const BXe=ft(vXe,[["render",FXe],["__scopeId","data-v-b19a05a8"]]);function Oi(n,e=!0,t=1){const i=e?1e3:1024;if(Math.abs(n)=i&&s{Fe.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected"),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ue(()=>{Fe.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},zXe={class:"menu-container"},VXe=["title"],HXe=["src"],qXe=["data-feather"],YXe={key:2,class:"w-5 h-5"},$Xe={key:3,"data-feather":"menu"},WXe={class:"flex-grow menu-ul"},KXe=["onClick"],jXe={key:0,"data-feather":"check"},QXe=["src","alt"],XXe=["data-feather"],ZXe={key:3,class:"menu-icon"};function JXe(n,e,t,i,r,s){return M(),D("div",zXe,[_("button",{onClick:e[0]||(e[0]=Ae((...o)=>s.toggleMenu&&s.toggleMenu(...o),["prevent"])),title:t.title,class:Ke([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(M(),D("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,HXe)):t.icon&&t.icon.includes("feather")?(M(),D("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,qXe)):t.icon&&t.icon.includes("#")?(M(),D("p",YXe,me(t.icon.split("#")[1]),1)):(M(),D("i",$Xe))],10,VXe),Le(Po,{name:"slide"},{default:lt(()=>[r.isMenuOpen?(M(),D("div",{key:0,class:"menu-list flex-grow",style:un(r.menuPosition),ref:"menu"},[_("ul",WXe,[(M(!0),D(Xe,null,gt(t.commands,(o,a)=>(M(),D("li",{key:a,onClick:Ae(l=>s.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(M(),D("i",jXe)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(M(),D("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,QXe)):Q("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(M(),D("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,XXe)):(M(),D("span",ZXe)),_("span",null,me(o.name),1)],8,KXe))),128))])],4)):Q("",!0)]),_:1})])}const kl=ft(GXe,[["render",JXe]]),eZe={components:{InteractiveMenu:kl},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(){Ue(()=>{Fe.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return Oi(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?Ti:this.model.icon},defaultImg(n){n.target.src=Ti},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n=!1){this.onSelected(this,n),this.model.selected=!0,Ue(()=>{Fe.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Uninstall":"Install",icon:"feather:settings",is_file:!1,value:this.toggleInstall},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return Oi(this.speed)},total_size_computed(){return Oi(this.total_size)},downloaded_size_computed(){return Oi(this.downloaded_size)}},watch:{linkNotValid(){Ue(()=>{Fe.replace()})}}},tZe=["title"],nZe={key:0,class:"flex flex-row"},iZe={class:"max-w-[300px] overflow-x-auto"},rZe={class:"flex gap-3 items-center grow"},sZe=["href"],oZe=["src"],aZe={class:"flex-1 overflow-hidden"},lZe={class:"font-bold font-large text-lg truncate"},cZe={key:1,class:"flex items-center flex-row gap-2 my-1"},dZe={class:"flex grow items-center"},uZe=_("i",{"data-feather":"box",class:"w-5"},null,-1),_Ze=_("span",{class:"sr-only"},"Custom model / local model",-1),pZe=[uZe,_Ze],hZe=_("span",{class:"sr-only"},"Remove",-1),fZe={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"},mZe={class:"relative flex flex-col items-center justify-center flex-grow h-full"},gZe=_("div",{role:"status",class:"justify-center"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1),EZe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},bZe={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},SZe={class:"flex justify-between mb-1"},yZe=_("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),vZe={class:"text-sm font-medium text-blue-700 dark:text-white"},TZe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},xZe={class:"flex justify-between mb-1"},CZe={class:"text-base font-medium text-blue-700 dark:text-white"},RZe={class:"text-sm font-medium text-blue-700 dark:text-white"},AZe={class:"flex flex-grow"},wZe={class:"flex flex-row flex-grow gap-3"},OZe={class:"p-2 text-center grow"},NZe={key:3},MZe={class:"flex flex-row items-center gap-3"},IZe=["src"],DZe={class:"font-bold font-large text-lg truncate"},LZe=_("div",{class:"grow"},null,-1),kZe={class:"flex items-center flex-row-reverse gap-2 my-1"},PZe={class:"flex flex-row items-center"},UZe={key:0,class:"text-base text-red-600 flex items-center mt-1"},FZe=_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),BZe=["title"],GZe={class:""},zZe={class:"flex flex-row items-center"},VZe=_("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),HZe=_("b",null,"Card: ",-1),qZe=["href","title"],YZe=_("div",{class:"grow"},null,-1),$Ze=_("i",{"data-feather":"clipboard",class:"w-5"},null,-1),WZe=[$Ze],KZe={class:"flex items-center"},jZe=_("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),QZe=_("b",null,"File size: ",-1),XZe={class:"flex items-center"},ZZe=_("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),JZe=_("b",null,"License: ",-1),eJe={key:0,class:"flex items-center"},tJe=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),nJe=_("b",null,"quantizer: ",-1),iJe=["href"],rJe={class:"flex items-center"},sJe=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),oJe=_("b",null,"Model creator: ",-1),aJe=["href"],lJe={class:"flex items-center"},cJe=_("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),dJe=_("b",null,"Release date: ",-1),uJe={class:"flex items-center"},_Je=_("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),pJe=_("b",null,"Category: ",-1),hJe=["href"];function fJe(n,e,t,i,r,s){const o=St("InteractiveMenu");return M(),D("div",{class:Ke(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",s.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=Ae(a=>s.toggleSelected(),["prevent"]))},[t.model.isCustomModel?(M(),D("div",nZe,[_("div",iZe,[_("div",rZe,[_("a",{href:t.model.model_creator_link,target:"_blank"},[_("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,oZe)],8,sZe),_("div",aZe,[_("h3",lZe,me(t.model.name),1)])])])])):Q("",!0),t.model.isCustomModel?(M(),D("div",cZe,[_("div",dZe,[_("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]=Ae(()=>{},["stop"]))},pZe),$e(" Custom model ")]),_("div",null,[t.model.isInstalled?(M(),D("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=Ae((...a)=>s.toggleInstall&&s.toggleInstall(...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(" Uninstall "),hZe])):Q("",!0)])])):Q("",!0),r.installing?(M(),D("div",fZe,[_("div",mZe,[gZe,_("div",EZe,[_("div",bZe,[_("div",SZe,[yZe,_("span",vZe,me(Math.floor(r.progress))+"%",1)]),_("div",TZe,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un({width:r.progress+"%"})},null,4)]),_("div",xZe,[_("span",CZe,"Download speed: "+me(s.speed_computed)+"/s",1),_("span",RZe,me(s.downloaded_size_computed)+"/"+me(s.total_size_computed),1)])])]),_("div",AZe,[_("div",wZe,[_("div",OZe,[_("button",{onClick:e[3]||(e[3]=Ae((...a)=>s.toggleCancelInstall&&s.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):Q("",!0),t.model.isCustomModel?Q("",!0):(M(),D("div",NZe,[_("div",MZe,[_("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[4]||(e[4]=a=>s.defaultImg(a)),class:Ke(["w-10 h-10 rounded-lg object-fill",r.linkNotValid?"grayscale":""])},null,42,IZe),_("h3",DZe,me(t.model.name),1),LZe,Le(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),_("div",kZe,[_("div",PZe,[r.linkNotValid?(M(),D("div",UZe,[FZe,$e(" Link is not valid ")])):Q("",!0)])]),_("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[_("div",GZe,[_("div",zZe,[VZe,HZe,_("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=Ae(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:r.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,qZe),YZe,_("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]=Ae(a=>s.toggleCopyLink(),["stop"]))},WZe)]),_("div",KZe,[_("div",{class:Ke(["flex flex-shrink-0 items-center",r.linkNotValid?"text-red-600":""])},[jZe,QZe,$e(" "+me(s.fileSize),1)],2)]),_("div",XZe,[ZZe,JZe,$e(" "+me(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(M(),D("div",eJe,[tJe,nJe,_("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=Ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},me(t.model.quantizer),9,iJe)])):Q("",!0),_("div",rJe,[sJe,oJe,_("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=Ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},me(t.model.model_creator),9,aJe)]),_("div",lJe,[cJe,dJe,$e(" "+me(t.model.last_commit_time),1)]),_("div",uJe,[_Je,pJe,_("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=Ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},me(t.model.category),9,hJe)])])],8,BZe)]))],10,tZe)}const mJe=ft(eZe,[["render",fJe]]),gJe={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}}},EJe={class:"p-4"},bJe={class:"flex items-center mb-4"},SJe=["src"],yJe={class:"text-lg font-semibold"},vJe=_("strong",null,"Author:",-1),TJe=_("strong",null,"Description:",-1),xJe=_("strong",null,"Category:",-1),CJe={key:0},RJe=_("strong",null,"Disclaimer:",-1),AJe=_("strong",null,"Conditioning Text:",-1),wJe=_("strong",null,"AI Prefix:",-1),OJe=_("strong",null,"User Prefix:",-1),NJe=_("strong",null,"Antiprompts:",-1);function MJe(n,e,t,i,r,s){return M(),D("div",EJe,[_("div",bJe,[_("img",{src:r.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,SJe),_("h2",yJe,me(r.personalityName),1)]),_("p",null,[vJe,$e(" "+me(r.personalityAuthor),1)]),_("p",null,[TJe,$e(" "+me(r.personalityDescription),1)]),_("p",null,[xJe,$e(" "+me(r.personalityCategory),1)]),r.disclaimer?(M(),D("p",CJe,[RJe,$e(" "+me(r.disclaimer),1)])):Q("",!0),_("p",null,[AJe,$e(" "+me(r.conditioningText),1)]),_("p",null,[wJe,$e(" "+me(r.aiPrefix),1)]),_("p",null,[OJe,$e(" "+me(r.userPrefix),1)]),_("div",null,[NJe,_("ul",null,[(M(!0),D(Xe,null,gt(r.antipromptsList,o=>(M(),D("li",{key:o.id},me(o.text),1))),128))])]),_("button",{onClick:e[0]||(e[0]=o=>r.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),r.editMode?(M(),D("button",{key:1,onClick:e[1]||(e[1]=(...o)=>s.commitChanges&&s.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):Q("",!0)])}const IJe=ft(gJe,[["render",MJe]]),Pl="/assets/logo-9d653710.svg",DJe="/",LJe={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function},components:{InteractiveMenu:kl},data(){return{isMounted:!1,name:this.personality.name}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Ue(()=>{Fe.replace()})},methods:{getImgUrl(){return DJe+this.personality.avatar},defaultImg(n){n.target.src=Pl},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Ue(()=>{Fe.replace()})}}},kJe=["title"],PJe={class:"flex flex-row items-center flex-shrink-0 gap-3"},UJe=["src"],FJe=_("i",{"data-feather":"clipboard",class:"w-5"},null,-1),BJe=[FJe],GJe={class:""},zJe={class:""},VJe={class:"flex items-center"},HJe=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),qJe=_("b",null,"Author: ",-1),YJe={class:"flex items-center"},$Je=_("i",{"data-feather":"git-commit",class:"w-5 m-1"},null,-1),WJe=_("b",null,"Version: ",-1),KJe={key:0,class:"flex items-center"},jJe=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),QJe=_("b",null,"Languages: ",-1),XJe=["selected"],ZJe={key:1,class:"flex items-center"},JJe=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),eet=_("b",null,"Language: ",-1),tet={class:"flex items-center"},net=_("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),iet=_("b",null,"Category: ",-1),ret=_("div",{class:"flex items-center"},[_("i",{"data-feather":"info",class:"w-5 m-1"}),_("b",null,"Description: "),_("br")],-1),set=["title","innerHTML"],oet={class:"rounded bg-blue-300"},aet=_("i",{"data-feather":"check"},null,-1),cet=_("span",{class:"sr-only"},"Select",-1),det=[aet,cet],uet=_("i",{"data-feather":"send",class:"w-5"},null,-1),_et=_("span",{class:"sr-only"},"Talk",-1),pet=[uet,_et];function het(n,e,t,i,r,s){const o=St("InteractiveMenu");return M(),D("div",{class:Ke(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",s.selected_computed?"border-2 border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:t.personality.installed?"":"Not installed"},[_("div",{class:Ke(t.personality.installed?"":"border-red-500")},[_("div",PJe,[_("img",{onClick:e[0]||(e[0]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),ref:"imgElement",src:s.getImgUrl(),onError:e[1]||(e[1]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,UJe),_("h3",{onClick:e[2]||(e[2]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},me(t.personality.name),1),_("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[3]||(e[3]=Ae(a=>s.toggleCopyLink(),["stop"]))},BJe)]),_("div",GJe,[_("div",zJe,[_("div",VJe,[HJe,qJe,$e(" "+me(t.personality.author),1)]),_("div",YJe,[$Je,WJe,$e(" "+me(t.personality.version),1)]),t.personality.languages&&t.select_language?(M(),D("div",KJe,[jJe,QJe,r.isMounted?Q("",!0):Re((M(),D("select",{key:0,id:"languages","onUpdate:modelValue":e[4]||(e[4]=a=>t.personality.language=a),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"},[(M(!0),D(Xe,null,gt(t.personality.languages,(a,l)=>(M(),D("option",{key:l,selected:a==t.personality.languages[0]},me(a),9,XJe))),128))],512)),[[$n,t.personality.language]])])):Q("",!0),t.personality.language?(M(),D("div",ZJe,[JJe,eet,$e(" "+me(t.personality.language),1)])):Q("",!0),_("div",tet,[net,iet,$e(" "+me(t.personality.category),1)])]),ret,_("p",{class:"mx-1 opacity-80 h-20 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",title:t.personality.description,innerHTML:t.personality.description},null,8,set)]),_("div",oet,[r.isMounted?(M(),D("button",{key:0,type:"button",title:"Select",onClick:[e[5]||(e[5]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),e[6]||(e[6]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},det)):Q("",!0),r.isMounted?(M(),D("button",{key:1,type:"button",title:"Talk",onClick:[e[7]||(e[7]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),e[8]||(e[8]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},pet)):Q("",!0),Le(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,kJe)}const vw=ft(LJe,[["render",het]]);const fet={props:{code:String},data(){return{evaluatedCode:"",componentKey:0}},watch:{code:{handler(n){console.log("Code changed"),this.evaluateScriptTags(n),this.componentKey++},immediate:!0}},methods:{evaluateScriptTags(n){const e=document.createElement("div");e.innerHTML=n,e.querySelectorAll("script").forEach(i=>{const r=document.createElement("script");r.textContent=i.textContent,document.body.appendChild(r),document.body.removeChild(r)}),this.evaluatedCode=e.innerHTML,console.log("evaluated code: "+this.evaluatedCode)}}},met=["innerHTML"];function get(n,e,t,i,r,s){return M(),D("div",{innerHTML:r.evaluatedCode,key:r.componentKey},null,8,met)}const Tw=ft(fet,[["render",get]]),Eet="/",bet={components:{DynamicUIRenderer:Tw},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ue(()=>{Fe.replace()})},methods:{getImgUrl(){return Eet+this.binding.icon},defaultImg(n){n.target.src=Pl},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(){Ue(()=>{Fe.replace()})}}},yet=["title"],vet={class:"flex flex-row items-center gap-3"},Tet=["src"],xet={class:"font-bold font-large text-lg truncate"},Cet=_("div",{class:"grow"},null,-1),Ret={class:"flex-none gap-1"},Aet=_("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),wet=_("span",{class:"sr-only"},"Help",-1),Oet=[Aet,wet],Net={class:"flex items-center flex-row-reverse gap-2 my-1"},Met=_("span",{class:"sr-only"},"Click to install",-1),Iet=_("span",{class:"sr-only"},"Reinstall",-1),Det=_("span",{class:"sr-only"},"UnInstall",-1),Let=_("span",{class:"sr-only"},"Settings",-1),ket={class:""},Pet={class:""},Uet={class:"flex items-center"},Fet=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Bet=_("b",null,"Author: ",-1),Get={class:"flex items-center"},zet=_("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Vet=_("b",null,"Folder: ",-1),Het={class:"flex items-center"},qet=_("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Yet=_("b",null,"Version: ",-1),$et={class:"flex items-center"},Wet=_("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Ket=_("b",null,"Link: ",-1),jet=["href"],Qet=_("div",{class:"flex items-center"},[_("i",{"data-feather":"info",class:"w-5 m-1"}),_("b",null,"Description: "),_("br")],-1),Xet=["title","innerHTML"];function Zet(n,e,t,i,r,s){const o=St("DynamicUIRenderer");return M(),D("div",{class:Ke(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[7]||(e[7]=Ae((...a)=>s.toggleSelected&&s.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[_("div",null,[_("div",vet,[_("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Tet),_("h3",xet,me(t.binding.name),1),Cet,_("div",Ret,[t.selected?(M(),D("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>s.toggleReloadBinding&&s.toggleReloadBinding(...a)),e[2]||(e[2]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Oet)):Q("",!0)])]),_("div",Net,[t.binding.installed?Q("",!0):(M(),D("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=Ae((...a)=>s.toggleInstall&&s.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[$e(" Install "),Met])),t.binding.installed?(M(),D("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=Ae((...a)=>s.toggleReinstall&&s.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},[$e(" Reinstall "),Iet])):Q("",!0),t.binding.installed?(M(),D("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=Ae((...a)=>s.toggleUnInstall&&s.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[$e(" Uninstall "),Det])):Q("",!0),t.selected?(M(),D("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=Ae((...a)=>s.toggleSettings&&s.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[$e(" Settings "),Let])):Q("",!0)]),t.binding.ui?(M(),Qt(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):Q("",!0),_("div",ket,[_("div",Pet,[_("div",Uet,[Fet,Bet,$e(" "+me(t.binding.author),1)]),_("div",Get,[zet,Vet,$e(" "+me(t.binding.folder),1)]),_("div",Het,[qet,Yet,$e(" "+me(t.binding.version),1)]),_("div",$et,[Wet,Ket,_("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},me(t.binding.link),9,jet)])]),Qet,_("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Xet)])])],10,yet)}const Jet=ft(bet,[["render",Zet]]),ett="/assets/extension-59119348.png",ttt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},ntt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},itt={class:"relative w-full max-w-md max-h-full"},rtt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},stt=_("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),ott=_("span",{class:"sr-only"},"Close modal",-1),att=[stt,ott],ltt={class:"p-4 text-center"},ctt=_("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"},[_("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),dtt={class:"p-4 text-center mx-auto mb-4"},utt=_("label",{class:"mr-2"},"Model path",-1);function _tt(n,e,t,i,r,s){return r.show?(M(),D("div",ntt,[_("div",itt,[_("div",rtt,[_("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},att),_("div",ltt,[ctt,_("div",dtt,[utt,Re(_("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>r.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[Ze,r.model_path]])]),_("button",{onClick:e[2]||(e[2]=o=>s.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),_("button",{onClick:e[3]||(e[3]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):Q("",!0)}const ptt=ft(ttt,[["render",_tt]]);const htt={props:{show:{type:Boolean,default:!1,required:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return console.log("choice:",n),typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const n=this.newFilename.trim();n!==""&&(this.choices.push(n),this.newFilename="",this.selectChoice(n)),this.showInput=!1},removeChoice(n,e){this.choices.splice(e,1),n===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",n)}}},ftt={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"},mtt={class:"bg-white dark:bg-gray-800 rounded-lg p-6 w-96"},gtt={class:"text-xl font-semibold mb-4"},Ett={class:"h-48 overflow-y-auto"},btt=["onClick"],Stt={class:"font-bold"},ytt=_("br",null,null,-1),vtt={key:0,class:"text-xs text-gray-500"},Ttt=["onClick"],xtt={key:0,class:"mt-4"},Ctt={class:"flex justify-end mt-4"},Rtt=["disabled"];function Att(n,e,t,i,r,s){return M(),Qt(Po,{name:"fade"},{default:lt(()=>[t.show?(M(),D("div",ftt,[_("div",mtt,[_("h2",gtt,me(t.title),1),_("div",Ett,[_("ul",null,[(M(!0),D(Xe,null,gt(t.choices,(o,a)=>(M(),D("li",{key:a,onClick:l=>s.selectChoice(o),class:Ke([{"selected-choice":o===r.selectedChoice},"py-2 px-4 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700"])},[_("span",Stt,me(s.displayName(o)),1),ytt,o.size?(M(),D("span",vtt,me(s.formatSize(o.size)),1)):Q("",!0),t.can_remove?(M(),D("button",{key:1,onClick:l=>s.removeChoice(o,a),class:"ml-2 text-red-500 hover:text-red-600"}," X ",8,Ttt)):Q("",!0)],10,btt))),128))])]),r.showInput?(M(),D("div",xtt,[Re(_("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>r.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 p-2 rounded-lg w-full"},null,512),[[Ze,r.newFilename]]),_("button",{onClick:e[1]||(e[1]=(...o)=>s.addNewFilename&&s.addNewFilename(...o)),class:"mt-2 py-2 px-4 bg-green-500 hover:bg-green-600 text-white rounded-lg transition duration-300"}," Add ")])):Q("",!0),_("div",Ctt,[_("button",{onClick:e[2]||(e[2]=(...o)=>s.closeDialog&&s.closeDialog(...o)),class:"py-2 px-4 mr-2 bg-red-500 hover:bg-red-600 text-white rounded-lg transition duration-300"}," Cancel "),_("button",{onClick:e[3]||(e[3]=(...o)=>s.validateChoice&&s.validateChoice(...o)),class:Ke([{"bg-gray-400 cursor-not-allowed":!r.selectedChoice,"bg-blue-500 hover:bg-blue-600":r.selectedChoice,"text-white":r.selectedChoice,"text-gray-500":!r.selectedChoice},"py-2 px-4 rounded-lg transition duration-300"]),disabled:!r.selectedChoice}," Validate ",10,Rtt),_("button",{onClick:e[4]||(e[4]=(...o)=>s.toggleInput&&s.toggleInput(...o)),class:"py-2 px-4 ml-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition duration-300"}," Add New ")])])])):Q("",!0)]),_:1})}const pE=ft(htt,[["render",Att]]),wtt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:0}},data(){return{selectedValue:this.defaultValue}},methods:{handleRadioChange(n){this.selectedValue!==null&&this.$emit("radio-selected",this.selectedValue,n)}}},Ott={class:"flex space-x-4"},Ntt=["value","onChange"],Mtt={class:"text-gray-700"};function Itt(n,e,t,i,r,s){return M(),D("div",Ott,[(M(!0),D(Xe,null,gt(t.radioOptions,(o,a)=>(M(),D("label",{key:o.value,class:"flex items-center space-x-2"},[Re(_("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedValue=l),onChange:l=>s.handleRadioChange(a),class:"text-blue-500 focus:ring-2 focus:ring-blue-200"},null,40,Ntt),[[mI,r.selectedValue]]),_("span",Mtt,me(o.label),1)]))),128))])}const Dtt=ft(wtt,[["render",Itt]]),Ltt="/",ktt={props:{extension:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function},components:{InteractiveMenu:kl},data(){return{isMounted:!1,name:this.extension.name}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.extension.isMounted,Ue(()=>{Fe.replace()})},methods:{getImgUrl(){return Ltt+this.extension.avatar},defaultImg(n){n.target.src=Pl},toggleTalk(){this.onTalk(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Ue(()=>{Fe.replace()})}}},Ptt=["title"],Utt={class:"flex flex-row items-center flex-shrink-0 gap-3"},Ftt=["src"],Btt={class:""},Gtt={class:""},ztt={class:"flex items-center"},Vtt=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Htt=_("b",null,"Author: ",-1),qtt={class:"flex items-center"},Ytt=_("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),$tt=_("b",null,"Based on: ",-1),Wtt={key:0,class:"flex items-center"},Ktt=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),jtt=_("b",null,"Languages: ",-1),Qtt=["selected"],Xtt={key:1,class:"flex items-center"},Ztt=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),Jtt=_("b",null,"Language: ",-1),ent={class:"flex items-center"},tnt=_("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),nnt=_("b",null,"Category: ",-1),int=_("div",{class:"flex items-center"},[_("i",{"data-feather":"info",class:"w-5 m-1"}),_("b",null,"Description: "),_("br")],-1),rnt=["title","innerHTML"],snt={class:"rounded bg-blue-300"},ont=_("i",{"data-feather":"check"},null,-1),ant=_("span",{class:"sr-only"},"Select",-1),lnt=[ont,ant],cnt=_("i",{"data-feather":"send",class:"w-5"},null,-1),dnt=_("span",{class:"sr-only"},"Talk",-1),unt=[cnt,dnt];function _nt(n,e,t,i,r,s){const o=St("InteractiveMenu");return M(),D("div",{class:Ke(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",s.selected_computed?"border-2 border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:t.extension.installed?"":"Not installed"},[_("div",{class:Ke(t.extension.installed?"":"border-red-500")},[_("div",Utt,[_("img",{onClick:e[0]||(e[0]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),ref:"imgElement",src:s.getImgUrl(),onError:e[1]||(e[1]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,Ftt),_("h3",{onClick:e[2]||(e[2]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},me(t.extension.name),1)]),_("div",Btt,[_("div",Gtt,[_("div",ztt,[Vtt,Htt,$e(" "+me(t.extension.author),1)]),_("div",qtt,[Ytt,$tt,$e(" "+me(t.extension.based_on),1)]),t.extension.languages&&t.select_language?(M(),D("div",Wtt,[Ktt,jtt,Re(_("select",{id:"languages","onUpdate:modelValue":e[3]||(e[3]=a=>t.extension.language=a),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"},[(M(!0),D(Xe,null,gt(t.extension.languages,(a,l)=>(M(),D("option",{key:l,selected:a==t.extension.languages[0]},me(a),9,Qtt))),128))],512),[[$n,t.extension.language]])])):Q("",!0),t.extension.language?(M(),D("div",Xtt,[Ztt,Jtt,$e(" "+me(t.extension.language),1)])):Q("",!0),_("div",ent,[tnt,nnt,$e(" "+me(t.extension.category),1)])]),int,_("p",{class:"mx-1 opacity-80 h-20 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",title:t.extension.description,innerHTML:t.extension.description},null,8,rnt)]),_("div",snt,[r.isMounted?(M(),D("button",{key:0,type:"button",title:"Select",onClick:[e[4]||(e[4]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),e[5]||(e[5]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},lnt)):Q("",!0),r.isMounted?(M(),D("button",{key:1,type:"button",title:"Talk",onClick:[e[6]||(e[6]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),e[7]||(e[7]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},unt)):Q("",!0),Le(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,Ptt)}const pnt=ft(ktt,[["render",_nt]]),hnt="/assets/gpu-df72bf63.svg";const fnt="/";Pe.defaults.baseURL="/";const mnt={components:{AddModelDialog:ptt,ModelEntry:mJe,PersonalityViewer:IJe,PersonalityEntry:vw,BindingEntry:Jet,ChoiceDialog:pE,Card:Ll,RadioOptions:Dtt,ExtensionEntry:pnt},data(){return{voices:[],voice_languages:["en","fr","es"],binding_changed:!1,SVGGPU:hnt,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}],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",extension_category:"bound_extensions",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],extensionsFiltererd:[],collapsedArr:[],all_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,ezc_collapsed:!0,mep_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:fnt,searchPersonality:"",searchExtension:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchExtensionInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){He.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{reinstallAudioService(){Pe.get("install_xtts").then(n=>{}).catch(n=>{console.error(n)})},getSeviceVoices(){Pe.get("list_voices").then(n=>{this.voices=n.data.voices}).catch(n=>{console.error(n)})},load_more_models(){this.models_zoo_initialLoadCount+10{Fe.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(n){this.$store.state.sort_type=n,this.updateModelsZoo(),console.log(`Selected sorting:${n}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(n){this.isLoading=!0,this.selectSortOption(n).then(()=>{this.isLoading=!1})},filter_installed(n){return console.log("filtering"),n.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let n=await this.api_get_req("check_update");this.has_updates=n.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(n){this.selected_variant=n},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(n){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let t="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:t},console.log("installing...",this.addModel);const i=r=>{if(console.log("received something"),r.status&&r.progress<=100){if(this.addModel=r,console.log("Progress",r),e.progress=r.progress,e.speed=r.speed,e.total_size=r.total_size,e.downloaded_size=r.downloaded_size,e.start_time=r.start_time,e.installing=!0,e.progress==100){const s=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[s].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),He.off("install_progress",i),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model: +`);var L=0,Y=!1;this.parse=function(K,q,le){if(typeof K!="string")throw new Error("Input must be a string");var Z=K.length,J=R.length,_e=P.length,he=k.length,ye=N(W),j=[],de=[],X=[],fe=L=0;if(!K)return Ge();if(x.header&&!q){var Oe=K.split(P)[0].split(R),O=[],F={},H=!1;for(var se in Oe){var te=Oe[se];N(x.transformHeader)&&(te=x.transformHeader(te,se));var be=te,xe=F[te]||0;for(0=I)return Ge(!0)}else for(G=L,L++;;){if((G=K.indexOf(y,G+1))===-1)return le||de.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:j.length,index:L}),Ee();if(G===Z-1)return Ee(K.substring(L,G).replace(A,y));if(y!==z||K[G+1]!==z){if(y===z||G===0||K[G-1]!==z){re!==-1&&re=I)return Ge(!0);break}de.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:j.length,index:L}),G++}}else G++}return Ee();function ee(Me){j.push(Me),fe=L}function ve(Me){var tt=0;if(Me!==-1){var We=K.substring(G+1,Me);We&&We.trim()===""&&(tt=We.length)}return tt}function Ee(Me){return le||(Me===void 0&&(Me=K.substring(L)),X.push(Me),L=Z,ee(X),ye&&et()),Ge()}function Ie(Me){L=Me,ee(X),X=[],w=K.indexOf(P,L)}function Ge(Me){return{data:j,errors:de,meta:{delimiter:R,linebreak:P,aborted:Y,truncated:!!Me,cursor:fe+(q||0)}}}function et(){W(Ge()),j=[],de=[]}},this.abort=function(){Y=!0},this.getCharIndex=function(){return L}}function b(x){var y=x.data,R=o[y.workerId],P=!1;if(y.error)R.userError(y.error,y.file);else if(y.results&&y.results.data){var k={abort:function(){P=!0,S(y.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(N(R.userStep)){for(var W=0;Wn.text()).then(n=>{const{data:e}=yXe.parse(n,{header:!0});console.log("Recovered data"),console.log(e),this.faqs=e}).catch(n=>{console.error("Error loading FAQs:",n)})},parseMultiline(n){return n.replace(/\n/g,"
")}}},pr=n=>(Gs("data-v-b19a05a8"),n=n(),zs(),n),TXe={class:"container flex-row mx-auto p-4 bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-1 md:grid-cols-2 gap-4"},xXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"About Lord of large Language Models",-1)),CXe={class:"mb-4"},RXe=pr(()=>_("p",null,[$e("Discord link: "),_("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/YgnaFMAQ"},"https://discord.gg/YgnaFMAQ")],-1)),AXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"Frequently Asked Questions",-1)),wXe={class:"list-disc pl-4"},OXe={class:"text-xl font-bold mb-1"},NXe=["innerHTML"],MXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"Contact Us",-1)),IXe=pr(()=>_("p",{class:"mb-4"},"If you have any further questions or need assistance, feel free to reach out to me.",-1)),DXe=pr(()=>_("p",null,[$e("Discord link: "),_("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/YgnaFMAQ"},"https://discord.gg/YgnaFMAQ")],-1)),LXe=pr(()=>_("h2",{class:"text-2xl font-bold mb-2"},"Credits",-1)),kXe=pr(()=>_("p",{class:"mb-4"},[$e("This project is developed by "),_("span",{class:"font-bold"},"ParisNeo"),$e(" With help from the community.")],-1)),PXe=pr(()=>_("p",{class:"mb-4"},[_("span",{class:"font-bold"},[_("a",{href:"https://github.com/ParisNeo/lollms-webui/graphs/contributors"},"Check out the full list of developers here and show them some love.")])],-1)),UXe=["href"];function FXe(n,e,t,i,r,s){const o=St("Card");return M(),D("div",TXe,[Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[xXe,_("p",CXe," Lollms version "+me(s.version),1),RXe]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[AXe,_("ul",wXe,[(M(!0),D(Xe,null,gt(r.faqs,(a,l)=>(M(),D("li",{key:l},[_("h3",OXe,me(a.question),1),_("p",{class:"mb-4",innerHTML:s.parseMultiline(a.answer)},null,8,NXe)]))),128))])]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[MXe,IXe,DXe]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[LXe,kXe,PXe,_("p",null,[$e("Check out the project on "),_("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:r.githubLink,target:"_blank",rel:"noopener noreferrer"},"GitHub",8,UXe),$e(".")])]),_:1})])}const BXe=ft(vXe,[["render",FXe],["__scopeId","data-v-b19a05a8"]]);function Oi(n,e=!0,t=1){const i=e?1e3:1024;if(Math.abs(n)=i&&s{Fe.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected"),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ue(()=>{Fe.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},zXe={class:"menu-container"},VXe=["title"],HXe=["src"],qXe=["data-feather"],YXe={key:2,class:"w-5 h-5"},$Xe={key:3,"data-feather":"menu"},WXe={class:"flex-grow menu-ul"},KXe=["onClick"],jXe={key:0,"data-feather":"check"},QXe=["src","alt"],XXe=["data-feather"],ZXe={key:3,class:"menu-icon"};function JXe(n,e,t,i,r,s){return M(),D("div",zXe,[_("button",{onClick:e[0]||(e[0]=Ae((...o)=>s.toggleMenu&&s.toggleMenu(...o),["prevent"])),title:t.title,class:Ke([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(M(),D("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,HXe)):t.icon&&t.icon.includes("feather")?(M(),D("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,qXe)):t.icon&&t.icon.includes("#")?(M(),D("p",YXe,me(t.icon.split("#")[1]),1)):(M(),D("i",$Xe))],10,VXe),Le(Po,{name:"slide"},{default:lt(()=>[r.isMenuOpen?(M(),D("div",{key:0,class:"menu-list flex-grow",style:un(r.menuPosition),ref:"menu"},[_("ul",WXe,[(M(!0),D(Xe,null,gt(t.commands,(o,a)=>(M(),D("li",{key:a,onClick:Ae(l=>s.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(M(),D("i",jXe)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(M(),D("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,QXe)):Q("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(M(),D("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,XXe)):(M(),D("span",ZXe)),_("span",null,me(o.name),1)],8,KXe))),128))])],4)):Q("",!0)]),_:1})])}const kl=ft(GXe,[["render",JXe]]),eZe={components:{InteractiveMenu:kl},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(){Ue(()=>{Fe.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return Oi(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?Ti:this.model.icon},defaultImg(n){n.target.src=Ti},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n=!1){this.onSelected(this,n),this.model.selected=!0,Ue(()=>{Fe.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Uninstall":"Install",icon:"feather:settings",is_file:!1,value:this.toggleInstall},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return Oi(this.speed)},total_size_computed(){return Oi(this.total_size)},downloaded_size_computed(){return Oi(this.downloaded_size)}},watch:{linkNotValid(){Ue(()=>{Fe.replace()})}}},tZe=["title"],nZe={key:0,class:"flex flex-row"},iZe={class:"max-w-[300px] overflow-x-auto"},rZe={class:"flex gap-3 items-center grow"},sZe=["href"],oZe=["src"],aZe={class:"flex-1 overflow-hidden"},lZe={class:"font-bold font-large text-lg truncate"},cZe={key:1,class:"flex items-center flex-row gap-2 my-1"},dZe={class:"flex grow items-center"},uZe=_("i",{"data-feather":"box",class:"w-5"},null,-1),_Ze=_("span",{class:"sr-only"},"Custom model / local model",-1),pZe=[uZe,_Ze],hZe=_("span",{class:"sr-only"},"Remove",-1),fZe={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"},mZe={class:"relative flex flex-col items-center justify-center flex-grow h-full"},gZe=_("div",{role:"status",class:"justify-center"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1),EZe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},bZe={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},SZe={class:"flex justify-between mb-1"},yZe=_("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),vZe={class:"text-sm font-medium text-blue-700 dark:text-white"},TZe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},xZe={class:"flex justify-between mb-1"},CZe={class:"text-base font-medium text-blue-700 dark:text-white"},RZe={class:"text-sm font-medium text-blue-700 dark:text-white"},AZe={class:"flex flex-grow"},wZe={class:"flex flex-row flex-grow gap-3"},OZe={class:"p-2 text-center grow"},NZe={key:3},MZe={class:"flex flex-row items-center gap-3"},IZe=["src"],DZe={class:"font-bold font-large text-lg truncate"},LZe=_("div",{class:"grow"},null,-1),kZe={class:"flex items-center flex-row-reverse gap-2 my-1"},PZe={class:"flex flex-row items-center"},UZe={key:0,class:"text-base text-red-600 flex items-center mt-1"},FZe=_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),BZe=["title"],GZe={class:""},zZe={class:"flex flex-row items-center"},VZe=_("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),HZe=_("b",null,"Card: ",-1),qZe=["href","title"],YZe=_("div",{class:"grow"},null,-1),$Ze=_("i",{"data-feather":"clipboard",class:"w-5"},null,-1),WZe=[$Ze],KZe={class:"flex items-center"},jZe=_("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),QZe=_("b",null,"File size: ",-1),XZe={class:"flex items-center"},ZZe=_("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),JZe=_("b",null,"License: ",-1),eJe={key:0,class:"flex items-center"},tJe=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),nJe=_("b",null,"quantizer: ",-1),iJe=["href"],rJe={class:"flex items-center"},sJe=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),oJe=_("b",null,"Model creator: ",-1),aJe=["href"],lJe={class:"flex items-center"},cJe=_("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),dJe=_("b",null,"Release date: ",-1),uJe={class:"flex items-center"},_Je=_("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),pJe=_("b",null,"Category: ",-1),hJe=["href"];function fJe(n,e,t,i,r,s){const o=St("InteractiveMenu");return M(),D("div",{class:Ke(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",s.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=Ae(a=>s.toggleSelected(),["prevent"]))},[t.model.isCustomModel?(M(),D("div",nZe,[_("div",iZe,[_("div",rZe,[_("a",{href:t.model.model_creator_link,target:"_blank"},[_("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,oZe)],8,sZe),_("div",aZe,[_("h3",lZe,me(t.model.name),1)])])])])):Q("",!0),t.model.isCustomModel?(M(),D("div",cZe,[_("div",dZe,[_("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]=Ae(()=>{},["stop"]))},pZe),$e(" Custom model ")]),_("div",null,[t.model.isInstalled?(M(),D("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=Ae((...a)=>s.toggleInstall&&s.toggleInstall(...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(" Uninstall "),hZe])):Q("",!0)])])):Q("",!0),r.installing?(M(),D("div",fZe,[_("div",mZe,[gZe,_("div",EZe,[_("div",bZe,[_("div",SZe,[yZe,_("span",vZe,me(Math.floor(r.progress))+"%",1)]),_("div",TZe,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un({width:r.progress+"%"})},null,4)]),_("div",xZe,[_("span",CZe,"Download speed: "+me(s.speed_computed)+"/s",1),_("span",RZe,me(s.downloaded_size_computed)+"/"+me(s.total_size_computed),1)])])]),_("div",AZe,[_("div",wZe,[_("div",OZe,[_("button",{onClick:e[3]||(e[3]=Ae((...a)=>s.toggleCancelInstall&&s.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):Q("",!0),t.model.isCustomModel?Q("",!0):(M(),D("div",NZe,[_("div",MZe,[_("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[4]||(e[4]=a=>s.defaultImg(a)),class:Ke(["w-10 h-10 rounded-lg object-fill",r.linkNotValid?"grayscale":""])},null,42,IZe),_("h3",DZe,me(t.model.name),1),LZe,Le(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),_("div",kZe,[_("div",PZe,[r.linkNotValid?(M(),D("div",UZe,[FZe,$e(" Link is not valid ")])):Q("",!0)])]),_("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[_("div",GZe,[_("div",zZe,[VZe,HZe,_("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=Ae(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:r.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,qZe),YZe,_("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]=Ae(a=>s.toggleCopyLink(),["stop"]))},WZe)]),_("div",KZe,[_("div",{class:Ke(["flex flex-shrink-0 items-center",r.linkNotValid?"text-red-600":""])},[jZe,QZe,$e(" "+me(s.fileSize),1)],2)]),_("div",XZe,[ZZe,JZe,$e(" "+me(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(M(),D("div",eJe,[tJe,nJe,_("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=Ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},me(t.model.quantizer),9,iJe)])):Q("",!0),_("div",rJe,[sJe,oJe,_("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=Ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},me(t.model.model_creator),9,aJe)]),_("div",lJe,[cJe,dJe,$e(" "+me(t.model.last_commit_time),1)]),_("div",uJe,[_Je,pJe,_("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=Ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},me(t.model.category),9,hJe)])])],8,BZe)]))],10,tZe)}const mJe=ft(eZe,[["render",fJe]]),gJe={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}}},EJe={class:"p-4"},bJe={class:"flex items-center mb-4"},SJe=["src"],yJe={class:"text-lg font-semibold"},vJe=_("strong",null,"Author:",-1),TJe=_("strong",null,"Description:",-1),xJe=_("strong",null,"Category:",-1),CJe={key:0},RJe=_("strong",null,"Disclaimer:",-1),AJe=_("strong",null,"Conditioning Text:",-1),wJe=_("strong",null,"AI Prefix:",-1),OJe=_("strong",null,"User Prefix:",-1),NJe=_("strong",null,"Antiprompts:",-1);function MJe(n,e,t,i,r,s){return M(),D("div",EJe,[_("div",bJe,[_("img",{src:r.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,SJe),_("h2",yJe,me(r.personalityName),1)]),_("p",null,[vJe,$e(" "+me(r.personalityAuthor),1)]),_("p",null,[TJe,$e(" "+me(r.personalityDescription),1)]),_("p",null,[xJe,$e(" "+me(r.personalityCategory),1)]),r.disclaimer?(M(),D("p",CJe,[RJe,$e(" "+me(r.disclaimer),1)])):Q("",!0),_("p",null,[AJe,$e(" "+me(r.conditioningText),1)]),_("p",null,[wJe,$e(" "+me(r.aiPrefix),1)]),_("p",null,[OJe,$e(" "+me(r.userPrefix),1)]),_("div",null,[NJe,_("ul",null,[(M(!0),D(Xe,null,gt(r.antipromptsList,o=>(M(),D("li",{key:o.id},me(o.text),1))),128))])]),_("button",{onClick:e[0]||(e[0]=o=>r.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),r.editMode?(M(),D("button",{key:1,onClick:e[1]||(e[1]=(...o)=>s.commitChanges&&s.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):Q("",!0)])}const IJe=ft(gJe,[["render",MJe]]),Pl="/assets/logo-9d653710.svg",DJe="/",LJe={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function},components:{InteractiveMenu:kl},data(){return{isMounted:!1,name:this.personality.name}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Ue(()=>{Fe.replace()})},methods:{getImgUrl(){return DJe+this.personality.avatar},defaultImg(n){n.target.src=Pl},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Ue(()=>{Fe.replace()})}}},kJe=["title"],PJe={class:"flex flex-row items-center flex-shrink-0 gap-3"},UJe=["src"],FJe=_("i",{"data-feather":"clipboard",class:"w-5"},null,-1),BJe=[FJe],GJe={class:""},zJe={class:""},VJe={class:"flex items-center"},HJe=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),qJe=_("b",null,"Author: ",-1),YJe={class:"flex items-center"},$Je=_("i",{"data-feather":"git-commit",class:"w-5 m-1"},null,-1),WJe=_("b",null,"Version: ",-1),KJe={key:0,class:"flex items-center"},jJe=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),QJe=_("b",null,"Languages: ",-1),XJe=["selected"],ZJe={key:1,class:"flex items-center"},JJe=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),eet=_("b",null,"Language: ",-1),tet={class:"flex items-center"},net=_("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),iet=_("b",null,"Category: ",-1),ret=_("div",{class:"flex items-center"},[_("i",{"data-feather":"info",class:"w-5 m-1"}),_("b",null,"Description: "),_("br")],-1),set=["title","innerHTML"],oet={class:"rounded bg-blue-300"},aet=_("i",{"data-feather":"check"},null,-1),cet=_("span",{class:"sr-only"},"Select",-1),det=[aet,cet],uet=_("i",{"data-feather":"send",class:"w-5"},null,-1),_et=_("span",{class:"sr-only"},"Talk",-1),pet=[uet,_et];function het(n,e,t,i,r,s){const o=St("InteractiveMenu");return M(),D("div",{class:Ke(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",s.selected_computed?"border-2 border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:t.personality.installed?"":"Not installed"},[_("div",{class:Ke(t.personality.installed?"":"border-red-500")},[_("div",PJe,[_("img",{onClick:e[0]||(e[0]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),ref:"imgElement",src:s.getImgUrl(),onError:e[1]||(e[1]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,UJe),_("h3",{onClick:e[2]||(e[2]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},me(t.personality.name),1),_("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[3]||(e[3]=Ae(a=>s.toggleCopyLink(),["stop"]))},BJe)]),_("div",GJe,[_("div",zJe,[_("div",VJe,[HJe,qJe,$e(" "+me(t.personality.author),1)]),_("div",YJe,[$Je,WJe,$e(" "+me(t.personality.version),1)]),t.personality.languages&&t.select_language?(M(),D("div",KJe,[jJe,QJe,r.isMounted?Q("",!0):Re((M(),D("select",{key:0,id:"languages","onUpdate:modelValue":e[4]||(e[4]=a=>t.personality.language=a),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"},[(M(!0),D(Xe,null,gt(t.personality.languages,(a,l)=>(M(),D("option",{key:l,selected:a==t.personality.languages[0]},me(a),9,XJe))),128))],512)),[[$n,t.personality.language]])])):Q("",!0),t.personality.language?(M(),D("div",ZJe,[JJe,eet,$e(" "+me(t.personality.language),1)])):Q("",!0),_("div",tet,[net,iet,$e(" "+me(t.personality.category),1)])]),ret,_("p",{class:"mx-1 opacity-80 h-20 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",title:t.personality.description,innerHTML:t.personality.description},null,8,set)]),_("div",oet,[r.isMounted?(M(),D("button",{key:0,type:"button",title:"Select",onClick:[e[5]||(e[5]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),e[6]||(e[6]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},det)):Q("",!0),r.isMounted?(M(),D("button",{key:1,type:"button",title:"Talk",onClick:[e[7]||(e[7]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),e[8]||(e[8]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},pet)):Q("",!0),Le(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,kJe)}const vw=ft(LJe,[["render",het]]);const fet={props:{code:String},data(){return{evaluatedCode:"",componentKey:0}},watch:{code:{handler(n){console.log("Code changed"),this.evaluateScriptTags(n),this.componentKey++},immediate:!0}},methods:{evaluateScriptTags(n){const e=document.createElement("div");e.innerHTML=n,e.querySelectorAll("script").forEach(i=>{const r=document.createElement("script");r.textContent=i.textContent,document.body.appendChild(r),document.body.removeChild(r)}),this.evaluatedCode=e.innerHTML,console.log("evaluated code: "+this.evaluatedCode)}}},met=["innerHTML"];function get(n,e,t,i,r,s){return M(),D("div",{innerHTML:r.evaluatedCode,key:r.componentKey},null,8,met)}const Tw=ft(fet,[["render",get]]),Eet="/",bet={components:{DynamicUIRenderer:Tw},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ue(()=>{Fe.replace()})},methods:{getImgUrl(){return Eet+this.binding.icon},defaultImg(n){n.target.src=Pl},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(){Ue(()=>{Fe.replace()})}}},yet=["title"],vet={class:"flex flex-row items-center gap-3"},Tet=["src"],xet={class:"font-bold font-large text-lg truncate"},Cet=_("div",{class:"grow"},null,-1),Ret={class:"flex-none gap-1"},Aet=_("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),wet=_("span",{class:"sr-only"},"Help",-1),Oet=[Aet,wet],Net={class:"flex items-center flex-row-reverse gap-2 my-1"},Met=_("span",{class:"sr-only"},"Click to install",-1),Iet=_("span",{class:"sr-only"},"Reinstall",-1),Det=_("span",{class:"sr-only"},"UnInstall",-1),Let=_("span",{class:"sr-only"},"Settings",-1),ket={class:""},Pet={class:""},Uet={class:"flex items-center"},Fet=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Bet=_("b",null,"Author: ",-1),Get={class:"flex items-center"},zet=_("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Vet=_("b",null,"Folder: ",-1),Het={class:"flex items-center"},qet=_("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Yet=_("b",null,"Version: ",-1),$et={class:"flex items-center"},Wet=_("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Ket=_("b",null,"Link: ",-1),jet=["href"],Qet=_("div",{class:"flex items-center"},[_("i",{"data-feather":"info",class:"w-5 m-1"}),_("b",null,"Description: "),_("br")],-1),Xet=["title","innerHTML"];function Zet(n,e,t,i,r,s){const o=St("DynamicUIRenderer");return M(),D("div",{class:Ke(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[7]||(e[7]=Ae((...a)=>s.toggleSelected&&s.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[_("div",null,[_("div",vet,[_("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Tet),_("h3",xet,me(t.binding.name),1),Cet,_("div",Ret,[t.selected?(M(),D("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>s.toggleReloadBinding&&s.toggleReloadBinding(...a)),e[2]||(e[2]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Oet)):Q("",!0)])]),_("div",Net,[t.binding.installed?Q("",!0):(M(),D("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=Ae((...a)=>s.toggleInstall&&s.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[$e(" Install "),Met])),t.binding.installed?(M(),D("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=Ae((...a)=>s.toggleReinstall&&s.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},[$e(" Reinstall "),Iet])):Q("",!0),t.binding.installed?(M(),D("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=Ae((...a)=>s.toggleUnInstall&&s.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[$e(" Uninstall "),Det])):Q("",!0),t.selected?(M(),D("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=Ae((...a)=>s.toggleSettings&&s.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[$e(" Settings "),Let])):Q("",!0)]),t.binding.ui?(M(),Qt(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):Q("",!0),_("div",ket,[_("div",Pet,[_("div",Uet,[Fet,Bet,$e(" "+me(t.binding.author),1)]),_("div",Get,[zet,Vet,$e(" "+me(t.binding.folder),1)]),_("div",Het,[qet,Yet,$e(" "+me(t.binding.version),1)]),_("div",$et,[Wet,Ket,_("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},me(t.binding.link),9,jet)])]),Qet,_("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Xet)])])],10,yet)}const Jet=ft(bet,[["render",Zet]]),ett="/assets/extension-59119348.png",ttt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},ntt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},itt={class:"relative w-full max-w-md max-h-full"},rtt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},stt=_("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),ott=_("span",{class:"sr-only"},"Close modal",-1),att=[stt,ott],ltt={class:"p-4 text-center"},ctt=_("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"},[_("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),dtt={class:"p-4 text-center mx-auto mb-4"},utt=_("label",{class:"mr-2"},"Model path",-1);function _tt(n,e,t,i,r,s){return r.show?(M(),D("div",ntt,[_("div",itt,[_("div",rtt,[_("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},att),_("div",ltt,[ctt,_("div",dtt,[utt,Re(_("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>r.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[Ze,r.model_path]])]),_("button",{onClick:e[2]||(e[2]=o=>s.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),_("button",{onClick:e[3]||(e[3]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):Q("",!0)}const ptt=ft(ttt,[["render",_tt]]);const htt={props:{show:{type:Boolean,default:!1,required:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return console.log("choice:",n),typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const n=this.newFilename.trim();n!==""&&(this.choices.push(n),this.newFilename="",this.selectChoice(n)),this.showInput=!1},removeChoice(n,e){this.choices.splice(e,1),n===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",n)}}},ftt={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"},mtt={class:"bg-white dark:bg-gray-800 rounded-lg p-6 w-96"},gtt={class:"text-xl font-semibold mb-4"},Ett={class:"h-48 overflow-y-auto"},btt=["onClick"],Stt={class:"font-bold"},ytt=_("br",null,null,-1),vtt={key:0,class:"text-xs text-gray-500"},Ttt=["onClick"],xtt={key:0,class:"mt-4"},Ctt={class:"flex justify-end mt-4"},Rtt=["disabled"];function Att(n,e,t,i,r,s){return M(),Qt(Po,{name:"fade"},{default:lt(()=>[t.show?(M(),D("div",ftt,[_("div",mtt,[_("h2",gtt,me(t.title),1),_("div",Ett,[_("ul",null,[(M(!0),D(Xe,null,gt(t.choices,(o,a)=>(M(),D("li",{key:a,onClick:l=>s.selectChoice(o),class:Ke([{"selected-choice":o===r.selectedChoice},"py-2 px-4 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700"])},[_("span",Stt,me(s.displayName(o)),1),ytt,o.size?(M(),D("span",vtt,me(s.formatSize(o.size)),1)):Q("",!0),t.can_remove?(M(),D("button",{key:1,onClick:l=>s.removeChoice(o,a),class:"ml-2 text-red-500 hover:text-red-600"}," X ",8,Ttt)):Q("",!0)],10,btt))),128))])]),r.showInput?(M(),D("div",xtt,[Re(_("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>r.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 p-2 rounded-lg w-full"},null,512),[[Ze,r.newFilename]]),_("button",{onClick:e[1]||(e[1]=(...o)=>s.addNewFilename&&s.addNewFilename(...o)),class:"mt-2 py-2 px-4 bg-green-500 hover:bg-green-600 text-white rounded-lg transition duration-300"}," Add ")])):Q("",!0),_("div",Ctt,[_("button",{onClick:e[2]||(e[2]=(...o)=>s.closeDialog&&s.closeDialog(...o)),class:"py-2 px-4 mr-2 bg-red-500 hover:bg-red-600 text-white rounded-lg transition duration-300"}," Cancel "),_("button",{onClick:e[3]||(e[3]=(...o)=>s.validateChoice&&s.validateChoice(...o)),class:Ke([{"bg-gray-400 cursor-not-allowed":!r.selectedChoice,"bg-blue-500 hover:bg-blue-600":r.selectedChoice,"text-white":r.selectedChoice,"text-gray-500":!r.selectedChoice},"py-2 px-4 rounded-lg transition duration-300"]),disabled:!r.selectedChoice}," Validate ",10,Rtt),_("button",{onClick:e[4]||(e[4]=(...o)=>s.toggleInput&&s.toggleInput(...o)),class:"py-2 px-4 ml-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition duration-300"}," Add New ")])])])):Q("",!0)]),_:1})}const pE=ft(htt,[["render",Att]]),wtt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:0}},data(){return{selectedValue:this.defaultValue}},methods:{handleRadioChange(n){this.selectedValue!==null&&this.$emit("radio-selected",this.selectedValue,n)}}},Ott={class:"flex space-x-4"},Ntt=["value","onChange"],Mtt={class:"text-gray-700"};function Itt(n,e,t,i,r,s){return M(),D("div",Ott,[(M(!0),D(Xe,null,gt(t.radioOptions,(o,a)=>(M(),D("label",{key:o.value,class:"flex items-center space-x-2"},[Re(_("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedValue=l),onChange:l=>s.handleRadioChange(a),class:"text-blue-500 focus:ring-2 focus:ring-blue-200"},null,40,Ntt),[[mI,r.selectedValue]]),_("span",Mtt,me(o.label),1)]))),128))])}const Dtt=ft(wtt,[["render",Itt]]),Ltt="/",ktt={props:{extension:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function},components:{InteractiveMenu:kl},data(){return{isMounted:!1,name:this.extension.name}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.extension.isMounted,Ue(()=>{Fe.replace()})},methods:{getImgUrl(){return Ltt+this.extension.avatar},defaultImg(n){n.target.src=Pl},toggleTalk(){this.onTalk(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Ue(()=>{Fe.replace()})}}},Ptt=["title"],Utt={class:"flex flex-row items-center flex-shrink-0 gap-3"},Ftt=["src"],Btt={class:""},Gtt={class:""},ztt={class:"flex items-center"},Vtt=_("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Htt=_("b",null,"Author: ",-1),qtt={class:"flex items-center"},Ytt=_("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),$tt=_("b",null,"Based on: ",-1),Wtt={key:0,class:"flex items-center"},Ktt=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),jtt=_("b",null,"Languages: ",-1),Qtt=["selected"],Xtt={key:1,class:"flex items-center"},Ztt=_("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),Jtt=_("b",null,"Language: ",-1),ent={class:"flex items-center"},tnt=_("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),nnt=_("b",null,"Category: ",-1),int=_("div",{class:"flex items-center"},[_("i",{"data-feather":"info",class:"w-5 m-1"}),_("b",null,"Description: "),_("br")],-1),rnt=["title","innerHTML"],snt={class:"rounded bg-blue-300"},ont=_("i",{"data-feather":"check"},null,-1),ant=_("span",{class:"sr-only"},"Select",-1),lnt=[ont,ant],cnt=_("i",{"data-feather":"send",class:"w-5"},null,-1),dnt=_("span",{class:"sr-only"},"Talk",-1),unt=[cnt,dnt];function _nt(n,e,t,i,r,s){const o=St("InteractiveMenu");return M(),D("div",{class:Ke(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",s.selected_computed?"border-2 border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:t.extension.installed?"":"Not installed"},[_("div",{class:Ke(t.extension.installed?"":"border-red-500")},[_("div",Utt,[_("img",{onClick:e[0]||(e[0]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),ref:"imgElement",src:s.getImgUrl(),onError:e[1]||(e[1]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,Ftt),_("h3",{onClick:e[2]||(e[2]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},me(t.extension.name),1)]),_("div",Btt,[_("div",Gtt,[_("div",ztt,[Vtt,Htt,$e(" "+me(t.extension.author),1)]),_("div",qtt,[Ytt,$tt,$e(" "+me(t.extension.based_on),1)]),t.extension.languages&&t.select_language?(M(),D("div",Wtt,[Ktt,jtt,Re(_("select",{id:"languages","onUpdate:modelValue":e[3]||(e[3]=a=>t.extension.language=a),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"},[(M(!0),D(Xe,null,gt(t.extension.languages,(a,l)=>(M(),D("option",{key:l,selected:a==t.extension.languages[0]},me(a),9,Qtt))),128))],512),[[$n,t.extension.language]])])):Q("",!0),t.extension.language?(M(),D("div",Xtt,[Ztt,Jtt,$e(" "+me(t.extension.language),1)])):Q("",!0),_("div",ent,[tnt,nnt,$e(" "+me(t.extension.category),1)])]),int,_("p",{class:"mx-1 opacity-80 h-20 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",title:t.extension.description,innerHTML:t.extension.description},null,8,rnt)]),_("div",snt,[r.isMounted?(M(),D("button",{key:0,type:"button",title:"Select",onClick:[e[4]||(e[4]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),e[5]||(e[5]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},lnt)):Q("",!0),r.isMounted?(M(),D("button",{key:1,type:"button",title:"Talk",onClick:[e[6]||(e[6]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),e[7]||(e[7]=Ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},unt)):Q("",!0),Le(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,Ptt)}const pnt=ft(ktt,[["render",_nt]]),hnt="/assets/gpu-df72bf63.svg";const fnt="/";Pe.defaults.baseURL="/";const mnt={components:{AddModelDialog:ptt,ModelEntry:mJe,PersonalityViewer:IJe,PersonalityEntry:vw,BindingEntry:Jet,ChoiceDialog:pE,Card:Ll,RadioOptions:Dtt,ExtensionEntry:pnt},data(){return{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"},binding_changed:!1,SVGGPU:hnt,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}],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",extension_category:"bound_extensions",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],extensionsFiltererd:[],collapsedArr:[],all_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,ezc_collapsed:!0,mep_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:fnt,searchPersonality:"",searchExtension:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchExtensionInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){He.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{reinstallAudioService(){Pe.get("install_xtts").then(n=>{}).catch(n=>{console.error(n)})},getSeviceVoices(){Pe.get("list_voices").then(n=>{this.voices=n.data.voices}).catch(n=>{console.error(n)})},load_more_models(){this.models_zoo_initialLoadCount+10{Fe.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(n){this.$store.state.sort_type=n,this.updateModelsZoo(),console.log(`Selected sorting:${n}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(n){this.isLoading=!0,this.selectSortOption(n).then(()=>{this.isLoading=!1})},filter_installed(n){return console.log("filtering"),n.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let n=await this.api_get_req("check_update");this.has_updates=n.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(n){this.selected_variant=n},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(n){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let t="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:t},console.log("installing...",this.addModel);const i=r=>{if(console.log("received something"),r.status&&r.progress<=100){if(this.addModel=r,console.log("Progress",r),e.progress=r.progress,e.speed=r.speed,e.total_size=r.total_size,e.downloaded_size=r.downloaded_size,e.start_time=r.start_time,e.installing=!0,e.progress==100){const s=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[s].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),He.off("install_progress",i),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model: `+e.model.name+` installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else He.off("install_progress",i),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",r.error),this.$store.state.toast.showToast(`Model: `+e.model.name+` @@ -157,7 +157,7 @@ Response: Error: `+e.error,4,!1);this.isLoading=!1},async remountExtension(n){await this.unmountExtension(n),await this.mountExtension(n)},onExtensionReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log(n),Pe.post("/reinstall_extension",{name:n.extension.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_extension",e),e.data.status?this.$store.state.toast.showToast("Extension reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall extension",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}))},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,Pe.post("/reinstall_personality",{name:n.personality.path}).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(n){n.target.src=Vo},extensionImgPlacehodler(n){n.target.src=ett},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()},activated(){},computed:{rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.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(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return Ti;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Ti}}},imgModel:{get(){try{if(idx=this.$store.state.modelsZoo.findIndex(n=>n.name==this.$store.state.selectedModel),idx>=0)return this.$store.state.modelsZoo[idx].avatar}catch{}if(!this.isMounted)return Ti;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Ti}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},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(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return"/user_infos/"+this.$store.state.config.user_avatar},set(n){this.$store.state.config.user_avatar=n}},enable_gpu:{get(){return this.$store.state.config.enable_gpu},set(n){this.$store.state.config.enable_gpu=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},enable_voice_service:{get(){return this.$store.state.config.enable_voice_service},set(n){this.$store.state.config.enable_voice_service=n}},current_language:{get(){return this.$store.state.config.current_language},set(n){console.log("Current voice set to ",n),this.$store.state.config.current_language=n}},current_voice:{get(){return this.$store.state.config.current_voice===null||this.$store.state.config.current_voice===void 0?(console.log("current voice",this.$store.state.config.current_voice),"main_voice"):this.$store.state.config.current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},db_path:{get(){return this.$store.state.config.db_path},set(n){this.$store.state.config.db_path=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},mountedExtensions:{get(){return console.log("this.$store.state.mountedExtensions:",this.$store.state.mountedExtensions),this.$store.state.mountedExtensions},set(n){this.$store.commit("setActiveExtensions",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},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;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);if(n>-1)return this.bindingsZoo[n].name},active_pesonality(){if(!this.isMounted)return;const n=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(n>-1)return this.personalities[n].name},speed_computed(){return Oi(this.addModel.speed)},total_size_computed(){return Oi(this.addModel.total_size)},downloaded_size_computed(){return Oi(this.addModel.downloaded_size)}},watch:{enable_voice_service(n){n||(this.configFile.auto_read=!1)},bec_collapsed(){Ue(()=>{Fe.replace()})},pc_collapsed(){Ue(()=>{Fe.replace()})},mc_collapsed(){Ue(()=>{Fe.replace()})},sc_collapsed(){Ue(()=>{Fe.replace()})},showConfirmation(){Ue(()=>{Fe.replace()})},mzl_collapsed(){Ue(()=>{Fe.replace()})},pzl_collapsed(){Ue(()=>{Fe.replace()})},ezl_collapsed(){Ue(()=>{Fe.replace()})},bzl_collapsed(){Ue(()=>{Fe.replace()})},all_collapsed(n){this.collapseAll(n),Ue(()=>{Fe.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Ue(()=>{Fe.replace()})},isLoading(){Ue(()=>{Fe.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Ue(()=>{Fe.replace()})}},async beforeRouteLeave(n){if(await this.$router.isReady(),this.settingsChanged)return await this.$store.state.yesNoDialog.askQuestion(`Did You forget to apply changes? -You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},Ce=n=>(Gs("data-v-d8f7398d"),n=n(),zs(),n),gnt={class:"container overflow-y-scroll flex flex-row 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"},Ent={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},bnt={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Snt=Ce(()=>_("i",{"data-feather":"x"},null,-1)),ynt=[Snt],vnt=Ce(()=>_("i",{"data-feather":"check"},null,-1)),Tnt=[vnt],xnt={key:1,class:"flex gap-3 flex-1 items-center"},Cnt=Ce(()=>_("i",{"data-feather":"save"},null,-1)),Rnt=[Cnt],Ant=Ce(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),wnt=[Ant],Ont=Ce(()=>_("i",{"data-feather":"list"},null,-1)),Nnt=[Ont],Mnt={class:"flex gap-3 flex-1 items-center justify-end"},Int=Ce(()=>_("i",{"data-feather":"trash-2"},null,-1)),Dnt=[Int],Lnt=Ce(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),knt=[Lnt],Pnt=Ce(()=>_("i",{"data-feather":"arrow-up-circle"},null,-1)),Unt={key:0},Fnt=Ce(()=>_("i",{"data-feather":"alert-circle"},null,-1)),Bnt=[Fnt],Gnt={class:"flex gap-3 items-center"},znt={key:0,class:"flex gap-3 items-center"},Vnt=Ce(()=>_("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),Hnt=Ce(()=>_("i",{"data-feather":"check"},null,-1)),qnt=[Hnt],Ynt={key:1,role:"status"},$nt=Ce(()=>_("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"},[_("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"}),_("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)),Wnt=Ce(()=>_("span",{class:"sr-only"},"Loading...",-1)),Knt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},jnt={class:"flex flex-row p-3"},Qnt=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Xnt=[Qnt],Znt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Jnt=[Znt],eit=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),tit=Ce(()=>_("div",{class:"mr-2"},"|",-1)),nit={class:"text-base font-semibold cursor-pointer select-none items-center"},iit={class:"flex gap-2 items-center"},rit={key:0},sit={class:"flex gap-2 items-center"},oit=["src"],ait={class:"font-bold font-large text-lg"},lit={key:1},cit={class:"flex gap-2 items-center"},dit=["src"],uit={class:"font-bold font-large text-lg"},_it=Ce(()=>_("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),pit={class:"font-bold font-large text-lg"},hit=Ce(()=>_("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),fit={class:"font-bold font-large text-lg"},mit={class:"mb-2"},git=Ce(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[_("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"})]),$e(" CPU Ram usage: ")],-1)),Eit={class:"flex flex-col mx-2"},bit=Ce(()=>_("b",null,"Avaliable ram: ",-1)),Sit=Ce(()=>_("b",null,"Ram usage: ",-1)),yit={class:"p-2"},vit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Tit={class:"mb-2"},xit=Ce(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),$e(" Disk usage: ")],-1)),Cit={class:"flex flex-col mx-2"},Rit=Ce(()=>_("b",null,"Avaliable disk space: ",-1)),Ait=Ce(()=>_("b",null,"Disk usage: ",-1)),wit={class:"p-2"},Oit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Nit={class:"mb-2"},Mit={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Iit=["src"],Dit={class:"flex flex-col mx-2"},Lit=Ce(()=>_("b",null,"Model: ",-1)),kit=Ce(()=>_("b",null,"Avaliable vram: ",-1)),Pit=Ce(()=>_("b",null,"GPU usage: ",-1)),Uit={class:"p-2"},Fit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Bit={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Git={class:"flex flex-row p-3"},zit=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Vit=[zit],Hit=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),qit=[Hit],Yit=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),$it={class:"flex flex-col mb-2 px-3 pb-2"},Wit={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block 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"},Kit=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),jit={style:{width:"100%"}},Qit=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),Xit={style:{width:"100%"}},Zit=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Jit={style:{width:"100%"}},ert=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),trt={class:"flex flex-row"},nrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),irt={class:"flex flex-row"},rrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_gpu",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable GPU:")],-1)),srt={class:"text-center items-center"},ort={class:"flex flex-row"},art=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),lrt={class:"flex flex-row"},crt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),drt={class:"flex flex-row"},urt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),_rt={class:"flex flex-row"},prt={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"},hrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),frt={style:{width:"100%"}},mrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),grt={style:{width:"100%"}},Ert=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),brt={style:{width:"100%"}},Srt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),yrt={style:{width:"100%"}},vrt={for:"avatar-upload"},Trt=["src"],xrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),Crt={class:"flex flex-row"},Rrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"min_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),Art={style:{width:"100%"}},wrt={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"},Ort=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),Nrt={class:"flex flex-row"},Mrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),Irt={class:"flex flex-row"},Drt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"summerize_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Continuous Learning from discussions:")],-1)),Lrt={class:"flex flex-row"},krt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),Prt={class:"flex flex-row"},Urt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),Frt={class:"flex flex-row"},Brt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),Grt={class:"flex flex-row"},zrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),Vrt=Ce(()=>_("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),Hrt=Ce(()=>_("option",{value:"model_embedding"},"Model Embedding",-1)),qrt=[Vrt,Hrt],Yrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),$rt=Ce(()=>_("option",{value:"PCA"},"PCA",-1)),Wrt=Ce(()=>_("option",{value:"TSNE"},"TSNE",-1)),Krt=[$rt,Wrt],jrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),Qrt={class:"flex flex-row"},Xrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),Zrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),Jrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),est={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"},tst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),nst={class:"flex flex-row"},ist={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"},rst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_voice_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),sst={class:"flex flex-row"},ost=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall xTTS service:")],-1)),ast={class:"flex flex-row"},lst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),cst={class:"flex flex-row"},dst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),ust={class:"flex flex-row"},_st=["disabled"],pst=["value"],hst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),fst={class:"flex flex-row"},mst=["disabled"],gst=["value"],Est=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),bst={class:"flex flex-row"},Sst=["disabled"],yst={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"},vst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),Tst={class:"flex flex-row"},xst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),Cst={class:"flex flex-row"},Rst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),Ast=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),wst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),Ost=["value"],Nst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),Mst=["value"],Ist={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Dst={class:"flex flex-row p-3"},Lst=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),kst=[Lst],Pst=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Ust=[Pst],Fst=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Bst={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Gst=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),zst={key:1,class:"mr-2"},Vst={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Hst={class:"flex gap-1 items-center"},qst=["src"],Yst={class:"font-bold font-large text-lg line-clamp-1"},$st={key:0,class:"mb-2"},Wst={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Kst=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),jst=[Kst],Qst=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Xst=[Qst],Zst={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Jst={class:"flex flex-row p-3"},eot=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),tot=[eot],not=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),iot=[not],rot=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),sot={class:"flex flex-row items-center"},oot={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},aot=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),lot={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},cot=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),dot={key:2,class:"mr-2"},uot={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},_ot={class:"flex gap-1 items-center"},pot=["src"],hot={class:"font-bold font-large text-lg line-clamp-1"},fot={class:"mx-2 mb-4"},mot={class:"relative"},got={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Eot={key:0},bot=Ce(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Sot=[bot],yot={key:1},vot=Ce(()=>_("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"},[_("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)),Tot=[vot],xot=Ce(()=>_("label",{for:"only_installed"},"Show only installed models",-1)),Cot=Ce(()=>_("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)),Rot={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Aot=Ce(()=>_("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"},[_("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"}),_("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)),wot=Ce(()=>_("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Oot=[Aot,wot],Not={key:1,class:"mb-2"},Mot={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Iot=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Dot=[Iot],Lot=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),kot=[Lot],Pot={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Uot={class:"flex flex-row p-3"},Fot=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Bot=[Fot],Got=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),zot=[Got],Vot=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),Hot={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},qot=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Yot={key:1,class:"mr-2"},$ot={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Wot={class:"flex gap-1 items-center"},Kot=["src"],jot={class:"font-bold font-large text-lg line-clamp-1"},Qot={class:"mb-2"},Xot={class:"p-2"},Zot={class:"mb-3"},Jot=Ce(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),eat={key:0},tat={class:"mb-3"},nat=Ce(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),iat={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},rat=Ce(()=>_("div",{role:"status",class:"justify-center"},null,-1)),sat={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},oat={class:"w-full p-2"},aat={class:"flex justify-between mb-1"},lat=Og(' Downloading Loading...',1),cat={class:"text-sm font-medium text-blue-700 dark:text-white"},dat=["title"],uat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},_at={class:"flex justify-between mb-1"},pat={class:"text-base font-medium text-blue-700 dark:text-white"},hat={class:"text-sm font-medium text-blue-700 dark:text-white"},fat={class:"flex flex-grow"},mat={class:"flex flex-row flex-grow gap-3"},gat={class:"p-2 text-center grow"},Eat={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},bat={class:"flex flex-row p-3 items-center"},Sat=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),yat=[Sat],vat=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Tat=[vat],xat=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),Cat={key:0,class:"mr-2"},Rat={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Aat={key:1,class:"mr-2"},wat={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Oat={key:0,class:"flex -space-x-4 items-center"},Nat={class:"group items-center flex flex-row"},Mat=["onClick"],Iat=["src","title"],Dat=["onClick"],Lat=Ce(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),kat=[Lat],Pat={class:"mx-2 mb-4"},Uat=Ce(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Fat={class:"relative"},Bat={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Gat={key:0},zat=Ce(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Vat=[zat],Hat={key:1},qat=Ce(()=>_("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"},[_("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)),Yat=[qat],$at={key:0,class:"mx-2 mb-4"},Wat={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Kat=["selected"],jat={key:0,class:"mb-2"},Qat={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Xat=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Zat=[Xat],Jat=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),elt=[Jat],tlt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},nlt={class:"flex flex-row p-3 items-center"},ilt=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),rlt=[ilt],slt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),olt=[slt],alt=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),llt={key:0,class:"mr-2"},clt={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},dlt={key:0,class:"flex -space-x-4 items-center"},ult={class:"group items-center flex flex-row"},_lt=["src","title"],plt=["onClick"],hlt=Ce(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),flt=[hlt],mlt={class:"mx-2 mb-4"},glt=Ce(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Elt={class:"relative"},blt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Slt={key:0},ylt=Ce(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),vlt=[ylt],Tlt={key:1},xlt=Ce(()=>_("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"},[_("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)),Clt=[xlt],Rlt={key:0,class:"mx-2 mb-4"},Alt={for:"extCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},wlt=["selected"],Olt={key:0,class:"mb-2"},Nlt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Mlt=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Ilt=[Mlt],Dlt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Llt=[Dlt],klt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Plt={class:"flex flex-row p-3 items-center"},Ult=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Flt=[Ult],Blt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Glt=[Blt],zlt=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),Vlt={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Hlt={class:"flex flex-row"},qlt=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Ylt=[qlt],$lt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Wlt=[$lt],Klt=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),jlt={class:"m-2"},Qlt={class:"flex flex-row gap-2 items-center"},Xlt=Ce(()=>_("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),Zlt={class:"m-2"},Jlt=Ce(()=>_("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),ect={class:"m-2"},tct={class:"flex flex-col align-bottom"},nct={class:"relative"},ict=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),rct={class:"absolute right-0"},sct={class:"m-2"},oct={class:"flex flex-col align-bottom"},act={class:"relative"},lct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),cct={class:"absolute right-0"},dct={class:"m-2"},uct={class:"flex flex-col align-bottom"},_ct={class:"relative"},pct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),hct={class:"absolute right-0"},fct={class:"m-2"},mct={class:"flex flex-col align-bottom"},gct={class:"relative"},Ect=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),bct={class:"absolute right-0"},Sct={class:"m-2"},yct={class:"flex flex-col align-bottom"},vct={class:"relative"},Tct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),xct={class:"absolute right-0"},Cct={class:"m-2"},Rct={class:"flex flex-col align-bottom"},Act={class:"relative"},wct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Oct={class:"absolute right-0"};function Nct(n,e,t,i,r,s){const o=St("Card"),a=St("BindingEntry"),l=St("RadioOptions"),c=St("model-entry"),d=St("personality-entry"),u=St("ExtensionEntry"),p=St("AddModelDialog"),f=St("ChoiceDialog");return M(),D(Xe,null,[_("div",gnt,[_("div",Ent,[r.showConfirmation?(M(),D("div",bnt,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=Ae(h=>r.showConfirmation=!1,["stop"]))},ynt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=Ae(h=>s.save_configuration(),["stop"]))},Tnt)])):Q("",!0),r.showConfirmation?Q("",!0):(M(),D("div",xnt,[_("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=h=>r.showConfirmation=!0)},Rnt),_("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=h=>s.reset_configuration())},wnt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=Ae(h=>r.all_collapsed=!r.all_collapsed,["stop"]))},Nnt)])),_("div",Mnt,[_("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=h=>s.api_get_req("clear_uploads").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},Dnt),_("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=h=>s.api_get_req("restart_program").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},knt),_("button",{title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[7]||(e[7]=h=>s.api_get_req("update_software").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[Pnt,r.has_updates?(M(),D("div",Unt,Bnt)):Q("",!0)]),_("div",Gnt,[r.settingsChanged?(M(),D("div",znt,[Vnt,r.isLoading?Q("",!0):(M(),D("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[8]||(e[8]=Ae(h=>s.applyConfiguration(),["stop"]))},qnt))])):Q("",!0),r.isLoading?(M(),D("div",Ynt,[_("p",null,me(r.loading_text),1),$nt,Wnt])):Q("",!0)])])]),_("div",{class:Ke(r.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[_("div",Knt,[_("div",jnt,[_("button",{onClick:e[9]||(e[9]=Ae(h=>r.sc_collapsed=!r.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Re(_("div",null,Xnt,512),[[At,r.sc_collapsed]]),Re(_("div",null,Jnt,512),[[At,!r.sc_collapsed]]),eit,tit,_("div",nit,[_("div",iit,[_("div",null,[s.vramUsage&&s.vramUsage.gpus&&s.vramUsage.gpus.length==1?(M(),D("div",rit,[(M(!0),D(Xe,null,gt(s.vramUsage.gpus,h=>(M(),D("div",sit,[_("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,oit),_("h3",ait,[_("div",null,me(s.computedFileSize(h.used_vram))+" / "+me(s.computedFileSize(h.total_vram))+" ("+me(h.percentage)+"%) ",1)])]))),256))])):Q("",!0),s.vramUsage&&s.vramUsage.gpus&&s.vramUsage.gpus.length>1?(M(),D("div",lit,[_("div",cit,[_("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,dit),_("h3",uit,[_("div",null,me(s.vramUsage.gpus.length)+"x ",1)])])])):Q("",!0)]),_it,_("h3",pit,[_("div",null,me(s.ram_usage)+" / "+me(s.ram_total_space)+" ("+me(s.ram_percent_usage)+"%)",1)]),hit,_("h3",fit,[_("div",null,me(s.disk_binding_models_usage)+" / "+me(s.disk_total_space)+" ("+me(s.disk_percent_usage)+"%)",1)])])])])]),_("div",{class:Ke([{hidden:r.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",mit,[git,_("div",Eit,[_("div",null,[bit,$e(me(s.ram_available_space),1)]),_("div",null,[Sit,$e(" "+me(s.ram_usage)+" / "+me(s.ram_total_space)+" ("+me(s.ram_percent_usage)+")% ",1)])]),_("div",yit,[_("div",vit,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un("width: "+s.ram_percent_usage+"%;")},null,4)])])]),_("div",Tit,[xit,_("div",Cit,[_("div",null,[Rit,$e(me(s.disk_available_space),1)]),_("div",null,[Ait,$e(" "+me(s.disk_binding_models_usage)+" / "+me(s.disk_total_space)+" ("+me(s.disk_percent_usage)+"%)",1)])]),_("div",wit,[_("div",Oit,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un("width: "+s.disk_percent_usage+"%;")},null,4)])])]),(M(!0),D(Xe,null,gt(s.vramUsage.gpus,h=>(M(),D("div",Nit,[_("label",Mit,[_("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Iit),$e(" GPU usage: ")]),_("div",Dit,[_("div",null,[Lit,$e(me(h.gpu_model),1)]),_("div",null,[kit,$e(me(this.computedFileSize(h.available_space)),1)]),_("div",null,[Pit,$e(" "+me(this.computedFileSize(h.used_vram))+" / "+me(this.computedFileSize(h.total_vram))+" ("+me(h.percentage)+"%)",1)])]),_("div",Uit,[_("div",Fit,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un("width: "+h.percentage+"%;")},null,4)])])]))),256))],2)]),_("div",Bit,[_("div",Git,[_("button",{onClick:e[10]||(e[10]=Ae(h=>r.minconf_collapsed=!r.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Re(_("div",null,Vit,512),[[At,r.minconf_collapsed]]),Re(_("div",null,qit,512),[[At,!r.minconf_collapsed]]),Yit])]),_("div",{class:Ke([{hidden:r.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",$it,[Le(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",Wit,[_("tr",null,[Kit,_("td",jit,[Re(_("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[11]||(e[11]=h=>s.configFile.host=h),onChange:e[12]||(e[12]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,s.configFile.host]])])]),_("tr",null,[Qit,_("td",Xit,[Re(_("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[13]||(e[13]=h=>s.configFile.port=h),onChange:e[14]||(e[14]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,s.configFile.port]])])]),_("tr",null,[Zit,_("td",Jit,[Re(_("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[15]||(e[15]=h=>s.configFile.db_path=h),onChange:e[16]||(e[16]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,s.configFile.db_path]])])]),_("tr",null,[ert,_("td",null,[_("div",trt,[Re(_("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[17]||(e[17]=h=>s.configFile.auto_show_browser=h),onChange:e[18]||(e[18]=h=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_show_browser]])])])]),_("tr",null,[nrt,_("td",null,[_("div",irt,[Re(_("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[19]||(e[19]=h=>s.configFile.debug=h),onChange:e[20]||(e[20]=h=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.debug]])])])]),_("tr",null,[rrt,_("td",srt,[_("div",ort,[Re(_("input",{type:"checkbox",id:"enable_gpu",required:"","onUpdate:modelValue":e[21]||(e[21]=h=>s.configFile.enable_gpu=h),onChange:e[22]||(e[22]=h=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.enable_gpu]]),s.configFile.enable_gpu?Q("",!0):(M(),D("button",{key:0,onClick:e[23]||(e[23]=Ae((...h)=>s.upgrade2GPU&&s.upgrade2GPU(...h),["prevent"])),class:"w-100 text-center rounded m-2 bg-blue-300 hover:bg-blue-200 text-l hover:text-primary p-2 m-2 text-left flex flex-row"}," Upgrade from CPU to GPU "))])])]),_("tr",null,[art,_("td",null,[_("div",lrt,[Re(_("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[24]||(e[24]=h=>s.configFile.auto_save=h),onChange:e[25]||(e[25]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_save]])])])]),_("tr",null,[crt,_("td",null,[_("div",drt,[Re(_("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[26]||(e[26]=h=>s.configFile.auto_update=h),onChange:e[27]||(e[27]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_update]])])])]),_("tr",null,[urt,_("td",null,[_("div",_rt,[Re(_("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[28]||(e[28]=h=>s.configFile.auto_title=h),onChange:e[29]||(e[29]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_title]])])])])])]),_:1}),Le(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",prt,[_("tr",null,[hrt,_("td",frt,[Re(_("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[30]||(e[30]=h=>s.configFile.user_name=h),onChange:e[31]||(e[31]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.user_name]])])]),_("tr",null,[mrt,_("td",grt,[Re(_("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[32]||(e[32]=h=>s.configFile.user_description=h),onChange:e[33]||(e[33]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.user_description]])])]),_("tr",null,[Ert,_("td",brt,[Re(_("input",{type:"checkbox",id:"override_personality_model_parameters",required:"","onUpdate:modelValue":e[34]||(e[34]=h=>s.configFile.override_personality_model_parameters=h),onChange:e[35]||(e[35]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.override_personality_model_parameters]])])]),_("tr",null,[Srt,_("td",yrt,[_("label",vrt,[_("img",{src:"/user_infos/"+s.configFile.user_avatar,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Trt)]),_("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[36]||(e[36]=(...h)=>s.uploadAvatar&&s.uploadAvatar(...h))},null,32)])]),_("tr",null,[xrt,_("td",null,[_("div",Crt,[Re(_("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[37]||(e[37]=h=>s.configFile.use_user_name_in_discussions=h),onChange:e[38]||(e[38]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.use_user_name_in_discussions]])])])]),_("tr",null,[Rrt,_("td",Art,[Re(_("input",{type:"number",id:"min_n_predict",required:"","onUpdate:modelValue":e[39]||(e[39]=h=>s.configFile.min_n_predict=h),onChange:e[40]||(e[40]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.min_n_predict]])])])])]),_:1}),Le(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",wrt,[_("tr",null,[Ort,_("td",null,[_("div",Nrt,[Re(_("input",{type:"checkbox",id:"use_files",required:"","onUpdate:modelValue":e[41]||(e[41]=h=>s.configFile.use_files=h),onChange:e[42]||(e[42]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.use_files]])])])]),_("tr",null,[Mrt,_("td",null,[_("div",Irt,[Re(_("input",{type:"checkbox",id:"use_discussions_history",required:"","onUpdate:modelValue":e[43]||(e[43]=h=>s.configFile.use_discussions_history=h),onChange:e[44]||(e[44]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.use_discussions_history]])])])]),_("tr",null,[Drt,_("td",null,[_("div",Lrt,[Re(_("input",{type:"checkbox",id:"summerize_discussion",required:"","onUpdate:modelValue":e[45]||(e[45]=h=>s.configFile.summerize_discussion=h),onChange:e[46]||(e[46]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.summerize_discussion]])])])]),_("tr",null,[krt,_("td",null,[_("div",Prt,[Re(_("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[47]||(e[47]=h=>s.configFile.data_vectorization_visualize_on_vectorization=h),onChange:e[48]||(e[48]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_visualize_on_vectorization]])])])]),_("tr",null,[Urt,_("td",null,[_("div",Frt,[Re(_("input",{type:"checkbox",id:"data_vectorization_activate",required:"","onUpdate:modelValue":e[49]||(e[49]=h=>s.configFile.data_vectorization_activate=h),onChange:e[50]||(e[50]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_activate]])])])]),_("tr",null,[Brt,_("td",null,[_("div",Grt,[Re(_("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[51]||(e[51]=h=>s.configFile.data_vectorization_build_keys_words=h),onChange:e[52]||(e[52]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_build_keys_words]])])])]),_("tr",null,[zrt,_("td",null,[Re(_("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[53]||(e[53]=h=>s.configFile.data_vectorization_method=h),onChange:e[54]||(e[54]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},qrt,544),[[$n,s.configFile.data_vectorization_method]])])]),_("tr",null,[Yrt,_("td",null,[Re(_("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[55]||(e[55]=h=>s.configFile.data_visualization_method=h),onChange:e[56]||(e[56]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Krt,544),[[$n,s.configFile.data_visualization_method]])])]),_("tr",null,[jrt,_("td",null,[_("div",Qrt,[Re(_("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[57]||(e[57]=h=>s.configFile.data_vectorization_save_db=h),onChange:e[58]||(e[58]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_save_db]])])])]),_("tr",null,[Xrt,_("td",null,[Re(_("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[59]||(e[59]=h=>s.configFile.data_vectorization_chunk_size=h),onChange:e[60]||(e[60]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[Ze,s.configFile.data_vectorization_chunk_size]]),Re(_("input",{"onUpdate:modelValue":e[61]||(e[61]=h=>s.configFile.data_vectorization_chunk_size=h),type:"number",onChange:e[62]||(e[62]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.data_vectorization_chunk_size]])])]),_("tr",null,[Zrt,_("td",null,[Re(_("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[63]||(e[63]=h=>s.configFile.data_vectorization_overlap_size=h),onChange:e[64]||(e[64]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[Ze,s.configFile.data_vectorization_overlap_size]]),Re(_("input",{"onUpdate:modelValue":e[65]||(e[65]=h=>s.configFile.data_vectorization_overlap_size=h),type:"number",onChange:e[66]||(e[66]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.data_vectorization_overlap_size]])])]),_("tr",null,[Jrt,_("td",null,[Re(_("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[67]||(e[67]=h=>s.configFile.data_vectorization_nb_chunks=h),onChange:e[68]||(e[68]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",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),[[Ze,s.configFile.data_vectorization_nb_chunks]]),Re(_("input",{"onUpdate:modelValue":e[69]||(e[69]=h=>s.configFile.data_vectorization_nb_chunks=h),type:"number",onChange:e[70]||(e[70]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.data_vectorization_nb_chunks]])])])])]),_:1}),Le(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",est,[_("tr",null,[tst,_("td",null,[_("div",nst,[Re(_("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[71]||(e[71]=h=>s.configFile.pdf_latex_path=h),onChange:e[72]||(e[72]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.pdf_latex_path]])])])])])]),_:1}),Le(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",ist,[_("tr",null,[rst,_("td",null,[_("div",sst,[Re(_("input",{type:"checkbox",id:"enable_voice_service",required:"","onUpdate:modelValue":e[73]||(e[73]=h=>s.configFile.enable_voice_service=h),onChange:e[74]||(e[74]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.enable_voice_service]])])])]),_("tr",null,[ost,_("td",null,[_("div",ast,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[75]||(e[75]=(...h)=>s.reinstallAudioService&&s.reinstallAudioService(...h))},"Reinstall xtts service")])])]),_("tr",null,[lst,_("td",null,[_("div",cst,[Re(_("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[76]||(e[76]=h=>s.configFile.xtts_base_url=h),onChange:e[77]||(e[77]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.xtts_base_url]])])])]),_("tr",null,[dst,_("td",null,[_("div",ust,[Re(_("select",{"onUpdate:modelValue":e[78]||(e[78]=h=>s.current_language=h),onChange:e[79]||(e[79]=h=>r.settingsChanged=!0),disabled:!s.enable_voice_service},[(M(!0),D(Xe,null,gt(r.voice_languages,h=>(M(),D("option",{key:h,value:h},me(h),9,pst))),128))],40,_st),[[$n,s.current_language]])])])]),_("tr",null,[hst,_("td",null,[_("div",fst,[Re(_("select",{"onUpdate:modelValue":e[80]||(e[80]=h=>s.current_voice=h),onChange:e[81]||(e[81]=h=>r.settingsChanged=!0),disabled:!s.enable_voice_service},[(M(!0),D(Xe,null,gt(r.voices,h=>(M(),D("option",{key:h,value:h},me(h),9,gst))),128))],40,mst),[[$n,s.current_voice]])])])]),_("tr",null,[Est,_("td",null,[_("div",bst,[Re(_("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[82]||(e[82]=h=>s.configFile.auto_read=h),onChange:e[83]||(e[83]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!s.enable_voice_service},null,40,Sst),[[Mt,s.configFile.auto_read]])])])])])]),_:1}),Le(o,{title:"Browser Audio",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",yst,[_("tr",null,[vst,_("td",null,[_("div",Tst,[Re(_("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[84]||(e[84]=h=>s.configFile.audio_auto_send_input=h),onChange:e[85]||(e[85]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.audio_auto_send_input]])])])]),_("tr",null,[xst,_("td",null,[_("div",Cst,[Re(_("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[86]||(e[86]=h=>s.configFile.auto_speak=h),onChange:e[87]||(e[87]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_speak]])])])]),_("tr",null,[Rst,_("td",null,[Re(_("input",{id:"audio_pitch","onUpdate:modelValue":e[88]||(e[88]=h=>s.configFile.audio_pitch=h),onChange:e[89]||(e[89]=h=>r.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),[[Ze,s.configFile.audio_pitch]]),Re(_("input",{"onUpdate:modelValue":e[90]||(e[90]=h=>s.configFile.audio_pitch=h),onChange:e[91]||(e[91]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.audio_pitch]])])]),_("tr",null,[Ast,_("td",null,[Re(_("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[92]||(e[92]=h=>s.configFile.audio_silenceTimer=h),onChange:e[93]||(e[93]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"10000",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),[[Ze,s.configFile.audio_silenceTimer]]),Re(_("input",{"onUpdate:modelValue":e[94]||(e[94]=h=>s.configFile.audio_silenceTimer=h),onChange:e[95]||(e[95]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.audio_silenceTimer]])])]),_("tr",null,[wst,_("td",null,[Re(_("select",{id:"audio_in_language","onUpdate:modelValue":e[96]||(e[96]=h=>s.configFile.audio_in_language=h),onChange:e[97]||(e[97]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(M(!0),D(Xe,null,gt(s.audioLanguages,h=>(M(),D("option",{key:h.code,value:h.code},me(h.name),9,Ost))),128))],544),[[$n,s.configFile.audio_in_language]])])]),_("tr",null,[Nst,_("td",null,[Re(_("select",{id:"audio_out_voice","onUpdate:modelValue":e[98]||(e[98]=h=>s.configFile.audio_out_voice=h),onChange:e[99]||(e[99]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(M(!0),D(Xe,null,gt(r.audioVoices,h=>(M(),D("option",{key:h.name,value:h.name},me(h.name),9,Mst))),128))],544),[[$n,s.configFile.audio_out_voice]])])])])]),_:1})])],2)]),_("div",Ist,[_("div",Dst,[_("button",{onClick:e[100]||(e[100]=Ae(h=>r.bzc_collapsed=!r.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Re(_("div",null,kst,512),[[At,r.bzc_collapsed]]),Re(_("div",null,Ust,512),[[At,!r.bzc_collapsed]]),Fst,s.configFile.binding_name?Q("",!0):(M(),D("div",Bst,[Gst,$e(" No binding selected! ")])),s.configFile.binding_name?(M(),D("div",zst,"|")):Q("",!0),s.configFile.binding_name?(M(),D("div",Vst,[_("div",Hst,[_("img",{src:s.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,qst),_("h3",Yst,me(s.binding_name),1)])])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[s.bindingsZoo&&s.bindingsZoo.length>0?(M(),D("div",$st,[_("label",Wst," Bindings: ("+me(s.bindingsZoo.length)+") ",1),_("div",{class:Ke(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.bzl_collapsed?"":"max-h-96"])},[Le(Vr,{name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(s.bindingsZoo,(h,E)=>(M(),Qt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+E+"-"+h.folder,binding:h,"on-selected":s.onBindingSelected,"on-reinstall":s.onReinstallBinding,"on-unInstall":s.onUnInstallBinding,"on-install":s.onInstallBinding,"on-settings":s.onSettingsBinding,"on-reload-binding":s.onReloadBinding,selected:h.folder===s.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):Q("",!0),r.bzl_collapsed?(M(),D("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[101]||(e[101]=h=>r.bzl_collapsed=!r.bzl_collapsed)},jst)):(M(),D("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[102]||(e[102]=h=>r.bzl_collapsed=!r.bzl_collapsed)},Xst))],2)]),_("div",Zst,[_("div",Jst,[_("button",{onClick:e[103]||(e[103]=Ae(h=>s.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Re(_("div",null,tot,512),[[At,r.mzc_collapsed]]),Re(_("div",null,iot,512),[[At,!r.mzc_collapsed]]),rot,_("div",sot,[s.configFile.binding_name?Q("",!0):(M(),D("div",oot,[aot,$e(" Select binding first! ")])),!r.isModelSelected&&s.configFile.binding_name?(M(),D("div",lot,[cot,$e(" No model selected! ")])):Q("",!0),s.configFile.model_name?(M(),D("div",dot,"|")):Q("",!0),s.configFile.model_name?(M(),D("div",uot,[_("div",_ot,[_("img",{src:s.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,pot),_("h3",hot,me(s.configFile.model_name),1)])])):Q("",!0)])])]),_("div",{class:Ke([{hidden:r.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",fot,[_("div",mot,[_("div",got,[r.searchModelInProgress?(M(),D("div",Eot,Sot)):Q("",!0),r.searchModelInProgress?Q("",!0):(M(),D("div",yot,Tot))]),Re(_("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[104]||(e[104]=h=>r.searchModel=h),onKeyup:e[105]||(e[105]=Fo((...h)=>s.searchModel_func&&s.searchModel_func(...h),["enter"]))},null,544),[[Ze,r.searchModel]]),r.searchModel?(M(),D("button",{key:0,onClick:e[106]||(e[106]=Ae(h=>r.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")):Q("",!0)])]),_("div",null,[Re(_("input",{"onUpdate:modelValue":e[107]||(e[107]=h=>r.show_only_installed_models=h),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Mt,r.show_only_installed_models]]),xot]),_("div",null,[Le(l,{radioOptions:r.sortOptions,onRadioSelected:s.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Cot,r.is_loading_zoo?(M(),D("div",Rot,Oot)):Q("",!0),r.models_zoo&&r.models_zoo.length>0?(M(),D("div",Not,[_("label",Mot," Models: ("+me(r.models_zoo.length)+") ",1),_("div",{class:Ke(["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",r.mzl_collapsed?"":"max-h-96"])},[Le(Vr,{name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(s.rendered_models_zoo,(h,E)=>(M(),Qt(c,{ref_for:!0,ref:"modelZoo",key:"index-"+E+"-"+h.name,model:h,"is-installed":h.isInstalled,"on-install":s.onInstall,"on-uninstall":s.onUninstall,"on-selected":s.onModelSelected,selected:h.name===s.configFile.model_name,model_type:h.model_type,"on-copy":s.onCopy,"on-copy-link":s.onCopyLink,"on-cancel-install":s.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),_("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[108]||(e[108]=(...h)=>s.load_more_models&&s.load_more_models(...h))},"Load more models",512)]),_:1})],2)])):Q("",!0),r.mzl_collapsed?(M(),D("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[109]||(e[109]=(...h)=>s.open_mzl&&s.open_mzl(...h))},Dot)):(M(),D("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[110]||(e[110]=(...h)=>s.open_mzl&&s.open_mzl(...h))},kot))],2)]),_("div",Pot,[_("div",Uot,[_("button",{onClick:e[111]||(e[111]=Ae(h=>r.mzdc_collapsed=!r.mzdc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Re(_("div",null,Bot,512),[[At,r.mzdc_collapsed]]),Re(_("div",null,zot,512),[[At,!r.mzdc_collapsed]]),Vot,s.binding_name?Q("",!0):(M(),D("div",Hot,[qot,$e(" No binding selected! ")])),s.configFile.binding_name?(M(),D("div",Yot,"|")):Q("",!0),s.configFile.binding_name?(M(),D("div",$ot,[_("div",Wot,[_("img",{src:s.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Kot),_("h3",jot,me(s.binding_name),1)])])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",Qot,[_("div",Xot,[_("div",null,[_("div",Zot,[Jot,Re(_("input",{type:"text","onUpdate:modelValue":e[112]||(e[112]=h=>r.reference_path=h),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),[[Ze,r.reference_path]])]),_("button",{type:"button",onClick:e[113]||(e[113]=Ae(h=>s.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")]),r.modelDownlaodInProgress?Q("",!0):(M(),D("div",eat,[_("div",tat,[nat,Re(_("input",{type:"text","onUpdate:modelValue":e[114]||(e[114]=h=>r.addModel.url=h),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),[[Ze,r.addModel.url]])]),_("button",{type:"button",onClick:e[115]||(e[115]=Ae(h=>s.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")])),r.modelDownlaodInProgress?(M(),D("div",iat,[rat,_("div",sat,[_("div",oat,[_("div",aat,[lat,_("span",cat,me(Math.floor(r.addModel.progress))+"%",1)]),_("div",{class:"mx-1 opacity-80 line-clamp-1",title:r.addModel.url},me(r.addModel.url),9,dat),_("div",uat,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un({width:r.addModel.progress+"%"})},null,4)]),_("div",_at,[_("span",pat,"Download speed: "+me(s.speed_computed)+"/s",1),_("span",hat,me(s.downloaded_size_computed)+"/"+me(s.total_size_computed),1)])])]),_("div",fat,[_("div",mat,[_("div",gat,[_("button",{onClick:e[116]||(e[116]=Ae((...h)=>s.onCancelInstall&&s.onCancelInstall(...h),["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 ")])])])])):Q("",!0)])])],2)]),_("div",Eat,[_("div",bat,[_("button",{onClick:e[118]||(e[118]=Ae(h=>r.pzc_collapsed=!r.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Re(_("div",null,yat,512),[[At,r.pzc_collapsed]]),Re(_("div",null,Tat,512),[[At,!r.pzc_collapsed]]),xat,s.configFile.personalities?(M(),D("div",Cat,"|")):Q("",!0),_("div",Rat,me(s.active_pesonality),1),s.configFile.personalities?(M(),D("div",Aat,"|")):Q("",!0),s.configFile.personalities?(M(),D("div",wat,[s.mountedPersArr.length>0?(M(),D("div",Oat,[(M(!0),D(Xe,null,gt(s.mountedPersArr,(h,E)=>(M(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+h.name,ref_for:!0,ref:"mountedPersonalities"},[_("div",Nat,[_("button",{onClick:Ae(g=>s.onPersonalitySelected(h),["stop"])},[_("img",{src:r.bUrl+h.avatar,onError:e[117]||(e[117]=(...g)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...g)),class:Ke(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",s.configFile.active_personality_id==s.configFile.personalities.indexOf(h.full_path)?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,Iat)],8,Mat),_("button",{onClick:Ae(g=>s.unmountPersonality(h),["stop"])},kat,8,Dat)])]))),128))])):Q("",!0)])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",Pat,[Uat,_("div",Fat,[_("div",Bat,[r.searchPersonalityInProgress?(M(),D("div",Gat,Vat)):Q("",!0),r.searchPersonalityInProgress?Q("",!0):(M(),D("div",Hat,Yat))]),Re(_("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[119]||(e[119]=h=>r.searchPersonality=h),onKeyup:e[120]||(e[120]=Ae((...h)=>s.searchPersonality_func&&s.searchPersonality_func(...h),["stop"]))},null,544),[[Ze,r.searchPersonality]]),r.searchPersonality?(M(),D("button",{key:0,onClick:e[121]||(e[121]=Ae(h=>r.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")):Q("",!0)])]),r.searchPersonality?Q("",!0):(M(),D("div",$at,[_("label",Wat," Personalities Category: ("+me(r.persCatgArr.length)+") ",1),_("select",{id:"persCat",onChange:e[122]||(e[122]=h=>s.update_personality_category(h.target.value,s.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"},[(M(!0),D(Xe,null,gt(r.persCatgArr,(h,E)=>(M(),D("option",{key:E,selected:h==this.configFile.personality_category},me(h),9,Kat))),128))],32)])),_("div",null,[r.personalitiesFiltered.length>0?(M(),D("div",jat,[_("label",Qat,me(r.searchPersonality?"Search results":"Personalities")+": ("+me(r.personalitiesFiltered.length)+") ",1),_("div",{class:Ke(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.pzl_collapsed?"":"max-h-96"])},[Le(Vr,{name:"bounce"},{default:lt(()=>[(M(!0),D(Xe,null,gt(r.personalitiesFiltered,(h,E)=>(M(),Qt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+E+"-"+h.name,personality:h,select_language:!0,full_path:h.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(g=>g===h.full_path||g===h.full_path+":"+h.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-reinstall":s.onPersonalityReinstall,"on-settings":s.onSettingsPersonality,"on-copy-personality-name":s.onCopyPersonalityName},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-reinstall","on-settings","on-copy-personality-name"]))),128))]),_:1})],2)])):Q("",!0)]),r.pzl_collapsed?(M(),D("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[123]||(e[123]=h=>r.pzl_collapsed=!r.pzl_collapsed)},Zat)):(M(),D("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[124]||(e[124]=h=>r.pzl_collapsed=!r.pzl_collapsed)},elt))],2)]),_("div",tlt,[_("div",nlt,[_("button",{onClick:e[126]||(e[126]=Ae(h=>r.ezc_collapsed=!r.ezc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Re(_("div",null,rlt,512),[[At,r.ezc_collapsed]]),Re(_("div",null,olt,512),[[At,!r.ezc_collapsed]]),alt,s.configFile.extensions?(M(),D("div",llt,"|")):Q("",!0),s.configFile.extensions?(M(),D("div",clt,[s.mountedExtensions.length>0?(M(),D("div",dlt,[(M(!0),D(Xe,null,gt(s.mountedExtensions,(h,E)=>(M(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+h.name,ref_for:!0,ref:"mountedExtensions"},[_("div",ult,[_("button",null,[_("img",{src:r.bUrl+h.avatar,onError:e[125]||(e[125]=(...g)=>s.extensionImgPlacehodler&&s.extensionImgPlacehodler(...g)),class:Ke(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary","border-transparent z-0"]),title:h.name},null,40,_lt)]),_("button",{onClick:Ae(g=>s.unmountExtension(h),["stop"])},flt,8,plt)])]))),128))])):Q("",!0)])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",mlt,[glt,_("div",Elt,[_("div",blt,[r.searchExtensionInProgress?(M(),D("div",Slt,vlt)):Q("",!0),r.searchExtensionInProgress?Q("",!0):(M(),D("div",Tlt,Clt))]),Re(_("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 extension...",required:"","onUpdate:modelValue":e[127]||(e[127]=h=>r.searchExtension=h),onKeyup:e[128]||(e[128]=Ae((...h)=>n.searchExtension_func&&n.searchExtension_func(...h),["stop"]))},null,544),[[Ze,r.searchExtension]]),r.searchExtension?(M(),D("button",{key:0,onClick:e[129]||(e[129]=Ae(h=>r.searchExtension="",["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")):Q("",!0)])]),r.searchExtension?Q("",!0):(M(),D("div",Rlt,[_("label",Alt," Extensions Category: ("+me(r.extCatgArr.length)+") ",1),_("select",{id:"extCat",onChange:e[130]||(e[130]=h=>s.update_extension_category(h.target.value,s.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"},[(M(!0),D(Xe,null,gt(r.extCatgArr,(h,E)=>(M(),D("option",{key:E,selected:h==this.extension_category},me(h),9,wlt))),128))],32)])),_("div",null,[r.extensionsFiltererd.length>0?(M(),D("div",Olt,[_("label",Nlt,me(r.searchExtension?"Search results":"Personalities")+": ("+me(r.extensionsFiltererd.length)+") ",1),_("div",{class:Ke(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.ezl_collapsed?"":"max-h-96"])},[(M(!0),D(Xe,null,gt(r.extensionsFiltererd,(h,E)=>(M(),Qt(u,{ref_for:!0,ref:"extensionsZoo",key:"index-"+E+"-"+h.name,extension:h,select_language:!0,full_path:h.full_path,"on-mount":s.mountExtension,"on-un-mount":s.unmountExtension,"on-remount":s.remountExtension,"on-reinstall":s.onExtensionReinstall,"on-settings":s.onSettingsExtension},null,8,["extension","full_path","on-mount","on-un-mount","on-remount","on-reinstall","on-settings"]))),128))],2)])):Q("",!0)]),r.ezc_collapsed?(M(),D("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[131]||(e[131]=h=>r.ezl_collapsed=!r.ezl_collapsed)},Ilt)):(M(),D("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[132]||(e[132]=h=>r.ezl_collapsed=!r.ezl_collapsed)},Llt))],2)]),_("div",klt,[_("div",Plt,[_("button",{onClick:e[133]||(e[133]=Ae(h=>r.mep_collapsed=!r.mep_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Re(_("div",null,Flt,512),[[At,r.mep_collapsed]]),Re(_("div",null,Glt,512),[[At,!r.mep_collapsed]]),zlt])]),_("div",{class:Ke([{hidden:r.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),_("div",Vlt,[_("div",Hlt,[_("button",{onClick:e[134]||(e[134]=Ae(h=>r.mc_collapsed=!r.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Re(_("div",null,Ylt,512),[[At,r.mc_collapsed]]),Re(_("div",null,Wlt,512),[[At,!r.mc_collapsed]]),Klt])]),_("div",{class:Ke([{hidden:r.mc_collapsed},"flex flex-col mb-2 p-2"])},[_("div",jlt,[_("div",Qlt,[Re(_("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[135]||(e[135]=Ae(()=>{},["stop"])),"onUpdate:modelValue":e[136]||(e[136]=h=>s.configFile.override_personality_model_parameters=h),onChange:e[137]||(e[137]=h=>s.update_setting("override_personality_model_parameters",s.configFile.override_personality_model_parameters))},null,544),[[Mt,s.configFile.override_personality_model_parameters]]),Xlt])]),_("div",{class:Ke(s.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[_("div",Zlt,[Jlt,Re(_("input",{type:"text",id:"seed","onUpdate:modelValue":e[138]||(e[138]=h=>s.configFile.seed=h),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),[[Ze,s.configFile.seed]])]),_("div",ect,[_("div",tct,[_("div",nct,[ict,_("p",rct,[Re(_("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[139]||(e[139]=h=>s.configFile.temperature=h),onChange:e[140]||(e[140]=h=>r.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),[[Ze,s.configFile.temperature]])])]),Re(_("input",{id:"temperature",onChange:e[141]||(e[141]=h=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[142]||(e[142]=h=>s.configFile.temperature=h),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),[[Ze,s.configFile.temperature]])])]),_("div",sct,[_("div",oct,[_("div",act,[lct,_("p",cct,[Re(_("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[143]||(e[143]=h=>s.configFile.n_predict=h),onChange:e[144]||(e[144]=h=>r.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),[[Ze,s.configFile.n_predict]])])]),Re(_("input",{id:"predict",type:"range",onChange:e[145]||(e[145]=h=>r.settingsChanged=!0),"onUpdate:modelValue":e[146]||(e[146]=h=>s.configFile.n_predict=h),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),[[Ze,s.configFile.n_predict]])])]),_("div",dct,[_("div",uct,[_("div",_ct,[pct,_("p",hct,[Re(_("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[147]||(e[147]=h=>s.configFile.top_k=h),onChange:e[148]||(e[148]=h=>r.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),[[Ze,s.configFile.top_k]])])]),Re(_("input",{id:"top_k",type:"range",onChange:e[149]||(e[149]=h=>r.settingsChanged=!0),"onUpdate:modelValue":e[150]||(e[150]=h=>s.configFile.top_k=h),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),[[Ze,s.configFile.top_k]])])]),_("div",fct,[_("div",mct,[_("div",gct,[Ect,_("p",bct,[Re(_("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[151]||(e[151]=h=>s.configFile.top_p=h),onChange:e[152]||(e[152]=h=>r.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),[[Ze,s.configFile.top_p]])])]),Re(_("input",{id:"top_p",type:"range","onUpdate:modelValue":e[153]||(e[153]=h=>s.configFile.top_p=h),min:"0",max:"1",step:"0.01",onChange:e[154]||(e[154]=h=>r.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),[[Ze,s.configFile.top_p]])])]),_("div",Sct,[_("div",yct,[_("div",vct,[Tct,_("p",xct,[Re(_("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[155]||(e[155]=h=>s.configFile.repeat_penalty=h),onChange:e[156]||(e[156]=h=>r.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),[[Ze,s.configFile.repeat_penalty]])])]),Re(_("input",{id:"repeat_penalty",onChange:e[157]||(e[157]=h=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[158]||(e[158]=h=>s.configFile.repeat_penalty=h),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),[[Ze,s.configFile.repeat_penalty]])])]),_("div",Cct,[_("div",Rct,[_("div",Act,[wct,_("p",Oct,[Re(_("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[159]||(e[159]=h=>s.configFile.repeat_last_n=h),onChange:e[160]||(e[160]=h=>r.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),[[Ze,s.configFile.repeat_last_n]])])]),Re(_("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[161]||(e[161]=h=>s.configFile.repeat_last_n=h),min:"0",max:"100",step:"1",onChange:e[162]||(e[162]=h=>r.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),[[Ze,s.configFile.repeat_last_n]])])])],2)],2)])],2)]),Le(p,{ref:"addmodeldialog"},null,512),Le(f,{class:"z-20",show:r.variantSelectionDialogVisible,choices:r.variant_choices,onChoiceSelected:s.onVariantChoiceSelected,onCloseDialog:s.oncloseVariantChoiceDialog,onChoiceValidated:s.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Mct=ft(mnt,[["render",Nct],["__scopeId","data-v-d8f7398d"]]),Ict={components:{ClipBoardTextInput:_E,Card:Ll},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={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};Pe.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.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(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},Dct={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"},Lct={class:"mb-4"},kct=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Pct=["value"],Uct={class:"mb-4"},Fct=_("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Bct={class:"mb-4"},Gct=_("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),zct={class:"mb-4"},Vct=_("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Hct={class:"mb-4"},qct=_("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Yct={class:"mb-4"},$ct=_("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Wct={class:"mb-4"},Kct=_("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),jct=_("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Qct={key:1};function Xct(n,e,t,i,r,s){const o=St("Card"),a=St("ClipBoardTextInput");return s.selectedModel!==null&&s.selectedModel.toLowerCase().includes("gptq")?(M(),D("div",Dct,[_("form",{onSubmit:e[2]||(e[2]=Ae((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:""},[Le(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[Le(o,{title:"Model",class:"",isHorizontal:!1},{default:lt(()=>[_("div",Lct,[kct,Re(_("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(M(!0),D(Xe,null,gt(s.models,l=>(M(),D("option",{key:l,value:l},me(l),9,Pct))),128))],544),[[$n,s.selectedModel]])])]),_:1}),Le(o,{title:"Data",isHorizontal:!1},{default:lt(()=>[_("div",Uct,[Fct,Le(a,{id:"model_path",inputType:"file",value:r.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Le(o,{title:"Training",isHorizontal:!1},{default:lt(()=>[_("div",Bct,[Gct,Le(a,{id:"model_path",inputType:"integer",value:r.lr},null,8,["value"])]),_("div",zct,[Vct,Le(a,{id:"model_path",inputType:"integer",value:r.num_epochs},null,8,["value"])]),_("div",Hct,[qct,Le(a,{id:"model_path",inputType:"integer",value:r.max_length},null,8,["value"])]),_("div",Yct,[$ct,Le(a,{id:"model_path",inputType:"integer",value:r.batch_size},null,8,["value"])])]),_:1}),Le(o,{title:"Output",isHorizontal:!1},{default:lt(()=>[_("div",Wct,[Kct,Le(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[jct]),_:1})],32)])):(M(),D("div",Qct,[Le(o,{title:"Info",class:"",isHorizontal:!1},{default:lt(()=>[$e(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const Zct=ft(Ict,[["render",Xct]]),Jct={components:{ClipBoardTextInput:_E,Card:Ll},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(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},edt={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"},tdt={class:"mb-4"},ndt=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),idt={class:"mb-4"},rdt=_("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),sdt=_("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function odt(n,e,t,i,r,s){const o=St("ClipBoardTextInput"),a=St("Card");return M(),D("div",edt,[_("form",{onSubmit:e[0]||(e[0]=Ae((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Le(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[Le(a,{title:"Model",class:"",isHorizontal:!1},{default:lt(()=>[_("div",tdt,[ndt,Le(o,{id:"model_path",inputType:"text",value:r.model_name},null,8,["value"])]),_("div",idt,[rdt,Le(o,{id:"model_path",inputType:"text",value:r.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Le(a,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[sdt]),_:1})],32)])}const adt=ft(Jct,[["render",odt]]),ldt={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(n){this.prompt=n}}},cdt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},ddt={class:"bg-white p-8 rounded"},udt={class:"text-xl font-bold mb-4"};function _dt(n,e,t,i,r,s){return M(),D("div",null,[r.show?(M(),D("div",cdt,[_("div",ddt,[_("h2",udt,me(t.promptText),1),Re(_("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>r.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[Ze,r.inputText]]),_("button",{onClick:e[1]||(e[1]=(...o)=>s.ok&&s.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),_("button",{onClick:e[2]||(e[2]=(...o)=>s.cancel&&s.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):Q("",!0)])}const xw=ft(ldt,[["render",_dt]]),pdt={props:{htmlContent:{type:String,required:!0}}},hdt=["innerHTML"];function fdt(n,e,t,i,r,s){return M(),D("div",null,[_("div",{innerHTML:t.htmlContent},null,8,hdt)])}const mdt=ft(pdt,[["render",fdt]]);const gdt={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"
"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"
")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},Edt={key:0},bdt={class:"toggle-icon mr-1"},Sdt={key:0,class:"fas fa-plus-circle text-gray-600"},ydt={key:1,class:"fas fa-minus-circle text-gray-600"},vdt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},Tdt={key:0,class:"fas fa-plus-circle text-gray-600"},xdt={key:1,class:"fas fa-minus-circle text-gray-600"},Cdt=["innerHTML"];function Rdt(n,e,t,i,r,s){return s.isContentPresent?(M(),D("div",Edt,[_("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>s.toggleCollapsible&&s.toggleCollapsible(...o))},[_("span",bdt,[r.collapsed?(M(),D("i",Sdt)):(M(),D("i",ydt))]),$e(" "+me(t.jsonFormText),1)]),Re(_("div",null,[_("div",vdt,[s.isObject?(M(),D("span",{key:0,onClick:e[1]||(e[1]=(...o)=>s.toggleCollapsed&&s.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[r.collapsed?(M(),D("i",Tdt)):(M(),D("i",xdt))])):Q("",!0),_("pre",{innerHTML:s.formattedJson},null,8,Cdt)])],512),[[At,!r.collapsed]])])):Q("",!0)}const Adt=ft(gdt,[["render",Rdt]]),wdt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},Odt={class:"step flex items-center mb-4"},Ndt={class:"flex items-center justify-center w-6 h-6 mr-2"},Mdt={key:0},Idt=_("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),Ddt=[Idt],Ldt={key:1},kdt=_("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Pdt=[kdt],Udt={key:2},Fdt=_("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Bdt=[Fdt],Gdt={key:0,role:"status"},zdt=_("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"},[_("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"}),_("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),Vdt=[zdt];function Hdt(n,e,t,i,r,s){return M(),D("div",Odt,[_("div",Ndt,[t.done?Q("",!0):(M(),D("div",Mdt,Ddt)),t.done&&t.status?(M(),D("div",Ldt,Pdt)):Q("",!0),t.done&&!t.status?(M(),D("div",Udt,Bdt)):Q("",!0)]),t.done?Q("",!0):(M(),D("div",Gdt,Vdt)),_("div",{class:Ke(["content flex-1 px-2",{"text-green-500":t.done,"text-yellow-500":!t.done}])},me(t.message),3)])}const qdt=ft(wdt,[["render",Hdt]]);const ax="/",Ydt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:hw,Step:qdt,RenderHTMLJS:mdt,JsonViewer:Adt,DynamicUIRenderer:Tw},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:""},data(){return{isSynthesizingVoice:!1,cpp_block:gw,html5_block:Ew,LaTeX_block:bw,javascript_block:mw,python_block:fw,bash_block:Sw,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser."),Ue(()=>{Fe.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight})},methods:{insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,r=e.value.substring(0,t),s=e.value.substring(i),o=r+" "+s;this.message.content=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4}),n.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.$refs.audio_player.pause(),this.isSynthesizingVoice=!1):(this.isSynthesizingVoice=!0,Pe.post("./text2Audio",{text:this.message.content}).then(n=>{let e=n.data.url;console.log(e),this.audio_url=e}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSynthesizingVoice=!1}))},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=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(r=>r.name===this.$store.state.config.audio_out_voice)[0]);const t=r=>{let s=this.message.content.substring(r,r+e);const o=[".","!","?",` +You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},Ce=n=>(Gs("data-v-e34a1409"),n=n(),zs(),n),gnt={class:"container overflow-y-scroll flex flex-row 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"},Ent={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},bnt={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Snt=Ce(()=>_("i",{"data-feather":"x"},null,-1)),ynt=[Snt],vnt=Ce(()=>_("i",{"data-feather":"check"},null,-1)),Tnt=[vnt],xnt={key:1,class:"flex gap-3 flex-1 items-center"},Cnt=Ce(()=>_("i",{"data-feather":"save"},null,-1)),Rnt=[Cnt],Ant=Ce(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),wnt=[Ant],Ont=Ce(()=>_("i",{"data-feather":"list"},null,-1)),Nnt=[Ont],Mnt={class:"flex gap-3 flex-1 items-center justify-end"},Int=Ce(()=>_("i",{"data-feather":"trash-2"},null,-1)),Dnt=[Int],Lnt=Ce(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),knt=[Lnt],Pnt=Ce(()=>_("i",{"data-feather":"arrow-up-circle"},null,-1)),Unt={key:0},Fnt=Ce(()=>_("i",{"data-feather":"alert-circle"},null,-1)),Bnt=[Fnt],Gnt={class:"flex gap-3 items-center"},znt={key:0,class:"flex gap-3 items-center"},Vnt=Ce(()=>_("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),Hnt=Ce(()=>_("i",{"data-feather":"check"},null,-1)),qnt=[Hnt],Ynt={key:1,role:"status"},$nt=Ce(()=>_("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"},[_("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"}),_("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)),Wnt=Ce(()=>_("span",{class:"sr-only"},"Loading...",-1)),Knt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},jnt={class:"flex flex-row p-3"},Qnt=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Xnt=[Qnt],Znt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Jnt=[Znt],eit=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),tit=Ce(()=>_("div",{class:"mr-2"},"|",-1)),nit={class:"text-base font-semibold cursor-pointer select-none items-center"},iit={class:"flex gap-2 items-center"},rit={key:0},sit={class:"flex gap-2 items-center"},oit=["src"],ait={class:"font-bold font-large text-lg"},lit={key:1},cit={class:"flex gap-2 items-center"},dit=["src"],uit={class:"font-bold font-large text-lg"},_it=Ce(()=>_("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),pit={class:"font-bold font-large text-lg"},hit=Ce(()=>_("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),fit={class:"font-bold font-large text-lg"},mit={class:"mb-2"},git=Ce(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[_("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"})]),$e(" CPU Ram usage: ")],-1)),Eit={class:"flex flex-col mx-2"},bit=Ce(()=>_("b",null,"Avaliable ram: ",-1)),Sit=Ce(()=>_("b",null,"Ram usage: ",-1)),yit={class:"p-2"},vit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Tit={class:"mb-2"},xit=Ce(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),$e(" Disk usage: ")],-1)),Cit={class:"flex flex-col mx-2"},Rit=Ce(()=>_("b",null,"Avaliable disk space: ",-1)),Ait=Ce(()=>_("b",null,"Disk usage: ",-1)),wit={class:"p-2"},Oit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Nit={class:"mb-2"},Mit={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Iit=["src"],Dit={class:"flex flex-col mx-2"},Lit=Ce(()=>_("b",null,"Model: ",-1)),kit=Ce(()=>_("b",null,"Avaliable vram: ",-1)),Pit=Ce(()=>_("b",null,"GPU usage: ",-1)),Uit={class:"p-2"},Fit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Bit={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Git={class:"flex flex-row p-3"},zit=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Vit=[zit],Hit=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),qit=[Hit],Yit=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),$it={class:"flex flex-col mb-2 px-3 pb-2"},Wit={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block 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"},Kit=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),jit={style:{width:"100%"}},Qit=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),Xit={style:{width:"100%"}},Zit=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Jit={style:{width:"100%"}},ert=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),trt={class:"flex flex-row"},nrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),irt={class:"flex flex-row"},rrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_gpu",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable GPU:")],-1)),srt={class:"text-center items-center"},ort={class:"flex flex-row"},art=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),lrt={class:"flex flex-row"},crt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),drt={class:"flex flex-row"},urt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),_rt={class:"flex flex-row"},prt={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"},hrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),frt={style:{width:"100%"}},mrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),grt={style:{width:"100%"}},Ert=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),brt={style:{width:"100%"}},Srt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),yrt={style:{width:"100%"}},vrt={for:"avatar-upload"},Trt=["src"],xrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),Crt={class:"flex flex-row"},Rrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"min_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),Art={style:{width:"100%"}},wrt={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"},Ort=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),Nrt={class:"flex flex-row"},Mrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),Irt={class:"flex flex-row"},Drt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"summerize_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Continuous Learning from discussions:")],-1)),Lrt={class:"flex flex-row"},krt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),Prt={class:"flex flex-row"},Urt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),Frt={class:"flex flex-row"},Brt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),Grt={class:"flex flex-row"},zrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),Vrt=Ce(()=>_("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),Hrt=Ce(()=>_("option",{value:"model_embedding"},"Model Embedding",-1)),qrt=[Vrt,Hrt],Yrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),$rt=Ce(()=>_("option",{value:"PCA"},"PCA",-1)),Wrt=Ce(()=>_("option",{value:"TSNE"},"TSNE",-1)),Krt=[$rt,Wrt],jrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),Qrt={class:"flex flex-row"},Xrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),Zrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),Jrt=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),est={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"},tst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),nst={class:"flex flex-row"},ist={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"},rst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_voice_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),sst={class:"flex flex-row"},ost=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall xTTS service:")],-1)),ast={class:"flex flex-row"},lst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),cst={class:"flex flex-row"},dst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),ust={class:"flex flex-row"},_st=["disabled"],pst=["value"],hst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),fst={class:"flex flex-row"},mst=["disabled"],gst=["value"],Est=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),bst={class:"flex flex-row"},Sst=["disabled"],yst={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"},vst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),Tst={class:"flex flex-row"},xst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),Cst={class:"flex flex-row"},Rst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),Ast=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),wst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),Ost=["value"],Nst=Ce(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),Mst=["value"],Ist={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Dst={class:"flex flex-row p-3"},Lst=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),kst=[Lst],Pst=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Ust=[Pst],Fst=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Bst={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Gst=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),zst={key:1,class:"mr-2"},Vst={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Hst={class:"flex gap-1 items-center"},qst=["src"],Yst={class:"font-bold font-large text-lg line-clamp-1"},$st={key:0,class:"mb-2"},Wst={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Kst=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),jst=[Kst],Qst=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Xst=[Qst],Zst={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Jst={class:"flex flex-row p-3"},eot=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),tot=[eot],not=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),iot=[not],rot=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),sot={class:"flex flex-row items-center"},oot={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},aot=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),lot={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},cot=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),dot={key:2,class:"mr-2"},uot={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},_ot={class:"flex gap-1 items-center"},pot=["src"],hot={class:"font-bold font-large text-lg line-clamp-1"},fot={class:"mx-2 mb-4"},mot={class:"relative"},got={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Eot={key:0},bot=Ce(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Sot=[bot],yot={key:1},vot=Ce(()=>_("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"},[_("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)),Tot=[vot],xot=Ce(()=>_("label",{for:"only_installed"},"Show only installed models",-1)),Cot=Ce(()=>_("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)),Rot={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Aot=Ce(()=>_("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"},[_("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"}),_("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)),wot=Ce(()=>_("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Oot=[Aot,wot],Not={key:1,class:"mb-2"},Mot={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Iot=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Dot=[Iot],Lot=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),kot=[Lot],Pot={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Uot={class:"flex flex-row p-3"},Fot=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Bot=[Fot],Got=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),zot=[Got],Vot=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),Hot={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},qot=Ce(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Yot={key:1,class:"mr-2"},$ot={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Wot={class:"flex gap-1 items-center"},Kot=["src"],jot={class:"font-bold font-large text-lg line-clamp-1"},Qot={class:"mb-2"},Xot={class:"p-2"},Zot={class:"mb-3"},Jot=Ce(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),eat={key:0},tat={class:"mb-3"},nat=Ce(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),iat={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},rat=Ce(()=>_("div",{role:"status",class:"justify-center"},null,-1)),sat={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},oat={class:"w-full p-2"},aat={class:"flex justify-between mb-1"},lat=Og(' Downloading Loading...',1),cat={class:"text-sm font-medium text-blue-700 dark:text-white"},dat=["title"],uat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},_at={class:"flex justify-between mb-1"},pat={class:"text-base font-medium text-blue-700 dark:text-white"},hat={class:"text-sm font-medium text-blue-700 dark:text-white"},fat={class:"flex flex-grow"},mat={class:"flex flex-row flex-grow gap-3"},gat={class:"p-2 text-center grow"},Eat={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},bat={class:"flex flex-row p-3 items-center"},Sat=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),yat=[Sat],vat=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Tat=[vat],xat=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),Cat={key:0,class:"mr-2"},Rat={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Aat={key:1,class:"mr-2"},wat={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Oat={key:0,class:"flex -space-x-4 items-center"},Nat={class:"group items-center flex flex-row"},Mat=["onClick"],Iat=["src","title"],Dat=["onClick"],Lat=Ce(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),kat=[Lat],Pat={class:"mx-2 mb-4"},Uat=Ce(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Fat={class:"relative"},Bat={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Gat={key:0},zat=Ce(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Vat=[zat],Hat={key:1},qat=Ce(()=>_("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"},[_("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)),Yat=[qat],$at={key:0,class:"mx-2 mb-4"},Wat={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Kat=["selected"],jat={key:0,class:"mb-2"},Qat={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Xat=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Zat=[Xat],Jat=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),elt=[Jat],tlt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},nlt={class:"flex flex-row p-3 items-center"},ilt=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),rlt=[ilt],slt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),olt=[slt],alt=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),llt={key:0,class:"mr-2"},clt={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},dlt={key:0,class:"flex -space-x-4 items-center"},ult={class:"group items-center flex flex-row"},_lt=["src","title"],plt=["onClick"],hlt=Ce(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),flt=[hlt],mlt={class:"mx-2 mb-4"},glt=Ce(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Elt={class:"relative"},blt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Slt={key:0},ylt=Ce(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),vlt=[ylt],Tlt={key:1},xlt=Ce(()=>_("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"},[_("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)),Clt=[xlt],Rlt={key:0,class:"mx-2 mb-4"},Alt={for:"extCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},wlt=["selected"],Olt={key:0,class:"mb-2"},Nlt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Mlt=Ce(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Ilt=[Mlt],Dlt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Llt=[Dlt],klt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Plt={class:"flex flex-row p-3 items-center"},Ult=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Flt=[Ult],Blt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Glt=[Blt],zlt=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),Vlt={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Hlt={class:"flex flex-row"},qlt=Ce(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Ylt=[qlt],$lt=Ce(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Wlt=[$lt],Klt=Ce(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),jlt={class:"m-2"},Qlt={class:"flex flex-row gap-2 items-center"},Xlt=Ce(()=>_("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),Zlt={class:"m-2"},Jlt=Ce(()=>_("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),ect={class:"m-2"},tct={class:"flex flex-col align-bottom"},nct={class:"relative"},ict=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),rct={class:"absolute right-0"},sct={class:"m-2"},oct={class:"flex flex-col align-bottom"},act={class:"relative"},lct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),cct={class:"absolute right-0"},dct={class:"m-2"},uct={class:"flex flex-col align-bottom"},_ct={class:"relative"},pct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),hct={class:"absolute right-0"},fct={class:"m-2"},mct={class:"flex flex-col align-bottom"},gct={class:"relative"},Ect=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),bct={class:"absolute right-0"},Sct={class:"m-2"},yct={class:"flex flex-col align-bottom"},vct={class:"relative"},Tct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),xct={class:"absolute right-0"},Cct={class:"m-2"},Rct={class:"flex flex-col align-bottom"},Act={class:"relative"},wct=Ce(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Oct={class:"absolute right-0"};function Nct(n,e,t,i,r,s){const o=St("Card"),a=St("BindingEntry"),l=St("RadioOptions"),c=St("model-entry"),d=St("personality-entry"),u=St("ExtensionEntry"),p=St("AddModelDialog"),f=St("ChoiceDialog");return M(),D(Xe,null,[_("div",gnt,[_("div",Ent,[r.showConfirmation?(M(),D("div",bnt,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=Ae(h=>r.showConfirmation=!1,["stop"]))},ynt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=Ae(h=>s.save_configuration(),["stop"]))},Tnt)])):Q("",!0),r.showConfirmation?Q("",!0):(M(),D("div",xnt,[_("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=h=>r.showConfirmation=!0)},Rnt),_("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=h=>s.reset_configuration())},wnt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=Ae(h=>r.all_collapsed=!r.all_collapsed,["stop"]))},Nnt)])),_("div",Mnt,[_("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=h=>s.api_get_req("clear_uploads").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},Dnt),_("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=h=>s.api_get_req("restart_program").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},knt),_("button",{title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[7]||(e[7]=h=>s.api_get_req("update_software").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[Pnt,r.has_updates?(M(),D("div",Unt,Bnt)):Q("",!0)]),_("div",Gnt,[r.settingsChanged?(M(),D("div",znt,[Vnt,r.isLoading?Q("",!0):(M(),D("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[8]||(e[8]=Ae(h=>s.applyConfiguration(),["stop"]))},qnt))])):Q("",!0),r.isLoading?(M(),D("div",Ynt,[_("p",null,me(r.loading_text),1),$nt,Wnt])):Q("",!0)])])]),_("div",{class:Ke(r.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[_("div",Knt,[_("div",jnt,[_("button",{onClick:e[9]||(e[9]=Ae(h=>r.sc_collapsed=!r.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Re(_("div",null,Xnt,512),[[At,r.sc_collapsed]]),Re(_("div",null,Jnt,512),[[At,!r.sc_collapsed]]),eit,tit,_("div",nit,[_("div",iit,[_("div",null,[s.vramUsage&&s.vramUsage.gpus&&s.vramUsage.gpus.length==1?(M(),D("div",rit,[(M(!0),D(Xe,null,gt(s.vramUsage.gpus,h=>(M(),D("div",sit,[_("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,oit),_("h3",ait,[_("div",null,me(s.computedFileSize(h.used_vram))+" / "+me(s.computedFileSize(h.total_vram))+" ("+me(h.percentage)+"%) ",1)])]))),256))])):Q("",!0),s.vramUsage&&s.vramUsage.gpus&&s.vramUsage.gpus.length>1?(M(),D("div",lit,[_("div",cit,[_("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,dit),_("h3",uit,[_("div",null,me(s.vramUsage.gpus.length)+"x ",1)])])])):Q("",!0)]),_it,_("h3",pit,[_("div",null,me(s.ram_usage)+" / "+me(s.ram_total_space)+" ("+me(s.ram_percent_usage)+"%)",1)]),hit,_("h3",fit,[_("div",null,me(s.disk_binding_models_usage)+" / "+me(s.disk_total_space)+" ("+me(s.disk_percent_usage)+"%)",1)])])])])]),_("div",{class:Ke([{hidden:r.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",mit,[git,_("div",Eit,[_("div",null,[bit,$e(me(s.ram_available_space),1)]),_("div",null,[Sit,$e(" "+me(s.ram_usage)+" / "+me(s.ram_total_space)+" ("+me(s.ram_percent_usage)+")% ",1)])]),_("div",yit,[_("div",vit,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un("width: "+s.ram_percent_usage+"%;")},null,4)])])]),_("div",Tit,[xit,_("div",Cit,[_("div",null,[Rit,$e(me(s.disk_available_space),1)]),_("div",null,[Ait,$e(" "+me(s.disk_binding_models_usage)+" / "+me(s.disk_total_space)+" ("+me(s.disk_percent_usage)+"%)",1)])]),_("div",wit,[_("div",Oit,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un("width: "+s.disk_percent_usage+"%;")},null,4)])])]),(M(!0),D(Xe,null,gt(s.vramUsage.gpus,h=>(M(),D("div",Nit,[_("label",Mit,[_("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Iit),$e(" GPU usage: ")]),_("div",Dit,[_("div",null,[Lit,$e(me(h.gpu_model),1)]),_("div",null,[kit,$e(me(this.computedFileSize(h.available_space)),1)]),_("div",null,[Pit,$e(" "+me(this.computedFileSize(h.used_vram))+" / "+me(this.computedFileSize(h.total_vram))+" ("+me(h.percentage)+"%)",1)])]),_("div",Uit,[_("div",Fit,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un("width: "+h.percentage+"%;")},null,4)])])]))),256))],2)]),_("div",Bit,[_("div",Git,[_("button",{onClick:e[10]||(e[10]=Ae(h=>r.minconf_collapsed=!r.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Re(_("div",null,Vit,512),[[At,r.minconf_collapsed]]),Re(_("div",null,qit,512),[[At,!r.minconf_collapsed]]),Yit])]),_("div",{class:Ke([{hidden:r.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",$it,[Le(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",Wit,[_("tr",null,[Kit,_("td",jit,[Re(_("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[11]||(e[11]=h=>s.configFile.host=h),onChange:e[12]||(e[12]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,s.configFile.host]])])]),_("tr",null,[Qit,_("td",Xit,[Re(_("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[13]||(e[13]=h=>s.configFile.port=h),onChange:e[14]||(e[14]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,s.configFile.port]])])]),_("tr",null,[Zit,_("td",Jit,[Re(_("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[15]||(e[15]=h=>s.configFile.db_path=h),onChange:e[16]||(e[16]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,s.configFile.db_path]])])]),_("tr",null,[ert,_("td",null,[_("div",trt,[Re(_("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[17]||(e[17]=h=>s.configFile.auto_show_browser=h),onChange:e[18]||(e[18]=h=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_show_browser]])])])]),_("tr",null,[nrt,_("td",null,[_("div",irt,[Re(_("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[19]||(e[19]=h=>s.configFile.debug=h),onChange:e[20]||(e[20]=h=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.debug]])])])]),_("tr",null,[rrt,_("td",srt,[_("div",ort,[Re(_("input",{type:"checkbox",id:"enable_gpu",required:"","onUpdate:modelValue":e[21]||(e[21]=h=>s.configFile.enable_gpu=h),onChange:e[22]||(e[22]=h=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.enable_gpu]]),s.configFile.enable_gpu?Q("",!0):(M(),D("button",{key:0,onClick:e[23]||(e[23]=Ae((...h)=>s.upgrade2GPU&&s.upgrade2GPU(...h),["prevent"])),class:"w-100 text-center rounded m-2 bg-blue-300 hover:bg-blue-200 text-l hover:text-primary p-2 m-2 text-left flex flex-row"}," Upgrade from CPU to GPU "))])])]),_("tr",null,[art,_("td",null,[_("div",lrt,[Re(_("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[24]||(e[24]=h=>s.configFile.auto_save=h),onChange:e[25]||(e[25]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_save]])])])]),_("tr",null,[crt,_("td",null,[_("div",drt,[Re(_("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[26]||(e[26]=h=>s.configFile.auto_update=h),onChange:e[27]||(e[27]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_update]])])])]),_("tr",null,[urt,_("td",null,[_("div",_rt,[Re(_("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[28]||(e[28]=h=>s.configFile.auto_title=h),onChange:e[29]||(e[29]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_title]])])])])])]),_:1}),Le(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",prt,[_("tr",null,[hrt,_("td",frt,[Re(_("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[30]||(e[30]=h=>s.configFile.user_name=h),onChange:e[31]||(e[31]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.user_name]])])]),_("tr",null,[mrt,_("td",grt,[Re(_("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[32]||(e[32]=h=>s.configFile.user_description=h),onChange:e[33]||(e[33]=h=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.user_description]])])]),_("tr",null,[Ert,_("td",brt,[Re(_("input",{type:"checkbox",id:"override_personality_model_parameters",required:"","onUpdate:modelValue":e[34]||(e[34]=h=>s.configFile.override_personality_model_parameters=h),onChange:e[35]||(e[35]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.override_personality_model_parameters]])])]),_("tr",null,[Srt,_("td",yrt,[_("label",vrt,[_("img",{src:"/user_infos/"+s.configFile.user_avatar,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Trt)]),_("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[36]||(e[36]=(...h)=>s.uploadAvatar&&s.uploadAvatar(...h))},null,32)])]),_("tr",null,[xrt,_("td",null,[_("div",Crt,[Re(_("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[37]||(e[37]=h=>s.configFile.use_user_name_in_discussions=h),onChange:e[38]||(e[38]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.use_user_name_in_discussions]])])])]),_("tr",null,[Rrt,_("td",Art,[Re(_("input",{type:"number",id:"min_n_predict",required:"","onUpdate:modelValue":e[39]||(e[39]=h=>s.configFile.min_n_predict=h),onChange:e[40]||(e[40]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.min_n_predict]])])])])]),_:1}),Le(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",wrt,[_("tr",null,[Ort,_("td",null,[_("div",Nrt,[Re(_("input",{type:"checkbox",id:"use_files",required:"","onUpdate:modelValue":e[41]||(e[41]=h=>s.configFile.use_files=h),onChange:e[42]||(e[42]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.use_files]])])])]),_("tr",null,[Mrt,_("td",null,[_("div",Irt,[Re(_("input",{type:"checkbox",id:"use_discussions_history",required:"","onUpdate:modelValue":e[43]||(e[43]=h=>s.configFile.use_discussions_history=h),onChange:e[44]||(e[44]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.use_discussions_history]])])])]),_("tr",null,[Drt,_("td",null,[_("div",Lrt,[Re(_("input",{type:"checkbox",id:"summerize_discussion",required:"","onUpdate:modelValue":e[45]||(e[45]=h=>s.configFile.summerize_discussion=h),onChange:e[46]||(e[46]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.summerize_discussion]])])])]),_("tr",null,[krt,_("td",null,[_("div",Prt,[Re(_("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[47]||(e[47]=h=>s.configFile.data_vectorization_visualize_on_vectorization=h),onChange:e[48]||(e[48]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_visualize_on_vectorization]])])])]),_("tr",null,[Urt,_("td",null,[_("div",Frt,[Re(_("input",{type:"checkbox",id:"data_vectorization_activate",required:"","onUpdate:modelValue":e[49]||(e[49]=h=>s.configFile.data_vectorization_activate=h),onChange:e[50]||(e[50]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_activate]])])])]),_("tr",null,[Brt,_("td",null,[_("div",Grt,[Re(_("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[51]||(e[51]=h=>s.configFile.data_vectorization_build_keys_words=h),onChange:e[52]||(e[52]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_build_keys_words]])])])]),_("tr",null,[zrt,_("td",null,[Re(_("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[53]||(e[53]=h=>s.configFile.data_vectorization_method=h),onChange:e[54]||(e[54]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},qrt,544),[[$n,s.configFile.data_vectorization_method]])])]),_("tr",null,[Yrt,_("td",null,[Re(_("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[55]||(e[55]=h=>s.configFile.data_visualization_method=h),onChange:e[56]||(e[56]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Krt,544),[[$n,s.configFile.data_visualization_method]])])]),_("tr",null,[jrt,_("td",null,[_("div",Qrt,[Re(_("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[57]||(e[57]=h=>s.configFile.data_vectorization_save_db=h),onChange:e[58]||(e[58]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.data_vectorization_save_db]])])])]),_("tr",null,[Xrt,_("td",null,[Re(_("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[59]||(e[59]=h=>s.configFile.data_vectorization_chunk_size=h),onChange:e[60]||(e[60]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[Ze,s.configFile.data_vectorization_chunk_size]]),Re(_("input",{"onUpdate:modelValue":e[61]||(e[61]=h=>s.configFile.data_vectorization_chunk_size=h),type:"number",onChange:e[62]||(e[62]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.data_vectorization_chunk_size]])])]),_("tr",null,[Zrt,_("td",null,[Re(_("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[63]||(e[63]=h=>s.configFile.data_vectorization_overlap_size=h),onChange:e[64]||(e[64]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[Ze,s.configFile.data_vectorization_overlap_size]]),Re(_("input",{"onUpdate:modelValue":e[65]||(e[65]=h=>s.configFile.data_vectorization_overlap_size=h),type:"number",onChange:e[66]||(e[66]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.data_vectorization_overlap_size]])])]),_("tr",null,[Jrt,_("td",null,[Re(_("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[67]||(e[67]=h=>s.configFile.data_vectorization_nb_chunks=h),onChange:e[68]||(e[68]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",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),[[Ze,s.configFile.data_vectorization_nb_chunks]]),Re(_("input",{"onUpdate:modelValue":e[69]||(e[69]=h=>s.configFile.data_vectorization_nb_chunks=h),type:"number",onChange:e[70]||(e[70]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.data_vectorization_nb_chunks]])])])])]),_:1}),Le(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",est,[_("tr",null,[tst,_("td",null,[_("div",nst,[Re(_("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[71]||(e[71]=h=>s.configFile.pdf_latex_path=h),onChange:e[72]||(e[72]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.pdf_latex_path]])])])])])]),_:1}),Le(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",ist,[_("tr",null,[rst,_("td",null,[_("div",sst,[Re(_("input",{type:"checkbox",id:"enable_voice_service",required:"","onUpdate:modelValue":e[73]||(e[73]=h=>s.configFile.enable_voice_service=h),onChange:e[74]||(e[74]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.enable_voice_service]])])])]),_("tr",null,[ost,_("td",null,[_("div",ast,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[75]||(e[75]=(...h)=>s.reinstallAudioService&&s.reinstallAudioService(...h))},"Reinstall xtts service")])])]),_("tr",null,[lst,_("td",null,[_("div",cst,[Re(_("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[76]||(e[76]=h=>s.configFile.xtts_base_url=h),onChange:e[77]||(e[77]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.xtts_base_url]])])])]),_("tr",null,[dst,_("td",null,[_("div",ust,[Re(_("select",{"onUpdate:modelValue":e[78]||(e[78]=h=>s.current_language=h),onChange:e[79]||(e[79]=h=>r.settingsChanged=!0),disabled:!s.enable_voice_service},[(M(!0),D(Xe,null,gt(r.voice_languages,(h,E)=>(M(),D("option",{key:E,value:h},me(E),9,pst))),128))],40,_st),[[$n,s.current_language]])])])]),_("tr",null,[hst,_("td",null,[_("div",fst,[Re(_("select",{"onUpdate:modelValue":e[80]||(e[80]=h=>s.current_voice=h),onChange:e[81]||(e[81]=h=>r.settingsChanged=!0),disabled:!s.enable_voice_service},[(M(!0),D(Xe,null,gt(r.voices,h=>(M(),D("option",{key:h,value:h},me(h),9,gst))),128))],40,mst),[[$n,s.current_voice]])])])]),_("tr",null,[Est,_("td",null,[_("div",bst,[Re(_("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[82]||(e[82]=h=>s.configFile.auto_read=h),onChange:e[83]||(e[83]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!s.enable_voice_service},null,40,Sst),[[Mt,s.configFile.auto_read]])])])])])]),_:1}),Le(o,{title:"Browser Audio",is_subcard:!0,class:"pb-2 m-2"},{default:lt(()=>[_("table",yst,[_("tr",null,[vst,_("td",null,[_("div",Tst,[Re(_("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[84]||(e[84]=h=>s.configFile.audio_auto_send_input=h),onChange:e[85]||(e[85]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.audio_auto_send_input]])])])]),_("tr",null,[xst,_("td",null,[_("div",Cst,[Re(_("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[86]||(e[86]=h=>s.configFile.auto_speak=h),onChange:e[87]||(e[87]=h=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Mt,s.configFile.auto_speak]])])])]),_("tr",null,[Rst,_("td",null,[Re(_("input",{id:"audio_pitch","onUpdate:modelValue":e[88]||(e[88]=h=>s.configFile.audio_pitch=h),onChange:e[89]||(e[89]=h=>r.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),[[Ze,s.configFile.audio_pitch]]),Re(_("input",{"onUpdate:modelValue":e[90]||(e[90]=h=>s.configFile.audio_pitch=h),onChange:e[91]||(e[91]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.audio_pitch]])])]),_("tr",null,[Ast,_("td",null,[Re(_("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[92]||(e[92]=h=>s.configFile.audio_silenceTimer=h),onChange:e[93]||(e[93]=h=>r.settingsChanged=!0),type:"range",min:"0",max:"10000",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),[[Ze,s.configFile.audio_silenceTimer]]),Re(_("input",{"onUpdate:modelValue":e[94]||(e[94]=h=>s.configFile.audio_silenceTimer=h),onChange:e[95]||(e[95]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,s.configFile.audio_silenceTimer]])])]),_("tr",null,[wst,_("td",null,[Re(_("select",{id:"audio_in_language","onUpdate:modelValue":e[96]||(e[96]=h=>s.configFile.audio_in_language=h),onChange:e[97]||(e[97]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(M(!0),D(Xe,null,gt(s.audioLanguages,h=>(M(),D("option",{key:h.code,value:h.code},me(h.name),9,Ost))),128))],544),[[$n,s.configFile.audio_in_language]])])]),_("tr",null,[Nst,_("td",null,[Re(_("select",{id:"audio_out_voice","onUpdate:modelValue":e[98]||(e[98]=h=>s.configFile.audio_out_voice=h),onChange:e[99]||(e[99]=h=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(M(!0),D(Xe,null,gt(r.audioVoices,h=>(M(),D("option",{key:h.name,value:h.name},me(h.name),9,Mst))),128))],544),[[$n,s.configFile.audio_out_voice]])])])])]),_:1})])],2)]),_("div",Ist,[_("div",Dst,[_("button",{onClick:e[100]||(e[100]=Ae(h=>r.bzc_collapsed=!r.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Re(_("div",null,kst,512),[[At,r.bzc_collapsed]]),Re(_("div",null,Ust,512),[[At,!r.bzc_collapsed]]),Fst,s.configFile.binding_name?Q("",!0):(M(),D("div",Bst,[Gst,$e(" No binding selected! ")])),s.configFile.binding_name?(M(),D("div",zst,"|")):Q("",!0),s.configFile.binding_name?(M(),D("div",Vst,[_("div",Hst,[_("img",{src:s.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,qst),_("h3",Yst,me(s.binding_name),1)])])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[s.bindingsZoo&&s.bindingsZoo.length>0?(M(),D("div",$st,[_("label",Wst," Bindings: ("+me(s.bindingsZoo.length)+") ",1),_("div",{class:Ke(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.bzl_collapsed?"":"max-h-96"])},[Le(Vr,{name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(s.bindingsZoo,(h,E)=>(M(),Qt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+E+"-"+h.folder,binding:h,"on-selected":s.onBindingSelected,"on-reinstall":s.onReinstallBinding,"on-unInstall":s.onUnInstallBinding,"on-install":s.onInstallBinding,"on-settings":s.onSettingsBinding,"on-reload-binding":s.onReloadBinding,selected:h.folder===s.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):Q("",!0),r.bzl_collapsed?(M(),D("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[101]||(e[101]=h=>r.bzl_collapsed=!r.bzl_collapsed)},jst)):(M(),D("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[102]||(e[102]=h=>r.bzl_collapsed=!r.bzl_collapsed)},Xst))],2)]),_("div",Zst,[_("div",Jst,[_("button",{onClick:e[103]||(e[103]=Ae(h=>s.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Re(_("div",null,tot,512),[[At,r.mzc_collapsed]]),Re(_("div",null,iot,512),[[At,!r.mzc_collapsed]]),rot,_("div",sot,[s.configFile.binding_name?Q("",!0):(M(),D("div",oot,[aot,$e(" Select binding first! ")])),!r.isModelSelected&&s.configFile.binding_name?(M(),D("div",lot,[cot,$e(" No model selected! ")])):Q("",!0),s.configFile.model_name?(M(),D("div",dot,"|")):Q("",!0),s.configFile.model_name?(M(),D("div",uot,[_("div",_ot,[_("img",{src:s.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,pot),_("h3",hot,me(s.configFile.model_name),1)])])):Q("",!0)])])]),_("div",{class:Ke([{hidden:r.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",fot,[_("div",mot,[_("div",got,[r.searchModelInProgress?(M(),D("div",Eot,Sot)):Q("",!0),r.searchModelInProgress?Q("",!0):(M(),D("div",yot,Tot))]),Re(_("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[104]||(e[104]=h=>r.searchModel=h),onKeyup:e[105]||(e[105]=Fo((...h)=>s.searchModel_func&&s.searchModel_func(...h),["enter"]))},null,544),[[Ze,r.searchModel]]),r.searchModel?(M(),D("button",{key:0,onClick:e[106]||(e[106]=Ae(h=>r.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")):Q("",!0)])]),_("div",null,[Re(_("input",{"onUpdate:modelValue":e[107]||(e[107]=h=>r.show_only_installed_models=h),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Mt,r.show_only_installed_models]]),xot]),_("div",null,[Le(l,{radioOptions:r.sortOptions,onRadioSelected:s.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Cot,r.is_loading_zoo?(M(),D("div",Rot,Oot)):Q("",!0),r.models_zoo&&r.models_zoo.length>0?(M(),D("div",Not,[_("label",Mot," Models: ("+me(r.models_zoo.length)+") ",1),_("div",{class:Ke(["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",r.mzl_collapsed?"":"max-h-96"])},[Le(Vr,{name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(s.rendered_models_zoo,(h,E)=>(M(),Qt(c,{ref_for:!0,ref:"modelZoo",key:"index-"+E+"-"+h.name,model:h,"is-installed":h.isInstalled,"on-install":s.onInstall,"on-uninstall":s.onUninstall,"on-selected":s.onModelSelected,selected:h.name===s.configFile.model_name,model_type:h.model_type,"on-copy":s.onCopy,"on-copy-link":s.onCopyLink,"on-cancel-install":s.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),_("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[108]||(e[108]=(...h)=>s.load_more_models&&s.load_more_models(...h))},"Load more models",512)]),_:1})],2)])):Q("",!0),r.mzl_collapsed?(M(),D("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[109]||(e[109]=(...h)=>s.open_mzl&&s.open_mzl(...h))},Dot)):(M(),D("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[110]||(e[110]=(...h)=>s.open_mzl&&s.open_mzl(...h))},kot))],2)]),_("div",Pot,[_("div",Uot,[_("button",{onClick:e[111]||(e[111]=Ae(h=>r.mzdc_collapsed=!r.mzdc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Re(_("div",null,Bot,512),[[At,r.mzdc_collapsed]]),Re(_("div",null,zot,512),[[At,!r.mzdc_collapsed]]),Vot,s.binding_name?Q("",!0):(M(),D("div",Hot,[qot,$e(" No binding selected! ")])),s.configFile.binding_name?(M(),D("div",Yot,"|")):Q("",!0),s.configFile.binding_name?(M(),D("div",$ot,[_("div",Wot,[_("img",{src:s.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Kot),_("h3",jot,me(s.binding_name),1)])])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",Qot,[_("div",Xot,[_("div",null,[_("div",Zot,[Jot,Re(_("input",{type:"text","onUpdate:modelValue":e[112]||(e[112]=h=>r.reference_path=h),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),[[Ze,r.reference_path]])]),_("button",{type:"button",onClick:e[113]||(e[113]=Ae(h=>s.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")]),r.modelDownlaodInProgress?Q("",!0):(M(),D("div",eat,[_("div",tat,[nat,Re(_("input",{type:"text","onUpdate:modelValue":e[114]||(e[114]=h=>r.addModel.url=h),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),[[Ze,r.addModel.url]])]),_("button",{type:"button",onClick:e[115]||(e[115]=Ae(h=>s.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")])),r.modelDownlaodInProgress?(M(),D("div",iat,[rat,_("div",sat,[_("div",oat,[_("div",aat,[lat,_("span",cat,me(Math.floor(r.addModel.progress))+"%",1)]),_("div",{class:"mx-1 opacity-80 line-clamp-1",title:r.addModel.url},me(r.addModel.url),9,dat),_("div",uat,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:un({width:r.addModel.progress+"%"})},null,4)]),_("div",_at,[_("span",pat,"Download speed: "+me(s.speed_computed)+"/s",1),_("span",hat,me(s.downloaded_size_computed)+"/"+me(s.total_size_computed),1)])])]),_("div",fat,[_("div",mat,[_("div",gat,[_("button",{onClick:e[116]||(e[116]=Ae((...h)=>s.onCancelInstall&&s.onCancelInstall(...h),["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 ")])])])])):Q("",!0)])])],2)]),_("div",Eat,[_("div",bat,[_("button",{onClick:e[118]||(e[118]=Ae(h=>r.pzc_collapsed=!r.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Re(_("div",null,yat,512),[[At,r.pzc_collapsed]]),Re(_("div",null,Tat,512),[[At,!r.pzc_collapsed]]),xat,s.configFile.personalities?(M(),D("div",Cat,"|")):Q("",!0),_("div",Rat,me(s.active_pesonality),1),s.configFile.personalities?(M(),D("div",Aat,"|")):Q("",!0),s.configFile.personalities?(M(),D("div",wat,[s.mountedPersArr.length>0?(M(),D("div",Oat,[(M(!0),D(Xe,null,gt(s.mountedPersArr,(h,E)=>(M(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+h.name,ref_for:!0,ref:"mountedPersonalities"},[_("div",Nat,[_("button",{onClick:Ae(g=>s.onPersonalitySelected(h),["stop"])},[_("img",{src:r.bUrl+h.avatar,onError:e[117]||(e[117]=(...g)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...g)),class:Ke(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",s.configFile.active_personality_id==s.configFile.personalities.indexOf(h.full_path)?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,Iat)],8,Mat),_("button",{onClick:Ae(g=>s.unmountPersonality(h),["stop"])},kat,8,Dat)])]))),128))])):Q("",!0)])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",Pat,[Uat,_("div",Fat,[_("div",Bat,[r.searchPersonalityInProgress?(M(),D("div",Gat,Vat)):Q("",!0),r.searchPersonalityInProgress?Q("",!0):(M(),D("div",Hat,Yat))]),Re(_("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[119]||(e[119]=h=>r.searchPersonality=h),onKeyup:e[120]||(e[120]=Ae((...h)=>s.searchPersonality_func&&s.searchPersonality_func(...h),["stop"]))},null,544),[[Ze,r.searchPersonality]]),r.searchPersonality?(M(),D("button",{key:0,onClick:e[121]||(e[121]=Ae(h=>r.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")):Q("",!0)])]),r.searchPersonality?Q("",!0):(M(),D("div",$at,[_("label",Wat," Personalities Category: ("+me(r.persCatgArr.length)+") ",1),_("select",{id:"persCat",onChange:e[122]||(e[122]=h=>s.update_personality_category(h.target.value,s.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"},[(M(!0),D(Xe,null,gt(r.persCatgArr,(h,E)=>(M(),D("option",{key:E,selected:h==this.configFile.personality_category},me(h),9,Kat))),128))],32)])),_("div",null,[r.personalitiesFiltered.length>0?(M(),D("div",jat,[_("label",Qat,me(r.searchPersonality?"Search results":"Personalities")+": ("+me(r.personalitiesFiltered.length)+") ",1),_("div",{class:Ke(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.pzl_collapsed?"":"max-h-96"])},[Le(Vr,{name:"bounce"},{default:lt(()=>[(M(!0),D(Xe,null,gt(r.personalitiesFiltered,(h,E)=>(M(),Qt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+E+"-"+h.name,personality:h,select_language:!0,full_path:h.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(g=>g===h.full_path||g===h.full_path+":"+h.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-reinstall":s.onPersonalityReinstall,"on-settings":s.onSettingsPersonality,"on-copy-personality-name":s.onCopyPersonalityName},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-reinstall","on-settings","on-copy-personality-name"]))),128))]),_:1})],2)])):Q("",!0)]),r.pzl_collapsed?(M(),D("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[123]||(e[123]=h=>r.pzl_collapsed=!r.pzl_collapsed)},Zat)):(M(),D("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[124]||(e[124]=h=>r.pzl_collapsed=!r.pzl_collapsed)},elt))],2)]),_("div",tlt,[_("div",nlt,[_("button",{onClick:e[126]||(e[126]=Ae(h=>r.ezc_collapsed=!r.ezc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Re(_("div",null,rlt,512),[[At,r.ezc_collapsed]]),Re(_("div",null,olt,512),[[At,!r.ezc_collapsed]]),alt,s.configFile.extensions?(M(),D("div",llt,"|")):Q("",!0),s.configFile.extensions?(M(),D("div",clt,[s.mountedExtensions.length>0?(M(),D("div",dlt,[(M(!0),D(Xe,null,gt(s.mountedExtensions,(h,E)=>(M(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+h.name,ref_for:!0,ref:"mountedExtensions"},[_("div",ult,[_("button",null,[_("img",{src:r.bUrl+h.avatar,onError:e[125]||(e[125]=(...g)=>s.extensionImgPlacehodler&&s.extensionImgPlacehodler(...g)),class:Ke(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary","border-transparent z-0"]),title:h.name},null,40,_lt)]),_("button",{onClick:Ae(g=>s.unmountExtension(h),["stop"])},flt,8,plt)])]))),128))])):Q("",!0)])):Q("",!0)])]),_("div",{class:Ke([{hidden:r.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",mlt,[glt,_("div",Elt,[_("div",blt,[r.searchExtensionInProgress?(M(),D("div",Slt,vlt)):Q("",!0),r.searchExtensionInProgress?Q("",!0):(M(),D("div",Tlt,Clt))]),Re(_("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 extension...",required:"","onUpdate:modelValue":e[127]||(e[127]=h=>r.searchExtension=h),onKeyup:e[128]||(e[128]=Ae((...h)=>n.searchExtension_func&&n.searchExtension_func(...h),["stop"]))},null,544),[[Ze,r.searchExtension]]),r.searchExtension?(M(),D("button",{key:0,onClick:e[129]||(e[129]=Ae(h=>r.searchExtension="",["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")):Q("",!0)])]),r.searchExtension?Q("",!0):(M(),D("div",Rlt,[_("label",Alt," Extensions Category: ("+me(r.extCatgArr.length)+") ",1),_("select",{id:"extCat",onChange:e[130]||(e[130]=h=>s.update_extension_category(h.target.value,s.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"},[(M(!0),D(Xe,null,gt(r.extCatgArr,(h,E)=>(M(),D("option",{key:E,selected:h==this.extension_category},me(h),9,wlt))),128))],32)])),_("div",null,[r.extensionsFiltererd.length>0?(M(),D("div",Olt,[_("label",Nlt,me(r.searchExtension?"Search results":"Personalities")+": ("+me(r.extensionsFiltererd.length)+") ",1),_("div",{class:Ke(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.ezl_collapsed?"":"max-h-96"])},[(M(!0),D(Xe,null,gt(r.extensionsFiltererd,(h,E)=>(M(),Qt(u,{ref_for:!0,ref:"extensionsZoo",key:"index-"+E+"-"+h.name,extension:h,select_language:!0,full_path:h.full_path,"on-mount":s.mountExtension,"on-un-mount":s.unmountExtension,"on-remount":s.remountExtension,"on-reinstall":s.onExtensionReinstall,"on-settings":s.onSettingsExtension},null,8,["extension","full_path","on-mount","on-un-mount","on-remount","on-reinstall","on-settings"]))),128))],2)])):Q("",!0)]),r.ezc_collapsed?(M(),D("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[131]||(e[131]=h=>r.ezl_collapsed=!r.ezl_collapsed)},Ilt)):(M(),D("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[132]||(e[132]=h=>r.ezl_collapsed=!r.ezl_collapsed)},Llt))],2)]),_("div",klt,[_("div",Plt,[_("button",{onClick:e[133]||(e[133]=Ae(h=>r.mep_collapsed=!r.mep_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Re(_("div",null,Flt,512),[[At,r.mep_collapsed]]),Re(_("div",null,Glt,512),[[At,!r.mep_collapsed]]),zlt])]),_("div",{class:Ke([{hidden:r.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),_("div",Vlt,[_("div",Hlt,[_("button",{onClick:e[134]||(e[134]=Ae(h=>r.mc_collapsed=!r.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Re(_("div",null,Ylt,512),[[At,r.mc_collapsed]]),Re(_("div",null,Wlt,512),[[At,!r.mc_collapsed]]),Klt])]),_("div",{class:Ke([{hidden:r.mc_collapsed},"flex flex-col mb-2 p-2"])},[_("div",jlt,[_("div",Qlt,[Re(_("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[135]||(e[135]=Ae(()=>{},["stop"])),"onUpdate:modelValue":e[136]||(e[136]=h=>s.configFile.override_personality_model_parameters=h),onChange:e[137]||(e[137]=h=>s.update_setting("override_personality_model_parameters",s.configFile.override_personality_model_parameters))},null,544),[[Mt,s.configFile.override_personality_model_parameters]]),Xlt])]),_("div",{class:Ke(s.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[_("div",Zlt,[Jlt,Re(_("input",{type:"text",id:"seed","onUpdate:modelValue":e[138]||(e[138]=h=>s.configFile.seed=h),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),[[Ze,s.configFile.seed]])]),_("div",ect,[_("div",tct,[_("div",nct,[ict,_("p",rct,[Re(_("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[139]||(e[139]=h=>s.configFile.temperature=h),onChange:e[140]||(e[140]=h=>r.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),[[Ze,s.configFile.temperature]])])]),Re(_("input",{id:"temperature",onChange:e[141]||(e[141]=h=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[142]||(e[142]=h=>s.configFile.temperature=h),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),[[Ze,s.configFile.temperature]])])]),_("div",sct,[_("div",oct,[_("div",act,[lct,_("p",cct,[Re(_("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[143]||(e[143]=h=>s.configFile.n_predict=h),onChange:e[144]||(e[144]=h=>r.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),[[Ze,s.configFile.n_predict]])])]),Re(_("input",{id:"predict",type:"range",onChange:e[145]||(e[145]=h=>r.settingsChanged=!0),"onUpdate:modelValue":e[146]||(e[146]=h=>s.configFile.n_predict=h),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),[[Ze,s.configFile.n_predict]])])]),_("div",dct,[_("div",uct,[_("div",_ct,[pct,_("p",hct,[Re(_("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[147]||(e[147]=h=>s.configFile.top_k=h),onChange:e[148]||(e[148]=h=>r.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),[[Ze,s.configFile.top_k]])])]),Re(_("input",{id:"top_k",type:"range",onChange:e[149]||(e[149]=h=>r.settingsChanged=!0),"onUpdate:modelValue":e[150]||(e[150]=h=>s.configFile.top_k=h),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),[[Ze,s.configFile.top_k]])])]),_("div",fct,[_("div",mct,[_("div",gct,[Ect,_("p",bct,[Re(_("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[151]||(e[151]=h=>s.configFile.top_p=h),onChange:e[152]||(e[152]=h=>r.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),[[Ze,s.configFile.top_p]])])]),Re(_("input",{id:"top_p",type:"range","onUpdate:modelValue":e[153]||(e[153]=h=>s.configFile.top_p=h),min:"0",max:"1",step:"0.01",onChange:e[154]||(e[154]=h=>r.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),[[Ze,s.configFile.top_p]])])]),_("div",Sct,[_("div",yct,[_("div",vct,[Tct,_("p",xct,[Re(_("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[155]||(e[155]=h=>s.configFile.repeat_penalty=h),onChange:e[156]||(e[156]=h=>r.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),[[Ze,s.configFile.repeat_penalty]])])]),Re(_("input",{id:"repeat_penalty",onChange:e[157]||(e[157]=h=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[158]||(e[158]=h=>s.configFile.repeat_penalty=h),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),[[Ze,s.configFile.repeat_penalty]])])]),_("div",Cct,[_("div",Rct,[_("div",Act,[wct,_("p",Oct,[Re(_("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[159]||(e[159]=h=>s.configFile.repeat_last_n=h),onChange:e[160]||(e[160]=h=>r.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),[[Ze,s.configFile.repeat_last_n]])])]),Re(_("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[161]||(e[161]=h=>s.configFile.repeat_last_n=h),min:"0",max:"100",step:"1",onChange:e[162]||(e[162]=h=>r.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),[[Ze,s.configFile.repeat_last_n]])])])],2)],2)])],2)]),Le(p,{ref:"addmodeldialog"},null,512),Le(f,{class:"z-20",show:r.variantSelectionDialogVisible,choices:r.variant_choices,onChoiceSelected:s.onVariantChoiceSelected,onCloseDialog:s.oncloseVariantChoiceDialog,onChoiceValidated:s.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Mct=ft(mnt,[["render",Nct],["__scopeId","data-v-e34a1409"]]),Ict={components:{ClipBoardTextInput:_E,Card:Ll},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={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};Pe.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.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(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},Dct={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"},Lct={class:"mb-4"},kct=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Pct=["value"],Uct={class:"mb-4"},Fct=_("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Bct={class:"mb-4"},Gct=_("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),zct={class:"mb-4"},Vct=_("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Hct={class:"mb-4"},qct=_("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Yct={class:"mb-4"},$ct=_("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Wct={class:"mb-4"},Kct=_("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),jct=_("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Qct={key:1};function Xct(n,e,t,i,r,s){const o=St("Card"),a=St("ClipBoardTextInput");return s.selectedModel!==null&&s.selectedModel.toLowerCase().includes("gptq")?(M(),D("div",Dct,[_("form",{onSubmit:e[2]||(e[2]=Ae((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:""},[Le(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[Le(o,{title:"Model",class:"",isHorizontal:!1},{default:lt(()=>[_("div",Lct,[kct,Re(_("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(M(!0),D(Xe,null,gt(s.models,l=>(M(),D("option",{key:l,value:l},me(l),9,Pct))),128))],544),[[$n,s.selectedModel]])])]),_:1}),Le(o,{title:"Data",isHorizontal:!1},{default:lt(()=>[_("div",Uct,[Fct,Le(a,{id:"model_path",inputType:"file",value:r.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Le(o,{title:"Training",isHorizontal:!1},{default:lt(()=>[_("div",Bct,[Gct,Le(a,{id:"model_path",inputType:"integer",value:r.lr},null,8,["value"])]),_("div",zct,[Vct,Le(a,{id:"model_path",inputType:"integer",value:r.num_epochs},null,8,["value"])]),_("div",Hct,[qct,Le(a,{id:"model_path",inputType:"integer",value:r.max_length},null,8,["value"])]),_("div",Yct,[$ct,Le(a,{id:"model_path",inputType:"integer",value:r.batch_size},null,8,["value"])])]),_:1}),Le(o,{title:"Output",isHorizontal:!1},{default:lt(()=>[_("div",Wct,[Kct,Le(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),Le(o,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[jct]),_:1})],32)])):(M(),D("div",Qct,[Le(o,{title:"Info",class:"",isHorizontal:!1},{default:lt(()=>[$e(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const Zct=ft(Ict,[["render",Xct]]),Jct={components:{ClipBoardTextInput:_E,Card:Ll},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(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},edt={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"},tdt={class:"mb-4"},ndt=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),idt={class:"mb-4"},rdt=_("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),sdt=_("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function odt(n,e,t,i,r,s){const o=St("ClipBoardTextInput"),a=St("Card");return M(),D("div",edt,[_("form",{onSubmit:e[0]||(e[0]=Ae((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Le(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[Le(a,{title:"Model",class:"",isHorizontal:!1},{default:lt(()=>[_("div",tdt,[ndt,Le(o,{id:"model_path",inputType:"text",value:r.model_name},null,8,["value"])]),_("div",idt,[rdt,Le(o,{id:"model_path",inputType:"text",value:r.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Le(a,{disableHoverAnimation:!0,disableFocus:!0},{default:lt(()=>[sdt]),_:1})],32)])}const adt=ft(Jct,[["render",odt]]),ldt={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(n){this.prompt=n}}},cdt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},ddt={class:"bg-white p-8 rounded"},udt={class:"text-xl font-bold mb-4"};function _dt(n,e,t,i,r,s){return M(),D("div",null,[r.show?(M(),D("div",cdt,[_("div",ddt,[_("h2",udt,me(t.promptText),1),Re(_("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>r.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[Ze,r.inputText]]),_("button",{onClick:e[1]||(e[1]=(...o)=>s.ok&&s.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),_("button",{onClick:e[2]||(e[2]=(...o)=>s.cancel&&s.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):Q("",!0)])}const xw=ft(ldt,[["render",_dt]]),pdt={props:{htmlContent:{type:String,required:!0}}},hdt=["innerHTML"];function fdt(n,e,t,i,r,s){return M(),D("div",null,[_("div",{innerHTML:t.htmlContent},null,8,hdt)])}const mdt=ft(pdt,[["render",fdt]]);const gdt={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"
"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"
")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},Edt={key:0},bdt={class:"toggle-icon mr-1"},Sdt={key:0,class:"fas fa-plus-circle text-gray-600"},ydt={key:1,class:"fas fa-minus-circle text-gray-600"},vdt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},Tdt={key:0,class:"fas fa-plus-circle text-gray-600"},xdt={key:1,class:"fas fa-minus-circle text-gray-600"},Cdt=["innerHTML"];function Rdt(n,e,t,i,r,s){return s.isContentPresent?(M(),D("div",Edt,[_("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>s.toggleCollapsible&&s.toggleCollapsible(...o))},[_("span",bdt,[r.collapsed?(M(),D("i",Sdt)):(M(),D("i",ydt))]),$e(" "+me(t.jsonFormText),1)]),Re(_("div",null,[_("div",vdt,[s.isObject?(M(),D("span",{key:0,onClick:e[1]||(e[1]=(...o)=>s.toggleCollapsed&&s.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[r.collapsed?(M(),D("i",Tdt)):(M(),D("i",xdt))])):Q("",!0),_("pre",{innerHTML:s.formattedJson},null,8,Cdt)])],512),[[At,!r.collapsed]])])):Q("",!0)}const Adt=ft(gdt,[["render",Rdt]]),wdt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},Odt={class:"step flex items-center mb-4"},Ndt={class:"flex items-center justify-center w-6 h-6 mr-2"},Mdt={key:0},Idt=_("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),Ddt=[Idt],Ldt={key:1},kdt=_("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Pdt=[kdt],Udt={key:2},Fdt=_("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Bdt=[Fdt],Gdt={key:0,role:"status"},zdt=_("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"},[_("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"}),_("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),Vdt=[zdt];function Hdt(n,e,t,i,r,s){return M(),D("div",Odt,[_("div",Ndt,[t.done?Q("",!0):(M(),D("div",Mdt,Ddt)),t.done&&t.status?(M(),D("div",Ldt,Pdt)):Q("",!0),t.done&&!t.status?(M(),D("div",Udt,Bdt)):Q("",!0)]),t.done?Q("",!0):(M(),D("div",Gdt,Vdt)),_("div",{class:Ke(["content flex-1 px-2",{"text-green-500":t.done,"text-yellow-500":!t.done}])},me(t.message),3)])}const qdt=ft(wdt,[["render",Hdt]]);const ax="/",Ydt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:hw,Step:qdt,RenderHTMLJS:mdt,JsonViewer:Adt,DynamicUIRenderer:Tw},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:""},data(){return{isSynthesizingVoice:!1,cpp_block:gw,html5_block:Ew,LaTeX_block:bw,javascript_block:mw,python_block:fw,bash_block:Sw,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser."),Ue(()=>{Fe.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight})},methods:{insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,r=e.value.substring(0,t),s=e.value.substring(i),o=r+" "+s;this.message.content=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4}),n.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.$refs.audio_player.pause(),this.isSynthesizingVoice=!1):(this.isSynthesizingVoice=!0,Pe.post("./text2Audio",{text:this.message.content}).then(n=>{let e=n.data.url;console.log(e),this.audio_url=e}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSynthesizingVoice=!1}))},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=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(r=>r.name===this.$store.state.config.audio_out_voice)[0]);const t=r=>{let s=this.message.content.substring(r,r+e);const o=[".","!","?",` `];let a=-1;return o.forEach(l=>{const c=s.lastIndexOf(l);c>a&&(a=c)}),a==-1&&(a=s.length),console.log(a),a+r+1},i=()=>{if(this.message.content.includes(".")){const r=t(n),s=this.message.content.substring(n,r);this.msg.text=s,n=r+1,this.msg.onend=o=>{n{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",r))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{i()},1)};i()},toggleModel(){this.expanded=!this.expanded},addBlock(n){let e=this.$refs.mdTextarea.selectionStart;e==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=e},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.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?(console.log("Avatar:",ax+this.avatar),ax+this.avatar):(console.log("No avatar found"),Vo)},defaultImg(n){n.target.src=Vo},parseDate(n){let e=new Date(Date.parse(n)),i=Math.floor((new Date-e)/1e3);return i<=1?"just now":i<20?i+" seconds ago":i<40?"half a minute ago":i<60?"less than a minute ago":i<=90?"one minute ago":i<=3540?Math.round(i/60)+" minutes ago":i<=5400?"1 hour ago":i<=86400?Math.round(i/3600)+" hours ago":i<=129600?"1 day ago":i<604800?Math.round(i/86400)+" days ago":i<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,i=Math.floor(t/86400);if(!(isNaN(i)||i<0||i>=31))return i==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||i==1&&"Yesterday"||i<7&&i+" days ago"||i<31&&Math.ceil(i/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed"),console.log(this.message.ui)},showConfirmation(){Ue(()=>{Fe.replace()})},deleteMsgMode(){Ue(()=>{Fe.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Ue(()=>{Fe.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!e.getTime())return;let i=e.getTime()-n.getTime();const r=Math.floor(i/(1e3*60*60));i-=r*(1e3*60*60);const s=Math.floor(i/(1e3*60));i-=s*(1e3*60);const o=Math.floor(i/1e3);i-=o*1e3;function a(c){return c<10&&(c="0"+c),c}return a(r)+"h:"+a(s)+"m:"+a(o)+"s"}}},$dt={class:"relative 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 even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Wdt={class:"flex flex-row gap-2"},Kdt={class:"flex-shrink-0"},jdt={class:"group/avatar"},Qdt=["src","data-popover-target"],Xdt={class:"flex flex-col w-full flex-grow-0"},Zdt={class:"flex flex-row flex-grow items-start"},Jdt={class:"flex flex-col mb-2"},eut={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},tut=["title"],nut=_("div",{class:"flex-grow"},null,-1),iut={class:"flex-row justify-end mx-2"},rut={class:"invisible group-hover:visible flex flex-row"},sut={key:0,class:"flex items-center duration-75"},out=_("i",{"data-feather":"x"},null,-1),aut=[out],lut=_("i",{"data-feather":"check"},null,-1),cut=[lut],dut=_("i",{"data-feather":"edit"},null,-1),uut=[dut],_ut=["src"],put=["src"],hut=["src"],fut=["src"],mut=["src"],gut=["src"],Eut=_("i",{"data-feather":"copy"},null,-1),but=[Eut],Sut=_("i",{"data-feather":"send"},null,-1),yut=[Sut],vut=_("i",{"data-feather":"send"},null,-1),Tut=[vut],xut=_("i",{"data-feather":"fast-forward"},null,-1),Cut=[xut],Rut={key:11,class:"flex items-center duration-75"},Aut=_("i",{"data-feather":"x"},null,-1),wut=[Aut],Out=_("i",{"data-feather":"check"},null,-1),Nut=[Out],Mut=_("i",{"data-feather":"trash"},null,-1),Iut=[Mut],Dut=_("i",{"data-feather":"thumbs-up"},null,-1),Lut=[Dut],kut={class:"flex flex-row items-center"},Put=_("i",{"data-feather":"thumbs-down"},null,-1),Uut=[Put],Fut={class:"flex flex-row items-center"},But=_("i",{"data-feather":"volume-2"},null,-1),Gut=[But],zut={key:13,class:"flex flex-row items-center"},Vut=_("i",{"data-feather":"voicemail"},null,-1),Hut=[Vut],qut={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101 cursor-pointer",title:"Generating voice, please stand by ...",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yut=_("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),$ut=_("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),Wut=[Yut,$ut],Kut={class:"overflow-x-auto w-full"},jut={class:"flex flex-col items-start w-full"},Qut={class:"flex flex-col items-start w-full"},Xut={key:1},Zut=["src"],Jut={class:"text-sm text-gray-400 mt-2"},e_t={class:"flex flex-row items-center gap-2"},t_t={key:0},n_t={class:"font-thin"},i_t={key:1},r_t={class:"font-thin"},s_t={key:2},o_t={class:"font-thin"},a_t={key:3},l_t=["title"];function c_t(n,e,t,i,r,s){const o=St("Step"),a=St("RenderHTMLJS"),l=St("MarkdownRenderer"),c=St("JsonViewer"),d=St("DynamicUIRenderer");return M(),D("div",$dt,[_("div",Wdt,[_("div",Kdt,[_("div",jdt,[_("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=u=>s.defaultImg(u)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Qdt)])]),_("div",Xdt,[_("div",Zdt,[_("div",Jdt,[_("div",eut,me(t.message.sender)+" ",1),t.message.created_at?(M(),D("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+s.created_at_parsed},me(s.created_at),9,tut)):Q("",!0)]),nut,_("div",iut,[_("div",rut,[s.editMsgMode?(M(),D("div",sut,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=Ae(u=>s.editMsgMode=!1,["stop"]))},aut),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=Ae((...u)=>s.updateMessage&&s.updateMessage(...u),["stop"]))},cut)])):Q("",!0),s.editMsgMode?Q("",!0):(M(),D("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Edit message",onClick:e[3]||(e[3]=Ae(u=>s.editMsgMode=!0,["stop"]))},uut)),s.editMsgMode?(M(),D("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add python block",onClick:e[4]||(e[4]=Ae(u=>s.addBlock("python"),["stop"]))},[_("img",{src:r.python_block,width:"25",height:"25"},null,8,_ut)])):Q("",!0),s.editMsgMode?(M(),D("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add javascript block",onClick:e[5]||(e[5]=Ae(u=>s.addBlock("javascript"),["stop"]))},[_("img",{src:r.javascript_block,width:"25",height:"25"},null,8,put)])):Q("",!0),s.editMsgMode?(M(),D("div",{key:4,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add c++ block",onClick:e[6]||(e[6]=Ae(u=>s.addBlock("c++"),["stop"]))},[_("img",{src:r.cpp_block,width:"25",height:"25"},null,8,hut)])):Q("",!0),s.editMsgMode?(M(),D("div",{key:5,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add html block",onClick:e[7]||(e[7]=Ae(u=>s.addBlock("html"),["stop"]))},[_("img",{src:r.html5_block,width:"25",height:"25"},null,8,fut)])):Q("",!0),s.editMsgMode?(M(),D("div",{key:6,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add LaTex block",onClick:e[8]||(e[8]=Ae(u=>s.addBlock("latex"),["stop"]))},[_("img",{src:r.LaTeX_block,width:"25",height:"25"},null,8,mut)])):Q("",!0),s.editMsgMode?(M(),D("div",{key:7,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add bash block",onClick:e[9]||(e[9]=Ae(u=>s.addBlock("bash"),["stop"]))},[_("img",{src:r.bash_block,width:"25",height:"25"},null,8,gut)])):Q("",!0),_("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Copy message to clipboard",onClick:e[10]||(e[10]=Ae(u=>s.copyContentToClipboard(),["stop"]))},but),!s.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(M(),D("div",{key:8,class:Ke(["text-lg text-red-500 hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":s.editMsgMode}]),title:"Resend message with full context",onClick:e[11]||(e[11]=Ae(u=>s.resendMessage("full_context"),["stop"]))},yut,2)):Q("",!0),!s.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(M(),D("div",{key:9,class:Ke(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":s.editMsgMode}]),title:"Resend message without the full context",onClick:e[12]||(e[12]=Ae(u=>s.resendMessage("simple_question"),["stop"]))},Tut,2)):Q("",!0),!s.editMsgMode&&t.message.sender==this.$store.state.mountedPers.name?(M(),D("div",{key:10,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Resend message",onClick:e[13]||(e[13]=Ae(u=>s.continueMessage(),["stop"]))},Cut)):Q("",!0),r.deleteMsgMode?(M(),D("div",Rut,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[14]||(e[14]=Ae(u=>r.deleteMsgMode=!1,["stop"]))},wut),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[15]||(e[15]=Ae(u=>s.deleteMsg(),["stop"]))},Nut)])):Q("",!0),!s.editMsgMode&&!r.deleteMsgMode?(M(),D("div",{key:12,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[16]||(e[16]=u=>r.deleteMsgMode=!0)},Iut)):Q("",!0),_("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[17]||(e[17]=Ae(u=>s.rankUp(),["stop"]))},Lut),_("div",kut,[_("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[18]||(e[18]=Ae(u=>s.rankDown(),["stop"]))},Uut),t.message.rank!=0?(M(),D("div",{key:0,class:Ke(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},me(t.message.rank),3)):Q("",!0)]),_("div",Fut,[_("div",{class:Ke(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":s.isTalking}]),title:"speak",onClick:e[19]||(e[19]=Ae(u=>s.speak(),["stop"]))},Gut,2)]),this.$store.state.config.enable_voice_service?(M(),D("div",zut,[r.isSynthesizingVoice?(M(),D("svg",qut,Wut)):(M(),D("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"read",onClick:e[20]||(e[20]=Ae(u=>s.read(),["stop"]))},Hut))])):Q("",!0)])])]),_("div",Kut,[_("div",jut,[(M(!0),D(Xe,null,gt(t.message.steps,(u,p)=>(M(),D("div",{key:"step-"+t.message.id+"-"+p,class:"step font-bold",style:un({backgroundColor:u.done?"transparent":"inherit"})},[Le(o,{done:u.done,message:u.message,status:u.status},null,8,["done","message","status"])],4))),128))]),_("div",Qut,[(M(!0),D(Xe,null,gt(t.message.html_js_s,(u,p)=>(M(),D("div",{key:"htmljs-"+t.message.id+"-"+p,class:"htmljs font-bold",style:un({backgroundColor:n.step.done?"transparent":"inherit"})},[Le(a,{htmlContent:u},null,8,["htmlContent"])],4))),128))]),s.editMsgMode?Q("",!0):(M(),Qt(l,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id},null,8,["host","markdown-text","message_id","discussion_id"])),_("div",null,[t.message.open?Re((M(),D("textarea",{key:0,ref:"mdTextarea",onKeydown:e[21]||(e[21]=Fo(Ae((...u)=>s.insertTab&&s.insertTab(...u),["prevent"]),["tab"])),class:"block min-h-[900px] 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:un({minHeight:r.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[22]||(e[22]=u=>t.message.content=u)},`\r `,36)),[[Ze,t.message.content]]):Q("",!0)]),t.message.metadata!==null?(M(),D("div",Xut,[(M(!0),D(Xe,null,gt(t.message.metadata,(u,p)=>(M(),D("div",{key:"json-"+t.message.id+"-"+p,class:"json font-bold"},[Le(c,{jsonFormText:u.title,jsonData:u.content},null,8,["jsonFormText","jsonData"])]))),128))])):Q("",!0),t.message.ui!==null&&t.message.ui!==void 0&&t.message.ui!==""?(M(),Qt(d,{key:2,class:"w-full h-full",code:t.message.ui},null,8,["code"])):Q("",!0),r.audio_url!=null?(M(),D("audio",{controls:"",autoplay:"",key:r.audio_url},[_("source",{src:r.audio_url,type:"audio/wav",ref:"audio_player"},null,8,Zut),$e(" Your browser does not support the audio element. ")])):Q("",!0)]),_("div",Jut,[_("div",e_t,[t.message.binding?(M(),D("p",t_t,[$e("Binding: "),_("span",n_t,me(t.message.binding),1)])):Q("",!0),t.message.model?(M(),D("p",i_t,[$e("Model: "),_("span",r_t,me(t.message.model),1)])):Q("",!0),t.message.seed?(M(),D("p",s_t,[$e("Seed: "),_("span",o_t,me(t.message.seed),1)])):Q("",!0),s.time_spent?(M(),D("p",a_t,[$e("Time spent: "),_("span",{class:"font-thin",title:"Finished generating: "+s.finished_generating_at_parsed},me(s.time_spent),9,l_t)])):Q("",!0)])])])])])}const Cw=ft(Ydt,[["render",c_t]]),d_t="/";Pe.defaults.baseURL="/";const u_t={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Ol,UniversalForm:Nl},data(){return{bUrl:d_t,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{onSettingsPersonality(n){try{Pe.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{Pe.post("/set_active_personality_settings",t).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. @@ -179,12 +179,12 @@ Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let n=[];con `+t.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality Error: `+e.error,4,!1);this.loading=!1},async unmount_personality(n){if(!n)return{status:!1,error:"no personality - unmount_personality"};const e={language:n.language,category:n.category,folder:n.folder};try{const t=await Pe.post("/unmount_personality",e);if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async onPersonalitySelected(n){if(console.log("on pers",n),console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=n.language===null?n.full_path:n.full_path+":"+n.language;if(console.log("pers_path",e),console.log("this.$store.state.config.personalities",this.$store.state.config.personalities),this.$store.state.config.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: -`+n.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Ue(()=>{Fe.replace()})}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};const e=n.language===null?n.full_path:n.full_path+":"+n.language;console.log("Selecting personality ",e);const i={id:this.$store.state.config.personalities.findIndex(r=>r===e)};try{const r=await Pe.post("/select_personality",i);if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(n){n.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const t=new MouseEvent("click");e.dispatchEvent(t)},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,Pe.post("/update_setting",{setting_name:"model_name",setting_value:n.name}).then(async e=>{console.log("UPDATED"),console.log(e),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.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},clear_files(){Pe.get("/clear_personality_files_list").then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File uploaded successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){const t=new FileReader,i=24*1024;let r=0,s=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=r+a.byteLength>=n.size;He.emit("send_file_chunk",{filename:n.name,chunk:a,offset:r,isLastChunk:l,chunkIndex:s}),r+=a.byteLength,s++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),this.loading=!1,e()):o()};function o(){const a=n.slice(r,r+i);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage")},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},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.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(n){this.showPersonalities=!this.showPersonalities},handleOnTalk(n){this.showPersonalities=!1,this.onTalk(n)},onMountFun(n){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(n){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(n){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(n){return Ue(()=>{Fe.replace()}),Oi(n)},removeItem(n){this.filesList=this.filesList.filter(e=>e!=n)},sendMessageEvent(n){this.filesList.length=0,this.$emit("messageSentEvent",n)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},takePicture(){He.emit("take_picture"),He.on("picture_taken",()=>{Pe.get("/get_current_personality_files_list").then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n.target.files];let t=0;const i=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const r=e[t];this.filesList.push(r),this.isFileSentList.push(!1),this.send_file(r,()=>{t++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Ue(()=>{Fe.replace()})},loading(n,e){Ue(()=>{Fe.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let i=0;i{Fe.replace()})},activated(){Ue(()=>{Fe.replace()})}},$t=n=>(Gs("data-v-b2f77eff"),n=n(),zs(),n),q_t={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Y_t={key:0,class:"flex items-center justify-center w-full"},$_t={class:"flex flex-row p-2 rounded-t-lg"},W_t=$t(()=>_("label",{for:"chat",class:"sr-only"},"Send message",-1)),K_t={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},j_t={class:"flex flex-col gap-2"},Q_t={class:"flex"},X_t=["title"],Z_t=$t(()=>_("i",{"data-feather":"list"},null,-1)),J_t=[Z_t],ept={key:0},tpt={class:"flex flex-col max-h-64"},npt=["title"],ipt={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},rpt={key:0,filesList:"",role:"status"},spt=$t(()=>_("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"},[_("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"}),_("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)),opt=$t(()=>_("span",{class:"sr-only"},"Loading...",-1)),apt=[spt,opt],lpt=$t(()=>_("div",null,[_("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),cpt=$t(()=>_("div",{class:"grow"},null,-1)),dpt={class:"flex flex-row items-center"},upt={class:"whitespace-nowrap"},_pt=["onClick"],ppt=$t(()=>_("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),hpt=[ppt],fpt={key:1,class:"flex items-center mx-1"},mpt={class:"whitespace-nowrap flex flex-row gap-2"},gpt=$t(()=>_("p",{class:"font-bold"}," Total size: ",-1)),Ept=$t(()=>_("div",{class:"grow"},null,-1)),bpt=$t(()=>_("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),Spt=[bpt],ypt={key:2,class:"mx-1"},vpt={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},Tpt={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},xpt=$t(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Selecting model...")],-1)),Cpt=[xpt],Rpt={key:1,class:"w-fit group relative"},Apt={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},wpt={key:0,class:"group items-center flex flex-row"},Opt=["onClick"],Npt=["src","title"],Mpt={class:"group items-center flex flex-row"},Ipt=["src","title"],Dpt={class:"w-fit group relative"},Lpt={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},kpt={key:0,class:"group items-center flex flex-row"},Ppt=["onClick"],Upt=["src","title"],Fpt=["onClick"],Bpt=$t(()=>_("span",{class:"hidden hover:block top-3 left-9 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),Gpt=[Bpt],zpt={class:"w-fit"},Vpt={class:"relative grow"},Hpt={class:"inline-flex justify-center rounded-full"},qpt=$t(()=>_("i",{"data-feather":"mic"},null,-1)),Ypt=[qpt],$pt=$t(()=>_("i",{"data-feather":"file-plus"},null,-1)),Wpt=[$pt],Kpt=$t(()=>_("i",{"data-feather":"camera"},null,-1)),jpt=[Kpt],Qpt=$t(()=>_("i",{"data-feather":"globe"},null,-1)),Xpt=[Qpt],Zpt=$t(()=>_("i",{"data-feather":"message-square"},null,-1)),Jpt=$t(()=>_("span",{class:"sr-only"},"New empty User message",-1)),eht=[Zpt,Jpt],tht=$t(()=>_("i",{"data-feather":"message-square"},null,-1)),nht=$t(()=>_("span",{class:"sr-only"},"New empty message",-1)),iht=[tht,nht],rht=$t(()=>_("i",{"data-feather":"send"},null,-1)),sht=$t(()=>_("span",{class:"sr-only"},"Send message",-1)),oht=[rht,sht],aht={key:4,title:"Waiting for reply"},lht=$t(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),cht=[lht];function dht(n,e,t,i,r,s){const o=St("MountedPersonalitiesList"),a=St("MountedPersonalities"),l=St("PersonalitiesCommands"),c=St("UniversalForm");return M(),D(Xe,null,[_("div",q_t,[t.loading?(M(),D("div",Y_t,[_("div",$_t,[_("button",{type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[0]||(e[0]=Ae((...d)=>s.stopGenerating&&s.stopGenerating(...d),["stop"]))}," Stop generating ")])])):Q("",!0),_("form",null,[W_t,_("div",K_t,[_("div",j_t,[_("div",Q_t,[r.filesList.length>0?(M(),D("button",{key:0,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:r.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[1]||(e[1]=Ae(d=>r.showfilesList=!r.showfilesList,["stop"]))},J_t,8,X_t)):Q("",!0)]),r.filesList.length>0&&r.showfilesList==!0?(M(),D("div",ept,[_("div",tpt,[Le(Vr,{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:lt(()=>[(M(!0),D(Xe,null,gt(r.filesList,(d,u)=>(M(),D("div",{key:u+"-"+d.name},[_("div",{class:"m-1",title:d.name},[_("div",ipt,[r.isFileSentList[u]?Q("",!0):(M(),D("div",rpt,apt)),lpt,_("div",{class:Ke(["line-clamp-1 w-3/5",r.isFileSentList[u]?"text-green-200":"text-red-200"])},me(d.name),3),cpt,_("div",dpt,[_("p",upt,me(s.computedFileSize(d.size)),1),_("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:p=>s.removeItem(d)},hpt,8,_pt)])])],8,npt)]))),128))]),_:1})])])):Q("",!0),r.filesList.length>0?(M(),D("div",fpt,[_("div",mpt,[gpt,$e(" "+me(r.totalSize)+" ("+me(r.filesList.length)+") ",1)]),Ept,_("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[2]||(e[2]=(...d)=>s.clear_files&&s.clear_files(...d))},Spt)])):Q("",!0),r.showPersonalities?(M(),D("div",ypt,[Le(o,{ref:"mountedPersList",onShowPersList:s.onShowPersListFun,"on-mounted":s.onMountFun,"on-un-mounted":s.onUnmountFun,"on-remounted":n.onRemountFun,"on-talk":s.handleOnTalk,discussionPersonalities:s.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):Q("",!0),_("div",vpt,[r.selecting_model?(M(),D("div",Tpt,Cpt)):Q("",!0),t.loading?Q("",!0):(M(),D("div",Rpt,[_("div",Apt,[(M(!0),D(Xe,null,gt(s.installedModels,(d,u)=>(M(),D("div",{class:"w-full",key:u+"-"+d.name,ref_for:!0,ref:"installedModels"},[d.name!=s.model_name?(M(),D("div",wpt,[_("button",{onClick:Ae(p=>s.setModel(d),["prevent"]),class:"w-8 h-8"},[_("img",{src:d.icon?d.icon:r.modelImgPlaceholder,onError:e[3]||(e[3]=(...p)=>r.modelImgPlaceholder&&r.modelImgPlaceholder(...p)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:d.name},null,40,Npt)],8,Opt)])):Q("",!0)]))),128))]),_("div",Mpt,[_("button",{onClick:e[5]||(e[5]=Ae(d=>s.showModelConfig(),["prevent"])),class:"w-8 h-8"},[_("img",{src:s.currentModel.icon?s.currentModel.icon:r.modelImgPlaceholder,onError:e[4]||(e[4]=(...d)=>r.modelImgPlaceholder&&r.modelImgPlaceholder(...d)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:s.currentModel?s.currentModel.name:"unknown"},null,40,Ipt)])])])),_("div",Dpt,[_("div",Lpt,[(M(!0),D(Xe,null,gt(this.$store.state.mountedPersArr,(d,u)=>(M(),D("div",{class:"w-full",key:u+"-"+d.name,ref_for:!0,ref:"mountedPersonalities"},[u!=this.$store.state.config.active_personality_id?(M(),D("div",kpt,[_("button",{onClick:Ae(p=>s.onPersonalitySelected(d),["prevent"]),class:"w-8 h-8"},[_("img",{src:r.bUrl+d.avatar,onError:e[6]||(e[6]=(...p)=>n.personalityImgPlacehodler&&n.personalityImgPlacehodler(...p)),class:Ke(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(d.full_path)?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,Upt)],8,Ppt),_("button",{onClick:Ae(p=>s.unmountPersonality(d),["prevent"])},Gpt,8,Fpt)])):Q("",!0)]))),128))]),Le(a,{ref:"mountedPers",onShowPersList:s.onShowPersListFun,onReady:s.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),_("div",zpt,[r.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(M(),Qt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:s.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Q("",!0)]),_("div",Vpt,[Re(_("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=d=>r.message=d),title:"Hold SHIFT + ENTER to add new line",class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[8]||(e[8]=Fo(Ae(d=>s.submitOnEnter(d),["exact"]),["enter"]))},`\r +`+n.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Ue(()=>{Fe.replace()})}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};const e=n.language===null?n.full_path:n.full_path+":"+n.language;console.log("Selecting personality ",e);const i={id:this.$store.state.config.personalities.findIndex(r=>r===e)};try{const r=await Pe.post("/select_personality",i);if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(n){n.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const t=new MouseEvent("click");e.dispatchEvent(t)},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,Pe.post("/update_setting",{setting_name:"model_name",setting_value:n.name}).then(async e=>{console.log("UPDATED"),console.log(e),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.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},clear_files(){Pe.get("/clear_personality_files_list").then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File uploaded successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){const t=new FileReader,i=24*1024;let r=0,s=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=r+a.byteLength>=n.size;He.emit("send_file_chunk",{filename:n.name,chunk:a,offset:r,isLastChunk:l,chunkIndex:s}),r+=a.byteLength,s++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),this.loading=!1,e()):o()};function o(){const a=n.slice(r,r+i);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message)},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},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.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(n){this.showPersonalities=!this.showPersonalities},handleOnTalk(n){this.showPersonalities=!1,this.onTalk(n)},onMountFun(n){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(n){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(n){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(n){return Ue(()=>{Fe.replace()}),Oi(n)},removeItem(n){this.filesList=this.filesList.filter(e=>e!=n)},sendMessageEvent(n){this.filesList.length=0,this.$emit("messageSentEvent",n)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},takePicture(){He.emit("take_picture"),He.on("picture_taken",()=>{Pe.get("/get_current_personality_files_list").then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n.target.files];let t=0;const i=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const r=e[t];this.filesList.push(r),this.isFileSentList.push(!1),this.send_file(r,()=>{t++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Ue(()=>{Fe.replace()})},loading(n,e){Ue(()=>{Fe.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let i=0;i{Fe.replace()})},activated(){Ue(()=>{Fe.replace()})}},$t=n=>(Gs("data-v-78f521f6"),n=n(),zs(),n),q_t={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Y_t={key:0,class:"flex items-center justify-center w-full"},$_t={class:"flex flex-row p-2 rounded-t-lg"},W_t=$t(()=>_("label",{for:"chat",class:"sr-only"},"Send message",-1)),K_t={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},j_t={class:"flex flex-col gap-2"},Q_t={class:"flex"},X_t=["title"],Z_t=$t(()=>_("i",{"data-feather":"list"},null,-1)),J_t=[Z_t],ept={key:0},tpt={class:"flex flex-col max-h-64"},npt=["title"],ipt={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},rpt={key:0,filesList:"",role:"status"},spt=$t(()=>_("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"},[_("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"}),_("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)),opt=$t(()=>_("span",{class:"sr-only"},"Loading...",-1)),apt=[spt,opt],lpt=$t(()=>_("div",null,[_("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),cpt=$t(()=>_("div",{class:"grow"},null,-1)),dpt={class:"flex flex-row items-center"},upt={class:"whitespace-nowrap"},_pt=["onClick"],ppt=$t(()=>_("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),hpt=[ppt],fpt={key:1,class:"flex items-center mx-1"},mpt={class:"whitespace-nowrap flex flex-row gap-2"},gpt=$t(()=>_("p",{class:"font-bold"}," Total size: ",-1)),Ept=$t(()=>_("div",{class:"grow"},null,-1)),bpt=$t(()=>_("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),Spt=[bpt],ypt={key:2,class:"mx-1"},vpt={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},Tpt={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},xpt=$t(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Selecting model...")],-1)),Cpt=[xpt],Rpt={key:1,class:"w-fit group relative"},Apt={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},wpt={key:0,class:"group items-center flex flex-row"},Opt=["onClick"],Npt=["src","title"],Mpt={class:"group items-center flex flex-row"},Ipt=["src","title"],Dpt={class:"w-fit group relative"},Lpt={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},kpt={key:0,class:"group items-center flex flex-row"},Ppt=["onClick"],Upt=["src","title"],Fpt=["onClick"],Bpt=$t(()=>_("span",{class:"hidden hover:block top-3 left-9 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),Gpt=[Bpt],zpt={class:"w-fit"},Vpt={class:"relative grow"},Hpt={class:"inline-flex justify-center rounded-full"},qpt=$t(()=>_("i",{"data-feather":"mic"},null,-1)),Ypt=[qpt],$pt=$t(()=>_("i",{"data-feather":"file-plus"},null,-1)),Wpt=[$pt],Kpt=$t(()=>_("i",{"data-feather":"camera"},null,-1)),jpt=[Kpt],Qpt=$t(()=>_("i",{"data-feather":"globe"},null,-1)),Xpt=[Qpt],Zpt=$t(()=>_("i",{"data-feather":"message-square"},null,-1)),Jpt=$t(()=>_("span",{class:"sr-only"},"New empty User message",-1)),eht=[Zpt,Jpt],tht=$t(()=>_("i",{"data-feather":"message-square"},null,-1)),nht=$t(()=>_("span",{class:"sr-only"},"New empty message",-1)),iht=[tht,nht],rht=$t(()=>_("i",{"data-feather":"send"},null,-1)),sht=$t(()=>_("span",{class:"sr-only"},"Send message",-1)),oht=[rht,sht],aht={key:4,title:"Waiting for reply"},lht=$t(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),cht=[lht];function dht(n,e,t,i,r,s){const o=St("MountedPersonalitiesList"),a=St("MountedPersonalities"),l=St("PersonalitiesCommands"),c=St("UniversalForm");return M(),D(Xe,null,[_("div",q_t,[t.loading?(M(),D("div",Y_t,[_("div",$_t,[_("button",{type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[0]||(e[0]=Ae((...d)=>s.stopGenerating&&s.stopGenerating(...d),["stop"]))}," Stop generating ")])])):Q("",!0),_("form",null,[W_t,_("div",K_t,[_("div",j_t,[_("div",Q_t,[r.filesList.length>0?(M(),D("button",{key:0,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:r.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[1]||(e[1]=Ae(d=>r.showfilesList=!r.showfilesList,["stop"]))},J_t,8,X_t)):Q("",!0)]),r.filesList.length>0&&r.showfilesList==!0?(M(),D("div",ept,[_("div",tpt,[Le(Vr,{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:lt(()=>[(M(!0),D(Xe,null,gt(r.filesList,(d,u)=>(M(),D("div",{key:u+"-"+d.name},[_("div",{class:"m-1",title:d.name},[_("div",ipt,[r.isFileSentList[u]?Q("",!0):(M(),D("div",rpt,apt)),lpt,_("div",{class:Ke(["line-clamp-1 w-3/5",r.isFileSentList[u]?"text-green-200":"text-red-200"])},me(d.name),3),cpt,_("div",dpt,[_("p",upt,me(s.computedFileSize(d.size)),1),_("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:p=>s.removeItem(d)},hpt,8,_pt)])])],8,npt)]))),128))]),_:1})])])):Q("",!0),r.filesList.length>0?(M(),D("div",fpt,[_("div",mpt,[gpt,$e(" "+me(r.totalSize)+" ("+me(r.filesList.length)+") ",1)]),Ept,_("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[2]||(e[2]=(...d)=>s.clear_files&&s.clear_files(...d))},Spt)])):Q("",!0),r.showPersonalities?(M(),D("div",ypt,[Le(o,{ref:"mountedPersList",onShowPersList:s.onShowPersListFun,"on-mounted":s.onMountFun,"on-un-mounted":s.onUnmountFun,"on-remounted":n.onRemountFun,"on-talk":s.handleOnTalk,discussionPersonalities:s.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):Q("",!0),_("div",vpt,[r.selecting_model?(M(),D("div",Tpt,Cpt)):Q("",!0),t.loading?Q("",!0):(M(),D("div",Rpt,[_("div",Apt,[(M(!0),D(Xe,null,gt(s.installedModels,(d,u)=>(M(),D("div",{class:"w-full",key:u+"-"+d.name,ref_for:!0,ref:"installedModels"},[d.name!=s.model_name?(M(),D("div",wpt,[_("button",{onClick:Ae(p=>s.setModel(d),["prevent"]),class:"w-8 h-8"},[_("img",{src:d.icon?d.icon:r.modelImgPlaceholder,onError:e[3]||(e[3]=(...p)=>r.modelImgPlaceholder&&r.modelImgPlaceholder(...p)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:d.name},null,40,Npt)],8,Opt)])):Q("",!0)]))),128))]),_("div",Mpt,[_("button",{onClick:e[5]||(e[5]=Ae(d=>s.showModelConfig(),["prevent"])),class:"w-8 h-8"},[_("img",{src:s.currentModel.icon?s.currentModel.icon:r.modelImgPlaceholder,onError:e[4]||(e[4]=(...d)=>r.modelImgPlaceholder&&r.modelImgPlaceholder(...d)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:s.currentModel?s.currentModel.name:"unknown"},null,40,Ipt)])])])),_("div",Dpt,[_("div",Lpt,[(M(!0),D(Xe,null,gt(this.$store.state.mountedPersArr,(d,u)=>(M(),D("div",{class:"w-full",key:u+"-"+d.name,ref_for:!0,ref:"mountedPersonalities"},[u!=this.$store.state.config.active_personality_id?(M(),D("div",kpt,[_("button",{onClick:Ae(p=>s.onPersonalitySelected(d),["prevent"]),class:"w-8 h-8"},[_("img",{src:r.bUrl+d.avatar,onError:e[6]||(e[6]=(...p)=>n.personalityImgPlacehodler&&n.personalityImgPlacehodler(...p)),class:Ke(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(d.full_path)?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,Upt)],8,Ppt),_("button",{onClick:Ae(p=>s.unmountPersonality(d),["prevent"])},Gpt,8,Fpt)])):Q("",!0)]))),128))]),Le(a,{ref:"mountedPers",onShowPersList:s.onShowPersListFun,onReady:s.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),_("div",zpt,[r.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(M(),Qt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:s.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Q("",!0)]),_("div",Vpt,[Re(_("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=d=>r.message=d),title:"Hold SHIFT + ENTER to add new line",class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[8]||(e[8]=Fo(Ae(d=>s.submitOnEnter(d),["exact"]),["enter"]))},`\r \r \r - `,544),[[Ze,r.message]])]),_("div",Hpt,[t.loading?Q("",!0):(M(),D("button",{key:0,type:"button",onClick:e[9]||(e[9]=(...d)=>s.startSpeechRecognition&&s.startSpeechRecognition(...d)),title:"Press and talk",class:Ke([{"text-red-500":r.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},Ypt,2)),_("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[10]||(e[10]=(...d)=>s.addFiles&&s.addFiles(...d)),multiple:""},null,544),_("button",{type:"button",onClick:e[11]||(e[11]=Ae(d=>n.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"m-1 w-6 hover:text-secondary duration-75 active:scale-90"},Wpt),_("button",{type:"button",onClick:e[12]||(e[12]=Ae((...d)=>s.takePicture&&s.takePicture(...d),["stop"])),title:"take a shot from camera",class:"m-1 w-6 hover:text-secondary duration-75 active:scale-90"},jpt),_("button",{type:"button",onClick:e[13]||(e[13]=Ae((...d)=>s.addWebLink&&s.addWebLink(...d),["stop"])),title:"add web link",class:"m-1 w-6 hover:text-secondary duration-75 active:scale-90"},Xpt),t.loading?Q("",!0):(M(),D("button",{key:1,type:"button",onClick:e[14]||(e[14]=(...d)=>s.makeAnEmptyUserMessage&&s.makeAnEmptyUserMessage(...d)),title:"New empty user message",class:"w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90"},eht)),t.loading?Q("",!0):(M(),D("button",{key:2,type:"button",onClick:e[15]||(e[15]=(...d)=>s.makeAnEmptyAIMessage&&s.makeAnEmptyAIMessage(...d)),title:"New empty ai message",class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90"},iht)),t.loading?Q("",!0):(M(),D("button",{key:3,type:"button",onClick:e[16]||(e[16]=(...d)=>s.submit&&s.submit(...d)),title:"Send",class:"w-6 hover:text-secondary duration-75 active:scale-90"},oht)),t.loading?(M(),D("div",aht,cht)):Q("",!0)])])])])])]),Le(c,{ref:"universalForm",class:"z-20"},null,512)],64)}const Rw=ft(H_t,[["render",dht],["__scopeId","data-v-b2f77eff"]]),uht={name:"WelcomeComponent",setup(){return{}}},_ht={class:"flex flex-col text-center"},pht=Og('
Logo

Lord of Large Language and Multimodal Systems

One tool to rule them all


Welcome

Please create a new discussion or select existing one to start

',1),hht=[pht];function fht(n,e,t,i,r,s){return M(),D("div",_ht,hht)}const Aw=ft(uht,[["render",fht]]);var mht=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),ud=globalThis&&globalThis.__assign||function(){return ud=Object.assign||function(n){for(var e,t=1,i=arguments.length;t"u")return!1;var e=Gn(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Oht(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!ti(s)||!Di(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Nht(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!ti(r)||!Di(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}const Mht={name:"applyStyles",enabled:!0,phase:"write",fn:Oht,effect:Nht,requires:["computeStyles"]};function Ni(n){return n.split("-")[0]}var As=Math.max,fd=Math.min,$o=Math.round;function Ym(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Lw(){return!/^((?!chrome|android).)*safari/i.test(Ym())}function Wo(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&ti(n)&&(r=n.offsetWidth>0&&$o(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&$o(i.height)/n.offsetHeight||1);var o=Ls(n)?Gn(n):window,a=o.visualViewport,l=!Lw()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/r,d=(i.top+(l&&a?a.offsetTop:0))/s,u=i.width/r,p=i.height/s;return{width:u,height:p,top:d,right:c+u,bottom:d+p,left:c,x:c,y:d}}function yE(n){var e=Wo(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function kw(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&SE(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lr(n){return Gn(n).getComputedStyle(n)}function Iht(n){return["table","td","th"].indexOf(Di(n))>=0}function Qr(n){return((Ls(n)?n.ownerDocument:n.document)||window.document).documentElement}function su(n){return Di(n)==="html"?n:n.assignedSlot||n.parentNode||(SE(n)?n.host:null)||Qr(n)}function ux(n){return!ti(n)||lr(n).position==="fixed"?null:n.offsetParent}function Dht(n){var e=/firefox/i.test(Ym()),t=/Trident/i.test(Ym());if(t&&ti(n)){var i=lr(n);if(i.position==="fixed")return null}var r=su(n);for(SE(r)&&(r=r.host);ti(r)&&["html","body"].indexOf(Di(r))<0;){var s=lr(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Fl(n){for(var e=Gn(n),t=ux(n);t&&Iht(t)&&lr(t).position==="static";)t=ux(t);return t&&(Di(t)==="html"||Di(t)==="body"&&lr(t).position==="static")?e:t||Dht(n)||e}function vE(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Za(n,e,t){return As(n,fd(e,t))}function Lht(n,e,t){var i=Za(n,e,t);return i>t?t:i}function Pw(){return{top:0,right:0,bottom:0,left:0}}function Uw(n){return Object.assign({},Pw(),n)}function Fw(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var kht=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Uw(typeof e!="number"?e:Fw(e,Ul))};function Pht(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=Ni(t.placement),l=vE(a),c=[Dn,ri].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var u=kht(r.padding,t),p=yE(s),f=l==="y"?In:Dn,h=l==="y"?ii:ri,E=t.rects.reference[d]+t.rects.reference[l]-o[l]-t.rects.popper[d],g=o[l]-t.rects.reference[l],m=Fl(s),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,S=E/2-g/2,v=u[f],T=b-p[d]-u[h],C=b/2-p[d]/2+S,N=Za(v,C,T),x=l;t.modifiersData[i]=(e={},e[x]=N,e.centerOffset=N-C,e)}}function Uht(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||kw(e.elements.popper,r)&&(e.elements.arrow=r))}const Fht={name:"arrow",enabled:!0,phase:"main",fn:Pht,effect:Uht,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ko(n){return n.split("-")[1]}var Bht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ght(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:$o(t*r)/r||0,y:$o(i*r)/r||0}}function _x(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,u=n.isFixed,p=o.x,f=p===void 0?0:p,h=o.y,E=h===void 0?0:h,g=typeof d=="function"?d({x:f,y:E}):{x:f,y:E};f=g.x,E=g.y;var m=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),S=Dn,v=In,T=window;if(c){var C=Fl(t),N="clientHeight",x="clientWidth";if(C===Gn(t)&&(C=Qr(t),lr(C).position!=="static"&&a==="absolute"&&(N="scrollHeight",x="scrollWidth")),C=C,r===In||(r===Dn||r===ri)&&s===Sl){v=ii;var y=u&&C===T&&T.visualViewport?T.visualViewport.height:C[N];E-=y-i.height,E*=l?1:-1}if(r===Dn||(r===In||r===ii)&&s===Sl){S=ri;var R=u&&C===T&&T.visualViewport?T.visualViewport.width:C[x];f-=R-i.width,f*=l?1:-1}}var P=Object.assign({position:a},c&&Bht),k=d===!0?Ght({x:f,y:E},Gn(t)):{x:f,y:E};if(f=k.x,E=k.y,l){var W;return Object.assign({},P,(W={},W[v]=b?"0":"",W[S]=m?"0":"",W.transform=(T.devicePixelRatio||1)<=1?"translate("+f+"px, "+E+"px)":"translate3d("+f+"px, "+E+"px, 0)",W))}return Object.assign({},P,(e={},e[v]=b?E+"px":"",e[S]=m?f+"px":"",e.transform="",e))}function zht(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:Ni(e.placement),variation:Ko(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,_x(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,_x(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 Vht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zht,data:{}};var ic={passive:!0};function Hht(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,l=Gn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,ic)}),a&&l.addEventListener("resize",t.update,ic),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,ic)}),a&&l.removeEventListener("resize",t.update,ic)}}const qht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hht,data:{}};var Yht={left:"right",right:"left",bottom:"top",top:"bottom"};function jc(n){return n.replace(/left|right|bottom|top/g,function(e){return Yht[e]})}var $ht={start:"end",end:"start"};function px(n){return n.replace(/start|end/g,function(e){return $ht[e]})}function TE(n){var e=Gn(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function xE(n){return Wo(Qr(n)).left+TE(n).scrollLeft}function Wht(n,e){var t=Gn(n),i=Qr(n),r=t.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=Lw();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+xE(n),y:l}}function Kht(n){var e,t=Qr(n),i=TE(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=As(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=As(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+xE(n),l=-i.scrollTop;return lr(r||t).direction==="rtl"&&(a+=As(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function CE(n){var e=lr(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Bw(n){return["html","body","#document"].indexOf(Di(n))>=0?n.ownerDocument.body:ti(n)&&CE(n)?n:Bw(su(n))}function Ja(n,e){var t;e===void 0&&(e=[]);var i=Bw(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=Gn(i),o=r?[s].concat(s.visualViewport||[],CE(i)?i:[]):i,a=e.concat(o);return r?a:a.concat(Ja(su(o)))}function $m(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function jht(n,e){var t=Wo(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function hx(n,e,t){return e===Iw?$m(Wht(n,t)):Ls(e)?jht(e,t):$m(Kht(Qr(n)))}function Qht(n){var e=Ja(su(n)),t=["absolute","fixed"].indexOf(lr(n).position)>=0,i=t&&ti(n)?Fl(n):n;return Ls(i)?e.filter(function(r){return Ls(r)&&kw(r,i)&&Di(r)!=="body"}):[]}function Xht(n,e,t,i){var r=e==="clippingParents"?Qht(n):[].concat(e),s=[].concat(r,[t]),o=s[0],a=s.reduce(function(l,c){var d=hx(n,c,i);return l.top=As(d.top,l.top),l.right=fd(d.right,l.right),l.bottom=fd(d.bottom,l.bottom),l.left=As(d.left,l.left),l},hx(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Gw(n){var e=n.reference,t=n.element,i=n.placement,r=i?Ni(i):null,s=i?Ko(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(r){case In:l={x:o,y:e.y-t.height};break;case ii:l={x:o,y:e.y+e.height};break;case ri:l={x:e.x+e.width,y:a};break;case Dn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=r?vE(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Yo:l[c]=l[c]-(e[d]/2-t[d]/2);break;case Sl:l[c]=l[c]+(e[d]/2-t[d]/2);break}}return l}function yl(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?ght:a,c=t.rootBoundary,d=c===void 0?Iw:c,u=t.elementContext,p=u===void 0?Da:u,f=t.altBoundary,h=f===void 0?!1:f,E=t.padding,g=E===void 0?0:E,m=Uw(typeof g!="number"?g:Fw(g,Ul)),b=p===Da?Eht:Da,S=n.rects.popper,v=n.elements[h?b:p],T=Xht(Ls(v)?v:v.contextElement||Qr(n.elements.popper),l,d,o),C=Wo(n.elements.reference),N=Gw({reference:C,element:S,strategy:"absolute",placement:r}),x=$m(Object.assign({},S,N)),y=p===Da?x:C,R={top:T.top-y.top+m.top,bottom:y.bottom-T.bottom+m.bottom,left:T.left-y.left+m.left,right:y.right-T.right+m.right},P=n.modifiersData.offset;if(p===Da&&P){var k=P[r];Object.keys(R).forEach(function(W){var I=[ri,ii].indexOf(W)>=0?1:-1,V=[In,ii].indexOf(W)>=0?"y":"x";R[W]+=k[V]*I})}return R}function Zht(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Dw:l,d=Ko(i),u=d?a?dx:dx.filter(function(h){return Ko(h)===d}):Ul,p=u.filter(function(h){return c.indexOf(h)>=0});p.length===0&&(p=u);var f=p.reduce(function(h,E){return h[E]=yl(n,{placement:E,boundary:r,rootBoundary:s,padding:o})[Ni(E)],h},{});return Object.keys(f).sort(function(h,E){return f[h]-f[E]})}function Jht(n){if(Ni(n)===bE)return[];var e=jc(n);return[px(n),e,px(e)]}function eft(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,c=t.padding,d=t.boundary,u=t.rootBoundary,p=t.altBoundary,f=t.flipVariations,h=f===void 0?!0:f,E=t.allowedAutoPlacements,g=e.options.placement,m=Ni(g),b=m===g,S=l||(b||!h?[jc(g)]:Jht(g)),v=[g].concat(S).reduce(function(_e,he){return _e.concat(Ni(he)===bE?Zht(e,{placement:he,boundary:d,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:E}):he)},[]),T=e.rects.reference,C=e.rects.popper,N=new Map,x=!0,y=v[0],R=0;R=0,V=I?"width":"height",z=yl(e,{placement:P,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),L=I?W?ri:Dn:W?ii:In;T[V]>C[V]&&(L=jc(L));var Y=jc(L),K=[];if(s&&K.push(z[k]<=0),a&&K.push(z[L]<=0,z[Y]<=0),K.every(function(_e){return _e})){y=P,x=!1;break}N.set(P,K)}if(x)for(var q=h?3:1,le=function(he){var ye=v.find(function(j){var de=N.get(j);if(de)return de.slice(0,he).every(function(X){return X})});if(ye)return y=ye,"break"},Z=q;Z>0;Z--){var J=le(Z);if(J==="break")break}e.placement!==y&&(e.modifiersData[i]._skip=!0,e.placement=y,e.reset=!0)}}const tft={name:"flip",enabled:!0,phase:"main",fn:eft,requiresIfExists:["offset"],data:{_skip:!1}};function fx(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function mx(n){return[In,ri,ii,Dn].some(function(e){return n[e]>=0})}function nft(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=yl(e,{elementContext:"reference"}),a=yl(e,{altBoundary:!0}),l=fx(o,i),c=fx(a,r,s),d=mx(l),u=mx(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const ift={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nft};function rft(n,e,t){var i=Ni(n),r=[Dn,In].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[Dn,ri].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function sft(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,o=Dw.reduce(function(d,u){return d[u]=rft(u,e.rects,s),d},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const oft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sft};function aft(n){var e=n.state,t=n.name;e.modifiersData[t]=Gw({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const lft={name:"popperOffsets",enabled:!0,phase:"read",fn:aft,data:{}};function cft(n){return n==="x"?"y":"x"}function dft(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,c=t.rootBoundary,d=t.altBoundary,u=t.padding,p=t.tether,f=p===void 0?!0:p,h=t.tetherOffset,E=h===void 0?0:h,g=yl(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),m=Ni(e.placement),b=Ko(e.placement),S=!b,v=vE(m),T=cft(v),C=e.modifiersData.popperOffsets,N=e.rects.reference,x=e.rects.popper,y=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,R=typeof y=="number"?{mainAxis:y,altAxis:y}:Object.assign({mainAxis:0,altAxis:0},y),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(C){if(s){var W,I=v==="y"?In:Dn,V=v==="y"?ii:ri,z=v==="y"?"height":"width",L=C[v],Y=L+g[I],K=L-g[V],q=f?-x[z]/2:0,le=b===Yo?N[z]:x[z],Z=b===Yo?-x[z]:-N[z],J=e.elements.arrow,_e=f&&J?yE(J):{width:0,height:0},he=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pw(),ye=he[I],j=he[V],de=Za(0,N[z],_e[z]),X=S?N[z]/2-q-de-ye-R.mainAxis:le-de-ye-R.mainAxis,fe=S?-N[z]/2+q+de+j+R.mainAxis:Z+de+j+R.mainAxis,Oe=e.elements.arrow&&Fl(e.elements.arrow),O=Oe?v==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,F=(W=P==null?void 0:P[v])!=null?W:0,H=L+X-F-O,se=L+fe-F,te=Za(f?fd(Y,H):Y,L,f?As(K,se):K);C[v]=te,k[v]=te-L}if(a){var be,xe=v==="x"?In:Dn,B=v==="x"?ii:ri,ae=C[T],ne=T==="y"?"height":"width",re=ae+g[xe],w=ae-g[B],A=[In,Dn].indexOf(m)!==-1,G=(be=P==null?void 0:P[T])!=null?be:0,ce=A?re:ae-N[ne]-x[ne]-G+R.altAxis,$=A?ae+N[ne]+x[ne]-G-R.altAxis:w,ee=f&&A?Lht(ce,ae,$):Za(f?ce:re,ae,f?$:w);C[T]=ee,k[T]=ee-ae}e.modifiersData[i]=k}}const uft={name:"preventOverflow",enabled:!0,phase:"main",fn:dft,requiresIfExists:["offset"]};function _ft(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function pft(n){return n===Gn(n)||!ti(n)?TE(n):_ft(n)}function hft(n){var e=n.getBoundingClientRect(),t=$o(e.width)/n.offsetWidth||1,i=$o(e.height)/n.offsetHeight||1;return t!==1||i!==1}function fft(n,e,t){t===void 0&&(t=!1);var i=ti(e),r=ti(e)&&hft(e),s=Qr(e),o=Wo(n,r,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((Di(e)!=="body"||CE(s))&&(a=pft(e)),ti(e)?(l=Wo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=xE(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function mft(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function gft(n){var e=mft(n);return wht.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Eft(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function bft(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var gx={placement:"bottom",modifiers:[],strategy:"absolute"};function Ex(){for(var n=arguments.length,e=new Array(n),t=0;t(Gs("data-v-ac366642"),n=n(),zs(),n),Rft={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},Aft={class:"flex flex-col text-center"},wft={class:"flex flex-col text-center items-center"},Oft={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},Nft=Lt(()=>_("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Vo,alt:"Logo"},null,-1)),Mft={class:"flex flex-col items-start"},Ift={class:"text-2xl"},Dft=Lt(()=>_("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),Lft=Lt(()=>_("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),kft=Lt(()=>_("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),Pft=Lt(()=>_("p",{class:"text-2xl mb-10"},"Welcome",-1)),Uft={role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},Fft={class:"text-2xl animate-pulse mt-2"},Bft=Lt(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Gft=[Bft],zft=Lt(()=>_("i",{"data-feather":"chevron-left"},null,-1)),Vft=[zft],Hft={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},qft={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},Yft={class:"flex-row p-4 flex items-center gap-3 flex-0"},$ft=Lt(()=>_("i",{"data-feather":"plus"},null,-1)),Wft=[$ft],Kft=Lt(()=>_("i",{"data-feather":"check-square"},null,-1)),jft=[Kft],Qft=Lt(()=>_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[_("i",{"data-feather":"refresh-ccw"})],-1)),Xft=Lt(()=>_("i",{"data-feather":"database"},null,-1)),Zft=[Xft],Jft=Lt(()=>_("i",{"data-feather":"log-in"},null,-1)),emt=[Jft],tmt={key:0,class:"dropdown"},nmt=Lt(()=>_("i",{"data-feather":"search"},null,-1)),imt=[nmt],rmt=Lt(()=>_("i",{"data-feather":"save"},null,-1)),smt=[rmt],omt={key:2,class:"flex gap-3 flex-1 items-center duration-75"},amt=Lt(()=>_("i",{"data-feather":"x"},null,-1)),lmt=[amt],cmt=Lt(()=>_("i",{"data-feather":"check"},null,-1)),dmt=[cmt],umt=["src"],_mt=["src"],pmt=["src"],hmt={key:4,title:"Loading..",class:"flex flex-row flex-grow justify-end"},fmt=Lt(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),mmt=[fmt],gmt={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},Emt={class:"p-4 pt-2"},bmt={class:"relative"},Smt=Lt(()=>_("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[_("div",{class:"scale-75"},[_("i",{"data-feather":"search"})])],-1)),ymt={class:"absolute inset-y-0 right-0 flex items-center pr-3"},vmt=Lt(()=>_("i",{"data-feather":"x"},null,-1)),Tmt=[vmt],xmt={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},Cmt={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},Rmt={class:"flex flex-row flex-grow"},Amt={key:0},wmt={class:"flex flex-row"},Omt={key:0,class:"flex gap-3"},Nmt=Lt(()=>_("i",{"data-feather":"trash"},null,-1)),Mmt=[Nmt],Imt={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},Dmt=Lt(()=>_("i",{"data-feather":"check"},null,-1)),Lmt=[Dmt],kmt=Lt(()=>_("i",{"data-feather":"x"},null,-1)),Pmt=[kmt],Umt={class:"flex gap-3"},Fmt=Lt(()=>_("i",{"data-feather":"log-out"},null,-1)),Bmt=[Fmt],Gmt=Lt(()=>_("i",{"data-feather":"bookmark"},null,-1)),zmt=[Gmt],Vmt=Lt(()=>_("i",{"data-feather":"list"},null,-1)),Hmt=[Vmt],qmt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},Ymt={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"},$mt=Lt(()=>_("p",{class:"px-3"},"No discussions are found",-1)),Wmt=[$mt],Kmt=Lt(()=>_("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),jmt={class:"ml-2"},Qmt={key:1,class:"relative flex flex-col flex-grow w-full"},Xmt={class:"container pt-4 pb-50 mb-50 w-full"},Zmt=Lt(()=>_("div",null,[_("br"),_("br"),_("br"),_("br"),_("br"),_("br"),_("br")],-1)),Jmt=Lt(()=>_("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)),egt={key:0,class:"bottom-0 flex flex-row items-center justify-center"},tgt={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"},ngt={class:"text-2xl animate-pulse mt-2 text-white"},igt={setup(){},data(){return{currentDiscussion:{},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],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,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1,discussion_id:0}},methods:{add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},handleOk(){console.log("OK"),He.on("web_page_added",()=>{Pe.get("/get_current_personality_files_list").then(n=>{this.filesList=n.data.files,console.log("this.filesList",this.filesList),this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})}),He.emit("add_webpage",{url:this.$refs.web_url_input_box.inputText})},show_progress(n){this.progress_visibility_val=!0},hide_progress(n){this.progress_visibility_val=!1},update_progress(n){console.log("Progress update"),this.progress_value=n.value},onSettingsBinding(){try{this.isLoading=!0,Pe.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(n.data&&Object.keys(n.data).length>0?this.$store.state.universalForm.showForm(n.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Pe.post("/set_active_binding_settings",e).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. + `,544),[[Ze,r.message]])]),_("div",Hpt,[t.loading?Q("",!0):(M(),D("button",{key:0,type:"button",onClick:e[9]||(e[9]=(...d)=>s.startSpeechRecognition&&s.startSpeechRecognition(...d)),title:"Press and talk",class:Ke([{"text-red-500":r.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},Ypt,2)),_("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[10]||(e[10]=(...d)=>s.addFiles&&s.addFiles(...d)),multiple:""},null,544),_("button",{type:"button",onClick:e[11]||(e[11]=Ae(d=>n.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"m-1 w-6 hover:text-secondary duration-75 active:scale-90"},Wpt),_("button",{type:"button",onClick:e[12]||(e[12]=Ae((...d)=>s.takePicture&&s.takePicture(...d),["stop"])),title:"take a shot from camera",class:"m-1 w-6 hover:text-secondary duration-75 active:scale-90"},jpt),_("button",{type:"button",onClick:e[13]||(e[13]=Ae((...d)=>s.addWebLink&&s.addWebLink(...d),["stop"])),title:"add web link",class:"m-1 w-6 hover:text-secondary duration-75 active:scale-90"},Xpt),t.loading?Q("",!0):(M(),D("button",{key:1,type:"button",onClick:e[14]||(e[14]=(...d)=>s.makeAnEmptyUserMessage&&s.makeAnEmptyUserMessage(...d)),title:"New empty user message",class:"w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90"},eht)),t.loading?Q("",!0):(M(),D("button",{key:2,type:"button",onClick:e[15]||(e[15]=(...d)=>s.makeAnEmptyAIMessage&&s.makeAnEmptyAIMessage(...d)),title:"New empty ai message",class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90"},iht)),t.loading?Q("",!0):(M(),D("button",{key:3,type:"button",onClick:e[16]||(e[16]=(...d)=>s.submit&&s.submit(...d)),title:"Send",class:"w-6 hover:text-secondary duration-75 active:scale-90"},oht)),t.loading?(M(),D("div",aht,cht)):Q("",!0)])])])])])]),Le(c,{ref:"universalForm",class:"z-20"},null,512)],64)}const Rw=ft(H_t,[["render",dht],["__scopeId","data-v-78f521f6"]]),uht={name:"WelcomeComponent",setup(){return{}}},_ht={class:"flex flex-col text-center"},pht=Og('
Logo

Lord of Large Language and Multimodal Systems

One tool to rule them all


Welcome

Please create a new discussion or select existing one to start

',1),hht=[pht];function fht(n,e,t,i,r,s){return M(),D("div",_ht,hht)}const Aw=ft(uht,[["render",fht]]);var mht=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),ud=globalThis&&globalThis.__assign||function(){return ud=Object.assign||function(n){for(var e,t=1,i=arguments.length;t"u")return!1;var e=Gn(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Oht(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!ti(s)||!Di(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Nht(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!ti(r)||!Di(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}const Mht={name:"applyStyles",enabled:!0,phase:"write",fn:Oht,effect:Nht,requires:["computeStyles"]};function Ni(n){return n.split("-")[0]}var As=Math.max,fd=Math.min,$o=Math.round;function Ym(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Lw(){return!/^((?!chrome|android).)*safari/i.test(Ym())}function Wo(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&ti(n)&&(r=n.offsetWidth>0&&$o(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&$o(i.height)/n.offsetHeight||1);var o=Ls(n)?Gn(n):window,a=o.visualViewport,l=!Lw()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/r,d=(i.top+(l&&a?a.offsetTop:0))/s,u=i.width/r,p=i.height/s;return{width:u,height:p,top:d,right:c+u,bottom:d+p,left:c,x:c,y:d}}function yE(n){var e=Wo(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function kw(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&SE(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lr(n){return Gn(n).getComputedStyle(n)}function Iht(n){return["table","td","th"].indexOf(Di(n))>=0}function Qr(n){return((Ls(n)?n.ownerDocument:n.document)||window.document).documentElement}function su(n){return Di(n)==="html"?n:n.assignedSlot||n.parentNode||(SE(n)?n.host:null)||Qr(n)}function ux(n){return!ti(n)||lr(n).position==="fixed"?null:n.offsetParent}function Dht(n){var e=/firefox/i.test(Ym()),t=/Trident/i.test(Ym());if(t&&ti(n)){var i=lr(n);if(i.position==="fixed")return null}var r=su(n);for(SE(r)&&(r=r.host);ti(r)&&["html","body"].indexOf(Di(r))<0;){var s=lr(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Fl(n){for(var e=Gn(n),t=ux(n);t&&Iht(t)&&lr(t).position==="static";)t=ux(t);return t&&(Di(t)==="html"||Di(t)==="body"&&lr(t).position==="static")?e:t||Dht(n)||e}function vE(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Za(n,e,t){return As(n,fd(e,t))}function Lht(n,e,t){var i=Za(n,e,t);return i>t?t:i}function Pw(){return{top:0,right:0,bottom:0,left:0}}function Uw(n){return Object.assign({},Pw(),n)}function Fw(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var kht=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Uw(typeof e!="number"?e:Fw(e,Ul))};function Pht(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=Ni(t.placement),l=vE(a),c=[Dn,ri].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var u=kht(r.padding,t),p=yE(s),f=l==="y"?In:Dn,h=l==="y"?ii:ri,E=t.rects.reference[d]+t.rects.reference[l]-o[l]-t.rects.popper[d],g=o[l]-t.rects.reference[l],m=Fl(s),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,S=E/2-g/2,v=u[f],T=b-p[d]-u[h],C=b/2-p[d]/2+S,N=Za(v,C,T),x=l;t.modifiersData[i]=(e={},e[x]=N,e.centerOffset=N-C,e)}}function Uht(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||kw(e.elements.popper,r)&&(e.elements.arrow=r))}const Fht={name:"arrow",enabled:!0,phase:"main",fn:Pht,effect:Uht,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ko(n){return n.split("-")[1]}var Bht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ght(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:$o(t*r)/r||0,y:$o(i*r)/r||0}}function _x(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,u=n.isFixed,p=o.x,f=p===void 0?0:p,h=o.y,E=h===void 0?0:h,g=typeof d=="function"?d({x:f,y:E}):{x:f,y:E};f=g.x,E=g.y;var m=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),S=Dn,v=In,T=window;if(c){var C=Fl(t),N="clientHeight",x="clientWidth";if(C===Gn(t)&&(C=Qr(t),lr(C).position!=="static"&&a==="absolute"&&(N="scrollHeight",x="scrollWidth")),C=C,r===In||(r===Dn||r===ri)&&s===Sl){v=ii;var y=u&&C===T&&T.visualViewport?T.visualViewport.height:C[N];E-=y-i.height,E*=l?1:-1}if(r===Dn||(r===In||r===ii)&&s===Sl){S=ri;var R=u&&C===T&&T.visualViewport?T.visualViewport.width:C[x];f-=R-i.width,f*=l?1:-1}}var P=Object.assign({position:a},c&&Bht),k=d===!0?Ght({x:f,y:E},Gn(t)):{x:f,y:E};if(f=k.x,E=k.y,l){var W;return Object.assign({},P,(W={},W[v]=b?"0":"",W[S]=m?"0":"",W.transform=(T.devicePixelRatio||1)<=1?"translate("+f+"px, "+E+"px)":"translate3d("+f+"px, "+E+"px, 0)",W))}return Object.assign({},P,(e={},e[v]=b?E+"px":"",e[S]=m?f+"px":"",e.transform="",e))}function zht(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:Ni(e.placement),variation:Ko(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,_x(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,_x(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 Vht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zht,data:{}};var ic={passive:!0};function Hht(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,l=Gn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,ic)}),a&&l.addEventListener("resize",t.update,ic),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,ic)}),a&&l.removeEventListener("resize",t.update,ic)}}const qht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hht,data:{}};var Yht={left:"right",right:"left",bottom:"top",top:"bottom"};function jc(n){return n.replace(/left|right|bottom|top/g,function(e){return Yht[e]})}var $ht={start:"end",end:"start"};function px(n){return n.replace(/start|end/g,function(e){return $ht[e]})}function TE(n){var e=Gn(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function xE(n){return Wo(Qr(n)).left+TE(n).scrollLeft}function Wht(n,e){var t=Gn(n),i=Qr(n),r=t.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=Lw();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+xE(n),y:l}}function Kht(n){var e,t=Qr(n),i=TE(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=As(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=As(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+xE(n),l=-i.scrollTop;return lr(r||t).direction==="rtl"&&(a+=As(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function CE(n){var e=lr(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Bw(n){return["html","body","#document"].indexOf(Di(n))>=0?n.ownerDocument.body:ti(n)&&CE(n)?n:Bw(su(n))}function Ja(n,e){var t;e===void 0&&(e=[]);var i=Bw(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=Gn(i),o=r?[s].concat(s.visualViewport||[],CE(i)?i:[]):i,a=e.concat(o);return r?a:a.concat(Ja(su(o)))}function $m(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function jht(n,e){var t=Wo(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function hx(n,e,t){return e===Iw?$m(Wht(n,t)):Ls(e)?jht(e,t):$m(Kht(Qr(n)))}function Qht(n){var e=Ja(su(n)),t=["absolute","fixed"].indexOf(lr(n).position)>=0,i=t&&ti(n)?Fl(n):n;return Ls(i)?e.filter(function(r){return Ls(r)&&kw(r,i)&&Di(r)!=="body"}):[]}function Xht(n,e,t,i){var r=e==="clippingParents"?Qht(n):[].concat(e),s=[].concat(r,[t]),o=s[0],a=s.reduce(function(l,c){var d=hx(n,c,i);return l.top=As(d.top,l.top),l.right=fd(d.right,l.right),l.bottom=fd(d.bottom,l.bottom),l.left=As(d.left,l.left),l},hx(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Gw(n){var e=n.reference,t=n.element,i=n.placement,r=i?Ni(i):null,s=i?Ko(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(r){case In:l={x:o,y:e.y-t.height};break;case ii:l={x:o,y:e.y+e.height};break;case ri:l={x:e.x+e.width,y:a};break;case Dn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=r?vE(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Yo:l[c]=l[c]-(e[d]/2-t[d]/2);break;case Sl:l[c]=l[c]+(e[d]/2-t[d]/2);break}}return l}function yl(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?ght:a,c=t.rootBoundary,d=c===void 0?Iw:c,u=t.elementContext,p=u===void 0?Da:u,f=t.altBoundary,h=f===void 0?!1:f,E=t.padding,g=E===void 0?0:E,m=Uw(typeof g!="number"?g:Fw(g,Ul)),b=p===Da?Eht:Da,S=n.rects.popper,v=n.elements[h?b:p],T=Xht(Ls(v)?v:v.contextElement||Qr(n.elements.popper),l,d,o),C=Wo(n.elements.reference),N=Gw({reference:C,element:S,strategy:"absolute",placement:r}),x=$m(Object.assign({},S,N)),y=p===Da?x:C,R={top:T.top-y.top+m.top,bottom:y.bottom-T.bottom+m.bottom,left:T.left-y.left+m.left,right:y.right-T.right+m.right},P=n.modifiersData.offset;if(p===Da&&P){var k=P[r];Object.keys(R).forEach(function(W){var I=[ri,ii].indexOf(W)>=0?1:-1,V=[In,ii].indexOf(W)>=0?"y":"x";R[W]+=k[V]*I})}return R}function Zht(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Dw:l,d=Ko(i),u=d?a?dx:dx.filter(function(h){return Ko(h)===d}):Ul,p=u.filter(function(h){return c.indexOf(h)>=0});p.length===0&&(p=u);var f=p.reduce(function(h,E){return h[E]=yl(n,{placement:E,boundary:r,rootBoundary:s,padding:o})[Ni(E)],h},{});return Object.keys(f).sort(function(h,E){return f[h]-f[E]})}function Jht(n){if(Ni(n)===bE)return[];var e=jc(n);return[px(n),e,px(e)]}function eft(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,c=t.padding,d=t.boundary,u=t.rootBoundary,p=t.altBoundary,f=t.flipVariations,h=f===void 0?!0:f,E=t.allowedAutoPlacements,g=e.options.placement,m=Ni(g),b=m===g,S=l||(b||!h?[jc(g)]:Jht(g)),v=[g].concat(S).reduce(function(_e,he){return _e.concat(Ni(he)===bE?Zht(e,{placement:he,boundary:d,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:E}):he)},[]),T=e.rects.reference,C=e.rects.popper,N=new Map,x=!0,y=v[0],R=0;R=0,V=I?"width":"height",z=yl(e,{placement:P,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),L=I?W?ri:Dn:W?ii:In;T[V]>C[V]&&(L=jc(L));var Y=jc(L),K=[];if(s&&K.push(z[k]<=0),a&&K.push(z[L]<=0,z[Y]<=0),K.every(function(_e){return _e})){y=P,x=!1;break}N.set(P,K)}if(x)for(var q=h?3:1,le=function(he){var ye=v.find(function(j){var de=N.get(j);if(de)return de.slice(0,he).every(function(X){return X})});if(ye)return y=ye,"break"},Z=q;Z>0;Z--){var J=le(Z);if(J==="break")break}e.placement!==y&&(e.modifiersData[i]._skip=!0,e.placement=y,e.reset=!0)}}const tft={name:"flip",enabled:!0,phase:"main",fn:eft,requiresIfExists:["offset"],data:{_skip:!1}};function fx(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function mx(n){return[In,ri,ii,Dn].some(function(e){return n[e]>=0})}function nft(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=yl(e,{elementContext:"reference"}),a=yl(e,{altBoundary:!0}),l=fx(o,i),c=fx(a,r,s),d=mx(l),u=mx(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const ift={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nft};function rft(n,e,t){var i=Ni(n),r=[Dn,In].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[Dn,ri].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function sft(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,o=Dw.reduce(function(d,u){return d[u]=rft(u,e.rects,s),d},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const oft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sft};function aft(n){var e=n.state,t=n.name;e.modifiersData[t]=Gw({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const lft={name:"popperOffsets",enabled:!0,phase:"read",fn:aft,data:{}};function cft(n){return n==="x"?"y":"x"}function dft(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,c=t.rootBoundary,d=t.altBoundary,u=t.padding,p=t.tether,f=p===void 0?!0:p,h=t.tetherOffset,E=h===void 0?0:h,g=yl(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),m=Ni(e.placement),b=Ko(e.placement),S=!b,v=vE(m),T=cft(v),C=e.modifiersData.popperOffsets,N=e.rects.reference,x=e.rects.popper,y=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,R=typeof y=="number"?{mainAxis:y,altAxis:y}:Object.assign({mainAxis:0,altAxis:0},y),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(C){if(s){var W,I=v==="y"?In:Dn,V=v==="y"?ii:ri,z=v==="y"?"height":"width",L=C[v],Y=L+g[I],K=L-g[V],q=f?-x[z]/2:0,le=b===Yo?N[z]:x[z],Z=b===Yo?-x[z]:-N[z],J=e.elements.arrow,_e=f&&J?yE(J):{width:0,height:0},he=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pw(),ye=he[I],j=he[V],de=Za(0,N[z],_e[z]),X=S?N[z]/2-q-de-ye-R.mainAxis:le-de-ye-R.mainAxis,fe=S?-N[z]/2+q+de+j+R.mainAxis:Z+de+j+R.mainAxis,Oe=e.elements.arrow&&Fl(e.elements.arrow),O=Oe?v==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,F=(W=P==null?void 0:P[v])!=null?W:0,H=L+X-F-O,se=L+fe-F,te=Za(f?fd(Y,H):Y,L,f?As(K,se):K);C[v]=te,k[v]=te-L}if(a){var be,xe=v==="x"?In:Dn,B=v==="x"?ii:ri,ae=C[T],ne=T==="y"?"height":"width",re=ae+g[xe],w=ae-g[B],A=[In,Dn].indexOf(m)!==-1,G=(be=P==null?void 0:P[T])!=null?be:0,ce=A?re:ae-N[ne]-x[ne]-G+R.altAxis,$=A?ae+N[ne]+x[ne]-G-R.altAxis:w,ee=f&&A?Lht(ce,ae,$):Za(f?ce:re,ae,f?$:w);C[T]=ee,k[T]=ee-ae}e.modifiersData[i]=k}}const uft={name:"preventOverflow",enabled:!0,phase:"main",fn:dft,requiresIfExists:["offset"]};function _ft(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function pft(n){return n===Gn(n)||!ti(n)?TE(n):_ft(n)}function hft(n){var e=n.getBoundingClientRect(),t=$o(e.width)/n.offsetWidth||1,i=$o(e.height)/n.offsetHeight||1;return t!==1||i!==1}function fft(n,e,t){t===void 0&&(t=!1);var i=ti(e),r=ti(e)&&hft(e),s=Qr(e),o=Wo(n,r,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((Di(e)!=="body"||CE(s))&&(a=pft(e)),ti(e)?(l=Wo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=xE(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function mft(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function gft(n){var e=mft(n);return wht.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Eft(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function bft(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var gx={placement:"bottom",modifiers:[],strategy:"absolute"};function Ex(){for(var n=arguments.length,e=new Array(n),t=0;t(Gs("data-v-00bcb9ec"),n=n(),zs(),n),Rft={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},Aft={class:"flex flex-col text-center"},wft={class:"flex flex-col text-center items-center"},Oft={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},Nft=Lt(()=>_("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Vo,alt:"Logo"},null,-1)),Mft={class:"flex flex-col items-start"},Ift={class:"text-2xl"},Dft=Lt(()=>_("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),Lft=Lt(()=>_("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),kft=Lt(()=>_("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),Pft=Lt(()=>_("p",{class:"text-2xl mb-10"},"Welcome",-1)),Uft={role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},Fft={class:"text-2xl animate-pulse mt-2"},Bft=Lt(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Gft=[Bft],zft=Lt(()=>_("i",{"data-feather":"chevron-left"},null,-1)),Vft=[zft],Hft={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},qft={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},Yft={class:"flex-row p-4 flex items-center gap-3 flex-0"},$ft=Lt(()=>_("i",{"data-feather":"plus"},null,-1)),Wft=[$ft],Kft=Lt(()=>_("i",{"data-feather":"check-square"},null,-1)),jft=[Kft],Qft=Lt(()=>_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[_("i",{"data-feather":"refresh-ccw"})],-1)),Xft=Lt(()=>_("i",{"data-feather":"database"},null,-1)),Zft=[Xft],Jft=Lt(()=>_("i",{"data-feather":"log-in"},null,-1)),emt=[Jft],tmt={key:0,class:"dropdown"},nmt=Lt(()=>_("i",{"data-feather":"search"},null,-1)),imt=[nmt],rmt=Lt(()=>_("i",{"data-feather":"save"},null,-1)),smt=[rmt],omt={key:2,class:"flex gap-3 flex-1 items-center duration-75"},amt=Lt(()=>_("i",{"data-feather":"x"},null,-1)),lmt=[amt],cmt=Lt(()=>_("i",{"data-feather":"check"},null,-1)),dmt=[cmt],umt=["src"],_mt=["src"],pmt=["src"],hmt={key:4,title:"Loading..",class:"flex flex-row flex-grow justify-end"},fmt=Lt(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),mmt=[fmt],gmt={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},Emt={class:"p-4 pt-2"},bmt={class:"relative"},Smt=Lt(()=>_("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[_("div",{class:"scale-75"},[_("i",{"data-feather":"search"})])],-1)),ymt={class:"absolute inset-y-0 right-0 flex items-center pr-3"},vmt=Lt(()=>_("i",{"data-feather":"x"},null,-1)),Tmt=[vmt],xmt={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},Cmt={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},Rmt={class:"flex flex-row flex-grow"},Amt={key:0},wmt={class:"flex flex-row"},Omt={key:0,class:"flex gap-3"},Nmt=Lt(()=>_("i",{"data-feather":"trash"},null,-1)),Mmt=[Nmt],Imt={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},Dmt=Lt(()=>_("i",{"data-feather":"check"},null,-1)),Lmt=[Dmt],kmt=Lt(()=>_("i",{"data-feather":"x"},null,-1)),Pmt=[kmt],Umt={class:"flex gap-3"},Fmt=Lt(()=>_("i",{"data-feather":"log-out"},null,-1)),Bmt=[Fmt],Gmt=Lt(()=>_("i",{"data-feather":"bookmark"},null,-1)),zmt=[Gmt],Vmt=Lt(()=>_("i",{"data-feather":"list"},null,-1)),Hmt=[Vmt],qmt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},Ymt={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"},$mt=Lt(()=>_("p",{class:"px-3"},"No discussions are found",-1)),Wmt=[$mt],Kmt=Lt(()=>_("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),jmt={class:"ml-2"},Qmt={key:1,class:"relative flex flex-col flex-grow w-full"},Xmt={class:"container pt-4 pb-50 mb-50 w-full"},Zmt=Lt(()=>_("div",null,[_("br"),_("br"),_("br"),_("br"),_("br"),_("br"),_("br")],-1)),Jmt=Lt(()=>_("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)),egt={key:0,class:"bottom-0 flex flex-row items-center justify-center"},tgt={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"},ngt={class:"text-2xl animate-pulse mt-2 text-white"},igt={setup(){},data(){return{currentDiscussion:{},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],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,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1,discussion_id:0}},methods:{add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},handleOk(){console.log("OK"),He.on("web_page_added",()=>{Pe.get("/get_current_personality_files_list").then(n=>{this.filesList=n.data.files,console.log("this.filesList",this.filesList),this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})}),He.emit("add_webpage",{url:this.$refs.web_url_input_box.inputText})},show_progress(n){this.progress_visibility_val=!0},hide_progress(n){this.progress_visibility_val=!1},update_progress(n){console.log("Progress update"),this.progress_value=n.value},onSettingsBinding(){try{this.isLoading=!0,Pe.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(n.data&&Object.keys(n.data).length>0?this.$store.state.universalForm.showForm(n.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Pe.post("/set_active_binding_settings",e).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. `+t,4,!1),this.isLoading=!1)})}catch(t){this.$store.state.toast.showToast(`Did not get binding settings responses. - Endpoint error: `+t.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(n){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+n.message,4,!1)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(n){console.log("Selected:",n)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(n){if(this.database_selectorDialogVisible=!1,(await Pe.post("/select_database",{name:n})).status){console.log("Selected database"),this.$store.state.config=await Pe.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let t=await Pe.get("/list_databases").data;console.log("New list of database: ",t),this.$store.state.databases=t,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async toggleLTM(){this.$store.state.config.use_discussions_history=!this.$store.state.config.use_discussions_history,await this.applyConfiguration(),He.emit("upgrade_vectorization")},async applyConfiguration(){this.loading=!0;const n=await Pe.post("/apply_settings",{config:this.$store.state.config});this.loading=!1,n.data.status?this.$store.state.toast.showToast("Configuration changed successfully.",4,!0):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ue(()=>{Fe.replace()})},save_configuration(){this.showConfirmation=!1,Pe.post("/save_settings",{}).then(n=>{if(n)return n.status?this.$store.state.toast.showToast("Settings saved!",4,!0):this.$store.state.messageBox.showMessage("Error: Couldn't save settings!"),n.data}).catch(n=>(console.log(n.message,"save_configuration"),this.$store.state.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},showToastMessage(n,e,t){console.log("sending",n),this.$store.state.toast.showToast(n,e,t)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(n){try{const e=await Pe.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const n=await Pe.get("/list_discussions");if(n)return this.createDiscussionList(n.data),n.data}catch(n){return console.log("Error: Could not list discussions",n.message),[]}},load_discussion(n,e){n&&(console.log("Loading discussion",n),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(n,this.loading),He.on("discussion",t=>{this.loading=!1,this.setDiscussionLoading(n,this.loading),t&&(this.discussionArr=t.filter(i=>i.message_type==this.msgTypes.MSG_TYPE_CHUNK||i.message_type==this.msgTypes.MSG_TYPE_FULL||i.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||i.message_type==this.msgTypes.MSG_TYPE_CODE||i.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||i.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),He.off("discussion")}),He.emit("load_discussion",{id:n}))},recoverFiles(){console.log("Recovering files"),Pe.get("/get_current_personality_files_list").then(n=>{this.$refs.chatBox.filesList=n.data.files,this.$refs.chatBox.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.$refs.chatBox.filesList}`)})},new_discussion(n){try{this.loading=!0,He.on("discussion_created",e=>{He.off("discussion_created"),this.list_discussions().then(()=>{const t=this.list.findIndex(r=>r.id==e.id),i=this.list[t];this.selectDiscussion(i),this.load_discussion(e.id,()=>{this.loading=!1,Pe.get("/get_current_personality_files_list").then(r=>{console.log("Files recovered"),this.fileList=r.files}),Ue(()=>{const r=document.getElementById("dis-"+e.id);this.scrollToElement(r),console.log("Scrolling tp "+r)})})})}),console.log("new_discussion ",n),He.emit("new_discussion",{title:n})}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(n){try{n&&(this.loading=!0,this.setDiscussionLoading(n,this.loading),await Pe.post("/delete_discussion",{client_id:this.client_id,id:n}),this.loading=!1,this.setDiscussionLoading(n,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async edit_title(n,e){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const t=await Pe.post("/edit_title",{client_id:this.client_id,id:n,title:e});if(this.loading=!1,this.setDiscussionLoading(n,this.loading),t.status==200){const i=this.list.findIndex(s=>s.id==n),r=this.list[i];r.title=e,this.tempList=this.list}}}catch(t){console.log("Error: Could not edit title",t.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async make_title(n){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const e=await Pe.post("/make_title",{client_id:this.client_id,id:n});if(console.log("Making title:",e),this.loading=!1,this.setDiscussionLoading(n,this.loading),e.status==200){const t=this.list.findIndex(r=>r.id==n),i=this.list[t];i.title=e.data.title,this.tempList=this.list}}}catch(e){console.log("Error: Could not edit title",e.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async delete_message(n){try{const e=await Pe.get("/delete_message",{params:{client_id:this.client_id,id:n}});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(He.emit("cancel_generation"),res)return res.data}catch(n){return console.log("Error: Could not stop generating",n.message),{}}},async message_rank_up(n){try{const e=await Pe.get("/message_rank_up",{params:{client_id:this.client_id,id:n}});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(n){try{const e=await Pe.get("/message_rank_down",{params:{client_id:this.client_id,id:n}});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async edit_message(n,e){try{const t=await Pe.get("/edit_message",{params:{client_id:this.client_id,id:n,message:e}});if(t)return t.data}catch(t){return console.log("Error: Could not update message",t.message),{}}},async export_multiple_discussions(n,e){try{if(n.length>0){const t=await Pe.post("/export_multiple_discussions",{discussion_ids:n,export_format:e});if(t)return t.data}}catch(t){return console.log("Error: Could not export multiple discussions",t.message),{}}},async import_multiple_discussions(n){try{if(n.length>0){console.log("sending import",n);const e=await Pe.post("/import_multiple_discussions",{jArray:n});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(n=>n.title&&n.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(n){if(this.isGenerating){this.$store.state.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}n&&(this.currentDiscussion===void 0?(this.currentDiscussion=n,this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})):this.currentDiscussion.id!=n.id&&(console.log("item",n),console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion=n,console.log("this.currentDiscussion",this.currentDiscussion),this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})),Ue(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const t=document.getElementById("messages-list");this.scrollBottom(t)}))},scrollToElement(n){n?n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(n,e){try{const t=n.offsetTop;document.getElementById(e).scrollTo({top:t,behavior:"smooth"})}catch{}},scrollBottom(n){n?n.scrollTo({top:n.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(n){n?n.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(n){let e={content:n.message,id:n.id,rank:0,sender:n.user,created_at:n.created_at,steps:[],html_js_s:[]};this.discussionArr.push(e),Ue(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},updateLastUserMsg(n){const e=this.discussionArr.indexOf(i=>i.id=n.user_id),t={binding:n.binding,content:n.message,created_at:n.created_at,type:n.type,finished_generating_at:n.finished_generating_at,id:n.user_id,model:n.model,personality:n.personality,sender:n.user,steps:[]};e!==-1&&(this.discussionArr[e]=t)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.state.isConnected=!0,!0},socketIODisconnected(){return console.log("socketIOConnected"),this.currentDiscussion=null,this.$store.dispatch("refreshModels"),this.$store.state.isConnected=!1,!0},new_message(n){console.log("Making a new message"),console.log("New message",n);let e={sender:n.sender,message_type:n.message_type,sender_type:n.sender_type,content:n.content,id:n.id,discussion_id:n.discussion_id,parent_id:n.parent_id,binding:n.binding,model:n.model,personality:n.personality,created_at:n.created_at,finished_generating_at:n.finished_generating_at,rank:0,ui:n.ui,steps:[],parameters:n.parameters,metadata:n.metadata,open:n.open};console.log(e),this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,n.message),console.log("infos",n)},talk(n){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(e=>{e&&(e.data.status?console.log("Already generating"):(console.log("Generating message from ",e.data.status),He.emit("generate_msg_from",{id:-1}),this.discussionArr.length>0&&Number(this.discussionArr[this.discussionArr.length-1].id)+1))}).catch(e=>{console.log("Error: Could not get generation status",e)})},createEmptyUserMessage(){He.emit("create_empty_message",{type:0})},createEmptyAIMessage(){He.emit("create_empty_message",{type:1})},sendMsg(n){if(!n){this.$store.state.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(e=>{if(e)if(e.data.status)console.log("Already generating");else{He.emit("generate_msg",{prompt:n});let t=0;this.discussionArr.length>0&&(t=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let i={message:n,id:t,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.msgTypes.MSG_TYPE_FULL,sender_type:this.senderTypes.SENDER_TYPES_USER,content:n,id:t,discussion_id:this.discussion_id,parent_id:t,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(i)}}).catch(e=>{console.log("Error: Could not get generation status",e)})},sendCmd(n){this.isGenerating=!0,He.emit("execute_command",{command:n,parameters:[]})},notify(n){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Ue(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),n.display_type==0?this.$store.state.toast.showToast(n.content,n.duration,n.notification_type):n.display_type==1?this.$store.state.messageBox.showMessage(n.content):n.display_type==2?(this.$store.state.messageBox.hideMessage(),this.$store.state.yesNoDialog.askQuestion(n.content,"Yes","No").then(e=>{He.emit("yesNoRes",{yesRes:e})})):n.display_type==3?this.$store.state.messageBox.showBlockingMessage(n.content):n.display_type==4&&this.$store.state.messageBox.hideMessage(),this.chime.play()},streamMessageContent(n){if(this.discussion_id=n.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(i=>i.id==n.id),t=this.discussionArr[e];if(t&&(n.message_type==this.msgTypes.MSG_TYPE_FULL||n.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))t.content=n.content,t.finished_generating_at=n.finished_generating_at;else if(t&&n.message_type==this.msgTypes.MSG_TYPE_CHUNK)t.content+=n.content;else if(n.message_type==this.msgTypes.MSG_TYPE_STEP)t.steps.push({message:n.content,done:!0,status:!0});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_START)t.steps.push({message:n.content,done:!1,status:!0});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_END){const i=t.steps.find(r=>r.message===n.content);if(i){i.done=!0;try{console.log(n.parameters);const r=n.parameters;i.status=r.status,console.log(r)}catch(r){console.error("Error parsing JSON:",r.message)}}}else n.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(n.metadata),t.metadata=n.metadata):n.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),t.ui=n.ui,console.log(t.ui)):n.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$store.state.toast.showToast(n.content,5,!1)}this.$nextTick(()=>{Fe.replace()})},async changeTitleUsingUserMSG(n,e){const t=this.list.findIndex(r=>r.id==n),i=this.list[t];e&&(i.title=e,this.tempList=this.list,await this.edit_title(n,e))},async createNewDiscussion(){this.new_discussion(null)},loadLastUsedDiscussion(){console.log("Loading last discussion");const n=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",n),n){const e=this.list.findIndex(i=>i.id==n),t=this.list[e];t&&this.selectDiscussion(t)}},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},async deleteDiscussion(n){await this.delete_discussion(n),this.currentDiscussion.id==n&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==n),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const n=this.selectedDiscussions;for(let e=0;ei.id==t.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$store.state.toast.showToast("Removed ("+n.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(n){await this.delete_message(n).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==n),1)}).catch(()=>{this.$store.state.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async editTitle(n){const e=this.list.findIndex(i=>i.id==n.id),t=this.list[e];t.title=n.title,t.loading=!0,await this.edit_title(n.id,n.title),t.loading=!1},async makeTitle(n){this.list.findIndex(e=>e.id==n.id),await this.make_title(n.id)},checkUncheckDiscussion(n,e){const t=this.list.findIndex(r=>r.id==e),i=this.list[t];i.checkBoxValue=n.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(n=>n.checkBoxValue==!1).length>0;for(let n=0;n({id:t.id,title:t.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(t,i){return i.id-t.id});this.list=e,this.tempList=e}},setDiscussionLoading(n,e){try{const t=this.list.findIndex(r=>r.id==n),i=this.list[t];i.loading=e}catch{console.log("Error setting discussion loading")}},setPageTitle(n){if(n)if(n.id){const e=n.title?n.title==="untitled"?"New discussion":n.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(n){await this.message_rank_up(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(n){await this.message_rank_down(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(n,e){await this.edit_message(n,e).then(()=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.content=e}).catch(()=>{this.$store.state.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(n,e,t){Ue(()=>{Fe.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(i=>{i&&(i.data.status?(this.$store.state.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):He.emit("generate_msg_from",{prompt:e,id:n,msg_type:t}))}).catch(i=>{console.log("Error: Could not get generation status",i)})},continueMessage(n,e){Ue(()=>{Fe.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(t=>{t&&(t.data.status?console.log("Already generating"):He.emit("continue_generate_msg_from",{prompt:e,id:n}))}).catch(t=>{console.log("Error: Could not get generation status",t)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},finalMsgEvent(n){if(console.log("final",n),n.parent_id,this.discussion_id=n.discussion_id,this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(t=>t.id==n.id);this.discussionArr[e].content=n.content,this.discussionArr[e].finished_generating_at=n.finished_generating_at}Ue(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},copyToClipBoard(n){this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0);let e="";n.message.binding&&(e=`Binding: ${n.message.binding}`);let t="";n.message.personality&&(t=` + Endpoint error: `+t.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(n){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+n.message,4,!1)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(n){console.log("Selected:",n)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(n){if(this.database_selectorDialogVisible=!1,(await Pe.post("/select_database",{name:n})).status){console.log("Selected database"),this.$store.state.config=await Pe.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let t=await Pe.get("/list_databases").data;console.log("New list of database: ",t),this.$store.state.databases=t,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async toggleLTM(){this.$store.state.config.use_discussions_history=!this.$store.state.config.use_discussions_history,await this.applyConfiguration(),He.emit("upgrade_vectorization")},async applyConfiguration(){this.loading=!0;const n=await Pe.post("/apply_settings",{config:this.$store.state.config});this.loading=!1,n.data.status?this.$store.state.toast.showToast("Configuration changed successfully.",4,!0):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ue(()=>{Fe.replace()})},save_configuration(){this.showConfirmation=!1,Pe.post("/save_settings",{}).then(n=>{if(n)return n.status?this.$store.state.toast.showToast("Settings saved!",4,!0):this.$store.state.messageBox.showMessage("Error: Couldn't save settings!"),n.data}).catch(n=>(console.log(n.message,"save_configuration"),this.$store.state.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},showToastMessage(n,e,t){console.log("sending",n),this.$store.state.toast.showToast(n,e,t)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(n){try{const e=await Pe.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const n=await Pe.get("/list_discussions");if(n)return this.createDiscussionList(n.data),n.data}catch(n){return console.log("Error: Could not list discussions",n.message),[]}},load_discussion(n,e){n&&(console.log("Loading discussion",n),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(n,this.loading),He.on("discussion",t=>{this.loading=!1,this.setDiscussionLoading(n,this.loading),t&&(this.discussionArr=t.filter(i=>i.message_type==this.msgTypes.MSG_TYPE_CHUNK||i.message_type==this.msgTypes.MSG_TYPE_FULL||i.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||i.message_type==this.msgTypes.MSG_TYPE_CODE||i.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||i.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),He.off("discussion")}),He.emit("load_discussion",{id:n}))},recoverFiles(){console.log("Recovering files"),Pe.get("/get_current_personality_files_list").then(n=>{this.$refs.chatBox.filesList=n.data.files,this.$refs.chatBox.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.$refs.chatBox.filesList}`)})},new_discussion(n){try{this.loading=!0,He.on("discussion_created",e=>{He.off("discussion_created"),this.list_discussions().then(()=>{const t=this.list.findIndex(r=>r.id==e.id),i=this.list[t];this.selectDiscussion(i),this.load_discussion(e.id,()=>{this.loading=!1,Pe.get("/get_current_personality_files_list").then(r=>{console.log("Files recovered"),this.fileList=r.files}),Ue(()=>{const r=document.getElementById("dis-"+e.id);this.scrollToElement(r),console.log("Scrolling tp "+r)})})})}),console.log("new_discussion ",n),He.emit("new_discussion",{title:n})}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(n){try{n&&(this.loading=!0,this.setDiscussionLoading(n,this.loading),await Pe.post("/delete_discussion",{client_id:this.client_id,id:n}),this.loading=!1,this.setDiscussionLoading(n,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async edit_title(n,e){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const t=await Pe.post("/edit_title",{client_id:this.client_id,id:n,title:e});if(this.loading=!1,this.setDiscussionLoading(n,this.loading),t.status==200){const i=this.list.findIndex(s=>s.id==n),r=this.list[i];r.title=e,this.tempList=this.list}}}catch(t){console.log("Error: Could not edit title",t.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async make_title(n){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const e=await Pe.post("/make_title",{client_id:this.client_id,id:n});if(console.log("Making title:",e),this.loading=!1,this.setDiscussionLoading(n,this.loading),e.status==200){const t=this.list.findIndex(r=>r.id==n),i=this.list[t];i.title=e.data.title,this.tempList=this.list}}}catch(e){console.log("Error: Could not edit title",e.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async delete_message(n){try{const e=await Pe.get("/delete_message",{params:{client_id:this.client_id,id:n}});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(He.emit("cancel_generation"),res)return res.data}catch(n){return console.log("Error: Could not stop generating",n.message),{}}},async message_rank_up(n){try{const e=await Pe.get("/message_rank_up",{params:{client_id:this.client_id,id:n}});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(n){try{const e=await Pe.get("/message_rank_down",{params:{client_id:this.client_id,id:n}});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async edit_message(n,e){try{const t=await Pe.get("/edit_message",{params:{client_id:this.client_id,id:n,message:e}});if(t)return t.data}catch(t){return console.log("Error: Could not update message",t.message),{}}},async export_multiple_discussions(n,e){try{if(n.length>0){const t=await Pe.post("/export_multiple_discussions",{discussion_ids:n,export_format:e});if(t)return t.data}}catch(t){return console.log("Error: Could not export multiple discussions",t.message),{}}},async import_multiple_discussions(n){try{if(n.length>0){console.log("sending import",n);const e=await Pe.post("/import_multiple_discussions",{jArray:n});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(n=>n.title&&n.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(n){if(this.isGenerating){this.$store.state.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}n&&(this.currentDiscussion===void 0?(this.currentDiscussion=n,this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})):this.currentDiscussion.id!=n.id&&(console.log("item",n),console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion=n,console.log("this.currentDiscussion",this.currentDiscussion),this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})),Ue(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const t=document.getElementById("messages-list");this.scrollBottom(t)}))},scrollToElement(n){n?n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(n,e){try{const t=n.offsetTop;document.getElementById(e).scrollTo({top:t,behavior:"smooth"})}catch{}},scrollBottom(n){n?n.scrollTo({top:n.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(n){n?n.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(n){let e={content:n.message,id:n.id,rank:0,sender:n.user,created_at:n.created_at,steps:[],html_js_s:[]};this.discussionArr.push(e),Ue(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},updateLastUserMsg(n){const e=this.discussionArr.indexOf(i=>i.id=n.user_id),t={binding:n.binding,content:n.message,created_at:n.created_at,type:n.type,finished_generating_at:n.finished_generating_at,id:n.user_id,model:n.model,personality:n.personality,sender:n.user,steps:[]};e!==-1&&(this.discussionArr[e]=t)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.state.isConnected=!0,!0},socketIODisconnected(){return console.log("socketIOConnected"),this.currentDiscussion=null,this.$store.dispatch("refreshModels"),this.$store.state.isConnected=!1,!0},new_message(n){console.log("Making a new message"),console.log("New message",n);let e={sender:n.sender,message_type:n.message_type,sender_type:n.sender_type,content:n.content,id:n.id,discussion_id:n.discussion_id,parent_id:n.parent_id,binding:n.binding,model:n.model,personality:n.personality,created_at:n.created_at,finished_generating_at:n.finished_generating_at,rank:0,ui:n.ui,steps:[],parameters:n.parameters,metadata:n.metadata,open:n.open};console.log(e),this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,n.message),console.log("infos",n)},talk(n){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(e=>{e&&(e.data.status?console.log("Already generating"):(console.log("Generating message from ",e.data.status),He.emit("generate_msg_from",{id:-1}),this.discussionArr.length>0&&Number(this.discussionArr[this.discussionArr.length-1].id)+1))}).catch(e=>{console.log("Error: Could not get generation status",e)})},createEmptyUserMessage(n){He.emit("create_empty_message",{type:0,message:n})},createEmptyAIMessage(){He.emit("create_empty_message",{type:1})},sendMsg(n){if(!n){this.$store.state.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(e=>{if(e)if(e.data.status)console.log("Already generating");else{He.emit("generate_msg",{prompt:n});let t=0;this.discussionArr.length>0&&(t=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let i={message:n,id:t,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.msgTypes.MSG_TYPE_FULL,sender_type:this.senderTypes.SENDER_TYPES_USER,content:n,id:t,discussion_id:this.discussion_id,parent_id:t,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(i)}}).catch(e=>{console.log("Error: Could not get generation status",e)})},sendCmd(n){this.isGenerating=!0,He.emit("execute_command",{command:n,parameters:[]})},notify(n){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Ue(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),n.display_type==0?this.$store.state.toast.showToast(n.content,n.duration,n.notification_type):n.display_type==1?this.$store.state.messageBox.showMessage(n.content):n.display_type==2?(this.$store.state.messageBox.hideMessage(),this.$store.state.yesNoDialog.askQuestion(n.content,"Yes","No").then(e=>{He.emit("yesNoRes",{yesRes:e})})):n.display_type==3?this.$store.state.messageBox.showBlockingMessage(n.content):n.display_type==4&&this.$store.state.messageBox.hideMessage(),this.chime.play()},streamMessageContent(n){if(this.discussion_id=n.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(i=>i.id==n.id),t=this.discussionArr[e];if(t&&(n.message_type==this.msgTypes.MSG_TYPE_FULL||n.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))t.content=n.content,t.finished_generating_at=n.finished_generating_at;else if(t&&n.message_type==this.msgTypes.MSG_TYPE_CHUNK)t.content+=n.content;else if(n.message_type==this.msgTypes.MSG_TYPE_STEP)t.steps.push({message:n.content,done:!0,status:!0});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_START)t.steps.push({message:n.content,done:!1,status:!0});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_END){const i=t.steps.find(r=>r.message===n.content);if(i){i.done=!0;try{console.log(n.parameters);const r=n.parameters;i.status=r.status,console.log(r)}catch(r){console.error("Error parsing JSON:",r.message)}}}else n.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(n.metadata),t.metadata=n.metadata):n.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),t.ui=n.ui,console.log(t.ui)):n.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$store.state.toast.showToast(n.content,5,!1)}this.$nextTick(()=>{Fe.replace()})},async changeTitleUsingUserMSG(n,e){const t=this.list.findIndex(r=>r.id==n),i=this.list[t];e&&(i.title=e,this.tempList=this.list,await this.edit_title(n,e))},async createNewDiscussion(){this.new_discussion(null)},loadLastUsedDiscussion(){console.log("Loading last discussion");const n=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",n),n){const e=this.list.findIndex(i=>i.id==n),t=this.list[e];t&&this.selectDiscussion(t)}},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},async deleteDiscussion(n){await this.delete_discussion(n),this.currentDiscussion.id==n&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==n),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const n=this.selectedDiscussions;for(let e=0;ei.id==t.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$store.state.toast.showToast("Removed ("+n.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(n){await this.delete_message(n).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==n),1)}).catch(()=>{this.$store.state.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async editTitle(n){const e=this.list.findIndex(i=>i.id==n.id),t=this.list[e];t.title=n.title,t.loading=!0,await this.edit_title(n.id,n.title),t.loading=!1},async makeTitle(n){this.list.findIndex(e=>e.id==n.id),await this.make_title(n.id)},checkUncheckDiscussion(n,e){const t=this.list.findIndex(r=>r.id==e),i=this.list[t];i.checkBoxValue=n.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(n=>n.checkBoxValue==!1).length>0;for(let n=0;n({id:t.id,title:t.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(t,i){return i.id-t.id});this.list=e,this.tempList=e}},setDiscussionLoading(n,e){try{const t=this.list.findIndex(r=>r.id==n),i=this.list[t];i.loading=e}catch{console.log("Error setting discussion loading")}},setPageTitle(n){if(n)if(n.id){const e=n.title?n.title==="untitled"?"New discussion":n.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(n){await this.message_rank_up(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(n){await this.message_rank_down(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(n,e){await this.edit_message(n,e).then(()=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.content=e}).catch(()=>{this.$store.state.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(n,e,t){Ue(()=>{Fe.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(i=>{i&&(i.data.status?(this.$store.state.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):He.emit("generate_msg_from",{prompt:e,id:n,msg_type:t}))}).catch(i=>{console.log("Error: Could not get generation status",i)})},continueMessage(n,e){Ue(()=>{Fe.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Pe.get("/get_generation_status",{}).then(t=>{t&&(t.data.status?console.log("Already generating"):He.emit("continue_generate_msg_from",{prompt:e,id:n}))}).catch(t=>{console.log("Error: Could not get generation status",t)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},finalMsgEvent(n){if(console.log("final",n),n.parent_id,this.discussion_id=n.discussion_id,this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(t=>t.id==n.id);this.discussionArr[e].content=n.content,this.discussionArr[e].finished_generating_at=n.finished_generating_at}Ue(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},copyToClipBoard(n){this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0);let e="";n.message.binding&&(e=`Binding: ${n.message.binding}`);let t="";n.message.personality&&(t=` Personality: ${n.message.personality}`);let i="";n.created_at_parsed&&(i=` Created: ${n.created_at_parsed}`);let r="";n.message.content&&(r=n.message.content);let s="";n.message.model&&(s=`Model: ${n.message.model}`);let o="";n.message.seed&&(o=`Seed: ${n.message.seed}`);let a="";n.time_spent&&(a=` Time spent: ${n.time_spent}`);let l="";l=`${e} ${s} ${o} ${a}`.trim();const c=`${n.message.sender}${t}${i} @@ -193,7 +193,7 @@ ${r} ${l}`;navigator.clipboard.writeText(c),Ue(()=>{Fe.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(n,e){e=e||"data.json";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},saveMarkdowntoFile(n,e){e=e||"data.md";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([n],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},parseJsonObj(n){try{return JSON.parse(n)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(n){return new Promise((e,t)=>{const i=new FileReader;i.onload=r=>e(this.parseJsonObj(r.target.result)),i.onerror=r=>t(r),i.readAsText(n)})},async exportDiscussionsAsMarkdown(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(t+"."+i+"."+r+"."+s+o+a)+".md";this.loading=!0;const d=await this.export_multiple_discussions(n,"markdown");d?(this.saveMarkdowntoFile(d,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 exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(t+"."+i+"."+r+"."+s+o+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(n,"json");d?(this.saveJSONtoFile(d,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 importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(i=>i.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){for(this.$nextTick(()=>{Fe.replace()}),He.on("disucssion_renamed",n=>{console.log("Received new title",n.discussion_id,n.title);const e=this.list.findIndex(i=>i.id==n.discussion_id),t=this.list[e];t.title=n.title}),He.onclose=n=>{console.log("WebSocket connection closed:",n.code,n.reason),this.socketIODisconnected()},He.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}),He.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),He.disconnect()},He.on("connected",this.socketIOConnected),He.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100)),console.log(this.$store.state.ready);console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),He.on("show_progress",this.show_progress),He.on("hide_progress",this.hide_progress),He.on("update_progress",this.update_progress),He.on("notification",this.notify),He.on("new_message",this.new_message),He.on("update_message",this.streamMessageContent),He.on("close_message",this.finalMsgEvent),He.onopen=()=>{console.log("WebSocket connection established."),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.isCreated=!0},async mounted(){let n="http://localhost:9600/";try{n=await(await fetch("/get_server_address")).text(),n.includes("<")&&(console.log("Server address not found"),n="http://localhost:9600/"),console.log(`Server address: ${n}`)}catch(e){console.error("Error fetching server address:",e),n="http://localhost:9600/"}this.host=`${n}`,Pe.defaults.baseURL=n,this.$nextTick(()=>{Fe.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},components:{Discussion:Yg,Message:Cw,ChatBox:Rw,WelcomeComponent:Aw,ChoiceDialog:pE,ProgressBar:ml,InputBox:xw},watch:{progress_visibility_val(n){console.log("progress_visibility changed")},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Ue(()=>{Fe.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ue(()=>{Fe.replace()})},isSearch(){Ue(()=>{Fe.replace()})}},computed:{progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+this.$store.state.version:""}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},formatted_database_name(){const n=this.$store.state.config.db_path;return n.slice(0,n.length-3)},UseDiscussionHistory(){return this.$store.state.config.use_discussions_history},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return He.id},isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},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 Ue(()=>{Fe.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},rgt=Object.assign(igt,{__name:"DiscussionsView",setup(n){return Rl(()=>{Ww()}),Pe.defaults.baseURL="/",(e,t)=>(M(),D(Xe,null,[Le(Po,{name:"fade-and-fly"},{default:lt(()=>[e.isReady?Q("",!0):(M(),D("div",Rft,[_("div",Aft,[_("div",wft,[_("div",Oft,[Nft,_("div",Mft,[_("p",Ift,"Lord of Large Language and Multimodal Systems "+me(e.version_info),1),Dft,Lft])]),kft,Pft,_("div",Uft,[Le(ml,{ref:"loading_progress",progress:e.loading_progress},null,8,["progress"]),_("p",Fft,me(e.loading_infos)+" ...",1)])])])]))]),_:1}),e.isReady?(M(),D("button",{key:0,onClick:t[0]||(t[0]=(...i)=>e.togglePanel&&e.togglePanel(...i)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[Re(_("div",null,Gft,512),[[At,e.panelCollapsed]]),Re(_("div",null,Vft,512),[[At,!e.panelCollapsed]])])):Q("",!0),Le(Po,{name:"slide-right"},{default:lt(()=>[e.showPanel?(M(),D("div",Hft,[_("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:t[22]||(t[22]=Ae(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[_("div",qft,[_("div",Yft,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:t[1]||(t[1]=i=>e.createNewDiscussion())},Wft),_("button",{class:Ke(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=i=>e.isCheckbox=!e.isCheckbox)},jft,2),Qft,_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:t[3]||(t[3]=Ae(i=>e.database_selectorDialogVisible=!0,["stop"]))},Zft),_("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:t[4]||(t[4]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:t[5]||(t[5]=Ae(i=>e.$refs.fileDialog.click(),["stop"]))},emt),e.isOpen?(M(),D("div",tmt,[_("button",{onClick:t[6]||(t[6]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},"LOLLMS"),_("button",{onClick:t[7]||(t[7]=(...i)=>e.importChatGPT&&e.importChatGPT(...i))},"ChatGPT")])):Q("",!0),_("button",{class:Ke(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:t[8]||(t[8]=i=>e.isSearch=!e.isSearch)},imt,2),e.showSaveConfirmation?Q("",!0):(M(),D("button",{key:1,title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:t[9]||(t[9]=i=>e.showSaveConfirmation=!0)},smt)),e.showSaveConfirmation?(M(),D("div",omt,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:t[10]||(t[10]=Ae(i=>e.showSaveConfirmation=!1,["stop"]))},lmt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:t[11]||(t[11]=Ae(i=>e.save_configuration(),["stop"]))},dmt)])):Q("",!0),e.showBrainConfirmation?Q("",!0):(M(),D("button",{key:3,title:"Activate Long term Memory",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:t[12]||(t[12]=i=>e.toggleLTM())},[e.loading?(M(),D("img",{key:0,src:bn(xft),width:"25",height:"25",class:"animate-pulse",title:"Applying config, please stand by..."},null,8,umt)):e.UseDiscussionHistory?(M(),D("img",{key:1,src:bn(Cft),width:"25",height:"25"},null,8,_mt)):(M(),D("img",{key:2,src:bn(Tft),width:"25",height:"25"},null,8,pmt))])),e.loading?(M(),D("div",hmt,mmt)):Q("",!0)]),e.isSearch?(M(),D("div",gmt,[_("div",Emt,[_("div",bmt,[Smt,_("div",ymt,[_("div",{class:Ke(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:t[13]||(t[13]=i=>e.filterTitle="")},Tmt,2)]),Re(_("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light 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",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":t[14]||(t[14]=i=>e.filterTitle=i),onInput:t[15]||(t[15]=i=>e.filterDiscussions())},null,544),[[Ze,e.filterTitle]])])])])):Q("",!0),e.isCheckbox?(M(),D("hr",xmt)):Q("",!0),e.isCheckbox?(M(),D("div",Cmt,[_("div",Rmt,[e.selectedDiscussions.length>0?(M(),D("p",Amt,"Selected: "+me(e.selectedDiscussions.length),1)):Q("",!0)]),_("div",wmt,[e.selectedDiscussions.length>0?(M(),D("div",Omt,[e.showConfirmation?Q("",!0):(M(),D("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[16]||(t[16]=Ae(i=>e.showConfirmation=!0,["stop"]))},Mmt)),e.showConfirmation?(M(),D("div",Imt,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[17]||(t[17]=Ae((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},Lmt),_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[18]||(t[18]=Ae(i=>e.showConfirmation=!1,["stop"]))},Pmt)])):Q("",!0)])):Q("",!0),_("div",Umt,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[19]||(t[19]=Ae((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},Bmt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[20]||(t[20]=Ae((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},zmt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[21]||(t[21]=Ae((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},Hmt)])])])):Q("",!0)]),_("div",qmt,[_("div",{class:Ke(["mx-4 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[_("div",{id:"dis-list",class:Ke([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full"])},[e.list.length>0?(M(),Qt(Vr,{key:0,name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(e.list,(i,r)=>(M(),Qt(Yg,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:s=>e.selectDiscussion(i),onDelete:s=>e.deleteDiscussion(i.id),onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):Q("",!0),e.list.length<1?(M(),D("div",Ymt,Wmt)):Q("",!0),Kmt],2)],2)])],32),_("div",{class:"absolute bottom-0 left-0 w-full bg-blue-200 dark:bg-blue-800 text-white py-2 cursor-pointer hover:text-green-500",onClick:t[23]||(t[23]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[_("p",jmt,"Current database: "+me(e.formatted_database_name),1)])])):Q("",!0)]),_:1}),e.isReady?(M(),D("div",Qmt,[_("div",{id:"messages-list",class:Ke(["w-full 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",e.isDragOverChat?"pointer-events-none":""])},[_("div",Xmt,[e.discussionArr.length>0?(M(),Qt(Vr,{key:0,name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(e.discussionArr,(i,r)=>(M(),Qt(Cw,{key:i.id,message:i,id:"msg-"+i.id,host:e.host,ref_for:!0,ref:"messages",onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):Q("",!0),e.currentDiscussion.id?Q("",!0):(M(),Qt(Aw,{key:1})),Zmt]),Jmt,e.currentDiscussion.id?(M(),D("div",egt,[Le(Rw,{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"])])):Q("",!0)],2)])):Q("",!0),Le(pE,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"]),Re(_("div",tgt,[Le(ml,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),_("p",ngt,me(e.loading_infos)+" ...",1)],512),[[At,e.progress_visibility]]),Le(xw,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.handleOk,ref:"web_url_input_box"},null,8,["onOk"])],64))}}),sgt=ft(rgt,[["__scopeId","data-v-ac366642"]]);/** +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){for(this.$nextTick(()=>{Fe.replace()}),He.on("disucssion_renamed",n=>{console.log("Received new title",n.discussion_id,n.title);const e=this.list.findIndex(i=>i.id==n.discussion_id),t=this.list[e];t.title=n.title}),He.onclose=n=>{console.log("WebSocket connection closed:",n.code,n.reason),this.socketIODisconnected()},He.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}),He.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),He.disconnect()},He.on("connected",this.socketIOConnected),He.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100)),console.log(this.$store.state.ready);console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),He.on("show_progress",this.show_progress),He.on("hide_progress",this.hide_progress),He.on("update_progress",this.update_progress),He.on("notification",this.notify),He.on("new_message",this.new_message),He.on("update_message",this.streamMessageContent),He.on("close_message",this.finalMsgEvent),He.onopen=()=>{console.log("WebSocket connection established."),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.isCreated=!0},async mounted(){let n="http://localhost:9600/";try{n=await(await fetch("/get_server_address")).text(),n.includes("<")&&(console.log("Server address not found"),n="http://localhost:9600/"),console.log(`Server address: ${n}`)}catch(e){console.error("Error fetching server address:",e),n="http://localhost:9600/"}this.host=`${n}`,Pe.defaults.baseURL=n,this.$nextTick(()=>{Fe.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},components:{Discussion:Yg,Message:Cw,ChatBox:Rw,WelcomeComponent:Aw,ChoiceDialog:pE,ProgressBar:ml,InputBox:xw},watch:{progress_visibility_val(n){console.log("progress_visibility changed")},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Ue(()=>{Fe.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ue(()=>{Fe.replace()})},isSearch(){Ue(()=>{Fe.replace()})}},computed:{progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+this.$store.state.version:""}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},formatted_database_name(){const n=this.$store.state.config.db_path;return n.slice(0,n.length-3)},UseDiscussionHistory(){return this.$store.state.config.use_discussions_history},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return He.id},isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},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 Ue(()=>{Fe.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},rgt=Object.assign(igt,{__name:"DiscussionsView",setup(n){return Rl(()=>{Ww()}),Pe.defaults.baseURL="/",(e,t)=>(M(),D(Xe,null,[Le(Po,{name:"fade-and-fly"},{default:lt(()=>[e.isReady?Q("",!0):(M(),D("div",Rft,[_("div",Aft,[_("div",wft,[_("div",Oft,[Nft,_("div",Mft,[_("p",Ift,"Lord of Large Language and Multimodal Systems "+me(e.version_info),1),Dft,Lft])]),kft,Pft,_("div",Uft,[Le(ml,{ref:"loading_progress",progress:e.loading_progress},null,8,["progress"]),_("p",Fft,me(e.loading_infos)+" ...",1)])])])]))]),_:1}),e.isReady?(M(),D("button",{key:0,onClick:t[0]||(t[0]=(...i)=>e.togglePanel&&e.togglePanel(...i)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[Re(_("div",null,Gft,512),[[At,e.panelCollapsed]]),Re(_("div",null,Vft,512),[[At,!e.panelCollapsed]])])):Q("",!0),Le(Po,{name:"slide-right"},{default:lt(()=>[e.showPanel?(M(),D("div",Hft,[_("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:t[22]||(t[22]=Ae(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[_("div",qft,[_("div",Yft,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:t[1]||(t[1]=i=>e.createNewDiscussion())},Wft),_("button",{class:Ke(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=i=>e.isCheckbox=!e.isCheckbox)},jft,2),Qft,_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:t[3]||(t[3]=Ae(i=>e.database_selectorDialogVisible=!0,["stop"]))},Zft),_("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:t[4]||(t[4]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:t[5]||(t[5]=Ae(i=>e.$refs.fileDialog.click(),["stop"]))},emt),e.isOpen?(M(),D("div",tmt,[_("button",{onClick:t[6]||(t[6]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},"LOLLMS"),_("button",{onClick:t[7]||(t[7]=(...i)=>e.importChatGPT&&e.importChatGPT(...i))},"ChatGPT")])):Q("",!0),_("button",{class:Ke(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:t[8]||(t[8]=i=>e.isSearch=!e.isSearch)},imt,2),e.showSaveConfirmation?Q("",!0):(M(),D("button",{key:1,title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:t[9]||(t[9]=i=>e.showSaveConfirmation=!0)},smt)),e.showSaveConfirmation?(M(),D("div",omt,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:t[10]||(t[10]=Ae(i=>e.showSaveConfirmation=!1,["stop"]))},lmt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:t[11]||(t[11]=Ae(i=>e.save_configuration(),["stop"]))},dmt)])):Q("",!0),e.showBrainConfirmation?Q("",!0):(M(),D("button",{key:3,title:"Activate Long term Memory",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:t[12]||(t[12]=i=>e.toggleLTM())},[e.loading?(M(),D("img",{key:0,src:bn(xft),width:"25",height:"25",class:"animate-pulse",title:"Applying config, please stand by..."},null,8,umt)):e.UseDiscussionHistory?(M(),D("img",{key:1,src:bn(Cft),width:"25",height:"25"},null,8,_mt)):(M(),D("img",{key:2,src:bn(Tft),width:"25",height:"25"},null,8,pmt))])),e.loading?(M(),D("div",hmt,mmt)):Q("",!0)]),e.isSearch?(M(),D("div",gmt,[_("div",Emt,[_("div",bmt,[Smt,_("div",ymt,[_("div",{class:Ke(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:t[13]||(t[13]=i=>e.filterTitle="")},Tmt,2)]),Re(_("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light 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",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":t[14]||(t[14]=i=>e.filterTitle=i),onInput:t[15]||(t[15]=i=>e.filterDiscussions())},null,544),[[Ze,e.filterTitle]])])])])):Q("",!0),e.isCheckbox?(M(),D("hr",xmt)):Q("",!0),e.isCheckbox?(M(),D("div",Cmt,[_("div",Rmt,[e.selectedDiscussions.length>0?(M(),D("p",Amt,"Selected: "+me(e.selectedDiscussions.length),1)):Q("",!0)]),_("div",wmt,[e.selectedDiscussions.length>0?(M(),D("div",Omt,[e.showConfirmation?Q("",!0):(M(),D("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[16]||(t[16]=Ae(i=>e.showConfirmation=!0,["stop"]))},Mmt)),e.showConfirmation?(M(),D("div",Imt,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[17]||(t[17]=Ae((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},Lmt),_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[18]||(t[18]=Ae(i=>e.showConfirmation=!1,["stop"]))},Pmt)])):Q("",!0)])):Q("",!0),_("div",Umt,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[19]||(t[19]=Ae((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},Bmt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[20]||(t[20]=Ae((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},zmt),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[21]||(t[21]=Ae((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},Hmt)])])])):Q("",!0)]),_("div",qmt,[_("div",{class:Ke(["mx-4 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[_("div",{id:"dis-list",class:Ke([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full"])},[e.list.length>0?(M(),Qt(Vr,{key:0,name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(e.list,(i,r)=>(M(),Qt(Yg,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:s=>e.selectDiscussion(i),onDelete:s=>e.deleteDiscussion(i.id),onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):Q("",!0),e.list.length<1?(M(),D("div",Ymt,Wmt)):Q("",!0),Kmt],2)],2)])],32),_("div",{class:"absolute bottom-0 left-0 w-full bg-blue-200 dark:bg-blue-800 text-white py-2 cursor-pointer hover:text-green-500",onClick:t[23]||(t[23]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[_("p",jmt,"Current database: "+me(e.formatted_database_name),1)])])):Q("",!0)]),_:1}),e.isReady?(M(),D("div",Qmt,[_("div",{id:"messages-list",class:Ke(["w-full 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",e.isDragOverChat?"pointer-events-none":""])},[_("div",Xmt,[e.discussionArr.length>0?(M(),Qt(Vr,{key:0,name:"list"},{default:lt(()=>[(M(!0),D(Xe,null,gt(e.discussionArr,(i,r)=>(M(),Qt(Cw,{key:i.id,message:i,id:"msg-"+i.id,host:e.host,ref_for:!0,ref:"messages",onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):Q("",!0),e.currentDiscussion.id?Q("",!0):(M(),Qt(Aw,{key:1})),Zmt]),Jmt,e.currentDiscussion.id?(M(),D("div",egt,[Le(Rw,{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"])])):Q("",!0)],2)])):Q("",!0),Le(pE,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"]),Re(_("div",tgt,[Le(ml,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),_("p",ngt,me(e.loading_infos)+" ...",1)],512),[[At,e.progress_visibility]]),Le(xw,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.handleOk,ref:"web_url_input_box"},null,8,["onOk"])],64))}}),sgt=ft(rgt,[["__scopeId","data-v-00bcb9ec"]]);/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT diff --git a/web/dist/index.html b/web/dist/index.html index c8a31c48..e56bf7ed 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - Welcome - - + +
diff --git a/web/src/components/ChatBox.vue b/web/src/components/ChatBox.vue index 32f519f8..d3417d3f 100644 --- a/web/src/components/ChatBox.vue +++ b/web/src/components/ChatBox.vue @@ -682,7 +682,7 @@ export default { readNextChunk(); }, makeAnEmptyUserMessage() { - this.$emit('createEmptyUserMessage') + this.$emit('createEmptyUserMessage',this.message) }, makeAnEmptyAIMessage() { this.$emit('createEmptyAIMessage') diff --git a/web/src/views/DiscussionsView.vue b/web/src/views/DiscussionsView.vue index 33e75018..12a50dcd 100644 --- a/web/src/views/DiscussionsView.vue +++ b/web/src/views/DiscussionsView.vue @@ -1140,8 +1140,8 @@ export default { console.log("Error: Could not get generation status", error); }); }, - createEmptyUserMessage(){ - socket.emit('create_empty_message', {"type":0}); // 0 for user and 1 for AI + createEmptyUserMessage(message){ + socket.emit('create_empty_message', {"type":0,"message":message}); // 0 for user and 1 for AI }, createEmptyAIMessage(){ socket.emit('create_empty_message', {"type":1}); // 0 for user and 1 for AI diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index f3640e7a..6b13baec 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -764,8 +764,8 @@