From 6fc35f0730fec629116a6ca50094c35677a47851 Mon Sep 17 00:00:00 2001 From: saloui Date: Fri, 26 May 2023 12:10:16 +0200 Subject: [PATCH 1/2] changed configuration version --- app.py | 32 ++++++++++++++++++++++++++++---- configs/default.yaml | 2 +- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 2df0c960..f905a536 100644 --- a/app.py +++ b/app.py @@ -840,7 +840,32 @@ class Gpt4AllWebUI(GPT4AllAPI): def extensions(self): return render_template("extensions.html") +def sync_cfg(default_config, config): + """Syncs a configuration with the default configuration + + Args: + default_config (_type_): _description_ + config (_type_): _description_ + + Returns: + _type_: _description_ + """ + added_entries = [] + removed_entries = [] + + # Ensure all fields from default_config exist in config + for key, value in default_config.items(): + if key not in config: + config[key] = value + added_entries.append(key) + + # Remove fields from config that don't exist in default_config + for key in list(config.keys()): + if key not in default_config: + del config[key] + removed_entries.append(key) + return config, added_entries, removed_entries if __name__ == "__main__": parser = argparse.ArgumentParser(description="Start the chatbot Flask app.") @@ -924,13 +949,12 @@ if __name__ == "__main__": config_file_path = f"configs/{args.config}.yaml" config = load_config(config_file_path) + if "version" not in config or int(config["version"]) Date: Fri, 26 May 2023 12:11:14 +0200 Subject: [PATCH 2/2] upgraded references --- README.md | 2 +- api/__init__.py | 2 +- api/binding.py | 2 +- api/config.py | 2 +- api/db.py | 2 +- api/extension.py | 2 +- app.py | 2 +- bindings/backend_template/__init__.py | 2 +- bindings/c_transformers/__init__.py | 2 +- bindings/gpt_4all/__init__.py | 4 ++-- bindings/gpt_j_a/__init__.py | 2 +- bindings/gpt_j_m/__init__.py | 2 +- bindings/llama_cpp_official/__init__.py | 2 +- bindings/open_ai/__init__.py | 2 +- bindings/py_llama_cpp/__init__.py | 2 +- docs/usage/AdvancedInstallInstructions.md | 6 +++--- setup.py | 2 +- templates/help.html | 2 +- web/dist/assets/index-2548679d.js | 2 +- web/src/components/Footer.vue | 2 +- web/src/components/TopBar.vue | 2 +- 21 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 5c49e426..0eba376c 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ # License -This project is licensed under the Apache 2.0 License. See the [LICENSE](https://github.com/nomic-ai/GPT4All-ui/blob/main/LICENSE) file for details. +This project is licensed under the Apache 2.0 License. See the [LICENSE](https://github.com/ParisNeo/GPT4All-ui/blob/main/LICENSE) file for details. diff --git a/api/__init__.py b/api/__init__.py index e77c6c06..cba9674b 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -20,7 +20,7 @@ from tqdm import tqdm import traceback __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/api/binding.py b/api/binding.py index 8744eb3c..38d4fef3 100644 --- a/api/binding.py +++ b/api/binding.py @@ -14,7 +14,7 @@ import yaml import sys __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/api/config.py b/api/config.py index c17a0271..bc1c0e97 100644 --- a/api/config.py +++ b/api/config.py @@ -12,7 +12,7 @@ import yaml __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/api/db.py b/api/db.py index 93cbec20..90f91384 100644 --- a/api/db.py +++ b/api/db.py @@ -2,7 +2,7 @@ import sqlite3 __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/api/extension.py b/api/extension.py index db0b0d32..b30904d0 100644 --- a/api/extension.py +++ b/api/extension.py @@ -6,7 +6,7 @@ from config import load_config, save_config __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/app.py b/app.py index f905a536..05a82c46 100644 --- a/app.py +++ b/app.py @@ -10,7 +10,7 @@ ###### __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/backend_template/__init__.py b/bindings/backend_template/__init__.py index bb465ca2..41e1ab01 100644 --- a/bindings/backend_template/__init__.py +++ b/bindings/backend_template/__init__.py @@ -20,7 +20,7 @@ from api.config import load_config import re __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/c_transformers/__init__.py b/bindings/c_transformers/__init__.py index de19bd26..3f51ac3f 100644 --- a/bindings/c_transformers/__init__.py +++ b/bindings/c_transformers/__init__.py @@ -19,7 +19,7 @@ import yaml from ctransformers import AutoModelForCausalLM __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/gpt_4all/__init__.py b/bindings/gpt_4all/__init__.py index 51880f84..19db493b 100644 --- a/bindings/gpt_4all/__init__.py +++ b/bindings/gpt_4all/__init__.py @@ -9,7 +9,7 @@ # This binding is a wrapper to gpt4all's official binding -# Follow him on his github project : https://github.com/nomic-ai/gpt4all +# Follow him on his github project : https://github.com/ParisNeo/gpt4all ###### from pathlib import Path @@ -19,7 +19,7 @@ from api.binding import LLMBinding import yaml __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/gpt_j_a/__init__.py b/bindings/gpt_j_a/__init__.py index 50e36335..76be5840 100644 --- a/bindings/gpt_j_a/__init__.py +++ b/bindings/gpt_j_a/__init__.py @@ -18,7 +18,7 @@ from pygptj.model import Model from api.binding import LLMBinding __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/gpt_j_m/__init__.py b/bindings/gpt_j_m/__init__.py index 1f754267..71513a91 100644 --- a/bindings/gpt_j_m/__init__.py +++ b/bindings/gpt_j_m/__init__.py @@ -19,7 +19,7 @@ from api.binding import LLMBinding import yaml __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/llama_cpp_official/__init__.py b/bindings/llama_cpp_official/__init__.py index 18ad0cea..ad1c366f 100644 --- a/bindings/llama_cpp_official/__init__.py +++ b/bindings/llama_cpp_official/__init__.py @@ -19,7 +19,7 @@ import yaml import random __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/open_ai/__init__.py b/bindings/open_ai/__init__.py index ac91fbd1..fe0c69f0 100644 --- a/bindings/open_ai/__init__.py +++ b/bindings/open_ai/__init__.py @@ -20,7 +20,7 @@ import yaml import re __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/bindings/py_llama_cpp/__init__.py b/bindings/py_llama_cpp/__init__.py index b98d32ff..9184bafb 100644 --- a/bindings/py_llama_cpp/__init__.py +++ b/bindings/py_llama_cpp/__init__.py @@ -18,7 +18,7 @@ from api.binding import LLMBinding import yaml __author__ = "parisneo" -__github__ = "https://github.com/nomic-ai/gpt4all-ui" +__github__ = "https://github.com/ParisNeo/gpt4all-ui" __copyright__ = "Copyright 2023, " __license__ = "Apache 2.0" diff --git a/docs/usage/AdvancedInstallInstructions.md b/docs/usage/AdvancedInstallInstructions.md index 83ffd824..32d22985 100644 --- a/docs/usage/AdvancedInstallInstructions.md +++ b/docs/usage/AdvancedInstallInstructions.md @@ -19,7 +19,7 @@ 2. Open Terminal/PowerShell and navigate to a folder you want to clone this repository. ```bash -git clone https://github.com/nomic-ai/gpt4all-ui.git +git clone https://github.com/ParisNeo/gpt4all-ui.git ``` 4. Install/run application by double clicking on `webui.bat` file from Windows explorer as normal user. @@ -87,7 +87,7 @@ sudo pacman -S curl git python3 2. Clone repository: ```bash -git clone https://github.com/nomic-ai/gpt4all-ui.git +git clone https://github.com/ParisNeo/gpt4all-ui.git ``` ```bash cd gpt4all-ui @@ -116,7 +116,7 @@ brew install git python3 3. Clone repository: ```bash -git clone https://github.com/nomic-ai/gpt4all-ui.git +git clone https://github.com/ParisNeo/gpt4all-ui.git ``` ```bash cd gpt4all-ui diff --git a/setup.py b/setup.py index 733b9ac7..97b21113 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setuptools.setup( description="A web ui for running chat models with different bindings. Supports multiple personalities and extensions.", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/nomic-ai/gpt4all-ui", + url="https://github.com/ParisNeo/gpt4all-ui", packages=setuptools.find_packages(), install_requires=requirements, extras_require={"dev": requirements_dev}, diff --git a/templates/help.html b/templates/help.html index 9bf5bb78..86794715 100644 --- a/templates/help.html +++ b/templates/help.html @@ -44,7 +44,7 @@ diff --git a/web/dist/assets/index-2548679d.js b/web/dist/assets/index-2548679d.js index 616ef1c2..85cc6138 100644 --- a/web/dist/assets/index-2548679d.js +++ b/web/dist/assets/index-2548679d.js @@ -6,7 +6,7 @@ Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function l(f,E){for(var b=E.length,T=0;T1?arguments[1]:void 0,E=f!==void 0,b=0,T=u(m),R,v,I,N;if(E&&(f=i(f,h>2?arguments[2]:void 0,2)),T!=null&&!(g==Array&&c(T)))for(N=T.call(m),v=new g;!(I=N.next()).done;b++)d(v,b,E?a(N,f,[I.value,b],!0):I.value);else for(R=l(m.length),v=new g(R);R>b;b++)d(v,b,E?f(m[b],b):m[b]);return v.length=b,v}},"./node_modules/core-js/internals/array-includes.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-indexed-object.js"),s=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(c){return function(l,d,u){var _=i(l),p=s(_.length),m=a(u,p),g;if(c&&d!=d){for(;p>m;)if(g=_[m++],g!=g)return!0}else for(;p>m;m++)if((c||m in _)&&_[m]===d)return c||m||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,r,o){var i=o("./node_modules/core-js/internals/a-function.js");n.exports=function(s,a,c){if(i(s),a===void 0)return s;switch(c){case 0:return function(){return s.call(a)};case 1:return function(l){return s.call(a,l)};case 2:return function(l,d){return s.call(a,l,d)};case 3:return function(l,d,u){return s.call(a,l,d,u)}}return function(){return s.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,r,o){var i=o("./node_modules/core-js/internals/an-object.js");n.exports=function(s,a,c,l){try{return l?a(i(c)[0],c[1]):a(c)}catch(u){var d=s.return;throw d!==void 0&&i(d.call(s)),u}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,r,o){var i=o("./node_modules/core-js/internals/well-known-symbol.js"),s=i("iterator"),a=!1;try{var c=0,l={next:function(){return{done:!!c++}},return:function(){a=!0}};l[s]=function(){return this},Array.from(l,function(){throw 2})}catch{}n.exports=function(d,u){if(!u&&!a)return!1;var _=!1;try{var p={};p[s]=function(){return{next:function(){return{done:_=!0}}}},d(p)}catch{}return _}},"./node_modules/core-js/internals/classof-raw.js":function(n,r){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,r,o){var i=o("./node_modules/core-js/internals/classof-raw.js"),s=o("./node_modules/core-js/internals/well-known-symbol.js"),a=s("toStringTag"),c=i(function(){return arguments}())=="Arguments",l=function(d,u){try{return d[u]}catch{}};n.exports=function(d){var u,_,p;return d===void 0?"Undefined":d===null?"Null":typeof(_=l(u=Object(d),a))=="string"?_:c?i(u):(p=i(u))=="Object"&&typeof u.callee=="function"?"Arguments":p}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,r,o){var i=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=o("./node_modules/core-js/internals/object-define-property.js");n.exports=function(l,d){for(var u=s(d),_=c.f,p=a.f,m=0;m",R="java"+b+":",v;for(h.style.display="none",l.appendChild(h),h.src=String(R),v=h.contentWindow.document,v.open(),v.write(E+b+T+"document.F=Object"+E+"/"+b+T),v.close(),g=v.F;f--;)delete g[p][a[f]];return g()};n.exports=Object.create||function(f,E){var b;return f!==null?(m[p]=i(f),b=new m,m[p]=null,b[_]=f):b=g(),E===void 0?b:s(b,E)},c[_]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,r,o){var i=o("./node_modules/core-js/internals/descriptors.js"),s=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),c=o("./node_modules/core-js/internals/object-keys.js");n.exports=i?Object.defineProperties:function(d,u){a(d);for(var _=c(u),p=_.length,m=0,g;p>m;)s.f(d,g=_[m++],u[g]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(n,r,o){var i=o("./node_modules/core-js/internals/descriptors.js"),s=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),c=o("./node_modules/core-js/internals/to-primitive.js"),l=Object.defineProperty;r.f=i?l:function(u,_,p){if(a(u),_=c(_,!0),a(p),s)try{return l(u,_,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(u[_]=p.value),u}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,r,o){var i=o("./node_modules/core-js/internals/descriptors.js"),s=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),c=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/to-primitive.js"),d=o("./node_modules/core-js/internals/has.js"),u=o("./node_modules/core-js/internals/ie8-dom-define.js"),_=Object.getOwnPropertyDescriptor;r.f=i?_:function(m,g){if(m=c(m),g=l(g,!0),u)try{return _(m,g)}catch{}if(d(m,g))return a(!s.f.call(m,g),m[g])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,r,o){var i=o("./node_modules/core-js/internals/object-keys-internal.js"),s=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=s.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(l){return i(l,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,r,o){var i=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),c=o("./node_modules/core-js/internals/correct-prototype-getter.js"),l=a("IE_PROTO"),d=Object.prototype;n.exports=c?Object.getPrototypeOf:function(u){return u=s(u),i(u,l)?u[l]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,r,o){var i=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js"),c=o("./node_modules/core-js/internals/hidden-keys.js"),l=a(!1);n.exports=function(d,u){var _=s(d),p=0,m=[],g;for(g in _)!i(c,g)&&i(_,g)&&m.push(g);for(;u.length>p;)i(_,g=u[p++])&&(~l(m,g)||m.push(g));return m}},"./node_modules/core-js/internals/object-keys.js":function(n,r,o){var i=o("./node_modules/core-js/internals/object-keys-internal.js"),s=o("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(c){return i(c,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,r,o){var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a=s&&!i.call({1:2},1);r.f=a?function(l){var d=s(this,l);return!!d&&d.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,r,o){var i=o("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),s=a instanceof Array}catch{}return function(d,u){return i(d,u),s?c.call(d,u):d.__proto__=u,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=o("./node_modules/core-js/internals/an-object.js"),l=i.Reflect;n.exports=l&&l.ownKeys||function(u){var _=s.f(c(u)),p=a.f;return p?_.concat(p(u)):_}},"./node_modules/core-js/internals/path.js":function(n,r,o){n.exports=o("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/hide.js"),c=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/set-global.js"),d=o("./node_modules/core-js/internals/function-to-string.js"),u=o("./node_modules/core-js/internals/internal-state.js"),_=u.get,p=u.enforce,m=String(d).split("toString");s("inspectSource",function(g){return d.call(g)}),(n.exports=function(g,h,f,E){var b=E?!!E.unsafe:!1,T=E?!!E.enumerable:!1,R=E?!!E.noTargetGet:!1;if(typeof f=="function"&&(typeof h=="string"&&!c(f,"name")&&a(f,"name",h),p(f).source=m.join(typeof h=="string"?h:"")),g===i){T?g[h]=f:l(h,f);return}else b?!R&&g[h]&&(T=!0):delete g[h];T?g[h]=f:a(g,h,f)})(Function.prototype,"toString",function(){return typeof this=="function"&&_(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,r){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"./node_modules/core-js/internals/set-global.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/hide.js");n.exports=function(a,c){try{s(i,a,c)}catch{i[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,r,o){var i=o("./node_modules/core-js/internals/object-define-property.js").f,s=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");n.exports=function(l,d,u){l&&!s(l=u?l:l.prototype,c)&&i(l,c,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(n,r,o){var i=o("./node_modules/core-js/internals/shared.js"),s=o("./node_modules/core-js/internals/uid.js"),a=i("keys");n.exports=function(c){return a[c]||(a[c]=s(c))}},"./node_modules/core-js/internals/shared.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/set-global.js"),a=o("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",l=i[c]||s(c,{});(n.exports=function(d,u){return l[d]||(l[d]=u!==void 0?u:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-integer.js"),s=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,c,l){var d=String(s(a)),u=i(c),_=d.length,p,m;return u<0||u>=_?l?"":void 0:(p=d.charCodeAt(u),p<55296||p>56319||u+1===_||(m=d.charCodeAt(u+1))<56320||m>57343?l?d.charAt(u):p:l?d.slice(u,u+2):(p-55296<<10)+(m-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-integer.js"),s=Math.max,a=Math.min;n.exports=function(c,l){var d=i(c);return d<0?s(d+l,0):a(d,l)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,r,o){var i=o("./node_modules/core-js/internals/indexed-object.js"),s=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return i(s(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,r){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},"./node_modules/core-js/internals/to-length.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-integer.js"),s=Math.min;n.exports=function(a){return a>0?s(i(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,r,o){var i=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(s){return Object(i(s))}},"./node_modules/core-js/internals/to-primitive.js":function(n,r,o){var i=o("./node_modules/core-js/internals/is-object.js");n.exports=function(s,a){if(!i(s))return s;var c,l;if(a&&typeof(c=s.toString)=="function"&&!i(l=c.call(s))||typeof(c=s.valueOf)=="function"&&!i(l=c.call(s))||!a&&typeof(c=s.toString)=="function"&&!i(l=c.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,r){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,r,o){var i=o("./node_modules/core-js/internals/is-object.js"),s=o("./node_modules/core-js/internals/an-object.js");n.exports=function(a,c){if(s(a),!i(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/uid.js"),c=o("./node_modules/core-js/internals/native-symbol.js"),l=i.Symbol,d=s("wks");n.exports=function(u){return d[u]||(d[u]=c&&l[u]||(c?l:a)("Symbol."+u))}},"./node_modules/core-js/modules/es.array.from.js":function(n,r,o){var i=o("./node_modules/core-js/internals/export.js"),s=o("./node_modules/core-js/internals/array-from.js"),a=o("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(l){Array.from(l)});i({target:"Array",stat:!0,forced:c},{from:s})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,r,o){var i=o("./node_modules/core-js/internals/string-at.js"),s=o("./node_modules/core-js/internals/internal-state.js"),a=o("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",l=s.set,d=s.getterFor(c);a(String,"String",function(u){l(this,{type:c,string:String(u),index:0})},function(){var _=d(this),p=_.string,m=_.index,g;return m>=p.length?{value:void 0,done:!0}:(g=i(p,m,!0),_.index+=g.length,{value:g,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,r){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(o=window)}n.exports=o},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(g){for(var h=1;h2&&arguments[2]!==void 0?arguments[2]:[];_(this,g),this.name=h,this.contents=f,this.tags=E,this.attrs=i({},d.default,{class:"feather feather-"+h})}return s(g,[{key:"toSvg",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=i({},this.attrs,f,{class:(0,c.default)(this.attrs.class,f.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),g}();function m(g){return Object.keys(g).map(function(h){return h+'="'+g[h]+'"'}).join(" ")}r.default=p},"./src/icons.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o("./src/icon.js"),s=u(i),a=o("./dist/icons.json"),c=u(a),l=o("./src/tags.json"),d=u(l);function u(_){return _&&_.__esModule?_:{default:_}}r.default=Object.keys(c.default).map(function(_){return new s.default(_,c.default[_],d.default[_])}).reduce(function(_,p){return _[p.name]=p,_},{})},"./src/index.js":function(n,r,o){var i=o("./src/icons.js"),s=u(i),a=o("./src/to-svg.js"),c=u(a),l=o("./src/replace.js"),d=u(l);function u(_){return _&&_.__esModule?_:{default:_}}n.exports={icons:s.default,toSvg:c.default,replace:d.default}},"./src/replace.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var g=1;g0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var g=document.querySelectorAll("[data-feather]");Array.from(g).forEach(function(h){return _(h,m)})}function _(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=p(m),f=h["data-feather"];delete h["data-feather"];var E=l.default[f].toSvg(i({},g,h,{class:(0,a.default)(g.class,h.class)})),b=new DOMParser().parseFromString(E,"image/svg+xml"),T=b.querySelector("svg");m.parentNode.replaceChild(T,m)}function p(m){return Array.from(m.attributes).reduce(function(g,h){return g[h.name]=h.value,g},{})}r.default=u},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o("./src/icons.js"),s=a(i);function a(l){return l&&l.__esModule?l:{default:l}}function c(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!l)throw new Error("The required `key` (icon name) parameter is missing.");if(!s.default[l])throw new Error("No icon matching '"+l+"'. See the complete list of icons at https://feathericons.com");return s.default[l].toSvg(d)}r.default=c},0:function(n,r,o){o("./node_modules/core-js/es/array/from.js"),n.exports=o("./src/index.js")}})})})(ZR);const Ce=rS(pd),JR={class:"container flex flex-col sm:flex-row item-center gap-2 py-1"},eO={class:"items-center justify-between hidden w-full md:flex md:w-auto md:order-1"},tO={class:"flex flex-col font-medium p-4 md:p-0 mt-4 md:flex-row md:space-x-8 md:mt-0"},nO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Discussions",-1),rO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Settings",-1),oO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Extensions",-1),iO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Training",-1),sO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Help",-1),oS={__name:"Navigation",setup(t){return(e,n)=>(Z(),J("div",JR,[S("div",eO,[S("ul",tO,[S("li",null,[De(at(On),{to:{name:"discussions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[nO]),_:1})]),S("li",null,[De(at(On),{to:{name:"settings"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[rO]),_:1})]),S("li",null,[De(at(On),{to:{name:"extensions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[oO]),_:1})]),S("li",null,[De(at(On),{to:{name:"training"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[iO]),_:1})]),S("li",null,[De(at(On),{to:{name:"help"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[sO]),_:1})])])])]))}},aO={class:"top-0 shadow-lg"},cO={class:"container flex flex-col lg:flex-row item-center gap-2 py-2"},lO=S("div",{class:"flex items-center gap-3 flex-1"},[S("img",{class:"w-12 hover:scale-95 duration-150",title:"GPT4ALL-UI",src:Ci,alt:"Logo"}),S("p",{class:"text-2xl"},"GPT4ALL-UI")],-1),dO={class:"flex gap-3 flex-1 items-center justify-end"},uO=S("a",{href:"https://github.com/nomic-ai/gpt4all-ui",target:"_blank"},[S("div",{class:"text-2xl hover:text-primary duration-150",title:"Visit repository page"},[S("i",{"data-feather":"github"})])],-1),_O=S("i",{"data-feather":"sun"},null,-1),pO=[_O],mO=S("i",{"data-feather":"moon"},null,-1),gO=[mO],fO=S("body",null,null,-1),EO={name:"TopBar",data(){return{sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),he(()=>{Ce.replace()})},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none");return}this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.iconToggle();return}document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}},components:{Navigation:oS}},hO=Object.assign(EO,{setup(t){return(e,n)=>(Z(),J(ke,null,[S("header",aO,[S("nav",cO,[De(at(On),{to:{name:"discussions"}},{default:Vt(()=>[lO]),_:1}),S("div",dO,[uO,S("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=r=>e.themeSwitch())},pO),S("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=r=>e.themeSwitch())},gO)])]),De(oS)]),fO],64))}}),et=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},SO={class:"flex flex-col h-screen max-h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50"},bO={class:"flex overflow-hidden flex-grow"},TO={__name:"App",setup(t){return(e,n)=>(Z(),J("div",SO,[De(hO),S("div",bO,[De(at(nS),null,{default:Vt(({Component:r})=>[(Z(),Ct(Cv,null,[(Z(),Ct(Lv(r)))],1024))]),_:1})])]))}},yO={setup(){return{}}};function vO(t,e,n,r,o,i){return Z(),J("div",null," Extensions ")}const CO=et(yO,[["render",vO]]),RO={setup(){return{}}};function OO(t,e,n,r,o,i){return Z(),J("div",null," Help ")}const NO=et(RO,[["render",OO]]);function iS(t,e){return function(){return t.apply(e,arguments)}}const{toString:AO}=Object.prototype,{getPrototypeOf:eu}=Object,Ri=(t=>e=>{const n=AO.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=t=>(t=t.toLowerCase(),e=>Ri(e)===t),Oi=t=>e=>typeof e===t,{isArray:gr}=Array,Kr=Oi("undefined");function IO(t){return t!==null&&!Kr(t)&&t.constructor!==null&&!Kr(t.constructor)&&jt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const sS=Jt("ArrayBuffer");function xO(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&sS(t.buffer),e}const DO=Oi("string"),jt=Oi("function"),aS=Oi("number"),tu=t=>t!==null&&typeof t=="object",wO=t=>t===!0||t===!1,wo=t=>{if(Ri(t)!=="object")return!1;const e=eu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},MO=Jt("Date"),LO=Jt("File"),kO=Jt("Blob"),PO=Jt("FileList"),UO=t=>tu(t)&&jt(t.pipe),FO=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||jt(t.append)&&((e=Ri(t))==="formdata"||e==="object"&&jt(t.toString)&&t.toString()==="[object FormData]"))},BO=Jt("URLSearchParams"),GO=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function to(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),gr(t))for(r=0,o=t.length;r0;)if(o=n[r],e===o.toLowerCase())return o;return null}const lS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dS=t=>!Kr(t)&&t!==lS;function md(){const{caseless:t}=dS(this)&&this||{},e={},n=(r,o)=>{const i=t&&cS(e,o)||o;wo(e[i])&&wo(r)?e[i]=md(e[i],r):wo(r)?e[i]=md({},r):gr(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r(to(e,(o,i)=>{n&&jt(o)?t[i]=iS(o,n):t[i]=o},{allOwnKeys:r}),t),YO=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),HO=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},VO=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&eu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zO=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},$O=t=>{if(!t)return null;if(gr(t))return t;let e=t.length;if(!aS(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},WO=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&eu(Uint8Array)),KO=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},QO=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},jO=Jt("HTMLFormElement"),XO=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),P_=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ZO=Jt("RegExp"),uS=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};to(n,(o,i)=>{e(o,i,t)!==!1&&(r[i]=o)}),Object.defineProperties(t,r)},JO=t=>{uS(t,(e,n)=>{if(jt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(jt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eN=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gr(t)?r(t):r(String(t).split(e)),n},tN=()=>{},nN=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ts="abcdefghijklmnopqrstuvwxyz",U_="0123456789",_S={DIGIT:U_,ALPHA:ts,ALPHA_DIGIT:ts+ts.toUpperCase()+U_},rN=(t=16,e=_S.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function oN(t){return!!(t&&jt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const iN=t=>{const e=new Array(10),n=(r,o)=>{if(tu(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=gr(r)?[]:{};return to(r,(s,a)=>{const c=n(s,o+1);!Kr(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return n(t,0)},G={isArray:gr,isArrayBuffer:sS,isBuffer:IO,isFormData:FO,isArrayBufferView:xO,isString:DO,isNumber:aS,isBoolean:wO,isObject:tu,isPlainObject:wo,isUndefined:Kr,isDate:MO,isFile:LO,isBlob:kO,isRegExp:ZO,isFunction:jt,isStream:UO,isURLSearchParams:BO,isTypedArray:WO,isFileList:PO,forEach:to,merge:md,extend:qO,trim:GO,stripBOM:YO,inherits:HO,toFlatObject:VO,kindOf:Ri,kindOfTest:Jt,endsWith:zO,toArray:$O,forEachEntry:KO,matchAll:QO,isHTMLForm:jO,hasOwnProperty:P_,hasOwnProp:P_,reduceDescriptors:uS,freezeMethods:JO,toObjectSet:eN,toCamelCase:XO,noop:tN,toFiniteNumber:nN,findKey:cS,global:lS,isContextDefined:dS,ALPHABET:_S,generateString:rN,isSpecCompliantForm:oN,toJSONObject:iN};function Ae(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}G.inherits(Ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pS=Ae.prototype,mS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{mS[t]={value:t}});Object.defineProperties(Ae,mS);Object.defineProperty(pS,"isAxiosError",{value:!0});Ae.from=(t,e,n,r,o,i)=>{const s=Object.create(pS);return G.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),Ae.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const sN=null;function gd(t){return G.isPlainObject(t)||G.isArray(t)}function gS(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function F_(t,e,n){return t?t.concat(e).map(function(o,i){return o=gS(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function aN(t){return G.isArray(t)&&!t.some(gd)}const cN=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function Ni(t,e,n){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,h){return!G.isUndefined(h[g])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(e);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(G.isDate(m))return m.toISOString();if(!c&&G.isBlob(m))throw new Ae("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(m)||G.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,h){let f=m;if(m&&!h&&typeof m=="object"){if(G.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(G.isArray(m)&&aN(m)||(G.isFileList(m)||G.endsWith(g,"[]"))&&(f=G.toArray(m)))return g=gS(g),f.forEach(function(b,T){!(G.isUndefined(b)||b===null)&&e.append(s===!0?F_([g],T,i):s===null?g:g+"[]",l(b))}),!1}return gd(m)?!0:(e.append(F_(h,g,i),l(m)),!1)}const u=[],_=Object.assign(cN,{defaultVisitor:d,convertValue:l,isVisitable:gd});function p(m,g){if(!G.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),G.forEach(m,function(f,E){(!(G.isUndefined(f)||f===null)&&o.call(e,f,G.isString(E)?E.trim():E,g,_))===!0&&p(f,g?g.concat(E):[E])}),u.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return p(t),e}function B_(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function nu(t,e){this._pairs=[],t&&Ni(t,this,e)}const fS=nu.prototype;fS.append=function(e,n){this._pairs.push([e,n])};fS.toString=function(e){const n=e?function(r){return e.call(this,r,B_)}:B_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lN(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ES(t,e,n){if(!e)return t;const r=n&&n.encode||lN,o=n&&n.serialize;let i;if(o?i=o(e,n):i=G.isURLSearchParams(e)?e.toString():new nu(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class dN{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(r){r!==null&&e(r)})}}const G_=dN,hS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uN=typeof URLSearchParams<"u"?URLSearchParams:nu,_N=typeof FormData<"u"?FormData:null,pN=typeof Blob<"u"?Blob:null,mN=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gN=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),xt={isBrowser:!0,classes:{URLSearchParams:uN,FormData:_N,Blob:pN},isStandardBrowserEnv:mN,isStandardBrowserWebWorkerEnv:gN,protocols:["http","https","file","blob","url","data"]};function fN(t,e){return Ni(t,new xt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return xt.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function EN(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hN(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&G.isArray(o)?o.length:s,c?(G.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!G.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&G.isArray(o[s])&&(o[s]=hN(o[s])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const n={};return G.forEachEntry(t,(r,o)=>{e(EN(r),o,n,0)}),n}return null}const SN={"Content-Type":void 0};function bN(t,e,n){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Ai={transitional:hS,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(e);if(i&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return o&&o?JSON.stringify(SS(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fN(e,this.formSerializer).toString();if((a=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ni(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bN(e)):e}],transformResponse:[function(e){const n=this.transitional||Ai.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&G.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Ae.from(a,Ae.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(e){Ai.headers[e]={}});G.forEach(["post","put","patch"],function(e){Ai.headers[e]=G.merge(SN)});const ru=Ai,TN=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yN=t=>{const e={};let n,r,o;return t&&t.split(` +*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function l(f,E){for(var b=E.length,T=0;T1?arguments[1]:void 0,E=f!==void 0,b=0,T=u(m),R,v,I,N;if(E&&(f=i(f,h>2?arguments[2]:void 0,2)),T!=null&&!(g==Array&&c(T)))for(N=T.call(m),v=new g;!(I=N.next()).done;b++)d(v,b,E?a(N,f,[I.value,b],!0):I.value);else for(R=l(m.length),v=new g(R);R>b;b++)d(v,b,E?f(m[b],b):m[b]);return v.length=b,v}},"./node_modules/core-js/internals/array-includes.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-indexed-object.js"),s=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(c){return function(l,d,u){var _=i(l),p=s(_.length),m=a(u,p),g;if(c&&d!=d){for(;p>m;)if(g=_[m++],g!=g)return!0}else for(;p>m;m++)if((c||m in _)&&_[m]===d)return c||m||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,r,o){var i=o("./node_modules/core-js/internals/a-function.js");n.exports=function(s,a,c){if(i(s),a===void 0)return s;switch(c){case 0:return function(){return s.call(a)};case 1:return function(l){return s.call(a,l)};case 2:return function(l,d){return s.call(a,l,d)};case 3:return function(l,d,u){return s.call(a,l,d,u)}}return function(){return s.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,r,o){var i=o("./node_modules/core-js/internals/an-object.js");n.exports=function(s,a,c,l){try{return l?a(i(c)[0],c[1]):a(c)}catch(u){var d=s.return;throw d!==void 0&&i(d.call(s)),u}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,r,o){var i=o("./node_modules/core-js/internals/well-known-symbol.js"),s=i("iterator"),a=!1;try{var c=0,l={next:function(){return{done:!!c++}},return:function(){a=!0}};l[s]=function(){return this},Array.from(l,function(){throw 2})}catch{}n.exports=function(d,u){if(!u&&!a)return!1;var _=!1;try{var p={};p[s]=function(){return{next:function(){return{done:_=!0}}}},d(p)}catch{}return _}},"./node_modules/core-js/internals/classof-raw.js":function(n,r){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,r,o){var i=o("./node_modules/core-js/internals/classof-raw.js"),s=o("./node_modules/core-js/internals/well-known-symbol.js"),a=s("toStringTag"),c=i(function(){return arguments}())=="Arguments",l=function(d,u){try{return d[u]}catch{}};n.exports=function(d){var u,_,p;return d===void 0?"Undefined":d===null?"Null":typeof(_=l(u=Object(d),a))=="string"?_:c?i(u):(p=i(u))=="Object"&&typeof u.callee=="function"?"Arguments":p}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,r,o){var i=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=o("./node_modules/core-js/internals/object-define-property.js");n.exports=function(l,d){for(var u=s(d),_=c.f,p=a.f,m=0;m",R="java"+b+":",v;for(h.style.display="none",l.appendChild(h),h.src=String(R),v=h.contentWindow.document,v.open(),v.write(E+b+T+"document.F=Object"+E+"/"+b+T),v.close(),g=v.F;f--;)delete g[p][a[f]];return g()};n.exports=Object.create||function(f,E){var b;return f!==null?(m[p]=i(f),b=new m,m[p]=null,b[_]=f):b=g(),E===void 0?b:s(b,E)},c[_]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,r,o){var i=o("./node_modules/core-js/internals/descriptors.js"),s=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),c=o("./node_modules/core-js/internals/object-keys.js");n.exports=i?Object.defineProperties:function(d,u){a(d);for(var _=c(u),p=_.length,m=0,g;p>m;)s.f(d,g=_[m++],u[g]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(n,r,o){var i=o("./node_modules/core-js/internals/descriptors.js"),s=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),c=o("./node_modules/core-js/internals/to-primitive.js"),l=Object.defineProperty;r.f=i?l:function(u,_,p){if(a(u),_=c(_,!0),a(p),s)try{return l(u,_,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(u[_]=p.value),u}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,r,o){var i=o("./node_modules/core-js/internals/descriptors.js"),s=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),c=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/to-primitive.js"),d=o("./node_modules/core-js/internals/has.js"),u=o("./node_modules/core-js/internals/ie8-dom-define.js"),_=Object.getOwnPropertyDescriptor;r.f=i?_:function(m,g){if(m=c(m),g=l(g,!0),u)try{return _(m,g)}catch{}if(d(m,g))return a(!s.f.call(m,g),m[g])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,r,o){var i=o("./node_modules/core-js/internals/object-keys-internal.js"),s=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=s.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(l){return i(l,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,r,o){var i=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),c=o("./node_modules/core-js/internals/correct-prototype-getter.js"),l=a("IE_PROTO"),d=Object.prototype;n.exports=c?Object.getPrototypeOf:function(u){return u=s(u),i(u,l)?u[l]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,r,o){var i=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js"),c=o("./node_modules/core-js/internals/hidden-keys.js"),l=a(!1);n.exports=function(d,u){var _=s(d),p=0,m=[],g;for(g in _)!i(c,g)&&i(_,g)&&m.push(g);for(;u.length>p;)i(_,g=u[p++])&&(~l(m,g)||m.push(g));return m}},"./node_modules/core-js/internals/object-keys.js":function(n,r,o){var i=o("./node_modules/core-js/internals/object-keys-internal.js"),s=o("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(c){return i(c,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,r,o){var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a=s&&!i.call({1:2},1);r.f=a?function(l){var d=s(this,l);return!!d&&d.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,r,o){var i=o("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),s=a instanceof Array}catch{}return function(d,u){return i(d,u),s?c.call(d,u):d.__proto__=u,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=o("./node_modules/core-js/internals/an-object.js"),l=i.Reflect;n.exports=l&&l.ownKeys||function(u){var _=s.f(c(u)),p=a.f;return p?_.concat(p(u)):_}},"./node_modules/core-js/internals/path.js":function(n,r,o){n.exports=o("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/hide.js"),c=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/set-global.js"),d=o("./node_modules/core-js/internals/function-to-string.js"),u=o("./node_modules/core-js/internals/internal-state.js"),_=u.get,p=u.enforce,m=String(d).split("toString");s("inspectSource",function(g){return d.call(g)}),(n.exports=function(g,h,f,E){var b=E?!!E.unsafe:!1,T=E?!!E.enumerable:!1,R=E?!!E.noTargetGet:!1;if(typeof f=="function"&&(typeof h=="string"&&!c(f,"name")&&a(f,"name",h),p(f).source=m.join(typeof h=="string"?h:"")),g===i){T?g[h]=f:l(h,f);return}else b?!R&&g[h]&&(T=!0):delete g[h];T?g[h]=f:a(g,h,f)})(Function.prototype,"toString",function(){return typeof this=="function"&&_(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,r){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"./node_modules/core-js/internals/set-global.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/hide.js");n.exports=function(a,c){try{s(i,a,c)}catch{i[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,r,o){var i=o("./node_modules/core-js/internals/object-define-property.js").f,s=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");n.exports=function(l,d,u){l&&!s(l=u?l:l.prototype,c)&&i(l,c,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(n,r,o){var i=o("./node_modules/core-js/internals/shared.js"),s=o("./node_modules/core-js/internals/uid.js"),a=i("keys");n.exports=function(c){return a[c]||(a[c]=s(c))}},"./node_modules/core-js/internals/shared.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/set-global.js"),a=o("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",l=i[c]||s(c,{});(n.exports=function(d,u){return l[d]||(l[d]=u!==void 0?u:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-integer.js"),s=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,c,l){var d=String(s(a)),u=i(c),_=d.length,p,m;return u<0||u>=_?l?"":void 0:(p=d.charCodeAt(u),p<55296||p>56319||u+1===_||(m=d.charCodeAt(u+1))<56320||m>57343?l?d.charAt(u):p:l?d.slice(u,u+2):(p-55296<<10)+(m-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-integer.js"),s=Math.max,a=Math.min;n.exports=function(c,l){var d=i(c);return d<0?s(d+l,0):a(d,l)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,r,o){var i=o("./node_modules/core-js/internals/indexed-object.js"),s=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return i(s(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,r){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},"./node_modules/core-js/internals/to-length.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-integer.js"),s=Math.min;n.exports=function(a){return a>0?s(i(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,r,o){var i=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(s){return Object(i(s))}},"./node_modules/core-js/internals/to-primitive.js":function(n,r,o){var i=o("./node_modules/core-js/internals/is-object.js");n.exports=function(s,a){if(!i(s))return s;var c,l;if(a&&typeof(c=s.toString)=="function"&&!i(l=c.call(s))||typeof(c=s.valueOf)=="function"&&!i(l=c.call(s))||!a&&typeof(c=s.toString)=="function"&&!i(l=c.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,r){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,r,o){var i=o("./node_modules/core-js/internals/is-object.js"),s=o("./node_modules/core-js/internals/an-object.js");n.exports=function(a,c){if(s(a),!i(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,r,o){var i=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/uid.js"),c=o("./node_modules/core-js/internals/native-symbol.js"),l=i.Symbol,d=s("wks");n.exports=function(u){return d[u]||(d[u]=c&&l[u]||(c?l:a)("Symbol."+u))}},"./node_modules/core-js/modules/es.array.from.js":function(n,r,o){var i=o("./node_modules/core-js/internals/export.js"),s=o("./node_modules/core-js/internals/array-from.js"),a=o("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(l){Array.from(l)});i({target:"Array",stat:!0,forced:c},{from:s})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,r,o){var i=o("./node_modules/core-js/internals/string-at.js"),s=o("./node_modules/core-js/internals/internal-state.js"),a=o("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",l=s.set,d=s.getterFor(c);a(String,"String",function(u){l(this,{type:c,string:String(u),index:0})},function(){var _=d(this),p=_.string,m=_.index,g;return m>=p.length?{value:void 0,done:!0}:(g=i(p,m,!0),_.index+=g.length,{value:g,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,r){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(o=window)}n.exports=o},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(g){for(var h=1;h2&&arguments[2]!==void 0?arguments[2]:[];_(this,g),this.name=h,this.contents=f,this.tags=E,this.attrs=i({},d.default,{class:"feather feather-"+h})}return s(g,[{key:"toSvg",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=i({},this.attrs,f,{class:(0,c.default)(this.attrs.class,f.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),g}();function m(g){return Object.keys(g).map(function(h){return h+'="'+g[h]+'"'}).join(" ")}r.default=p},"./src/icons.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o("./src/icon.js"),s=u(i),a=o("./dist/icons.json"),c=u(a),l=o("./src/tags.json"),d=u(l);function u(_){return _&&_.__esModule?_:{default:_}}r.default=Object.keys(c.default).map(function(_){return new s.default(_,c.default[_],d.default[_])}).reduce(function(_,p){return _[p.name]=p,_},{})},"./src/index.js":function(n,r,o){var i=o("./src/icons.js"),s=u(i),a=o("./src/to-svg.js"),c=u(a),l=o("./src/replace.js"),d=u(l);function u(_){return _&&_.__esModule?_:{default:_}}n.exports={icons:s.default,toSvg:c.default,replace:d.default}},"./src/replace.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var g=1;g0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var g=document.querySelectorAll("[data-feather]");Array.from(g).forEach(function(h){return _(h,m)})}function _(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=p(m),f=h["data-feather"];delete h["data-feather"];var E=l.default[f].toSvg(i({},g,h,{class:(0,a.default)(g.class,h.class)})),b=new DOMParser().parseFromString(E,"image/svg+xml"),T=b.querySelector("svg");m.parentNode.replaceChild(T,m)}function p(m){return Array.from(m.attributes).reduce(function(g,h){return g[h.name]=h.value,g},{})}r.default=u},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o("./src/icons.js"),s=a(i);function a(l){return l&&l.__esModule?l:{default:l}}function c(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!l)throw new Error("The required `key` (icon name) parameter is missing.");if(!s.default[l])throw new Error("No icon matching '"+l+"'. See the complete list of icons at https://feathericons.com");return s.default[l].toSvg(d)}r.default=c},0:function(n,r,o){o("./node_modules/core-js/es/array/from.js"),n.exports=o("./src/index.js")}})})})(ZR);const Ce=rS(pd),JR={class:"container flex flex-col sm:flex-row item-center gap-2 py-1"},eO={class:"items-center justify-between hidden w-full md:flex md:w-auto md:order-1"},tO={class:"flex flex-col font-medium p-4 md:p-0 mt-4 md:flex-row md:space-x-8 md:mt-0"},nO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Discussions",-1),rO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Settings",-1),oO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Extensions",-1),iO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Training",-1),sO=S("a",{href:"#",class:"hover:text-primary duration-150"},"Help",-1),oS={__name:"Navigation",setup(t){return(e,n)=>(Z(),J("div",JR,[S("div",eO,[S("ul",tO,[S("li",null,[De(at(On),{to:{name:"discussions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[nO]),_:1})]),S("li",null,[De(at(On),{to:{name:"settings"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[rO]),_:1})]),S("li",null,[De(at(On),{to:{name:"extensions"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[oO]),_:1})]),S("li",null,[De(at(On),{to:{name:"training"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[iO]),_:1})]),S("li",null,[De(at(On),{to:{name:"help"},"active-class":" bg-bg-light-tone dark:bg-bg-dark-tone p-2 px-4 rounded-t-lg "},{default:Vt(()=>[sO]),_:1})])])])]))}},aO={class:"top-0 shadow-lg"},cO={class:"container flex flex-col lg:flex-row item-center gap-2 py-2"},lO=S("div",{class:"flex items-center gap-3 flex-1"},[S("img",{class:"w-12 hover:scale-95 duration-150",title:"GPT4ALL-UI",src:Ci,alt:"Logo"}),S("p",{class:"text-2xl"},"GPT4ALL-UI")],-1),dO={class:"flex gap-3 flex-1 items-center justify-end"},uO=S("a",{href:"https://github.com/ParisNeo/gpt4all-ui",target:"_blank"},[S("div",{class:"text-2xl hover:text-primary duration-150",title:"Visit repository page"},[S("i",{"data-feather":"github"})])],-1),_O=S("i",{"data-feather":"sun"},null,-1),pO=[_O],mO=S("i",{"data-feather":"moon"},null,-1),gO=[mO],fO=S("body",null,null,-1),EO={name:"TopBar",data(){return{sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),he(()=>{Ce.replace()})},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none");return}this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.iconToggle();return}document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}},components:{Navigation:oS}},hO=Object.assign(EO,{setup(t){return(e,n)=>(Z(),J(ke,null,[S("header",aO,[S("nav",cO,[De(at(On),{to:{name:"discussions"}},{default:Vt(()=>[lO]),_:1}),S("div",dO,[uO,S("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=r=>e.themeSwitch())},pO),S("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=r=>e.themeSwitch())},gO)])]),De(oS)]),fO],64))}}),et=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},SO={class:"flex flex-col h-screen max-h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50"},bO={class:"flex overflow-hidden flex-grow"},TO={__name:"App",setup(t){return(e,n)=>(Z(),J("div",SO,[De(hO),S("div",bO,[De(at(nS),null,{default:Vt(({Component:r})=>[(Z(),Ct(Cv,null,[(Z(),Ct(Lv(r)))],1024))]),_:1})])]))}},yO={setup(){return{}}};function vO(t,e,n,r,o,i){return Z(),J("div",null," Extensions ")}const CO=et(yO,[["render",vO]]),RO={setup(){return{}}};function OO(t,e,n,r,o,i){return Z(),J("div",null," Help ")}const NO=et(RO,[["render",OO]]);function iS(t,e){return function(){return t.apply(e,arguments)}}const{toString:AO}=Object.prototype,{getPrototypeOf:eu}=Object,Ri=(t=>e=>{const n=AO.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=t=>(t=t.toLowerCase(),e=>Ri(e)===t),Oi=t=>e=>typeof e===t,{isArray:gr}=Array,Kr=Oi("undefined");function IO(t){return t!==null&&!Kr(t)&&t.constructor!==null&&!Kr(t.constructor)&&jt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const sS=Jt("ArrayBuffer");function xO(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&sS(t.buffer),e}const DO=Oi("string"),jt=Oi("function"),aS=Oi("number"),tu=t=>t!==null&&typeof t=="object",wO=t=>t===!0||t===!1,wo=t=>{if(Ri(t)!=="object")return!1;const e=eu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},MO=Jt("Date"),LO=Jt("File"),kO=Jt("Blob"),PO=Jt("FileList"),UO=t=>tu(t)&&jt(t.pipe),FO=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||jt(t.append)&&((e=Ri(t))==="formdata"||e==="object"&&jt(t.toString)&&t.toString()==="[object FormData]"))},BO=Jt("URLSearchParams"),GO=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function to(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),gr(t))for(r=0,o=t.length;r0;)if(o=n[r],e===o.toLowerCase())return o;return null}const lS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dS=t=>!Kr(t)&&t!==lS;function md(){const{caseless:t}=dS(this)&&this||{},e={},n=(r,o)=>{const i=t&&cS(e,o)||o;wo(e[i])&&wo(r)?e[i]=md(e[i],r):wo(r)?e[i]=md({},r):gr(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r(to(e,(o,i)=>{n&&jt(o)?t[i]=iS(o,n):t[i]=o},{allOwnKeys:r}),t),YO=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),HO=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},VO=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&eu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zO=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},$O=t=>{if(!t)return null;if(gr(t))return t;let e=t.length;if(!aS(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},WO=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&eu(Uint8Array)),KO=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},QO=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},jO=Jt("HTMLFormElement"),XO=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),P_=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ZO=Jt("RegExp"),uS=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};to(n,(o,i)=>{e(o,i,t)!==!1&&(r[i]=o)}),Object.defineProperties(t,r)},JO=t=>{uS(t,(e,n)=>{if(jt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(jt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eN=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gr(t)?r(t):r(String(t).split(e)),n},tN=()=>{},nN=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ts="abcdefghijklmnopqrstuvwxyz",U_="0123456789",_S={DIGIT:U_,ALPHA:ts,ALPHA_DIGIT:ts+ts.toUpperCase()+U_},rN=(t=16,e=_S.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function oN(t){return!!(t&&jt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const iN=t=>{const e=new Array(10),n=(r,o)=>{if(tu(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=gr(r)?[]:{};return to(r,(s,a)=>{const c=n(s,o+1);!Kr(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return n(t,0)},G={isArray:gr,isArrayBuffer:sS,isBuffer:IO,isFormData:FO,isArrayBufferView:xO,isString:DO,isNumber:aS,isBoolean:wO,isObject:tu,isPlainObject:wo,isUndefined:Kr,isDate:MO,isFile:LO,isBlob:kO,isRegExp:ZO,isFunction:jt,isStream:UO,isURLSearchParams:BO,isTypedArray:WO,isFileList:PO,forEach:to,merge:md,extend:qO,trim:GO,stripBOM:YO,inherits:HO,toFlatObject:VO,kindOf:Ri,kindOfTest:Jt,endsWith:zO,toArray:$O,forEachEntry:KO,matchAll:QO,isHTMLForm:jO,hasOwnProperty:P_,hasOwnProp:P_,reduceDescriptors:uS,freezeMethods:JO,toObjectSet:eN,toCamelCase:XO,noop:tN,toFiniteNumber:nN,findKey:cS,global:lS,isContextDefined:dS,ALPHABET:_S,generateString:rN,isSpecCompliantForm:oN,toJSONObject:iN};function Ae(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}G.inherits(Ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pS=Ae.prototype,mS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{mS[t]={value:t}});Object.defineProperties(Ae,mS);Object.defineProperty(pS,"isAxiosError",{value:!0});Ae.from=(t,e,n,r,o,i)=>{const s=Object.create(pS);return G.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),Ae.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const sN=null;function gd(t){return G.isPlainObject(t)||G.isArray(t)}function gS(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function F_(t,e,n){return t?t.concat(e).map(function(o,i){return o=gS(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function aN(t){return G.isArray(t)&&!t.some(gd)}const cN=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function Ni(t,e,n){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,h){return!G.isUndefined(h[g])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(e);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(G.isDate(m))return m.toISOString();if(!c&&G.isBlob(m))throw new Ae("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(m)||G.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,h){let f=m;if(m&&!h&&typeof m=="object"){if(G.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(G.isArray(m)&&aN(m)||(G.isFileList(m)||G.endsWith(g,"[]"))&&(f=G.toArray(m)))return g=gS(g),f.forEach(function(b,T){!(G.isUndefined(b)||b===null)&&e.append(s===!0?F_([g],T,i):s===null?g:g+"[]",l(b))}),!1}return gd(m)?!0:(e.append(F_(h,g,i),l(m)),!1)}const u=[],_=Object.assign(cN,{defaultVisitor:d,convertValue:l,isVisitable:gd});function p(m,g){if(!G.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),G.forEach(m,function(f,E){(!(G.isUndefined(f)||f===null)&&o.call(e,f,G.isString(E)?E.trim():E,g,_))===!0&&p(f,g?g.concat(E):[E])}),u.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return p(t),e}function B_(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function nu(t,e){this._pairs=[],t&&Ni(t,this,e)}const fS=nu.prototype;fS.append=function(e,n){this._pairs.push([e,n])};fS.toString=function(e){const n=e?function(r){return e.call(this,r,B_)}:B_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lN(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ES(t,e,n){if(!e)return t;const r=n&&n.encode||lN,o=n&&n.serialize;let i;if(o?i=o(e,n):i=G.isURLSearchParams(e)?e.toString():new nu(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class dN{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(r){r!==null&&e(r)})}}const G_=dN,hS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uN=typeof URLSearchParams<"u"?URLSearchParams:nu,_N=typeof FormData<"u"?FormData:null,pN=typeof Blob<"u"?Blob:null,mN=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gN=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),xt={isBrowser:!0,classes:{URLSearchParams:uN,FormData:_N,Blob:pN},isStandardBrowserEnv:mN,isStandardBrowserWebWorkerEnv:gN,protocols:["http","https","file","blob","url","data"]};function fN(t,e){return Ni(t,new xt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return xt.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function EN(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hN(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&G.isArray(o)?o.length:s,c?(G.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!G.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&G.isArray(o[s])&&(o[s]=hN(o[s])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const n={};return G.forEachEntry(t,(r,o)=>{e(EN(r),o,n,0)}),n}return null}const SN={"Content-Type":void 0};function bN(t,e,n){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Ai={transitional:hS,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(e);if(i&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return o&&o?JSON.stringify(SS(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fN(e,this.formSerializer).toString();if((a=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ni(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bN(e)):e}],transformResponse:[function(e){const n=this.transitional||Ai.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&G.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Ae.from(a,Ae.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(e){Ai.headers[e]={}});G.forEach(["post","put","patch"],function(e){Ai.headers[e]=G.merge(SN)});const ru=Ai,TN=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yN=t=>{const e={};let n,r,o;return t&&t.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&TN[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},q_=Symbol("internals");function vr(t){return t&&String(t).trim().toLowerCase()}function Mo(t){return t===!1||t==null?t:G.isArray(t)?t.map(Mo):String(t)}function vN(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const CN=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ns(t,e,n,r,o){if(G.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!G.isString(e)){if(G.isString(r))return e.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(e)}}function RN(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function ON(t,e){const n=G.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class Ii{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,c,l){const d=vr(c);if(!d)throw new Error("header name must be a non-empty string");const u=G.findKey(o,d);(!u||o[u]===void 0||l===!0||l===void 0&&o[u]!==!1)&&(o[u||c]=Mo(a))}const s=(a,c)=>G.forEach(a,(l,d)=>i(l,d,c));return G.isPlainObject(e)||e instanceof this.constructor?s(e,n):G.isString(e)&&(e=e.trim())&&!CN(e)?s(yN(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=vr(e),e){const r=G.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return vN(o);if(G.isFunction(n))return n.call(this,o,r);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=vr(e),e){const r=G.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ns(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=vr(s),s){const a=G.findKey(r,s);a&&(!n||ns(r,r[a],a,n))&&(delete r[a],o=!0)}}return G.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||ns(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return G.forEach(this,(o,i)=>{const s=G.findKey(r,i);if(s){n[s]=Mo(o),delete n[i];return}const a=e?RN(i):String(i).trim();a!==i&&delete n[i],n[a]=Mo(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[q_]=this[q_]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=vr(s);r[a]||(ON(o,s),r[a]=!0)}return G.isArray(e)?e.forEach(i):i(e),this}}Ii.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.freezeMethods(Ii.prototype);G.freezeMethods(Ii);const Wt=Ii;function rs(t,e){const n=this||ru,r=e||n,o=Wt.from(r.headers);let i=r.data;return G.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function bS(t){return!!(t&&t.__CANCEL__)}function no(t,e,n){Ae.call(this,t??"canceled",Ae.ERR_CANCELED,e,n),this.name="CanceledError"}G.inherits(no,Ae,{__CANCEL__:!0});function NN(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const AN=xt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const c=[];c.push(n+"="+encodeURIComponent(r)),G.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),G.isString(i)&&c.push("path="+i),G.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function IN(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function xN(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function TS(t,e){return t&&!IN(e)?xN(t,e):e}const DN=xt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=G.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function wN(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function MN(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=r[i];s||(s=l),n[o]=c,r[o]=l;let u=i,_=0;for(;u!==o;)_+=n[u++],u=u%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,c=r(a),l=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-i)/c:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}const LN=typeof XMLHttpRequest<"u",kN=LN&&function(t){return new Promise(function(n,r){let o=t.data;const i=Wt.from(t.headers).normalize(),s=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}G.isFormData(o)&&(xt.isStandardBrowserEnv||xt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let l=new XMLHttpRequest;if(t.auth){const p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const d=TS(t.baseURL,t.url);l.open(t.method.toUpperCase(),ES(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!l)return;const p=Wt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),g={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:t,request:l};NN(function(f){n(f),c()},function(f){r(f),c()},g),l=null}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(r(new Ae("Request aborted",Ae.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new Ae("Network Error",Ae.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const g=t.transitional||hS;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(new Ae(m,g.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,t,l)),l=null},xt.isStandardBrowserEnv){const p=(t.withCredentials||DN(d))&&t.xsrfCookieName&&AN.read(t.xsrfCookieName);p&&i.set(t.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&G.forEach(i.toJSON(),function(m,g){l.setRequestHeader(g,m)}),G.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",Y_(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Y_(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=p=>{l&&(r(!p||p.type?new no(null,t,l):p),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const _=wN(d);if(_&&xt.protocols.indexOf(_)===-1){r(new Ae("Unsupported protocol "+_+":",Ae.ERR_BAD_REQUEST,t));return}l.send(o||null)})},Lo={http:sN,xhr:kN};G.forEach(Lo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const PN={getAdapter:t=>{t=G.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;ot instanceof Wt?t.toJSON():t;function sr(t,e){e=e||{};const n={};function r(l,d,u){return G.isPlainObject(l)&&G.isPlainObject(d)?G.merge.call({caseless:u},l,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function o(l,d,u){if(G.isUndefined(d)){if(!G.isUndefined(l))return r(void 0,l,u)}else return r(l,d,u)}function i(l,d){if(!G.isUndefined(d))return r(void 0,d)}function s(l,d){if(G.isUndefined(d)){if(!G.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function a(l,d,u){if(u in e)return r(l,d);if(u in t)return r(void 0,l)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,d)=>o(V_(l),V_(d),!0)};return G.forEach(Object.keys(t).concat(Object.keys(e)),function(d){const u=c[d]||o,_=u(t[d],e[d],d);G.isUndefined(_)&&u!==a||(n[d]=_)}),n}const yS="1.3.6",ou={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ou[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const z_={};ou.transitional=function(e,n,r){function o(i,s){return"[Axios v"+yS+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new Ae(o(s," has been removed"+(n?" in "+n:"")),Ae.ERR_DEPRECATED);return n&&!z_[s]&&(z_[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function UN(t,e,n){if(typeof t!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new Ae("option "+i+" must be "+c,Ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ae("Unknown option "+i,Ae.ERR_BAD_OPTION)}}const fd={assertOptions:UN,validators:ou},rn=fd.validators;class Wo{constructor(e){this.defaults=e,this.interceptors={request:new G_,response:new G_}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=sr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&fd.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:fd.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=i&&G.merge(i.common,i[n.method]),s&&G.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Wt.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let d,u=0,_;if(!c){const m=[H_.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),_=m.length,d=Promise.resolve(n);u<_;)d=d.then(m[u++],m[u++]);return d}_=a.length;let p=n;for(u=0;u<_;){const m=a[u++],g=a[u++];try{p=m(p)}catch(h){g.call(this,h);break}}try{d=H_.call(this,p)}catch(m){return Promise.reject(m)}for(u=0,_=l.length;u<_;)d=d.then(l[u++],l[u++]);return d}getUri(e){e=sr(this.defaults,e);const n=TS(e.baseURL,e.url);return ES(n,e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){Wo.prototype[e]=function(n,r){return this.request(sr(r||{},{method:e,url:n,data:(r||{}).data}))}});G.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(sr(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Wo.prototype[e]=n(),Wo.prototype[e+"Form"]=n(!0)});const ko=Wo;class iu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new no(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new iu(function(o){e=o}),cancel:e}}}const FN=iu;function BN(t){return function(n){return t.apply(null,n)}}function GN(t){return G.isObject(t)&&t.isAxiosError===!0}const Ed={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ed).forEach(([t,e])=>{Ed[e]=t});const qN=Ed;function vS(t){const e=new ko(t),n=iS(ko.prototype.request,e);return G.extend(n,ko.prototype,e,{allOwnKeys:!0}),G.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return vS(sr(t,o))},n}const He=vS(ru);He.Axios=ko;He.CanceledError=no;He.CancelToken=FN;He.isCancel=bS;He.VERSION=yS;He.toFormData=Ni;He.AxiosError=Ae;He.Cancel=He.CanceledError;He.all=function(e){return Promise.all(e)};He.spread=BN;He.isAxiosError=GN;He.mergeConfig=sr;He.AxiosHeaders=Wt;He.formToJSON=t=>SS(G.isHTMLForm(t)?new FormData(t):t);He.HttpStatusCode=qN;He.default=He;const Ue=He,YN={data(){return{show:!1,message:""}},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(t){this.message=t,this.show=!0}}},HN={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},VN={class:"bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},zN={class:"text-lg font-medium"},$N={class:"mt-4 flex justify-center"};function WN(t,e,n,r,o,i){return o.show?(Z(),J("div",HN,[S("div",VN,[S("h3",zN,ve(o.message),1),S("div",$N,[S("button",{onClick:e[0]||(e[0]=(...s)=>i.hide&&i.hide(...s)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")])])])):fe("",!0)}const KN=et(YN,[["render",WN]]),QN={data(){return{show:!1,message:"",resolve:null}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t){return new Promise(e=>{this.message=t,this.show=!0,this.resolve=e})}}},jN={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},XN={class:"relative w-full max-w-md max-h-full"},ZN={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},JN=S("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[S("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),eA=S("span",{class:"sr-only"},"Close modal",-1),tA=[JN,eA],nA={class:"p-4 text-center"},rA=S("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"},[S("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),oA={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none"};function iA(t,e,n,r,o,i){return o.show?(Z(),J("div",jN,[S("div",XN,[S("div",ZN,[S("button",{type:"button",onClick:e[0]||(e[0]=s=>i.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"},tA),S("div",nA,[rA,S("h3",oA,ve(o.message),1),S("button",{onClick:e[1]||(e[1]=s=>i.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Yes, I'm sure "),S("button",{onClick:e[2]||(e[2]=s=>i.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")])])])])):fe("",!0)}const sA=et(QN,[["render",iA]]);const aA={name:"Toast",emits:["close"],props:{showProp:!1},data(){return{show:!1,success:!0,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},showToast(t,e=3,n=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),o={id:r,success:n,message:t,show:!0};this.toastArr.push(o),he(()=>{Ce.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(i=>i.id!=r)},e*1e3)}},watch:{showProp(t){this.show=t,t&&setTimeout(()=>{this.$emit("close"),this.show=!1},3e3)}}},fr=t=>(dh("data-v-89d4be06"),t=t(),uh(),t),cA={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3"},lA={id:"toast-success",class:"flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},dA={class:"flex flex-row items-center"},uA={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},_A=fr(()=>S("i",{"data-feather":"check"},null,-1)),pA=fr(()=>S("span",{class:"sr-only"},"Check icon",-1)),mA=[_A,pA],gA={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},fA=fr(()=>S("i",{"data-feather":"x"},null,-1)),EA=fr(()=>S("span",{class:"sr-only"},"Cross icon",-1)),hA=[fA,EA],SA={class:"ml-3 text-sm font-normal whitespace-pre-wrap"},bA=["onClick"],TA=fr(()=>S("span",{class:"sr-only"},"Close",-1)),yA=fr(()=>S("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[S("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)),vA=[TA,yA];function CA(t,e,n,r,o,i){return Z(),J("div",cA,[De(PC,{name:"toastItem",tag:"div"},{default:Vt(()=>[(Z(!0),J(ke,null,zt(o.toastArr,s=>(Z(),J("div",{key:s.id},[S("div",lA,[S("div",dA,[kv(t.$slots,"default",{},()=>[s.success?(Z(),J("div",uA,mA)):fe("",!0),s.success?fe("",!0):(Z(),J("div",gA,hA)),S("div",SA,ve(s.message),1)],!0)]),S("button",{type:"button",onClick:a=>i.close(s.id),class:"ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-success","aria-label":"Close"},vA,8,bA)])]))),128))]),_:3})])}const su=et(aA,[["render",CA],["__scopeId","data-v-89d4be06"]]),$_="/assets/default_model-9e24e852.png",RA={props:{title:String,icon:String,path:String,owner:String,owner_link:String,license:String,description:String,isInstalled:Boolean,onInstall:Function,onUninstall:Function,onSelected:Function,selected:Boolean,model:Object},data(){return{progress:0,installing:!1,uninstalling:!1,failedToLoad:!1}},mounted(){he(()=>{Ce.replace()})},methods:{getImgUrl(){return this.icon==="/images/default_model.png"?$_:this.icon},defaultImg(t){t.target.src=$_},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):(this.installing=!0,this.onInstall(this))},toggleSelected(){this.onSelected(this)},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)}}},OA={key:0,class:"flex-1"},NA={class:"flex gap-3 items-center"},AA=["src"],IA={class:"font-bold font-large text-lg"},xA={key:1,class:"flex-1"},DA={class:"flex gap-3 items-center"},wA=["src"],MA={class:"font-bold font-large text-lg"},LA={class:"flex flex-shrink-0"},kA=S("b",null,"Manual download: ",-1),PA=["href"],UA=S("i",{"data-feather":"link",class:"w-5 p-1"},null,-1),FA={class:"flex flex-shrink-0"},BA=S("b",null,"License: ",-1),GA={class:"flex flex-shrink-0"},qA=S("b",null,"Owner: ",-1),YA=["href"],HA=S("i",{"data-feather":"link",class:"w-5 p-1"},null,-1),VA=S("b",null,"Description: ",-1),zA=S("br",null,null,-1),$A={class:"opacity-80"},WA={key:2,class:"flex-shrink-0"},KA=["disabled"],QA={key:0,class:"flex items-center space-x-2"},jA={class:"h-2 w-20 bg-gray-300 rounded"},XA={key:1,class:"flex items-center space-x-2"},ZA={class:"h-2 w-20 bg-gray-300 rounded"},JA=S("span",null,"Uninstalling...",-1);function eI(t,e,n,r,o,i){return Z(),J("div",{class:Be(["flex items-center p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer",n.selected?" border-primary-light":"border-transparent"]),onClick:e[5]||(e[5]=be((...s)=>i.toggleSelected&&i.toggleSelected(...s),["stop"]))},[n.model.isCustomModel?(Z(),J("div",OA,[S("div",NA,[S("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=s=>i.defaultImg(s)),class:"w-10 h-10 rounded-lg object-fill"},null,40,AA),S("h3",IA,ve(n.title),1)])])):fe("",!0),n.model.isCustomModel?fe("",!0):(Z(),J("div",xA,[S("div",DA,[S("img",{src:i.getImgUrl(),onError:e[1]||(e[1]=s=>i.defaultImg(s)),class:"w-10 h-10 rounded-lg object-fill"},null,40,wA),S("h3",MA,ve(n.title),1)]),S("div",LA,[kA,S("a",{href:n.path,onClick:e[2]||(e[2]=be(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"Download this manually (faster) and put it in the models/ folder then refresh"},[UA,Xe(" "+ve(n.title),1)],8,PA)]),S("div",FA,[BA,Xe(" "+ve(n.license),1)]),S("div",GA,[qA,S("a",{href:n.owner_link,target:"_blank",onClick:e[3]||(e[3]=be(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"Owner's profile"},[HA,Xe(" "+ve(n.owner),1)],8,YA)]),VA,zA,S("p",$A,ve(n.description),1)])),n.model.isCustomModel?fe("",!0):(Z(),J("div",WA,[S("button",{class:Be(["px-4 py-2 rounded-md text-white font-bold transition-colors duration-300",[n.isInstalled?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"]]),disabled:o.installing||o.uninstalling,onClick:e[4]||(e[4]=be((...s)=>i.toggleInstall&&i.toggleInstall(...s),["stop"]))},[o.installing?(Z(),J("div",QA,[S("div",jA,[S("div",{style:er({width:o.progress+"%"}),class:"h-full bg-red-500 rounded"},null,4)]),S("span",null,"Installing..."+ve(Math.floor(o.progress))+"%",1)])):o.uninstalling?(Z(),J("div",XA,[S("div",ZA,[S("div",{style:er({width:o.progress+"%"}),class:"h-full bg-green-500"},null,4)]),JA])):(Z(),J(ke,{key:2},[Xe(ve(n.isInstalled?"Uninstall":"Install"),1)],64))],10,KA)]))],2)}const tI=et(RA,[["render",eI]]),nI={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityLanguage:"English",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}}},rI={class:"p-4"},oI={class:"flex items-center mb-4"},iI=["src"],sI={class:"text-lg font-semibold"},aI=S("strong",null,"Author:",-1),cI=S("strong",null,"Description:",-1),lI=S("strong",null,"Language:",-1),dI=S("strong",null,"Category:",-1),uI={key:0},_I=S("strong",null,"Disclaimer:",-1),pI=S("strong",null,"Conditioning Text:",-1),mI=S("strong",null,"AI Prefix:",-1),gI=S("strong",null,"User Prefix:",-1),fI=S("strong",null,"Antiprompts:",-1);function EI(t,e,n,r,o,i){return Z(),J("div",rI,[S("div",oI,[S("img",{src:o.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,iI),S("h2",sI,ve(o.personalityName),1)]),S("p",null,[aI,Xe(" "+ve(o.personalityAuthor),1)]),S("p",null,[cI,Xe(" "+ve(o.personalityDescription),1)]),S("p",null,[lI,Xe(" "+ve(o.personalityLanguage),1)]),S("p",null,[dI,Xe(" "+ve(o.personalityCategory),1)]),o.disclaimer?(Z(),J("p",uI,[_I,Xe(" "+ve(o.disclaimer),1)])):fe("",!0),S("p",null,[pI,Xe(" "+ve(o.conditioningText),1)]),S("p",null,[mI,Xe(" "+ve(o.aiPrefix),1)]),S("p",null,[gI,Xe(" "+ve(o.userPrefix),1)]),S("div",null,[fI,S("ul",null,[(Z(!0),J(ke,null,zt(o.antipromptsList,s=>(Z(),J("li",{key:s.id},ve(s.text),1))),128))])]),S("button",{onClick:e[0]||(e[0]=s=>o.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),o.editMode?(Z(),J("button",{key:1,onClick:e[1]||(e[1]=(...s)=>i.commitChanges&&i.commitChanges(...s)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):fe("",!0)])}const hI=et(nI,[["render",EI]]),SI="/assets/default_user-17642e5a.svg",bI="/",TI={props:{personality:{},onSelected:Function,selected:Boolean},data(){return{}},mounted(){he(()=>{Ce.replace()})},methods:{getImgUrl(){return bI+this.personality.avatar},defaultImg(t){t.target.src=Ci},toggleSelected(){this.onSelected(this)}}},yI={class:"flex flex-row items-center flex-shrink-0 gap-3"},vI=["src"],CI={class:"font-bold font-large text-lg line-clamp-3"},RI={class:""},OI={class:""},NI={class:""},AI=S("b",null,"Author: ",-1),II=S("b",null,"Description: ",-1),xI=S("br",null,null,-1),DI=["title"];function wI(t,e,n,r,o,i){return Z(),J("div",{class:Be(["items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer",n.selected?" border-primary-light":"border-transparent"]),onClick:e[1]||(e[1]=be((...s)=>i.toggleSelected&&i.toggleSelected(...s),["stop"]))},[S("div",yI,[S("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=s=>i.defaultImg(s)),class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,vI),S("h3",CI,ve(n.personality.name),1)]),S("div",RI,[S("div",OI,[S("div",NI,[AI,Xe(" "+ve(n.personality.author),1)])]),II,xI,S("p",{class:"opacity-80 line-clamp-3",title:n.personality.description},ve(n.personality.description),9,DI)])],2)}const MI=et(TI,[["render",wI]]),Pt=Object.create(null);Pt.open="0";Pt.close="1";Pt.ping="2";Pt.pong="3";Pt.message="4";Pt.upgrade="5";Pt.noop="6";const Po=Object.create(null);Object.keys(Pt).forEach(t=>{Po[Pt[t]]=t});const LI={type:"error",data:"parser error"},kI=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",PI=typeof ArrayBuffer=="function",UI=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,CS=({type:t,data:e},n,r)=>kI&&e instanceof Blob?n?r(e):W_(e,r):PI&&(e instanceof ArrayBuffer||UI(e))?n?r(e):W_(new Blob([e]),r):r(Pt[t]+(e||"")),W_=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)},K_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ar=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,o=0,i,s,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const l=new ArrayBuffer(e),d=new Uint8Array(l);for(r=0;r>4,d[o++]=(s&15)<<4|a>>2,d[o++]=(a&3)<<6|c&63;return l},BI=typeof ArrayBuffer=="function",RS=(t,e)=>{if(typeof t!="string")return{type:"message",data:OS(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:GI(t.substring(1),e)}:Po[n]?t.length>1?{type:Po[n],data:t.substring(1)}:{type:Po[n]}:LI},GI=(t,e)=>{if(BI){const n=FI(t);return OS(n,e)}else return{base64:!0,data:t}},OS=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}},NS=String.fromCharCode(30),qI=(t,e)=>{const n=t.length,r=new Array(n);let o=0;t.forEach((i,s)=>{CS(i,!1,a=>{r[s]=a,++o===n&&e(r.join(NS))})})},YI=(t,e)=>{const n=t.split(NS),r=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function IS(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const VI=_t.setTimeout,zI=_t.clearTimeout;function xi(t,e){e.useNativeTimers?(t.setTimeoutFn=VI.bind(_t),t.clearTimeoutFn=zI.bind(_t)):(t.setTimeoutFn=_t.setTimeout.bind(_t),t.clearTimeoutFn=_t.clearTimeout.bind(_t))}const $I=1.33;function WI(t){return typeof t=="string"?KI(t):Math.ceil((t.byteLength||t.size)*$I)}function KI(t){let e=0,n=0;for(let r=0,o=t.length;r=57344?n+=3:(r++,n+=4);return n}class QI extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class xS extends Ye{constructor(e){super(),this.writable=!1,xi(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new QI(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=RS(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}const DS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),hd=64,jI={};let Q_=0,fo=0,j_;function X_(t){let e="";do e=DS[t%hd]+e,t=Math.floor(t/hd);while(t>0);return e}function wS(){const t=X_(+new Date);return t!==j_?(Q_=0,j_=t):t+"."+X_(Q_++)}for(;fo{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};YI(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,qI(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=wS()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=MS(e),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Mt(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Mt extends Ye{constructor(e,n){super(),xi(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const e=IS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const n=this.xhr=new kS(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Mt.requestsCount++,Mt.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=JI,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Mt.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Mt.requestsCount=0;Mt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Z_);else if(typeof addEventListener=="function"){const t="onpagehide"in _t?"pagehide":"unload";addEventListener(t,Z_,!1)}}function Z_(){for(let t in Mt.requests)Mt.requests.hasOwnProperty(t)&&Mt.requests[t].abort()}const PS=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Eo=_t.WebSocket||_t.MozWebSocket,J_=!0,nx="arraybuffer",ep=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class rx extends xS{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=ep?{}:IS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=J_&&!ep?n?new Eo(e,n):new Eo(e):new Eo(e,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||nx,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n{const s={};try{J_&&this.ws.send(i)}catch{}o&&PS(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=wS()),this.supportsBinary||(e.b64=1);const o=MS(e),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!Eo}}const ox={websocket:rx,polling:tx},ix=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,sx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sd(t){const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=ix.exec(t||""),i={},s=14;for(;s--;)i[sx[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=ax(i,i.path),i.queryKey=cx(i,i.query),i}function ax(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function cx(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let US=class zn extends Ye{constructor(e,n={}){super(),this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=Sd(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=Sd(n.host).host),xi(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=XI(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=AS,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[e],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ox[e](r)}open(){let e;if(this.opts.rememberUpgrade&&zn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;zn.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;zn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const _=new Error("probe error");_.transport=n.name,this.emitReserved("upgradeError",_)}}))};function i(){r||(r=!0,d(),n.close(),n=null)}const s=u=>{const _=new Error("probe error: "+u);_.transport=n.name,i(),this.emitReserved("upgradeError",_)};function a(){s("transport closed")}function c(){s("socket closed")}function l(u){n&&u.name!==n.name&&i()}const d=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",c),this.once("upgrading",l),n.open()}onOpen(){if(this.readyState="open",zn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:e,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){zn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const o=e.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,FS=Object.prototype.toString,_x=typeof Blob=="function"||typeof Blob<"u"&&FS.call(Blob)==="[object BlobConstructor]",px=typeof File=="function"||typeof File<"u"&&FS.call(File)==="[object FileConstructor]";function au(t){return dx&&(t instanceof ArrayBuffer||ux(t))||_x&&t instanceof Blob||px&&t instanceof File}function Uo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let s=0;s{this.io.clearTimeoutFn(i),n.apply(this,[null,...s])}}emitWithAck(e,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((s,a)=>r?s?i(s):o(a):o(s)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Re.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Re.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Re.EVENT:case Re.BINARY_EVENT:this.onevent(e);break;case Re.ACK:case Re.BINARY_ACK:this.onack(e);break;case Re.DISCONNECT:this.ondisconnect();break;case Re.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Re.ACK,id:e,data:o}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Re.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Er.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Er.prototype.reset=function(){this.attempts=0};Er.prototype.setMin=function(t){this.ms=t};Er.prototype.setMax=function(t){this.max=t};Er.prototype.setJitter=function(t){this.jitter=t};class yd extends Ye{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,xi(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Er({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const o=n.parser||Sx;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new US(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Tt(n,"open",function(){r.onopen(),e&&e()}),i=Tt(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),e?e(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const a=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Tt(e,"ping",this.onping.bind(this)),Tt(e,"data",this.ondata.bind(this)),Tt(e,"error",this.onerror.bind(this)),Tt(e,"close",this.onclose.bind(this)),Tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){PS(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new BS(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Cr={};function Fo(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=lx(t,e.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Cr[o]&&i in Cr[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let c;return a?c=new yd(r,e):(Cr[o]||(Cr[o]=new yd(r,e)),c=Cr[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(Fo,{Manager:yd,Socket:BS,io:Fo,connect:Fo});const qe=new Fo("http://localhost:9600");qe.onopen=()=>{console.log("WebSocket connection established.")};qe.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason)};qe.onerror=t=>{console.error("WebSocket error:",t),qe.disconnect()};qe.on("connect",()=>{console.log("WebSocket connected (websocket)")});qe.on("disconnect",()=>{console.log("WebSocket disonnected (websocket)")});const GS=Vh();GS.config.globalProperties.$socket=qe;GS.mount();Ue.defaults.baseURL="/";const Tx={components:{MessageBox:KN,YesNoDialog:sA,ModelEntry:tI,PersonalityViewer:hI,Toast:su,PersonalityEntry:MI},data(){return{models:[],personalities:[],personalitiesFiltered:[],collapsedArr:[],all_collapsed:!0,bec_collapsed:!0,mzc_collapsed:!0,pzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,bindingsArr:[],modelsArr:[],persLangArr:[],persCatgArr:[],persArr:[],langArr:[],configFile:{},showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1}},created(){},methods:{collapseAll(t){this.bec_collapsed=t,this.mzc_collapsed=t,this.pzc_collapsed=t,this.pc_collapsed=t,this.mc_collapsed=t},fetchModels(){console.log("Fetching models"),Ue.get("/get_available_models").then(t=>{console.log(" models",t.data.length),this.models=t.data,this.fetchCustomModels()}).catch(t=>{console.log(t)})},fetchCustomModels(){console.log("Fetching Custom models"),Ue.get("/list_models").then(t=>{for(let e=0;eo.title==n);if(console.log("model-ccc",n,r),r==-1){let o={};o.title=n,o.isCustomModel=!0,o.isInstalled=!0,this.models.push(o)}}}).catch(t=>{console.log(t)})},onPersonalitySelected(t){console.log("Selected personality"),this.isLoading&&this.$refs.toast.showToast("Loading... please wait",4,!1),t.personality&&(this.settingsChanged=!0,this.update_setting("personality",t.personality.name,()=>{this.$refs.toast.showToast(`Personality: `+t.personality.name+` diff --git a/web/src/components/Footer.vue b/web/src/components/Footer.vue index 2f53aca7..429ba690 100644 --- a/web/src/components/Footer.vue +++ b/web/src/components/Footer.vue @@ -2,7 +2,7 @@
- Visit github repository to learn more
diff --git a/web/src/components/TopBar.vue b/web/src/components/TopBar.vue index 244a52ae..76bc214d 100644 --- a/web/src/components/TopBar.vue +++ b/web/src/components/TopBar.vue @@ -11,7 +11,7 @@