From b1b0fccbacdbb8179030730d1ced69e18e57cf47 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 28 Jun 2024 02:45:21 +0200 Subject: [PATCH] new rag system --- configs/config.yaml | 4 +- events/lollms_generation_events.py | 3 - lollms_core | 2 +- lollms_webui.py | 8 +- .../{index-85e70ccc.js => index-2028504d.js} | 348 +++++++++--------- ...{index-5340f2b4.css => index-90b8fd3b.css} | 2 +- web/dist/index.html | 4 +- web/src/views/SettingsView.vue | 24 +- 8 files changed, 207 insertions(+), 188 deletions(-) rename web/dist/assets/{index-85e70ccc.js => index-2028504d.js} (91%) rename web/dist/assets/{index-5340f2b4.css => index-90b8fd3b.css} (99%) diff --git a/configs/config.yaml b/configs/config.yaml index e101f8d6..93dad81e 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -1,5 +1,5 @@ # =================== Lord Of Large Language Multimodal Systems Configuration file =========================== -version: 122 +version: 123 binding_name: null model_name: null model_variant: null @@ -247,6 +247,8 @@ rag_vectorizer: bert # possible values bert, tfidf, word2vec rag_vectorizer_model: bert-base-nli-mean-tokens # The model name if applicable rag_vectorizer_parameters: null # Parameters of the model in json format rag_chunk_size: 512 # number of tokens per chunk +rag_overlap: 0 # number of tokens of overlap + rag_n_chunks: 4 #Number of chunks to recover from the database rag_clean_chunks: true #Removed all uinecessary spaces and line returns rag_follow_subfolders: true #if true the vectorizer will vectorize the content of subfolders too diff --git a/events/lollms_generation_events.py b/events/lollms_generation_events.py index 73ae4a68..f1b08267 100644 --- a/events/lollms_generation_events.py +++ b/events/lollms_generation_events.py @@ -147,9 +147,6 @@ def add_events(sio:socketio): else: lollmsElfServer.error("I am busy. Come back later.", client_id=client_id) - - - @sio.on('generate_msg_from') def handle_generate_msg_from(sid, data): client_id = sid diff --git a/lollms_core b/lollms_core index 9cbcfbb2..d6707704 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 9cbcfbb2824896e9f745166892d79a3786c1d79e +Subproject commit d670770464ca5024e046e10a61ab82827924c5d3 diff --git a/lollms_webui.py b/lollms_webui.py index e04da800..a14c6ac8 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -995,15 +995,17 @@ class LOLLMSWebUI(LOLLMSElfServer): ASCIIColors.success("--> Step ended:"+chunk) else: ASCIIColors.error("--> Step ended:"+chunk) - if message_type == MSG_TYPE.MSG_TYPE_EXCEPTION: - self.error(chunk, client_id=client_id) - ASCIIColors.error("--> Exception from personality:"+chunk) if message_type == MSG_TYPE.MSG_TYPE_WARNING: self.warning(chunk,client_id=client_id) ASCIIColors.error("--> Exception from personality:"+chunk) + if message_type == MSG_TYPE.MSG_TYPE_EXCEPTION: + self.error(chunk, client_id=client_id) + ASCIIColors.error("--> Exception from personality:"+chunk) + return if message_type == MSG_TYPE.MSG_TYPE_INFO: self.info(chunk, client_id=client_id) ASCIIColors.info("--> Info:"+chunk) + return if message_type == MSG_TYPE.MSG_TYPE_UI: self.update_message(client_id, "", parameters, metadata, chunk, MSG_TYPE.MSG_TYPE_UI) diff --git a/web/dist/assets/index-85e70ccc.js b/web/dist/assets/index-2028504d.js similarity index 91% rename from web/dist/assets/index-85e70ccc.js rename to web/dist/assets/index-2028504d.js index e9757e88..df610427 100644 --- a/web/dist/assets/index-85e70ccc.js +++ b/web/dist/assets/index-2028504d.js @@ -14,8 +14,8 @@ Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function u(g,y){for(var v=y.length,S=0;S1?arguments[1]:void 0,y=g!==void 0,v=0,S=h(m),C,T,O,k;if(y&&(g=r(g,b>2?arguments[2]:void 0,2)),S!=null&&!(E==Array&&l(S)))for(k=S.call(m),T=new E;!(O=k.next()).done;v++)d(T,v,y?a(k,g,[O.value,v],!0):O.value);else for(C=u(m.length),T=new E(C);C>v;v++)d(T,v,y?g(m[v],v):m[v]);return T.length=v,T}},"./node_modules/core-js/internals/array-includes.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(l){return function(u,d,h){var f=r(u),_=o(f.length),m=a(h,_),E;if(l&&d!=d){for(;_>m;)if(E=f[m++],E!=E)return!0}else for(;_>m;m++)if((l||m in f)&&f[m]===d)return l||m||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,i,s){var r=s("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,l){if(r(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(u){return o.call(a,u)};case 2:return function(u,d){return o.call(a,u,d)};case 3:return function(u,d,h){return o.call(a,u,d,h)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,i,s){var r=s("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,l,u){try{return u?a(r(l)[0],l[1]):a(l)}catch(h){var d=o.return;throw d!==void 0&&r(d.call(o)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var l=0,u={next:function(){return{done:!!l++}},return:function(){a=!0}};u[o]=function(){return this},Array.from(u,function(){throw 2})}catch{}t.exports=function(d,h){if(!h&&!a)return!1;var f=!1;try{var _={};_[o]=function(){return{next:function(){return{done:f=!0}}}},d(_)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(t,i){var s={}.toString;t.exports=function(r){return s.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,i,s){var r=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=r(function(){return arguments}())=="Arguments",u=function(d,h){try{return d[h]}catch{}};t.exports=function(d){var h,f,_;return d===void 0?"Undefined":d===null?"Null":typeof(f=u(h=Object(d),a))=="string"?f:l?r(h):(_=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":_}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=s("./node_modules/core-js/internals/object-define-property.js");t.exports=function(u,d){for(var h=o(d),f=l.f,_=a.f,m=0;m",C="java"+v+":",T;for(b.style.display="none",u.appendChild(b),b.src=String(C),T=b.contentWindow.document,T.open(),T.write(y+v+S+"document.F=Object"+y+"/"+v+S),T.close(),E=T.F;g--;)delete E[_][a[g]];return E()};t.exports=Object.create||function(g,y){var v;return g!==null?(m[_]=r(g),v=new m,m[_]=null,v[f]=g):v=E(),y===void 0?v:o(v,y)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-keys.js");t.exports=r?Object.defineProperties:function(d,h){a(d);for(var f=l(h),_=f.length,m=0,E;_>m;)o.f(d,E=f[m++],h[E]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/to-primitive.js"),u=Object.defineProperty;i.f=r?u:function(h,f,_){if(a(h),f=l(f,!0),a(_),o)try{return u(h,f,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(h[f]=_.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),u=s("./node_modules/core-js/internals/to-primitive.js"),d=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;i.f=r?f:function(m,E){if(m=l(m),E=u(E,!0),h)try{return f(m,E)}catch{}if(d(m,E))return a(!o.f.call(m,E),m[E])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(u){return r(u,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),l=s("./node_modules/core-js/internals/correct-prototype-getter.js"),u=a("IE_PROTO"),d=Object.prototype;t.exports=l?Object.getPrototypeOf:function(h){return h=o(h),r(h,u)?h[u]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),u=a(!1);t.exports=function(d,h){var f=o(d),_=0,m=[],E;for(E in f)!r(l,E)&&r(f,E)&&m.push(E);for(;h.length>_;)r(f,E=h[_++])&&(~u(m,E)||m.push(E));return m}},"./node_modules/core-js/internals/object-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(l){return r(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,i,s){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);i.f=a?function(u){var d=o(this,u);return!!d&&d.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(d,h){return r(d,h),o?l.call(d,h):d.__proto__=h,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=s("./node_modules/core-js/internals/an-object.js"),u=r.Reflect;t.exports=u&&u.ownKeys||function(h){var f=o.f(l(h)),_=a.f;return _?f.concat(_(h)):f}},"./node_modules/core-js/internals/path.js":function(t,i,s){t.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/has.js"),u=s("./node_modules/core-js/internals/set-global.js"),d=s("./node_modules/core-js/internals/function-to-string.js"),h=s("./node_modules/core-js/internals/internal-state.js"),f=h.get,_=h.enforce,m=String(d).split("toString");o("inspectSource",function(E){return d.call(E)}),(t.exports=function(E,b,g,y){var v=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,C=y?!!y.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!l(g,"name")&&a(g,"name",b),_(g).source=m.join(typeof b=="string"?b:"")),E===r){S?E[b]=g:u(b,g);return}else v?!C&&E[b]&&(S=!0):delete E[b];S?E[b]=g:a(E,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,i){t.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");t.exports=function(a,l){try{o(r,a,l)}catch{r[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");t.exports=function(u,d,h){u&&!o(u=h?u:u.prototype,l)&&r(u,l,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(t,i,s){var r=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=r("keys");t.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",u=r[l]||o(l,{});(t.exports=function(d,h){return u[d]||(u[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,l,u){var d=String(o(a)),h=r(l),f=d.length,_,m;return h<0||h>=f?u?"":void 0:(_=d.charCodeAt(h),_<55296||_>56319||h+1===f||(m=d.charCodeAt(h+1))<56320||m>57343?u?d.charAt(h):_:u?d.slice(h,h+2):(_-55296<<10)+(m-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(l,u){var d=r(l);return d<0?o(d+u,0):a(d,u)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,i){var s=Math.ceil,r=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?r:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!r(o))return o;var l,u;if(a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o))||typeof(l=o.valueOf)=="function"&&!r(u=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o)))return u;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,i){var s=0,r=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");t.exports=function(a,l){if(o(a),!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),l=s("./node_modules/core-js/internals/native-symbol.js"),u=r.Symbol,d=o("wks");t.exports=function(h){return d[h]||(d[h]=l&&u[h]||(l?u:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(t,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(u){Array.from(u)});r({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,i,s){var r=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=o.set,d=o.getterFor(l);a(String,"String",function(h){u(this,{type:l,string:String(h),index:0})},function(){var f=d(this),_=f.string,m=f.index,E;return m>=_.length?{value:void 0,done:!0}:(E=r(_,m,!0),f.index+=E.length,{value:E,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,i){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}t.exports=s},"./src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(E){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];f(this,E),this.name=b,this.contents=g,this.tags=y,this.attrs=r({},d.default,{class:"feather feather-"+b})}return o(E,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=r({},this.attrs,g,{class:(0,l.default)(this.attrs.class,g.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),E}();function m(E){return Object.keys(E).map(function(b){return b+'="'+E[b]+'"'}).join(" ")}i.default=_},"./src/icons.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icon.js"),o=h(r),a=s("./dist/icons.json"),l=h(a),u=s("./src/tags.json"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}i.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],d.default[f])}).reduce(function(f,_){return f[_.name]=_,f},{})},"./src/index.js":function(t,i,s){var r=s("./src/icons.js"),o=h(r),a=s("./src/to-svg.js"),l=h(a),u=s("./src/replace.js"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}t.exports={icons:o.default,toSvg:l.default,replace:d.default}},"./src/replace.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(m){for(var E=1;E0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var E=document.querySelectorAll("[data-feather]");Array.from(E).forEach(function(b){return f(b,m)})}function f(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_(m),g=b["data-feather"];delete b["data-feather"];var y=u.default[g].toSvg(r({},E,b,{class:(0,a.default)(E.class,b.class)})),v=new DOMParser().parseFromString(y,"image/svg+xml"),S=v.querySelector("svg");m.parentNode.replaceChild(S,m)}function _(m){return Array.from(m.attributes).reduce(function(E,b){return E[b.name]=b.value,E},{})}i.default=h},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icons.js"),o=a(r);function a(u){return u&&u.__esModule?u:{default:u}}function l(u){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."),!u)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[u])throw new Error("No icon matching '"+u+"'. See the complete list of icons at https://feathericons.com");return o.default[u].toSvg(d)}i.default=l},0:function(t,i,s){s("./node_modules/core-js/es/array/from.js"),t.exports=s("./src/index.js")}})})})($A);var jP=$A.exports;const ze=Ar(jP);const bt=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},QP={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),Ge(()=>{ze.replace()})},showToast(n,e=3,t=!0){const i=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:i,log_type:t,message:n,show:!0};this.toastArr.push(s),Ge(()=>{ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=i)},e*1e3)}},watch:{}},Ni=n=>(yo("data-v-46f379e5"),n=n(),vo(),n),XP={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},ZP={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},JP={class:"flex flex-row flex-grow items-center h-auto"},eU={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},tU=Ni(()=>c("i",{"data-feather":"x"},null,-1)),nU=Ni(()=>c("span",{class:"sr-only"},"Cross icon",-1)),iU=[tU,nU],sU={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},rU=Ni(()=>c("i",{"data-feather":"check"},null,-1)),oU=Ni(()=>c("span",{class:"sr-only"},"Check icon",-1)),aU=[rU,oU],lU={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},cU=Ni(()=>c("i",{"data-feather":"info"},null,-1)),dU=Ni(()=>c("span",{class:"sr-only"},null,-1)),uU=[cU,dU],pU={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},_U=Ni(()=>c("i",{"data-feather":"alert-triangle"},null,-1)),hU=Ni(()=>c("span",{class:"sr-only"},null,-1)),fU=[_U,hU],mU=["title"],gU={class:"flex"},bU=["onClick"],EU=Ni(()=>c("span",{class:"sr-only"},"Copy message",-1)),yU=Ni(()=>c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),vU=[EU,yU],SU=["onClick"],TU=Ni(()=>c("span",{class:"sr-only"},"Close",-1)),xU=Ni(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),CU=[TU,xU];function wU(n,e,t,i,s,r){return w(),A("div",XP,[Te(os,{name:"toastItem",tag:"div"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.toastArr,o=>(w(),A("div",{key:o.id,class:"relative"},[c("div",ZP,[c("div",JP,[o.log_type==0?(w(),A("div",eU,iU)):V("",!0),o.log_type==1?(w(),A("div",sU,aU)):V("",!0),o.log_type==2?(w(),A("div",lU,uU)):V("",!0),o.log_type==3?(w(),A("div",pU,fU)):V("",!0),c("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},he(o.message),9,mU)]),c("div",gU,[c("button",{type:"button",onClick:be(a=>r.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},vU,8,bU),c("button",{type:"button",onClick:a=>r.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},CU,8,SU)])])]))),128))]),_:1})])}const hc=bt(QP,[["render",wU],["__scopeId","data-v-46f379e5"]]);var Bt={};const RU="Á",AU="á",NU="Ă",OU="ă",IU="∾",MU="∿",DU="∾̳",kU="Â",LU="â",PU="´",UU="А",FU="а",BU="Æ",GU="æ",VU="⁡",zU="𝔄",HU="𝔞",qU="À",YU="à",$U="ℵ",WU="ℵ",KU="Α",jU="α",QU="Ā",XU="ā",ZU="⨿",JU="&",eF="&",tF="⩕",nF="⩓",iF="∧",sF="⩜",rF="⩘",oF="⩚",aF="∠",lF="⦤",cF="∠",dF="⦨",uF="⦩",pF="⦪",_F="⦫",hF="⦬",fF="⦭",mF="⦮",gF="⦯",bF="∡",EF="∟",yF="⊾",vF="⦝",SF="∢",TF="Å",xF="⍼",CF="Ą",wF="ą",RF="𝔸",AF="𝕒",NF="⩯",OF="≈",IF="⩰",MF="≊",DF="≋",kF="'",LF="⁡",PF="≈",UF="≊",FF="Å",BF="å",GF="𝒜",VF="𝒶",zF="≔",HF="*",qF="≈",YF="≍",$F="Ã",WF="ã",KF="Ä",jF="ä",QF="∳",XF="⨑",ZF="≌",JF="϶",e3="‵",t3="∽",n3="⋍",i3="∖",s3="⫧",r3="⊽",o3="⌅",a3="⌆",l3="⌅",c3="⎵",d3="⎶",u3="≌",p3="Б",_3="б",h3="„",f3="∵",m3="∵",g3="∵",b3="⦰",E3="϶",y3="ℬ",v3="ℬ",S3="Β",T3="β",x3="ℶ",C3="≬",w3="𝔅",R3="𝔟",A3="⋂",N3="◯",O3="⋃",I3="⨀",M3="⨁",D3="⨂",k3="⨆",L3="★",P3="▽",U3="△",F3="⨄",B3="⋁",G3="⋀",V3="⤍",z3="⧫",H3="▪",q3="▴",Y3="▾",$3="◂",W3="▸",K3="␣",j3="▒",Q3="░",X3="▓",Z3="█",J3="=⃥",eB="≡⃥",tB="⫭",nB="⌐",iB="𝔹",sB="𝕓",rB="⊥",oB="⊥",aB="⋈",lB="⧉",cB="┐",dB="╕",uB="╖",pB="╗",_B="┌",hB="╒",fB="╓",mB="╔",gB="─",bB="═",EB="┬",yB="╤",vB="╥",SB="╦",TB="┴",xB="╧",CB="╨",wB="╩",RB="⊟",AB="⊞",NB="⊠",OB="┘",IB="╛",MB="╜",DB="╝",kB="└",LB="╘",PB="╙",UB="╚",FB="│",BB="║",GB="┼",VB="╪",zB="╫",HB="╬",qB="┤",YB="╡",$B="╢",WB="╣",KB="├",jB="╞",QB="╟",XB="╠",ZB="‵",JB="˘",e5="˘",t5="¦",n5="𝒷",i5="ℬ",s5="⁏",r5="∽",o5="⋍",a5="⧅",l5="\\",c5="⟈",d5="•",u5="•",p5="≎",_5="⪮",h5="≏",f5="≎",m5="≏",g5="Ć",b5="ć",E5="⩄",y5="⩉",v5="⩋",S5="∩",T5="⋒",x5="⩇",C5="⩀",w5="ⅅ",R5="∩︀",A5="⁁",N5="ˇ",O5="ℭ",I5="⩍",M5="Č",D5="č",k5="Ç",L5="ç",P5="Ĉ",U5="ĉ",F5="∰",B5="⩌",G5="⩐",V5="Ċ",z5="ċ",H5="¸",q5="¸",Y5="⦲",$5="¢",W5="·",K5="·",j5="𝔠",Q5="ℭ",X5="Ч",Z5="ч",J5="✓",e4="✓",t4="Χ",n4="χ",i4="ˆ",s4="≗",r4="↺",o4="↻",a4="⊛",l4="⊚",c4="⊝",d4="⊙",u4="®",p4="Ⓢ",_4="⊖",h4="⊕",f4="⊗",m4="○",g4="⧃",b4="≗",E4="⨐",y4="⫯",v4="⧂",S4="∲",T4="”",x4="’",C4="♣",w4="♣",R4=":",A4="∷",N4="⩴",O4="≔",I4="≔",M4=",",D4="@",k4="∁",L4="∘",P4="∁",U4="ℂ",F4="≅",B4="⩭",G4="≡",V4="∮",z4="∯",H4="∮",q4="𝕔",Y4="ℂ",$4="∐",W4="∐",K4="©",j4="©",Q4="℗",X4="∳",Z4="↵",J4="✗",eG="⨯",tG="𝒞",nG="𝒸",iG="⫏",sG="⫑",rG="⫐",oG="⫒",aG="⋯",lG="⤸",cG="⤵",dG="⋞",uG="⋟",pG="↶",_G="⤽",hG="⩈",fG="⩆",mG="≍",gG="∪",bG="⋓",EG="⩊",yG="⊍",vG="⩅",SG="∪︀",TG="↷",xG="⤼",CG="⋞",wG="⋟",RG="⋎",AG="⋏",NG="¤",OG="↶",IG="↷",MG="⋎",DG="⋏",kG="∲",LG="∱",PG="⌭",UG="†",FG="‡",BG="ℸ",GG="↓",VG="↡",zG="⇓",HG="‐",qG="⫤",YG="⊣",$G="⤏",WG="˝",KG="Ď",jG="ď",QG="Д",XG="д",ZG="‡",JG="⇊",e6="ⅅ",t6="ⅆ",n6="⤑",i6="⩷",s6="°",r6="∇",o6="Δ",a6="δ",l6="⦱",c6="⥿",d6="𝔇",u6="𝔡",p6="⥥",_6="⇃",h6="⇂",f6="´",m6="˙",g6="˝",b6="`",E6="˜",y6="⋄",v6="⋄",S6="⋄",T6="♦",x6="♦",C6="¨",w6="ⅆ",R6="ϝ",A6="⋲",N6="÷",O6="÷",I6="⋇",M6="⋇",D6="Ђ",k6="ђ",L6="⌞",P6="⌍",U6="$",F6="𝔻",B6="𝕕",G6="¨",V6="˙",z6="⃜",H6="≐",q6="≑",Y6="≐",$6="∸",W6="∔",K6="⊡",j6="⌆",Q6="∯",X6="¨",Z6="⇓",J6="⇐",e9="⇔",t9="⫤",n9="⟸",i9="⟺",s9="⟹",r9="⇒",o9="⊨",a9="⇑",l9="⇕",c9="∥",d9="⤓",u9="↓",p9="↓",_9="⇓",h9="⇵",f9="̑",m9="⇊",g9="⇃",b9="⇂",E9="⥐",y9="⥞",v9="⥖",S9="↽",T9="⥟",x9="⥗",C9="⇁",w9="↧",R9="⊤",A9="⤐",N9="⌟",O9="⌌",I9="𝒟",M9="𝒹",D9="Ѕ",k9="ѕ",L9="⧶",P9="Đ",U9="đ",F9="⋱",B9="▿",G9="▾",V9="⇵",z9="⥯",H9="⦦",q9="Џ",Y9="џ",$9="⟿",W9="É",K9="é",j9="⩮",Q9="Ě",X9="ě",Z9="Ê",J9="ê",e8="≖",t8="≕",n8="Э",i8="э",s8="⩷",r8="Ė",o8="ė",a8="≑",l8="ⅇ",c8="≒",d8="𝔈",u8="𝔢",p8="⪚",_8="È",h8="è",f8="⪖",m8="⪘",g8="⪙",b8="∈",E8="⏧",y8="ℓ",v8="⪕",S8="⪗",T8="Ē",x8="ē",C8="∅",w8="∅",R8="◻",A8="∅",N8="▫",O8=" ",I8=" ",M8=" ",D8="Ŋ",k8="ŋ",L8=" ",P8="Ę",U8="ę",F8="𝔼",B8="𝕖",G8="⋕",V8="⧣",z8="⩱",H8="ε",q8="Ε",Y8="ε",$8="ϵ",W8="≖",K8="≕",j8="≂",Q8="⪖",X8="⪕",Z8="⩵",J8="=",eV="≂",tV="≟",nV="⇌",iV="≡",sV="⩸",rV="⧥",oV="⥱",aV="≓",lV="ℯ",cV="ℰ",dV="≐",uV="⩳",pV="≂",_V="Η",hV="η",fV="Ð",mV="ð",gV="Ë",bV="ë",EV="€",yV="!",vV="∃",SV="∃",TV="ℰ",xV="ⅇ",CV="ⅇ",wV="≒",RV="Ф",AV="ф",NV="♀",OV="ffi",IV="ff",MV="ffl",DV="𝔉",kV="𝔣",LV="fi",PV="◼",UV="▪",FV="fj",BV="♭",GV="fl",VV="▱",zV="ƒ",HV="𝔽",qV="𝕗",YV="∀",$V="∀",WV="⋔",KV="⫙",jV="ℱ",QV="⨍",XV="½",ZV="⅓",JV="¼",ez="⅕",tz="⅙",nz="⅛",iz="⅔",sz="⅖",rz="¾",oz="⅗",az="⅜",lz="⅘",cz="⅚",dz="⅝",uz="⅞",pz="⁄",_z="⌢",hz="𝒻",fz="ℱ",mz="ǵ",gz="Γ",bz="γ",Ez="Ϝ",yz="ϝ",vz="⪆",Sz="Ğ",Tz="ğ",xz="Ģ",Cz="Ĝ",wz="ĝ",Rz="Г",Az="г",Nz="Ġ",Oz="ġ",Iz="≥",Mz="≧",Dz="⪌",kz="⋛",Lz="≥",Pz="≧",Uz="⩾",Fz="⪩",Bz="⩾",Gz="⪀",Vz="⪂",zz="⪄",Hz="⋛︀",qz="⪔",Yz="𝔊",$z="𝔤",Wz="≫",Kz="⋙",jz="⋙",Qz="ℷ",Xz="Ѓ",Zz="ѓ",Jz="⪥",eH="≷",tH="⪒",nH="⪤",iH="⪊",sH="⪊",rH="⪈",oH="≩",aH="⪈",lH="≩",cH="⋧",dH="𝔾",uH="𝕘",pH="`",_H="≥",hH="⋛",fH="≧",mH="⪢",gH="≷",bH="⩾",EH="≳",yH="𝒢",vH="ℊ",SH="≳",TH="⪎",xH="⪐",CH="⪧",wH="⩺",RH=">",AH=">",NH="≫",OH="⋗",IH="⦕",MH="⩼",DH="⪆",kH="⥸",LH="⋗",PH="⋛",UH="⪌",FH="≷",BH="≳",GH="≩︀",VH="≩︀",zH="ˇ",HH=" ",qH="½",YH="ℋ",$H="Ъ",WH="ъ",KH="⥈",jH="↔",QH="⇔",XH="↭",ZH="^",JH="ℏ",e7="Ĥ",t7="ĥ",n7="♥",i7="♥",s7="…",r7="⊹",o7="𝔥",a7="ℌ",l7="ℋ",c7="⤥",d7="⤦",u7="⇿",p7="∻",_7="↩",h7="↪",f7="𝕙",m7="ℍ",g7="―",b7="─",E7="𝒽",y7="ℋ",v7="ℏ",S7="Ħ",T7="ħ",x7="≎",C7="≏",w7="⁃",R7="‐",A7="Í",N7="í",O7="⁣",I7="Î",M7="î",D7="И",k7="и",L7="İ",P7="Е",U7="е",F7="¡",B7="⇔",G7="𝔦",V7="ℑ",z7="Ì",H7="ì",q7="ⅈ",Y7="⨌",$7="∭",W7="⧜",K7="℩",j7="IJ",Q7="ij",X7="Ī",Z7="ī",J7="ℑ",eq="ⅈ",tq="ℐ",nq="ℑ",iq="ı",sq="ℑ",rq="⊷",oq="Ƶ",aq="⇒",lq="℅",cq="∞",dq="⧝",uq="ı",pq="⊺",_q="∫",hq="∬",fq="ℤ",mq="∫",gq="⊺",bq="⋂",Eq="⨗",yq="⨼",vq="⁣",Sq="⁢",Tq="Ё",xq="ё",Cq="Į",wq="į",Rq="𝕀",Aq="𝕚",Nq="Ι",Oq="ι",Iq="⨼",Mq="¿",Dq="𝒾",kq="ℐ",Lq="∈",Pq="⋵",Uq="⋹",Fq="⋴",Bq="⋳",Gq="∈",Vq="⁢",zq="Ĩ",Hq="ĩ",qq="І",Yq="і",$q="Ï",Wq="ï",Kq="Ĵ",jq="ĵ",Qq="Й",Xq="й",Zq="𝔍",Jq="𝔧",eY="ȷ",tY="𝕁",nY="𝕛",iY="𝒥",sY="𝒿",rY="Ј",oY="ј",aY="Є",lY="є",cY="Κ",dY="κ",uY="ϰ",pY="Ķ",_Y="ķ",hY="К",fY="к",mY="𝔎",gY="𝔨",bY="ĸ",EY="Х",yY="х",vY="Ќ",SY="ќ",TY="𝕂",xY="𝕜",CY="𝒦",wY="𝓀",RY="⇚",AY="Ĺ",NY="ĺ",OY="⦴",IY="ℒ",MY="Λ",DY="λ",kY="⟨",LY="⟪",PY="⦑",UY="⟨",FY="⪅",BY="ℒ",GY="«",VY="⇤",zY="⤟",HY="←",qY="↞",YY="⇐",$Y="⤝",WY="↩",KY="↫",jY="⤹",QY="⥳",XY="↢",ZY="⤙",JY="⤛",e$="⪫",t$="⪭",n$="⪭︀",i$="⤌",s$="⤎",r$="❲",o$="{",a$="[",l$="⦋",c$="⦏",d$="⦍",u$="Ľ",p$="ľ",_$="Ļ",h$="ļ",f$="⌈",m$="{",g$="Л",b$="л",E$="⤶",y$="“",v$="„",S$="⥧",T$="⥋",x$="↲",C$="≤",w$="≦",R$="⟨",A$="⇤",N$="←",O$="←",I$="⇐",M$="⇆",D$="↢",k$="⌈",L$="⟦",P$="⥡",U$="⥙",F$="⇃",B$="⌊",G$="↽",V$="↼",z$="⇇",H$="↔",q$="↔",Y$="⇔",$$="⇆",W$="⇋",K$="↭",j$="⥎",Q$="↤",X$="⊣",Z$="⥚",J$="⋋",eW="⧏",tW="⊲",nW="⊴",iW="⥑",sW="⥠",rW="⥘",oW="↿",aW="⥒",lW="↼",cW="⪋",dW="⋚",uW="≤",pW="≦",_W="⩽",hW="⪨",fW="⩽",mW="⩿",gW="⪁",bW="⪃",EW="⋚︀",yW="⪓",vW="⪅",SW="⋖",TW="⋚",xW="⪋",CW="⋚",wW="≦",RW="≶",AW="≶",NW="⪡",OW="≲",IW="⩽",MW="≲",DW="⥼",kW="⌊",LW="𝔏",PW="𝔩",UW="≶",FW="⪑",BW="⥢",GW="↽",VW="↼",zW="⥪",HW="▄",qW="Љ",YW="љ",$W="⇇",WW="≪",KW="⋘",jW="⌞",QW="⇚",XW="⥫",ZW="◺",JW="Ŀ",eK="ŀ",tK="⎰",nK="⎰",iK="⪉",sK="⪉",rK="⪇",oK="≨",aK="⪇",lK="≨",cK="⋦",dK="⟬",uK="⇽",pK="⟦",_K="⟵",hK="⟵",fK="⟸",mK="⟷",gK="⟷",bK="⟺",EK="⟼",yK="⟶",vK="⟶",SK="⟹",TK="↫",xK="↬",CK="⦅",wK="𝕃",RK="𝕝",AK="⨭",NK="⨴",OK="∗",IK="_",MK="↙",DK="↘",kK="◊",LK="◊",PK="⧫",UK="(",FK="⦓",BK="⇆",GK="⌟",VK="⇋",zK="⥭",HK="‎",qK="⊿",YK="‹",$K="𝓁",WK="ℒ",KK="↰",jK="↰",QK="≲",XK="⪍",ZK="⪏",JK="[",ej="‘",tj="‚",nj="Ł",ij="ł",sj="⪦",rj="⩹",oj="<",aj="<",lj="≪",cj="⋖",dj="⋋",uj="⋉",pj="⥶",_j="⩻",hj="◃",fj="⊴",mj="◂",gj="⦖",bj="⥊",Ej="⥦",yj="≨︀",vj="≨︀",Sj="¯",Tj="♂",xj="✠",Cj="✠",wj="↦",Rj="↦",Aj="↧",Nj="↤",Oj="↥",Ij="▮",Mj="⨩",Dj="М",kj="м",Lj="—",Pj="∺",Uj="∡",Fj=" ",Bj="ℳ",Gj="𝔐",Vj="𝔪",zj="℧",Hj="µ",qj="*",Yj="⫰",$j="∣",Wj="·",Kj="⊟",jj="−",Qj="∸",Xj="⨪",Zj="∓",Jj="⫛",eQ="…",tQ="∓",nQ="⊧",iQ="𝕄",sQ="𝕞",rQ="∓",oQ="𝓂",aQ="ℳ",lQ="∾",cQ="Μ",dQ="μ",uQ="⊸",pQ="⊸",_Q="∇",hQ="Ń",fQ="ń",mQ="∠⃒",gQ="≉",bQ="⩰̸",EQ="≋̸",yQ="ʼn",vQ="≉",SQ="♮",TQ="ℕ",xQ="♮",CQ=" ",wQ="≎̸",RQ="≏̸",AQ="⩃",NQ="Ň",OQ="ň",IQ="Ņ",MQ="ņ",DQ="≇",kQ="⩭̸",LQ="⩂",PQ="Н",UQ="н",FQ="–",BQ="⤤",GQ="↗",VQ="⇗",zQ="↗",HQ="≠",qQ="≐̸",YQ="​",$Q="​",WQ="​",KQ="​",jQ="≢",QQ="⤨",XQ="≂̸",ZQ="≫",JQ="≪",eX=` -`,tX="∄",nX="∄",iX="𝔑",sX="𝔫",rX="≧̸",oX="≱",aX="≱",lX="≧̸",cX="⩾̸",dX="⩾̸",uX="⋙̸",pX="≵",_X="≫⃒",hX="≯",fX="≯",mX="≫̸",gX="↮",bX="⇎",EX="⫲",yX="∋",vX="⋼",SX="⋺",TX="∋",xX="Њ",CX="њ",wX="↚",RX="⇍",AX="‥",NX="≦̸",OX="≰",IX="↚",MX="⇍",DX="↮",kX="⇎",LX="≰",PX="≦̸",UX="⩽̸",FX="⩽̸",BX="≮",GX="⋘̸",VX="≴",zX="≪⃒",HX="≮",qX="⋪",YX="⋬",$X="≪̸",WX="∤",KX="⁠",jX=" ",QX="𝕟",XX="ℕ",ZX="⫬",JX="¬",eZ="≢",tZ="≭",nZ="∦",iZ="∉",sZ="≠",rZ="≂̸",oZ="∄",aZ="≯",lZ="≱",cZ="≧̸",dZ="≫̸",uZ="≹",pZ="⩾̸",_Z="≵",hZ="≎̸",fZ="≏̸",mZ="∉",gZ="⋵̸",bZ="⋹̸",EZ="∉",yZ="⋷",vZ="⋶",SZ="⧏̸",TZ="⋪",xZ="⋬",CZ="≮",wZ="≰",RZ="≸",AZ="≪̸",NZ="⩽̸",OZ="≴",IZ="⪢̸",MZ="⪡̸",DZ="∌",kZ="∌",LZ="⋾",PZ="⋽",UZ="⊀",FZ="⪯̸",BZ="⋠",GZ="∌",VZ="⧐̸",zZ="⋫",HZ="⋭",qZ="⊏̸",YZ="⋢",$Z="⊐̸",WZ="⋣",KZ="⊂⃒",jZ="⊈",QZ="⊁",XZ="⪰̸",ZZ="⋡",JZ="≿̸",eJ="⊃⃒",tJ="⊉",nJ="≁",iJ="≄",sJ="≇",rJ="≉",oJ="∤",aJ="∦",lJ="∦",cJ="⫽⃥",dJ="∂̸",uJ="⨔",pJ="⊀",_J="⋠",hJ="⊀",fJ="⪯̸",mJ="⪯̸",gJ="⤳̸",bJ="↛",EJ="⇏",yJ="↝̸",vJ="↛",SJ="⇏",TJ="⋫",xJ="⋭",CJ="⊁",wJ="⋡",RJ="⪰̸",AJ="𝒩",NJ="𝓃",OJ="∤",IJ="∦",MJ="≁",DJ="≄",kJ="≄",LJ="∤",PJ="∦",UJ="⋢",FJ="⋣",BJ="⊄",GJ="⫅̸",VJ="⊈",zJ="⊂⃒",HJ="⊈",qJ="⫅̸",YJ="⊁",$J="⪰̸",WJ="⊅",KJ="⫆̸",jJ="⊉",QJ="⊃⃒",XJ="⊉",ZJ="⫆̸",JJ="≹",eee="Ñ",tee="ñ",nee="≸",iee="⋪",see="⋬",ree="⋫",oee="⋭",aee="Ν",lee="ν",cee="#",dee="№",uee=" ",pee="≍⃒",_ee="⊬",hee="⊭",fee="⊮",mee="⊯",gee="≥⃒",bee=">⃒",Eee="⤄",yee="⧞",vee="⤂",See="≤⃒",Tee="<⃒",xee="⊴⃒",Cee="⤃",wee="⊵⃒",Ree="∼⃒",Aee="⤣",Nee="↖",Oee="⇖",Iee="↖",Mee="⤧",Dee="Ó",kee="ó",Lee="⊛",Pee="Ô",Uee="ô",Fee="⊚",Bee="О",Gee="о",Vee="⊝",zee="Ő",Hee="ő",qee="⨸",Yee="⊙",$ee="⦼",Wee="Œ",Kee="œ",jee="⦿",Qee="𝔒",Xee="𝔬",Zee="˛",Jee="Ò",ete="ò",tte="⧁",nte="⦵",ite="Ω",ste="∮",rte="↺",ote="⦾",ate="⦻",lte="‾",cte="⧀",dte="Ō",ute="ō",pte="Ω",_te="ω",hte="Ο",fte="ο",mte="⦶",gte="⊖",bte="𝕆",Ete="𝕠",yte="⦷",vte="“",Ste="‘",Tte="⦹",xte="⊕",Cte="↻",wte="⩔",Rte="∨",Ate="⩝",Nte="ℴ",Ote="ℴ",Ite="ª",Mte="º",Dte="⊶",kte="⩖",Lte="⩗",Pte="⩛",Ute="Ⓢ",Fte="𝒪",Bte="ℴ",Gte="Ø",Vte="ø",zte="⊘",Hte="Õ",qte="õ",Yte="⨶",$te="⨷",Wte="⊗",Kte="Ö",jte="ö",Qte="⌽",Xte="‾",Zte="⏞",Jte="⎴",ene="⏜",tne="¶",nne="∥",ine="∥",sne="⫳",rne="⫽",one="∂",ane="∂",lne="П",cne="п",dne="%",une=".",pne="‰",_ne="⊥",hne="‱",fne="𝔓",mne="𝔭",gne="Φ",bne="φ",Ene="ϕ",yne="ℳ",vne="☎",Sne="Π",Tne="π",xne="⋔",Cne="ϖ",wne="ℏ",Rne="ℎ",Ane="ℏ",Nne="⨣",One="⊞",Ine="⨢",Mne="+",Dne="∔",kne="⨥",Lne="⩲",Pne="±",Une="±",Fne="⨦",Bne="⨧",Gne="±",Vne="ℌ",zne="⨕",Hne="𝕡",qne="ℙ",Yne="£",$ne="⪷",Wne="⪻",Kne="≺",jne="≼",Qne="⪷",Xne="≺",Zne="≼",Jne="≺",eie="⪯",tie="≼",nie="≾",iie="⪯",sie="⪹",rie="⪵",oie="⋨",aie="⪯",lie="⪳",cie="≾",die="′",uie="″",pie="ℙ",_ie="⪹",hie="⪵",fie="⋨",mie="∏",gie="∏",bie="⌮",Eie="⌒",yie="⌓",vie="∝",Sie="∝",Tie="∷",xie="∝",Cie="≾",wie="⊰",Rie="𝒫",Aie="𝓅",Nie="Ψ",Oie="ψ",Iie=" ",Mie="𝔔",Die="𝔮",kie="⨌",Lie="𝕢",Pie="ℚ",Uie="⁗",Fie="𝒬",Bie="𝓆",Gie="ℍ",Vie="⨖",zie="?",Hie="≟",qie='"',Yie='"',$ie="⇛",Wie="∽̱",Kie="Ŕ",jie="ŕ",Qie="√",Xie="⦳",Zie="⟩",Jie="⟫",ese="⦒",tse="⦥",nse="⟩",ise="»",sse="⥵",rse="⇥",ose="⤠",ase="⤳",lse="→",cse="↠",dse="⇒",use="⤞",pse="↪",_se="↬",hse="⥅",fse="⥴",mse="⤖",gse="↣",bse="↝",Ese="⤚",yse="⤜",vse="∶",Sse="ℚ",Tse="⤍",xse="⤏",Cse="⤐",wse="❳",Rse="}",Ase="]",Nse="⦌",Ose="⦎",Ise="⦐",Mse="Ř",Dse="ř",kse="Ŗ",Lse="ŗ",Pse="⌉",Use="}",Fse="Р",Bse="р",Gse="⤷",Vse="⥩",zse="”",Hse="”",qse="↳",Yse="ℜ",$se="ℛ",Wse="ℜ",Kse="ℝ",jse="ℜ",Qse="▭",Xse="®",Zse="®",Jse="∋",ere="⇋",tre="⥯",nre="⥽",ire="⌋",sre="𝔯",rre="ℜ",ore="⥤",are="⇁",lre="⇀",cre="⥬",dre="Ρ",ure="ρ",pre="ϱ",_re="⟩",hre="⇥",fre="→",mre="→",gre="⇒",bre="⇄",Ere="↣",yre="⌉",vre="⟧",Sre="⥝",Tre="⥕",xre="⇂",Cre="⌋",wre="⇁",Rre="⇀",Are="⇄",Nre="⇌",Ore="⇉",Ire="↝",Mre="↦",Dre="⊢",kre="⥛",Lre="⋌",Pre="⧐",Ure="⊳",Fre="⊵",Bre="⥏",Gre="⥜",Vre="⥔",zre="↾",Hre="⥓",qre="⇀",Yre="˚",$re="≓",Wre="⇄",Kre="⇌",jre="‏",Qre="⎱",Xre="⎱",Zre="⫮",Jre="⟭",eoe="⇾",toe="⟧",noe="⦆",ioe="𝕣",soe="ℝ",roe="⨮",ooe="⨵",aoe="⥰",loe=")",coe="⦔",doe="⨒",uoe="⇉",poe="⇛",_oe="›",hoe="𝓇",foe="ℛ",moe="↱",goe="↱",boe="]",Eoe="’",yoe="’",voe="⋌",Soe="⋊",Toe="▹",xoe="⊵",Coe="▸",woe="⧎",Roe="⧴",Aoe="⥨",Noe="℞",Ooe="Ś",Ioe="ś",Moe="‚",Doe="⪸",koe="Š",Loe="š",Poe="⪼",Uoe="≻",Foe="≽",Boe="⪰",Goe="⪴",Voe="Ş",zoe="ş",Hoe="Ŝ",qoe="ŝ",Yoe="⪺",$oe="⪶",Woe="⋩",Koe="⨓",joe="≿",Qoe="С",Xoe="с",Zoe="⊡",Joe="⋅",eae="⩦",tae="⤥",nae="↘",iae="⇘",sae="↘",rae="§",oae=";",aae="⤩",lae="∖",cae="∖",dae="✶",uae="𝔖",pae="𝔰",_ae="⌢",hae="♯",fae="Щ",mae="щ",gae="Ш",bae="ш",Eae="↓",yae="←",vae="∣",Sae="∥",Tae="→",xae="↑",Cae="­",wae="Σ",Rae="σ",Aae="ς",Nae="ς",Oae="∼",Iae="⩪",Mae="≃",Dae="≃",kae="⪞",Lae="⪠",Pae="⪝",Uae="⪟",Fae="≆",Bae="⨤",Gae="⥲",Vae="←",zae="∘",Hae="∖",qae="⨳",Yae="⧤",$ae="∣",Wae="⌣",Kae="⪪",jae="⪬",Qae="⪬︀",Xae="Ь",Zae="ь",Jae="⌿",ele="⧄",tle="/",nle="𝕊",ile="𝕤",sle="♠",rle="♠",ole="∥",ale="⊓",lle="⊓︀",cle="⊔",dle="⊔︀",ule="√",ple="⊏",_le="⊑",hle="⊏",fle="⊑",mle="⊐",gle="⊒",ble="⊐",Ele="⊒",yle="□",vle="□",Sle="⊓",Tle="⊏",xle="⊑",Cle="⊐",wle="⊒",Rle="⊔",Ale="▪",Nle="□",Ole="▪",Ile="→",Mle="𝒮",Dle="𝓈",kle="∖",Lle="⌣",Ple="⋆",Ule="⋆",Fle="☆",Ble="★",Gle="ϵ",Vle="ϕ",zle="¯",Hle="⊂",qle="⋐",Yle="⪽",$le="⫅",Wle="⊆",Kle="⫃",jle="⫁",Qle="⫋",Xle="⊊",Zle="⪿",Jle="⥹",ece="⊂",tce="⋐",nce="⊆",ice="⫅",sce="⊆",rce="⊊",oce="⫋",ace="⫇",lce="⫕",cce="⫓",dce="⪸",uce="≻",pce="≽",_ce="≻",hce="⪰",fce="≽",mce="≿",gce="⪰",bce="⪺",Ece="⪶",yce="⋩",vce="≿",Sce="∋",Tce="∑",xce="∑",Cce="♪",wce="¹",Rce="²",Ace="³",Nce="⊃",Oce="⋑",Ice="⪾",Mce="⫘",Dce="⫆",kce="⊇",Lce="⫄",Pce="⊃",Uce="⊇",Fce="⟉",Bce="⫗",Gce="⥻",Vce="⫂",zce="⫌",Hce="⊋",qce="⫀",Yce="⊃",$ce="⋑",Wce="⊇",Kce="⫆",jce="⊋",Qce="⫌",Xce="⫈",Zce="⫔",Jce="⫖",ede="⤦",tde="↙",nde="⇙",ide="↙",sde="⤪",rde="ß",ode=" ",ade="⌖",lde="Τ",cde="τ",dde="⎴",ude="Ť",pde="ť",_de="Ţ",hde="ţ",fde="Т",mde="т",gde="⃛",bde="⌕",Ede="𝔗",yde="𝔱",vde="∴",Sde="∴",Tde="∴",xde="Θ",Cde="θ",wde="ϑ",Rde="ϑ",Ade="≈",Nde="∼",Ode="  ",Ide=" ",Mde=" ",Dde="≈",kde="∼",Lde="Þ",Pde="þ",Ude="˜",Fde="∼",Bde="≃",Gde="≅",Vde="≈",zde="⨱",Hde="⊠",qde="×",Yde="⨰",$de="∭",Wde="⤨",Kde="⌶",jde="⫱",Qde="⊤",Xde="𝕋",Zde="𝕥",Jde="⫚",eue="⤩",tue="‴",nue="™",iue="™",sue="▵",rue="▿",oue="◃",aue="⊴",lue="≜",cue="▹",due="⊵",uue="◬",pue="≜",_ue="⨺",hue="⃛",fue="⨹",mue="⧍",gue="⨻",bue="⏢",Eue="𝒯",yue="𝓉",vue="Ц",Sue="ц",Tue="Ћ",xue="ћ",Cue="Ŧ",wue="ŧ",Rue="≬",Aue="↞",Nue="↠",Oue="Ú",Iue="ú",Mue="↑",Due="↟",kue="⇑",Lue="⥉",Pue="Ў",Uue="ў",Fue="Ŭ",Bue="ŭ",Gue="Û",Vue="û",zue="У",Hue="у",que="⇅",Yue="Ű",$ue="ű",Wue="⥮",Kue="⥾",jue="𝔘",Que="𝔲",Xue="Ù",Zue="ù",Jue="⥣",epe="↿",tpe="↾",npe="▀",ipe="⌜",spe="⌜",rpe="⌏",ope="◸",ape="Ū",lpe="ū",cpe="¨",dpe="_",upe="⏟",ppe="⎵",_pe="⏝",hpe="⋃",fpe="⊎",mpe="Ų",gpe="ų",bpe="𝕌",Epe="𝕦",ype="⤒",vpe="↑",Spe="↑",Tpe="⇑",xpe="⇅",Cpe="↕",wpe="↕",Rpe="⇕",Ape="⥮",Npe="↿",Ope="↾",Ipe="⊎",Mpe="↖",Dpe="↗",kpe="υ",Lpe="ϒ",Ppe="ϒ",Upe="Υ",Fpe="υ",Bpe="↥",Gpe="⊥",Vpe="⇈",zpe="⌝",Hpe="⌝",qpe="⌎",Ype="Ů",$pe="ů",Wpe="◹",Kpe="𝒰",jpe="𝓊",Qpe="⋰",Xpe="Ũ",Zpe="ũ",Jpe="▵",e_e="▴",t_e="⇈",n_e="Ü",i_e="ü",s_e="⦧",r_e="⦜",o_e="ϵ",a_e="ϰ",l_e="∅",c_e="ϕ",d_e="ϖ",u_e="∝",p_e="↕",__e="⇕",h_e="ϱ",f_e="ς",m_e="⊊︀",g_e="⫋︀",b_e="⊋︀",E_e="⫌︀",y_e="ϑ",v_e="⊲",S_e="⊳",T_e="⫨",x_e="⫫",C_e="⫩",w_e="В",R_e="в",A_e="⊢",N_e="⊨",O_e="⊩",I_e="⊫",M_e="⫦",D_e="⊻",k_e="∨",L_e="⋁",P_e="≚",U_e="⋮",F_e="|",B_e="‖",G_e="|",V_e="‖",z_e="∣",H_e="|",q_e="❘",Y_e="≀",$_e=" ",W_e="𝔙",K_e="𝔳",j_e="⊲",Q_e="⊂⃒",X_e="⊃⃒",Z_e="𝕍",J_e="𝕧",ehe="∝",the="⊳",nhe="𝒱",ihe="𝓋",she="⫋︀",rhe="⊊︀",ohe="⫌︀",ahe="⊋︀",lhe="⊪",che="⦚",dhe="Ŵ",uhe="ŵ",phe="⩟",_he="∧",hhe="⋀",fhe="≙",mhe="℘",ghe="𝔚",bhe="𝔴",Ehe="𝕎",yhe="𝕨",vhe="℘",She="≀",The="≀",xhe="𝒲",Che="𝓌",whe="⋂",Rhe="◯",Ahe="⋃",Nhe="▽",Ohe="𝔛",Ihe="𝔵",Mhe="⟷",Dhe="⟺",khe="Ξ",Lhe="ξ",Phe="⟵",Uhe="⟸",Fhe="⟼",Bhe="⋻",Ghe="⨀",Vhe="𝕏",zhe="𝕩",Hhe="⨁",qhe="⨂",Yhe="⟶",$he="⟹",Whe="𝒳",Khe="𝓍",jhe="⨆",Qhe="⨄",Xhe="△",Zhe="⋁",Jhe="⋀",efe="Ý",tfe="ý",nfe="Я",ife="я",sfe="Ŷ",rfe="ŷ",ofe="Ы",afe="ы",lfe="¥",cfe="𝔜",dfe="𝔶",ufe="Ї",pfe="ї",_fe="𝕐",hfe="𝕪",ffe="𝒴",mfe="𝓎",gfe="Ю",bfe="ю",Efe="ÿ",yfe="Ÿ",vfe="Ź",Sfe="ź",Tfe="Ž",xfe="ž",Cfe="З",wfe="з",Rfe="Ż",Afe="ż",Nfe="ℨ",Ofe="​",Ife="Ζ",Mfe="ζ",Dfe="𝔷",kfe="ℨ",Lfe="Ж",Pfe="ж",Ufe="⇝",Ffe="𝕫",Bfe="ℤ",Gfe="𝒵",Vfe="𝓏",zfe="‍",Hfe="‌",qfe={Aacute:RU,aacute:AU,Abreve:NU,abreve:OU,ac:IU,acd:MU,acE:DU,Acirc:kU,acirc:LU,acute:PU,Acy:UU,acy:FU,AElig:BU,aelig:GU,af:VU,Afr:zU,afr:HU,Agrave:qU,agrave:YU,alefsym:$U,aleph:WU,Alpha:KU,alpha:jU,Amacr:QU,amacr:XU,amalg:ZU,amp:JU,AMP:eF,andand:tF,And:nF,and:iF,andd:sF,andslope:rF,andv:oF,ang:aF,ange:lF,angle:cF,angmsdaa:dF,angmsdab:uF,angmsdac:pF,angmsdad:_F,angmsdae:hF,angmsdaf:fF,angmsdag:mF,angmsdah:gF,angmsd:bF,angrt:EF,angrtvb:yF,angrtvbd:vF,angsph:SF,angst:TF,angzarr:xF,Aogon:CF,aogon:wF,Aopf:RF,aopf:AF,apacir:NF,ap:OF,apE:IF,ape:MF,apid:DF,apos:kF,ApplyFunction:LF,approx:PF,approxeq:UF,Aring:FF,aring:BF,Ascr:GF,ascr:VF,Assign:zF,ast:HF,asymp:qF,asympeq:YF,Atilde:$F,atilde:WF,Auml:KF,auml:jF,awconint:QF,awint:XF,backcong:ZF,backepsilon:JF,backprime:e3,backsim:t3,backsimeq:n3,Backslash:i3,Barv:s3,barvee:r3,barwed:o3,Barwed:a3,barwedge:l3,bbrk:c3,bbrktbrk:d3,bcong:u3,Bcy:p3,bcy:_3,bdquo:h3,becaus:f3,because:m3,Because:g3,bemptyv:b3,bepsi:E3,bernou:y3,Bernoullis:v3,Beta:S3,beta:T3,beth:x3,between:C3,Bfr:w3,bfr:R3,bigcap:A3,bigcirc:N3,bigcup:O3,bigodot:I3,bigoplus:M3,bigotimes:D3,bigsqcup:k3,bigstar:L3,bigtriangledown:P3,bigtriangleup:U3,biguplus:F3,bigvee:B3,bigwedge:G3,bkarow:V3,blacklozenge:z3,blacksquare:H3,blacktriangle:q3,blacktriangledown:Y3,blacktriangleleft:$3,blacktriangleright:W3,blank:K3,blk12:j3,blk14:Q3,blk34:X3,block:Z3,bne:J3,bnequiv:eB,bNot:tB,bnot:nB,Bopf:iB,bopf:sB,bot:rB,bottom:oB,bowtie:aB,boxbox:lB,boxdl:cB,boxdL:dB,boxDl:uB,boxDL:pB,boxdr:_B,boxdR:hB,boxDr:fB,boxDR:mB,boxh:gB,boxH:bB,boxhd:EB,boxHd:yB,boxhD:vB,boxHD:SB,boxhu:TB,boxHu:xB,boxhU:CB,boxHU:wB,boxminus:RB,boxplus:AB,boxtimes:NB,boxul:OB,boxuL:IB,boxUl:MB,boxUL:DB,boxur:kB,boxuR:LB,boxUr:PB,boxUR:UB,boxv:FB,boxV:BB,boxvh:GB,boxvH:VB,boxVh:zB,boxVH:HB,boxvl:qB,boxvL:YB,boxVl:$B,boxVL:WB,boxvr:KB,boxvR:jB,boxVr:QB,boxVR:XB,bprime:ZB,breve:JB,Breve:e5,brvbar:t5,bscr:n5,Bscr:i5,bsemi:s5,bsim:r5,bsime:o5,bsolb:a5,bsol:l5,bsolhsub:c5,bull:d5,bullet:u5,bump:p5,bumpE:_5,bumpe:h5,Bumpeq:f5,bumpeq:m5,Cacute:g5,cacute:b5,capand:E5,capbrcup:y5,capcap:v5,cap:S5,Cap:T5,capcup:x5,capdot:C5,CapitalDifferentialD:w5,caps:R5,caret:A5,caron:N5,Cayleys:O5,ccaps:I5,Ccaron:M5,ccaron:D5,Ccedil:k5,ccedil:L5,Ccirc:P5,ccirc:U5,Cconint:F5,ccups:B5,ccupssm:G5,Cdot:V5,cdot:z5,cedil:H5,Cedilla:q5,cemptyv:Y5,cent:$5,centerdot:W5,CenterDot:K5,cfr:j5,Cfr:Q5,CHcy:X5,chcy:Z5,check:J5,checkmark:e4,Chi:t4,chi:n4,circ:i4,circeq:s4,circlearrowleft:r4,circlearrowright:o4,circledast:a4,circledcirc:l4,circleddash:c4,CircleDot:d4,circledR:u4,circledS:p4,CircleMinus:_4,CirclePlus:h4,CircleTimes:f4,cir:m4,cirE:g4,cire:b4,cirfnint:E4,cirmid:y4,cirscir:v4,ClockwiseContourIntegral:S4,CloseCurlyDoubleQuote:T4,CloseCurlyQuote:x4,clubs:C4,clubsuit:w4,colon:R4,Colon:A4,Colone:N4,colone:O4,coloneq:I4,comma:M4,commat:D4,comp:k4,compfn:L4,complement:P4,complexes:U4,cong:F4,congdot:B4,Congruent:G4,conint:V4,Conint:z4,ContourIntegral:H4,copf:q4,Copf:Y4,coprod:$4,Coproduct:W4,copy:K4,COPY:j4,copysr:Q4,CounterClockwiseContourIntegral:X4,crarr:Z4,cross:J4,Cross:eG,Cscr:tG,cscr:nG,csub:iG,csube:sG,csup:rG,csupe:oG,ctdot:aG,cudarrl:lG,cudarrr:cG,cuepr:dG,cuesc:uG,cularr:pG,cularrp:_G,cupbrcap:hG,cupcap:fG,CupCap:mG,cup:gG,Cup:bG,cupcup:EG,cupdot:yG,cupor:vG,cups:SG,curarr:TG,curarrm:xG,curlyeqprec:CG,curlyeqsucc:wG,curlyvee:RG,curlywedge:AG,curren:NG,curvearrowleft:OG,curvearrowright:IG,cuvee:MG,cuwed:DG,cwconint:kG,cwint:LG,cylcty:PG,dagger:UG,Dagger:FG,daleth:BG,darr:GG,Darr:VG,dArr:zG,dash:HG,Dashv:qG,dashv:YG,dbkarow:$G,dblac:WG,Dcaron:KG,dcaron:jG,Dcy:QG,dcy:XG,ddagger:ZG,ddarr:JG,DD:e6,dd:t6,DDotrahd:n6,ddotseq:i6,deg:s6,Del:r6,Delta:o6,delta:a6,demptyv:l6,dfisht:c6,Dfr:d6,dfr:u6,dHar:p6,dharl:_6,dharr:h6,DiacriticalAcute:f6,DiacriticalDot:m6,DiacriticalDoubleAcute:g6,DiacriticalGrave:b6,DiacriticalTilde:E6,diam:y6,diamond:v6,Diamond:S6,diamondsuit:T6,diams:x6,die:C6,DifferentialD:w6,digamma:R6,disin:A6,div:N6,divide:O6,divideontimes:I6,divonx:M6,DJcy:D6,djcy:k6,dlcorn:L6,dlcrop:P6,dollar:U6,Dopf:F6,dopf:B6,Dot:G6,dot:V6,DotDot:z6,doteq:H6,doteqdot:q6,DotEqual:Y6,dotminus:$6,dotplus:W6,dotsquare:K6,doublebarwedge:j6,DoubleContourIntegral:Q6,DoubleDot:X6,DoubleDownArrow:Z6,DoubleLeftArrow:J6,DoubleLeftRightArrow:e9,DoubleLeftTee:t9,DoubleLongLeftArrow:n9,DoubleLongLeftRightArrow:i9,DoubleLongRightArrow:s9,DoubleRightArrow:r9,DoubleRightTee:o9,DoubleUpArrow:a9,DoubleUpDownArrow:l9,DoubleVerticalBar:c9,DownArrowBar:d9,downarrow:u9,DownArrow:p9,Downarrow:_9,DownArrowUpArrow:h9,DownBreve:f9,downdownarrows:m9,downharpoonleft:g9,downharpoonright:b9,DownLeftRightVector:E9,DownLeftTeeVector:y9,DownLeftVectorBar:v9,DownLeftVector:S9,DownRightTeeVector:T9,DownRightVectorBar:x9,DownRightVector:C9,DownTeeArrow:w9,DownTee:R9,drbkarow:A9,drcorn:N9,drcrop:O9,Dscr:I9,dscr:M9,DScy:D9,dscy:k9,dsol:L9,Dstrok:P9,dstrok:U9,dtdot:F9,dtri:B9,dtrif:G9,duarr:V9,duhar:z9,dwangle:H9,DZcy:q9,dzcy:Y9,dzigrarr:$9,Eacute:W9,eacute:K9,easter:j9,Ecaron:Q9,ecaron:X9,Ecirc:Z9,ecirc:J9,ecir:e8,ecolon:t8,Ecy:n8,ecy:i8,eDDot:s8,Edot:r8,edot:o8,eDot:a8,ee:l8,efDot:c8,Efr:d8,efr:u8,eg:p8,Egrave:_8,egrave:h8,egs:f8,egsdot:m8,el:g8,Element:b8,elinters:E8,ell:y8,els:v8,elsdot:S8,Emacr:T8,emacr:x8,empty:C8,emptyset:w8,EmptySmallSquare:R8,emptyv:A8,EmptyVerySmallSquare:N8,emsp13:O8,emsp14:I8,emsp:M8,ENG:D8,eng:k8,ensp:L8,Eogon:P8,eogon:U8,Eopf:F8,eopf:B8,epar:G8,eparsl:V8,eplus:z8,epsi:H8,Epsilon:q8,epsilon:Y8,epsiv:$8,eqcirc:W8,eqcolon:K8,eqsim:j8,eqslantgtr:Q8,eqslantless:X8,Equal:Z8,equals:J8,EqualTilde:eV,equest:tV,Equilibrium:nV,equiv:iV,equivDD:sV,eqvparsl:rV,erarr:oV,erDot:aV,escr:lV,Escr:cV,esdot:dV,Esim:uV,esim:pV,Eta:_V,eta:hV,ETH:fV,eth:mV,Euml:gV,euml:bV,euro:EV,excl:yV,exist:vV,Exists:SV,expectation:TV,exponentiale:xV,ExponentialE:CV,fallingdotseq:wV,Fcy:RV,fcy:AV,female:NV,ffilig:OV,fflig:IV,ffllig:MV,Ffr:DV,ffr:kV,filig:LV,FilledSmallSquare:PV,FilledVerySmallSquare:UV,fjlig:FV,flat:BV,fllig:GV,fltns:VV,fnof:zV,Fopf:HV,fopf:qV,forall:YV,ForAll:$V,fork:WV,forkv:KV,Fouriertrf:jV,fpartint:QV,frac12:XV,frac13:ZV,frac14:JV,frac15:ez,frac16:tz,frac18:nz,frac23:iz,frac25:sz,frac34:rz,frac35:oz,frac38:az,frac45:lz,frac56:cz,frac58:dz,frac78:uz,frasl:pz,frown:_z,fscr:hz,Fscr:fz,gacute:mz,Gamma:gz,gamma:bz,Gammad:Ez,gammad:yz,gap:vz,Gbreve:Sz,gbreve:Tz,Gcedil:xz,Gcirc:Cz,gcirc:wz,Gcy:Rz,gcy:Az,Gdot:Nz,gdot:Oz,ge:Iz,gE:Mz,gEl:Dz,gel:kz,geq:Lz,geqq:Pz,geqslant:Uz,gescc:Fz,ges:Bz,gesdot:Gz,gesdoto:Vz,gesdotol:zz,gesl:Hz,gesles:qz,Gfr:Yz,gfr:$z,gg:Wz,Gg:Kz,ggg:jz,gimel:Qz,GJcy:Xz,gjcy:Zz,gla:Jz,gl:eH,glE:tH,glj:nH,gnap:iH,gnapprox:sH,gne:rH,gnE:oH,gneq:aH,gneqq:lH,gnsim:cH,Gopf:dH,gopf:uH,grave:pH,GreaterEqual:_H,GreaterEqualLess:hH,GreaterFullEqual:fH,GreaterGreater:mH,GreaterLess:gH,GreaterSlantEqual:bH,GreaterTilde:EH,Gscr:yH,gscr:vH,gsim:SH,gsime:TH,gsiml:xH,gtcc:CH,gtcir:wH,gt:RH,GT:AH,Gt:NH,gtdot:OH,gtlPar:IH,gtquest:MH,gtrapprox:DH,gtrarr:kH,gtrdot:LH,gtreqless:PH,gtreqqless:UH,gtrless:FH,gtrsim:BH,gvertneqq:GH,gvnE:VH,Hacek:zH,hairsp:HH,half:qH,hamilt:YH,HARDcy:$H,hardcy:WH,harrcir:KH,harr:jH,hArr:QH,harrw:XH,Hat:ZH,hbar:JH,Hcirc:e7,hcirc:t7,hearts:n7,heartsuit:i7,hellip:s7,hercon:r7,hfr:o7,Hfr:a7,HilbertSpace:l7,hksearow:c7,hkswarow:d7,hoarr:u7,homtht:p7,hookleftarrow:_7,hookrightarrow:h7,hopf:f7,Hopf:m7,horbar:g7,HorizontalLine:b7,hscr:E7,Hscr:y7,hslash:v7,Hstrok:S7,hstrok:T7,HumpDownHump:x7,HumpEqual:C7,hybull:w7,hyphen:R7,Iacute:A7,iacute:N7,ic:O7,Icirc:I7,icirc:M7,Icy:D7,icy:k7,Idot:L7,IEcy:P7,iecy:U7,iexcl:F7,iff:B7,ifr:G7,Ifr:V7,Igrave:z7,igrave:H7,ii:q7,iiiint:Y7,iiint:$7,iinfin:W7,iiota:K7,IJlig:j7,ijlig:Q7,Imacr:X7,imacr:Z7,image:J7,ImaginaryI:eq,imagline:tq,imagpart:nq,imath:iq,Im:sq,imof:rq,imped:oq,Implies:aq,incare:lq,in:"∈",infin:cq,infintie:dq,inodot:uq,intcal:pq,int:_q,Int:hq,integers:fq,Integral:mq,intercal:gq,Intersection:bq,intlarhk:Eq,intprod:yq,InvisibleComma:vq,InvisibleTimes:Sq,IOcy:Tq,iocy:xq,Iogon:Cq,iogon:wq,Iopf:Rq,iopf:Aq,Iota:Nq,iota:Oq,iprod:Iq,iquest:Mq,iscr:Dq,Iscr:kq,isin:Lq,isindot:Pq,isinE:Uq,isins:Fq,isinsv:Bq,isinv:Gq,it:Vq,Itilde:zq,itilde:Hq,Iukcy:qq,iukcy:Yq,Iuml:$q,iuml:Wq,Jcirc:Kq,jcirc:jq,Jcy:Qq,jcy:Xq,Jfr:Zq,jfr:Jq,jmath:eY,Jopf:tY,jopf:nY,Jscr:iY,jscr:sY,Jsercy:rY,jsercy:oY,Jukcy:aY,jukcy:lY,Kappa:cY,kappa:dY,kappav:uY,Kcedil:pY,kcedil:_Y,Kcy:hY,kcy:fY,Kfr:mY,kfr:gY,kgreen:bY,KHcy:EY,khcy:yY,KJcy:vY,kjcy:SY,Kopf:TY,kopf:xY,Kscr:CY,kscr:wY,lAarr:RY,Lacute:AY,lacute:NY,laemptyv:OY,lagran:IY,Lambda:MY,lambda:DY,lang:kY,Lang:LY,langd:PY,langle:UY,lap:FY,Laplacetrf:BY,laquo:GY,larrb:VY,larrbfs:zY,larr:HY,Larr:qY,lArr:YY,larrfs:$Y,larrhk:WY,larrlp:KY,larrpl:jY,larrsim:QY,larrtl:XY,latail:ZY,lAtail:JY,lat:e$,late:t$,lates:n$,lbarr:i$,lBarr:s$,lbbrk:r$,lbrace:o$,lbrack:a$,lbrke:l$,lbrksld:c$,lbrkslu:d$,Lcaron:u$,lcaron:p$,Lcedil:_$,lcedil:h$,lceil:f$,lcub:m$,Lcy:g$,lcy:b$,ldca:E$,ldquo:y$,ldquor:v$,ldrdhar:S$,ldrushar:T$,ldsh:x$,le:C$,lE:w$,LeftAngleBracket:R$,LeftArrowBar:A$,leftarrow:N$,LeftArrow:O$,Leftarrow:I$,LeftArrowRightArrow:M$,leftarrowtail:D$,LeftCeiling:k$,LeftDoubleBracket:L$,LeftDownTeeVector:P$,LeftDownVectorBar:U$,LeftDownVector:F$,LeftFloor:B$,leftharpoondown:G$,leftharpoonup:V$,leftleftarrows:z$,leftrightarrow:H$,LeftRightArrow:q$,Leftrightarrow:Y$,leftrightarrows:$$,leftrightharpoons:W$,leftrightsquigarrow:K$,LeftRightVector:j$,LeftTeeArrow:Q$,LeftTee:X$,LeftTeeVector:Z$,leftthreetimes:J$,LeftTriangleBar:eW,LeftTriangle:tW,LeftTriangleEqual:nW,LeftUpDownVector:iW,LeftUpTeeVector:sW,LeftUpVectorBar:rW,LeftUpVector:oW,LeftVectorBar:aW,LeftVector:lW,lEg:cW,leg:dW,leq:uW,leqq:pW,leqslant:_W,lescc:hW,les:fW,lesdot:mW,lesdoto:gW,lesdotor:bW,lesg:EW,lesges:yW,lessapprox:vW,lessdot:SW,lesseqgtr:TW,lesseqqgtr:xW,LessEqualGreater:CW,LessFullEqual:wW,LessGreater:RW,lessgtr:AW,LessLess:NW,lesssim:OW,LessSlantEqual:IW,LessTilde:MW,lfisht:DW,lfloor:kW,Lfr:LW,lfr:PW,lg:UW,lgE:FW,lHar:BW,lhard:GW,lharu:VW,lharul:zW,lhblk:HW,LJcy:qW,ljcy:YW,llarr:$W,ll:WW,Ll:KW,llcorner:jW,Lleftarrow:QW,llhard:XW,lltri:ZW,Lmidot:JW,lmidot:eK,lmoustache:tK,lmoust:nK,lnap:iK,lnapprox:sK,lne:rK,lnE:oK,lneq:aK,lneqq:lK,lnsim:cK,loang:dK,loarr:uK,lobrk:pK,longleftarrow:_K,LongLeftArrow:hK,Longleftarrow:fK,longleftrightarrow:mK,LongLeftRightArrow:gK,Longleftrightarrow:bK,longmapsto:EK,longrightarrow:yK,LongRightArrow:vK,Longrightarrow:SK,looparrowleft:TK,looparrowright:xK,lopar:CK,Lopf:wK,lopf:RK,loplus:AK,lotimes:NK,lowast:OK,lowbar:IK,LowerLeftArrow:MK,LowerRightArrow:DK,loz:kK,lozenge:LK,lozf:PK,lpar:UK,lparlt:FK,lrarr:BK,lrcorner:GK,lrhar:VK,lrhard:zK,lrm:HK,lrtri:qK,lsaquo:YK,lscr:$K,Lscr:WK,lsh:KK,Lsh:jK,lsim:QK,lsime:XK,lsimg:ZK,lsqb:JK,lsquo:ej,lsquor:tj,Lstrok:nj,lstrok:ij,ltcc:sj,ltcir:rj,lt:oj,LT:aj,Lt:lj,ltdot:cj,lthree:dj,ltimes:uj,ltlarr:pj,ltquest:_j,ltri:hj,ltrie:fj,ltrif:mj,ltrPar:gj,lurdshar:bj,luruhar:Ej,lvertneqq:yj,lvnE:vj,macr:Sj,male:Tj,malt:xj,maltese:Cj,Map:"⤅",map:wj,mapsto:Rj,mapstodown:Aj,mapstoleft:Nj,mapstoup:Oj,marker:Ij,mcomma:Mj,Mcy:Dj,mcy:kj,mdash:Lj,mDDot:Pj,measuredangle:Uj,MediumSpace:Fj,Mellintrf:Bj,Mfr:Gj,mfr:Vj,mho:zj,micro:Hj,midast:qj,midcir:Yj,mid:$j,middot:Wj,minusb:Kj,minus:jj,minusd:Qj,minusdu:Xj,MinusPlus:Zj,mlcp:Jj,mldr:eQ,mnplus:tQ,models:nQ,Mopf:iQ,mopf:sQ,mp:rQ,mscr:oQ,Mscr:aQ,mstpos:lQ,Mu:cQ,mu:dQ,multimap:uQ,mumap:pQ,nabla:_Q,Nacute:hQ,nacute:fQ,nang:mQ,nap:gQ,napE:bQ,napid:EQ,napos:yQ,napprox:vQ,natural:SQ,naturals:TQ,natur:xQ,nbsp:CQ,nbump:wQ,nbumpe:RQ,ncap:AQ,Ncaron:NQ,ncaron:OQ,Ncedil:IQ,ncedil:MQ,ncong:DQ,ncongdot:kQ,ncup:LQ,Ncy:PQ,ncy:UQ,ndash:FQ,nearhk:BQ,nearr:GQ,neArr:VQ,nearrow:zQ,ne:HQ,nedot:qQ,NegativeMediumSpace:YQ,NegativeThickSpace:$Q,NegativeThinSpace:WQ,NegativeVeryThinSpace:KQ,nequiv:jQ,nesear:QQ,nesim:XQ,NestedGreaterGreater:ZQ,NestedLessLess:JQ,NewLine:eX,nexist:tX,nexists:nX,Nfr:iX,nfr:sX,ngE:rX,nge:oX,ngeq:aX,ngeqq:lX,ngeqslant:cX,nges:dX,nGg:uX,ngsim:pX,nGt:_X,ngt:hX,ngtr:fX,nGtv:mX,nharr:gX,nhArr:bX,nhpar:EX,ni:yX,nis:vX,nisd:SX,niv:TX,NJcy:xX,njcy:CX,nlarr:wX,nlArr:RX,nldr:AX,nlE:NX,nle:OX,nleftarrow:IX,nLeftarrow:MX,nleftrightarrow:DX,nLeftrightarrow:kX,nleq:LX,nleqq:PX,nleqslant:UX,nles:FX,nless:BX,nLl:GX,nlsim:VX,nLt:zX,nlt:HX,nltri:qX,nltrie:YX,nLtv:$X,nmid:WX,NoBreak:KX,NonBreakingSpace:jX,nopf:QX,Nopf:XX,Not:ZX,not:JX,NotCongruent:eZ,NotCupCap:tZ,NotDoubleVerticalBar:nZ,NotElement:iZ,NotEqual:sZ,NotEqualTilde:rZ,NotExists:oZ,NotGreater:aZ,NotGreaterEqual:lZ,NotGreaterFullEqual:cZ,NotGreaterGreater:dZ,NotGreaterLess:uZ,NotGreaterSlantEqual:pZ,NotGreaterTilde:_Z,NotHumpDownHump:hZ,NotHumpEqual:fZ,notin:mZ,notindot:gZ,notinE:bZ,notinva:EZ,notinvb:yZ,notinvc:vZ,NotLeftTriangleBar:SZ,NotLeftTriangle:TZ,NotLeftTriangleEqual:xZ,NotLess:CZ,NotLessEqual:wZ,NotLessGreater:RZ,NotLessLess:AZ,NotLessSlantEqual:NZ,NotLessTilde:OZ,NotNestedGreaterGreater:IZ,NotNestedLessLess:MZ,notni:DZ,notniva:kZ,notnivb:LZ,notnivc:PZ,NotPrecedes:UZ,NotPrecedesEqual:FZ,NotPrecedesSlantEqual:BZ,NotReverseElement:GZ,NotRightTriangleBar:VZ,NotRightTriangle:zZ,NotRightTriangleEqual:HZ,NotSquareSubset:qZ,NotSquareSubsetEqual:YZ,NotSquareSuperset:$Z,NotSquareSupersetEqual:WZ,NotSubset:KZ,NotSubsetEqual:jZ,NotSucceeds:QZ,NotSucceedsEqual:XZ,NotSucceedsSlantEqual:ZZ,NotSucceedsTilde:JZ,NotSuperset:eJ,NotSupersetEqual:tJ,NotTilde:nJ,NotTildeEqual:iJ,NotTildeFullEqual:sJ,NotTildeTilde:rJ,NotVerticalBar:oJ,nparallel:aJ,npar:lJ,nparsl:cJ,npart:dJ,npolint:uJ,npr:pJ,nprcue:_J,nprec:hJ,npreceq:fJ,npre:mJ,nrarrc:gJ,nrarr:bJ,nrArr:EJ,nrarrw:yJ,nrightarrow:vJ,nRightarrow:SJ,nrtri:TJ,nrtrie:xJ,nsc:CJ,nsccue:wJ,nsce:RJ,Nscr:AJ,nscr:NJ,nshortmid:OJ,nshortparallel:IJ,nsim:MJ,nsime:DJ,nsimeq:kJ,nsmid:LJ,nspar:PJ,nsqsube:UJ,nsqsupe:FJ,nsub:BJ,nsubE:GJ,nsube:VJ,nsubset:zJ,nsubseteq:HJ,nsubseteqq:qJ,nsucc:YJ,nsucceq:$J,nsup:WJ,nsupE:KJ,nsupe:jJ,nsupset:QJ,nsupseteq:XJ,nsupseteqq:ZJ,ntgl:JJ,Ntilde:eee,ntilde:tee,ntlg:nee,ntriangleleft:iee,ntrianglelefteq:see,ntriangleright:ree,ntrianglerighteq:oee,Nu:aee,nu:lee,num:cee,numero:dee,numsp:uee,nvap:pee,nvdash:_ee,nvDash:hee,nVdash:fee,nVDash:mee,nvge:gee,nvgt:bee,nvHarr:Eee,nvinfin:yee,nvlArr:vee,nvle:See,nvlt:Tee,nvltrie:xee,nvrArr:Cee,nvrtrie:wee,nvsim:Ree,nwarhk:Aee,nwarr:Nee,nwArr:Oee,nwarrow:Iee,nwnear:Mee,Oacute:Dee,oacute:kee,oast:Lee,Ocirc:Pee,ocirc:Uee,ocir:Fee,Ocy:Bee,ocy:Gee,odash:Vee,Odblac:zee,odblac:Hee,odiv:qee,odot:Yee,odsold:$ee,OElig:Wee,oelig:Kee,ofcir:jee,Ofr:Qee,ofr:Xee,ogon:Zee,Ograve:Jee,ograve:ete,ogt:tte,ohbar:nte,ohm:ite,oint:ste,olarr:rte,olcir:ote,olcross:ate,oline:lte,olt:cte,Omacr:dte,omacr:ute,Omega:pte,omega:_te,Omicron:hte,omicron:fte,omid:mte,ominus:gte,Oopf:bte,oopf:Ete,opar:yte,OpenCurlyDoubleQuote:vte,OpenCurlyQuote:Ste,operp:Tte,oplus:xte,orarr:Cte,Or:wte,or:Rte,ord:Ate,order:Nte,orderof:Ote,ordf:Ite,ordm:Mte,origof:Dte,oror:kte,orslope:Lte,orv:Pte,oS:Ute,Oscr:Fte,oscr:Bte,Oslash:Gte,oslash:Vte,osol:zte,Otilde:Hte,otilde:qte,otimesas:Yte,Otimes:$te,otimes:Wte,Ouml:Kte,ouml:jte,ovbar:Qte,OverBar:Xte,OverBrace:Zte,OverBracket:Jte,OverParenthesis:ene,para:tne,parallel:nne,par:ine,parsim:sne,parsl:rne,part:one,PartialD:ane,Pcy:lne,pcy:cne,percnt:dne,period:une,permil:pne,perp:_ne,pertenk:hne,Pfr:fne,pfr:mne,Phi:gne,phi:bne,phiv:Ene,phmmat:yne,phone:vne,Pi:Sne,pi:Tne,pitchfork:xne,piv:Cne,planck:wne,planckh:Rne,plankv:Ane,plusacir:Nne,plusb:One,pluscir:Ine,plus:Mne,plusdo:Dne,plusdu:kne,pluse:Lne,PlusMinus:Pne,plusmn:Une,plussim:Fne,plustwo:Bne,pm:Gne,Poincareplane:Vne,pointint:zne,popf:Hne,Popf:qne,pound:Yne,prap:$ne,Pr:Wne,pr:Kne,prcue:jne,precapprox:Qne,prec:Xne,preccurlyeq:Zne,Precedes:Jne,PrecedesEqual:eie,PrecedesSlantEqual:tie,PrecedesTilde:nie,preceq:iie,precnapprox:sie,precneqq:rie,precnsim:oie,pre:aie,prE:lie,precsim:cie,prime:die,Prime:uie,primes:pie,prnap:_ie,prnE:hie,prnsim:fie,prod:mie,Product:gie,profalar:bie,profline:Eie,profsurf:yie,prop:vie,Proportional:Sie,Proportion:Tie,propto:xie,prsim:Cie,prurel:wie,Pscr:Rie,pscr:Aie,Psi:Nie,psi:Oie,puncsp:Iie,Qfr:Mie,qfr:Die,qint:kie,qopf:Lie,Qopf:Pie,qprime:Uie,Qscr:Fie,qscr:Bie,quaternions:Gie,quatint:Vie,quest:zie,questeq:Hie,quot:qie,QUOT:Yie,rAarr:$ie,race:Wie,Racute:Kie,racute:jie,radic:Qie,raemptyv:Xie,rang:Zie,Rang:Jie,rangd:ese,range:tse,rangle:nse,raquo:ise,rarrap:sse,rarrb:rse,rarrbfs:ose,rarrc:ase,rarr:lse,Rarr:cse,rArr:dse,rarrfs:use,rarrhk:pse,rarrlp:_se,rarrpl:hse,rarrsim:fse,Rarrtl:mse,rarrtl:gse,rarrw:bse,ratail:Ese,rAtail:yse,ratio:vse,rationals:Sse,rbarr:Tse,rBarr:xse,RBarr:Cse,rbbrk:wse,rbrace:Rse,rbrack:Ase,rbrke:Nse,rbrksld:Ose,rbrkslu:Ise,Rcaron:Mse,rcaron:Dse,Rcedil:kse,rcedil:Lse,rceil:Pse,rcub:Use,Rcy:Fse,rcy:Bse,rdca:Gse,rdldhar:Vse,rdquo:zse,rdquor:Hse,rdsh:qse,real:Yse,realine:$se,realpart:Wse,reals:Kse,Re:jse,rect:Qse,reg:Xse,REG:Zse,ReverseElement:Jse,ReverseEquilibrium:ere,ReverseUpEquilibrium:tre,rfisht:nre,rfloor:ire,rfr:sre,Rfr:rre,rHar:ore,rhard:are,rharu:lre,rharul:cre,Rho:dre,rho:ure,rhov:pre,RightAngleBracket:_re,RightArrowBar:hre,rightarrow:fre,RightArrow:mre,Rightarrow:gre,RightArrowLeftArrow:bre,rightarrowtail:Ere,RightCeiling:yre,RightDoubleBracket:vre,RightDownTeeVector:Sre,RightDownVectorBar:Tre,RightDownVector:xre,RightFloor:Cre,rightharpoondown:wre,rightharpoonup:Rre,rightleftarrows:Are,rightleftharpoons:Nre,rightrightarrows:Ore,rightsquigarrow:Ire,RightTeeArrow:Mre,RightTee:Dre,RightTeeVector:kre,rightthreetimes:Lre,RightTriangleBar:Pre,RightTriangle:Ure,RightTriangleEqual:Fre,RightUpDownVector:Bre,RightUpTeeVector:Gre,RightUpVectorBar:Vre,RightUpVector:zre,RightVectorBar:Hre,RightVector:qre,ring:Yre,risingdotseq:$re,rlarr:Wre,rlhar:Kre,rlm:jre,rmoustache:Qre,rmoust:Xre,rnmid:Zre,roang:Jre,roarr:eoe,robrk:toe,ropar:noe,ropf:ioe,Ropf:soe,roplus:roe,rotimes:ooe,RoundImplies:aoe,rpar:loe,rpargt:coe,rppolint:doe,rrarr:uoe,Rrightarrow:poe,rsaquo:_oe,rscr:hoe,Rscr:foe,rsh:moe,Rsh:goe,rsqb:boe,rsquo:Eoe,rsquor:yoe,rthree:voe,rtimes:Soe,rtri:Toe,rtrie:xoe,rtrif:Coe,rtriltri:woe,RuleDelayed:Roe,ruluhar:Aoe,rx:Noe,Sacute:Ooe,sacute:Ioe,sbquo:Moe,scap:Doe,Scaron:koe,scaron:Loe,Sc:Poe,sc:Uoe,sccue:Foe,sce:Boe,scE:Goe,Scedil:Voe,scedil:zoe,Scirc:Hoe,scirc:qoe,scnap:Yoe,scnE:$oe,scnsim:Woe,scpolint:Koe,scsim:joe,Scy:Qoe,scy:Xoe,sdotb:Zoe,sdot:Joe,sdote:eae,searhk:tae,searr:nae,seArr:iae,searrow:sae,sect:rae,semi:oae,seswar:aae,setminus:lae,setmn:cae,sext:dae,Sfr:uae,sfr:pae,sfrown:_ae,sharp:hae,SHCHcy:fae,shchcy:mae,SHcy:gae,shcy:bae,ShortDownArrow:Eae,ShortLeftArrow:yae,shortmid:vae,shortparallel:Sae,ShortRightArrow:Tae,ShortUpArrow:xae,shy:Cae,Sigma:wae,sigma:Rae,sigmaf:Aae,sigmav:Nae,sim:Oae,simdot:Iae,sime:Mae,simeq:Dae,simg:kae,simgE:Lae,siml:Pae,simlE:Uae,simne:Fae,simplus:Bae,simrarr:Gae,slarr:Vae,SmallCircle:zae,smallsetminus:Hae,smashp:qae,smeparsl:Yae,smid:$ae,smile:Wae,smt:Kae,smte:jae,smtes:Qae,SOFTcy:Xae,softcy:Zae,solbar:Jae,solb:ele,sol:tle,Sopf:nle,sopf:ile,spades:sle,spadesuit:rle,spar:ole,sqcap:ale,sqcaps:lle,sqcup:cle,sqcups:dle,Sqrt:ule,sqsub:ple,sqsube:_le,sqsubset:hle,sqsubseteq:fle,sqsup:mle,sqsupe:gle,sqsupset:ble,sqsupseteq:Ele,square:yle,Square:vle,SquareIntersection:Sle,SquareSubset:Tle,SquareSubsetEqual:xle,SquareSuperset:Cle,SquareSupersetEqual:wle,SquareUnion:Rle,squarf:Ale,squ:Nle,squf:Ole,srarr:Ile,Sscr:Mle,sscr:Dle,ssetmn:kle,ssmile:Lle,sstarf:Ple,Star:Ule,star:Fle,starf:Ble,straightepsilon:Gle,straightphi:Vle,strns:zle,sub:Hle,Sub:qle,subdot:Yle,subE:$le,sube:Wle,subedot:Kle,submult:jle,subnE:Qle,subne:Xle,subplus:Zle,subrarr:Jle,subset:ece,Subset:tce,subseteq:nce,subseteqq:ice,SubsetEqual:sce,subsetneq:rce,subsetneqq:oce,subsim:ace,subsub:lce,subsup:cce,succapprox:dce,succ:uce,succcurlyeq:pce,Succeeds:_ce,SucceedsEqual:hce,SucceedsSlantEqual:fce,SucceedsTilde:mce,succeq:gce,succnapprox:bce,succneqq:Ece,succnsim:yce,succsim:vce,SuchThat:Sce,sum:Tce,Sum:xce,sung:Cce,sup1:wce,sup2:Rce,sup3:Ace,sup:Nce,Sup:Oce,supdot:Ice,supdsub:Mce,supE:Dce,supe:kce,supedot:Lce,Superset:Pce,SupersetEqual:Uce,suphsol:Fce,suphsub:Bce,suplarr:Gce,supmult:Vce,supnE:zce,supne:Hce,supplus:qce,supset:Yce,Supset:$ce,supseteq:Wce,supseteqq:Kce,supsetneq:jce,supsetneqq:Qce,supsim:Xce,supsub:Zce,supsup:Jce,swarhk:ede,swarr:tde,swArr:nde,swarrow:ide,swnwar:sde,szlig:rde,Tab:ode,target:ade,Tau:lde,tau:cde,tbrk:dde,Tcaron:ude,tcaron:pde,Tcedil:_de,tcedil:hde,Tcy:fde,tcy:mde,tdot:gde,telrec:bde,Tfr:Ede,tfr:yde,there4:vde,therefore:Sde,Therefore:Tde,Theta:xde,theta:Cde,thetasym:wde,thetav:Rde,thickapprox:Ade,thicksim:Nde,ThickSpace:Ode,ThinSpace:Ide,thinsp:Mde,thkap:Dde,thksim:kde,THORN:Lde,thorn:Pde,tilde:Ude,Tilde:Fde,TildeEqual:Bde,TildeFullEqual:Gde,TildeTilde:Vde,timesbar:zde,timesb:Hde,times:qde,timesd:Yde,tint:$de,toea:Wde,topbot:Kde,topcir:jde,top:Qde,Topf:Xde,topf:Zde,topfork:Jde,tosa:eue,tprime:tue,trade:nue,TRADE:iue,triangle:sue,triangledown:rue,triangleleft:oue,trianglelefteq:aue,triangleq:lue,triangleright:cue,trianglerighteq:due,tridot:uue,trie:pue,triminus:_ue,TripleDot:hue,triplus:fue,trisb:mue,tritime:gue,trpezium:bue,Tscr:Eue,tscr:yue,TScy:vue,tscy:Sue,TSHcy:Tue,tshcy:xue,Tstrok:Cue,tstrok:wue,twixt:Rue,twoheadleftarrow:Aue,twoheadrightarrow:Nue,Uacute:Oue,uacute:Iue,uarr:Mue,Uarr:Due,uArr:kue,Uarrocir:Lue,Ubrcy:Pue,ubrcy:Uue,Ubreve:Fue,ubreve:Bue,Ucirc:Gue,ucirc:Vue,Ucy:zue,ucy:Hue,udarr:que,Udblac:Yue,udblac:$ue,udhar:Wue,ufisht:Kue,Ufr:jue,ufr:Que,Ugrave:Xue,ugrave:Zue,uHar:Jue,uharl:epe,uharr:tpe,uhblk:npe,ulcorn:ipe,ulcorner:spe,ulcrop:rpe,ultri:ope,Umacr:ape,umacr:lpe,uml:cpe,UnderBar:dpe,UnderBrace:upe,UnderBracket:ppe,UnderParenthesis:_pe,Union:hpe,UnionPlus:fpe,Uogon:mpe,uogon:gpe,Uopf:bpe,uopf:Epe,UpArrowBar:ype,uparrow:vpe,UpArrow:Spe,Uparrow:Tpe,UpArrowDownArrow:xpe,updownarrow:Cpe,UpDownArrow:wpe,Updownarrow:Rpe,UpEquilibrium:Ape,upharpoonleft:Npe,upharpoonright:Ope,uplus:Ipe,UpperLeftArrow:Mpe,UpperRightArrow:Dpe,upsi:kpe,Upsi:Lpe,upsih:Ppe,Upsilon:Upe,upsilon:Fpe,UpTeeArrow:Bpe,UpTee:Gpe,upuparrows:Vpe,urcorn:zpe,urcorner:Hpe,urcrop:qpe,Uring:Ype,uring:$pe,urtri:Wpe,Uscr:Kpe,uscr:jpe,utdot:Qpe,Utilde:Xpe,utilde:Zpe,utri:Jpe,utrif:e_e,uuarr:t_e,Uuml:n_e,uuml:i_e,uwangle:s_e,vangrt:r_e,varepsilon:o_e,varkappa:a_e,varnothing:l_e,varphi:c_e,varpi:d_e,varpropto:u_e,varr:p_e,vArr:__e,varrho:h_e,varsigma:f_e,varsubsetneq:m_e,varsubsetneqq:g_e,varsupsetneq:b_e,varsupsetneqq:E_e,vartheta:y_e,vartriangleleft:v_e,vartriangleright:S_e,vBar:T_e,Vbar:x_e,vBarv:C_e,Vcy:w_e,vcy:R_e,vdash:A_e,vDash:N_e,Vdash:O_e,VDash:I_e,Vdashl:M_e,veebar:D_e,vee:k_e,Vee:L_e,veeeq:P_e,vellip:U_e,verbar:F_e,Verbar:B_e,vert:G_e,Vert:V_e,VerticalBar:z_e,VerticalLine:H_e,VerticalSeparator:q_e,VerticalTilde:Y_e,VeryThinSpace:$_e,Vfr:W_e,vfr:K_e,vltri:j_e,vnsub:Q_e,vnsup:X_e,Vopf:Z_e,vopf:J_e,vprop:ehe,vrtri:the,Vscr:nhe,vscr:ihe,vsubnE:she,vsubne:rhe,vsupnE:ohe,vsupne:ahe,Vvdash:lhe,vzigzag:che,Wcirc:dhe,wcirc:uhe,wedbar:phe,wedge:_he,Wedge:hhe,wedgeq:fhe,weierp:mhe,Wfr:ghe,wfr:bhe,Wopf:Ehe,wopf:yhe,wp:vhe,wr:She,wreath:The,Wscr:xhe,wscr:Che,xcap:whe,xcirc:Rhe,xcup:Ahe,xdtri:Nhe,Xfr:Ohe,xfr:Ihe,xharr:Mhe,xhArr:Dhe,Xi:khe,xi:Lhe,xlarr:Phe,xlArr:Uhe,xmap:Fhe,xnis:Bhe,xodot:Ghe,Xopf:Vhe,xopf:zhe,xoplus:Hhe,xotime:qhe,xrarr:Yhe,xrArr:$he,Xscr:Whe,xscr:Khe,xsqcup:jhe,xuplus:Qhe,xutri:Xhe,xvee:Zhe,xwedge:Jhe,Yacute:efe,yacute:tfe,YAcy:nfe,yacy:ife,Ycirc:sfe,ycirc:rfe,Ycy:ofe,ycy:afe,yen:lfe,Yfr:cfe,yfr:dfe,YIcy:ufe,yicy:pfe,Yopf:_fe,yopf:hfe,Yscr:ffe,yscr:mfe,YUcy:gfe,yucy:bfe,yuml:Efe,Yuml:yfe,Zacute:vfe,zacute:Sfe,Zcaron:Tfe,zcaron:xfe,Zcy:Cfe,zcy:wfe,Zdot:Rfe,zdot:Afe,zeetrf:Nfe,ZeroWidthSpace:Ofe,Zeta:Ife,zeta:Mfe,zfr:Dfe,Zfr:kfe,ZHcy:Lfe,zhcy:Pfe,zigrarr:Ufe,zopf:Ffe,Zopf:Bfe,Zscr:Gfe,zscr:Vfe,zwj:zfe,zwnj:Hfe};var WA=qfe,iE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,qa={},Uv={};function Yfe(n){var e,t,i=Uv[n];if(i)return i;for(i=Uv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?i.push(t):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(t=!0),a=Yfe(e),i=0,s=n.length;i=55296&&r<=57343){if(r>=55296&&r<=56319&&i+1=56320&&o<=57343)){l+=encodeURIComponent(n[i]+n[i+1]),i++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(n[i])}return l}$u.defaultChars=";/?:@&=+$,-_.!~*'()#";$u.componentChars="-_.!~*'()";var $fe=$u,Fv={};function Wfe(n){var e,t,i=Fv[n];if(i)return i;for(i=Fv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),i.push(t);for(e=0;e=55296&&d<=57343?h+="���":h+=String.fromCharCode(d),s+=6;continue}if((o&248)===240&&s+91114111?h+="����":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}h+="�"}return h})}Wu.defaultChars=";/?:@&=+$,#";Wu.componentChars="";var Kfe=Wu,jfe=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function Jd(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Qfe=/^([a-z0-9.+-]+:)/i,Xfe=/:[0-9]*$/,Zfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Jfe=["<",">",'"',"`"," ","\r",` +*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function u(g,y){for(var v=y.length,S=0;S1?arguments[1]:void 0,y=g!==void 0,v=0,S=h(m),C,T,O,k;if(y&&(g=r(g,b>2?arguments[2]:void 0,2)),S!=null&&!(E==Array&&l(S)))for(k=S.call(m),T=new E;!(O=k.next()).done;v++)d(T,v,y?a(k,g,[O.value,v],!0):O.value);else for(C=u(m.length),T=new E(C);C>v;v++)d(T,v,y?g(m[v],v):m[v]);return T.length=v,T}},"./node_modules/core-js/internals/array-includes.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(l){return function(u,d,h){var f=r(u),_=o(f.length),m=a(h,_),E;if(l&&d!=d){for(;_>m;)if(E=f[m++],E!=E)return!0}else for(;_>m;m++)if((l||m in f)&&f[m]===d)return l||m||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,i,s){var r=s("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,l){if(r(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(u){return o.call(a,u)};case 2:return function(u,d){return o.call(a,u,d)};case 3:return function(u,d,h){return o.call(a,u,d,h)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,i,s){var r=s("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,l,u){try{return u?a(r(l)[0],l[1]):a(l)}catch(h){var d=o.return;throw d!==void 0&&r(d.call(o)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var l=0,u={next:function(){return{done:!!l++}},return:function(){a=!0}};u[o]=function(){return this},Array.from(u,function(){throw 2})}catch{}t.exports=function(d,h){if(!h&&!a)return!1;var f=!1;try{var _={};_[o]=function(){return{next:function(){return{done:f=!0}}}},d(_)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(t,i){var s={}.toString;t.exports=function(r){return s.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,i,s){var r=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=r(function(){return arguments}())=="Arguments",u=function(d,h){try{return d[h]}catch{}};t.exports=function(d){var h,f,_;return d===void 0?"Undefined":d===null?"Null":typeof(f=u(h=Object(d),a))=="string"?f:l?r(h):(_=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":_}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=s("./node_modules/core-js/internals/object-define-property.js");t.exports=function(u,d){for(var h=o(d),f=l.f,_=a.f,m=0;m",C="java"+v+":",T;for(b.style.display="none",u.appendChild(b),b.src=String(C),T=b.contentWindow.document,T.open(),T.write(y+v+S+"document.F=Object"+y+"/"+v+S),T.close(),E=T.F;g--;)delete E[_][a[g]];return E()};t.exports=Object.create||function(g,y){var v;return g!==null?(m[_]=r(g),v=new m,m[_]=null,v[f]=g):v=E(),y===void 0?v:o(v,y)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-keys.js");t.exports=r?Object.defineProperties:function(d,h){a(d);for(var f=l(h),_=f.length,m=0,E;_>m;)o.f(d,E=f[m++],h[E]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/to-primitive.js"),u=Object.defineProperty;i.f=r?u:function(h,f,_){if(a(h),f=l(f,!0),a(_),o)try{return u(h,f,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(h[f]=_.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),u=s("./node_modules/core-js/internals/to-primitive.js"),d=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;i.f=r?f:function(m,E){if(m=l(m),E=u(E,!0),h)try{return f(m,E)}catch{}if(d(m,E))return a(!o.f.call(m,E),m[E])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(u){return r(u,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),l=s("./node_modules/core-js/internals/correct-prototype-getter.js"),u=a("IE_PROTO"),d=Object.prototype;t.exports=l?Object.getPrototypeOf:function(h){return h=o(h),r(h,u)?h[u]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),u=a(!1);t.exports=function(d,h){var f=o(d),_=0,m=[],E;for(E in f)!r(l,E)&&r(f,E)&&m.push(E);for(;h.length>_;)r(f,E=h[_++])&&(~u(m,E)||m.push(E));return m}},"./node_modules/core-js/internals/object-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(l){return r(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,i,s){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);i.f=a?function(u){var d=o(this,u);return!!d&&d.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(d,h){return r(d,h),o?l.call(d,h):d.__proto__=h,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=s("./node_modules/core-js/internals/an-object.js"),u=r.Reflect;t.exports=u&&u.ownKeys||function(h){var f=o.f(l(h)),_=a.f;return _?f.concat(_(h)):f}},"./node_modules/core-js/internals/path.js":function(t,i,s){t.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/has.js"),u=s("./node_modules/core-js/internals/set-global.js"),d=s("./node_modules/core-js/internals/function-to-string.js"),h=s("./node_modules/core-js/internals/internal-state.js"),f=h.get,_=h.enforce,m=String(d).split("toString");o("inspectSource",function(E){return d.call(E)}),(t.exports=function(E,b,g,y){var v=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,C=y?!!y.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!l(g,"name")&&a(g,"name",b),_(g).source=m.join(typeof b=="string"?b:"")),E===r){S?E[b]=g:u(b,g);return}else v?!C&&E[b]&&(S=!0):delete E[b];S?E[b]=g:a(E,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,i){t.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");t.exports=function(a,l){try{o(r,a,l)}catch{r[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");t.exports=function(u,d,h){u&&!o(u=h?u:u.prototype,l)&&r(u,l,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(t,i,s){var r=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=r("keys");t.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",u=r[l]||o(l,{});(t.exports=function(d,h){return u[d]||(u[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,l,u){var d=String(o(a)),h=r(l),f=d.length,_,m;return h<0||h>=f?u?"":void 0:(_=d.charCodeAt(h),_<55296||_>56319||h+1===f||(m=d.charCodeAt(h+1))<56320||m>57343?u?d.charAt(h):_:u?d.slice(h,h+2):(_-55296<<10)+(m-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(l,u){var d=r(l);return d<0?o(d+u,0):a(d,u)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,i){var s=Math.ceil,r=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?r:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!r(o))return o;var l,u;if(a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o))||typeof(l=o.valueOf)=="function"&&!r(u=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o)))return u;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,i){var s=0,r=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");t.exports=function(a,l){if(o(a),!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),l=s("./node_modules/core-js/internals/native-symbol.js"),u=r.Symbol,d=o("wks");t.exports=function(h){return d[h]||(d[h]=l&&u[h]||(l?u:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(t,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(u){Array.from(u)});r({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,i,s){var r=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=o.set,d=o.getterFor(l);a(String,"String",function(h){u(this,{type:l,string:String(h),index:0})},function(){var f=d(this),_=f.string,m=f.index,E;return m>=_.length?{value:void 0,done:!0}:(E=r(_,m,!0),f.index+=E.length,{value:E,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,i){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}t.exports=s},"./src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(E){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];f(this,E),this.name=b,this.contents=g,this.tags=y,this.attrs=r({},d.default,{class:"feather feather-"+b})}return o(E,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=r({},this.attrs,g,{class:(0,l.default)(this.attrs.class,g.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),E}();function m(E){return Object.keys(E).map(function(b){return b+'="'+E[b]+'"'}).join(" ")}i.default=_},"./src/icons.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icon.js"),o=h(r),a=s("./dist/icons.json"),l=h(a),u=s("./src/tags.json"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}i.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],d.default[f])}).reduce(function(f,_){return f[_.name]=_,f},{})},"./src/index.js":function(t,i,s){var r=s("./src/icons.js"),o=h(r),a=s("./src/to-svg.js"),l=h(a),u=s("./src/replace.js"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}t.exports={icons:o.default,toSvg:l.default,replace:d.default}},"./src/replace.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(m){for(var E=1;E0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var E=document.querySelectorAll("[data-feather]");Array.from(E).forEach(function(b){return f(b,m)})}function f(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_(m),g=b["data-feather"];delete b["data-feather"];var y=u.default[g].toSvg(r({},E,b,{class:(0,a.default)(E.class,b.class)})),v=new DOMParser().parseFromString(y,"image/svg+xml"),S=v.querySelector("svg");m.parentNode.replaceChild(S,m)}function _(m){return Array.from(m.attributes).reduce(function(E,b){return E[b.name]=b.value,E},{})}i.default=h},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icons.js"),o=a(r);function a(u){return u&&u.__esModule?u:{default:u}}function l(u){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."),!u)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[u])throw new Error("No icon matching '"+u+"'. See the complete list of icons at https://feathericons.com");return o.default[u].toSvg(d)}i.default=l},0:function(t,i,s){s("./node_modules/core-js/es/array/from.js"),t.exports=s("./src/index.js")}})})})($A);var jP=$A.exports;const ze=Ar(jP);const bt=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},QP={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),Ge(()=>{ze.replace()})},showToast(n,e=3,t=!0){const i=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:i,log_type:t,message:n,show:!0};this.toastArr.push(s),Ge(()=>{ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=i)},e*1e3)}},watch:{}},Ni=n=>(yo("data-v-46f379e5"),n=n(),vo(),n),XP={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},ZP={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},JP={class:"flex flex-row flex-grow items-center h-auto"},eU={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},tU=Ni(()=>c("i",{"data-feather":"x"},null,-1)),nU=Ni(()=>c("span",{class:"sr-only"},"Cross icon",-1)),iU=[tU,nU],sU={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},rU=Ni(()=>c("i",{"data-feather":"check"},null,-1)),oU=Ni(()=>c("span",{class:"sr-only"},"Check icon",-1)),aU=[rU,oU],lU={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},cU=Ni(()=>c("i",{"data-feather":"info"},null,-1)),dU=Ni(()=>c("span",{class:"sr-only"},null,-1)),uU=[cU,dU],pU={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},_U=Ni(()=>c("i",{"data-feather":"alert-triangle"},null,-1)),hU=Ni(()=>c("span",{class:"sr-only"},null,-1)),fU=[_U,hU],mU=["title"],gU={class:"flex"},bU=["onClick"],EU=Ni(()=>c("span",{class:"sr-only"},"Copy message",-1)),yU=Ni(()=>c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),vU=[EU,yU],SU=["onClick"],TU=Ni(()=>c("span",{class:"sr-only"},"Close",-1)),xU=Ni(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),CU=[TU,xU];function wU(n,e,t,i,s,r){return w(),A("div",XP,[Te(os,{name:"toastItem",tag:"div"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.toastArr,o=>(w(),A("div",{key:o.id,class:"relative"},[c("div",ZP,[c("div",JP,[o.log_type==0?(w(),A("div",eU,iU)):V("",!0),o.log_type==1?(w(),A("div",sU,aU)):V("",!0),o.log_type==2?(w(),A("div",lU,uU)):V("",!0),o.log_type==3?(w(),A("div",pU,fU)):V("",!0),c("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},he(o.message),9,mU)]),c("div",gU,[c("button",{type:"button",onClick:be(a=>r.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},vU,8,bU),c("button",{type:"button",onClick:a=>r.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},CU,8,SU)])])]))),128))]),_:1})])}const hc=bt(QP,[["render",wU],["__scopeId","data-v-46f379e5"]]);var Bt={};const RU="Á",AU="á",NU="Ă",OU="ă",IU="∾",MU="∿",DU="∾̳",kU="Â",LU="â",PU="´",UU="А",FU="а",BU="Æ",GU="æ",VU="⁡",zU="𝔄",HU="𝔞",qU="À",YU="à",$U="ℵ",WU="ℵ",KU="Α",jU="α",QU="Ā",XU="ā",ZU="⨿",JU="&",eF="&",tF="⩕",nF="⩓",iF="∧",sF="⩜",rF="⩘",oF="⩚",aF="∠",lF="⦤",cF="∠",dF="⦨",uF="⦩",pF="⦪",_F="⦫",hF="⦬",fF="⦭",mF="⦮",gF="⦯",bF="∡",EF="∟",yF="⊾",vF="⦝",SF="∢",TF="Å",xF="⍼",CF="Ą",wF="ą",RF="𝔸",AF="𝕒",NF="⩯",OF="≈",IF="⩰",MF="≊",DF="≋",kF="'",LF="⁡",PF="≈",UF="≊",FF="Å",BF="å",GF="𝒜",VF="𝒶",zF="≔",HF="*",qF="≈",YF="≍",$F="Ã",WF="ã",KF="Ä",jF="ä",QF="∳",XF="⨑",ZF="≌",JF="϶",e3="‵",t3="∽",n3="⋍",i3="∖",s3="⫧",r3="⊽",o3="⌅",a3="⌆",l3="⌅",c3="⎵",d3="⎶",u3="≌",p3="Б",_3="б",h3="„",f3="∵",m3="∵",g3="∵",b3="⦰",E3="϶",y3="ℬ",v3="ℬ",S3="Β",T3="β",x3="ℶ",C3="≬",w3="𝔅",R3="𝔟",A3="⋂",N3="◯",O3="⋃",I3="⨀",M3="⨁",D3="⨂",k3="⨆",L3="★",P3="▽",U3="△",F3="⨄",B3="⋁",G3="⋀",V3="⤍",z3="⧫",H3="▪",q3="▴",Y3="▾",$3="◂",W3="▸",K3="␣",j3="▒",Q3="░",X3="▓",Z3="█",J3="=⃥",eB="≡⃥",tB="⫭",nB="⌐",iB="𝔹",sB="𝕓",rB="⊥",oB="⊥",aB="⋈",lB="⧉",cB="┐",dB="╕",uB="╖",pB="╗",_B="┌",hB="╒",fB="╓",mB="╔",gB="─",bB="═",EB="┬",yB="╤",vB="╥",SB="╦",TB="┴",xB="╧",CB="╨",wB="╩",RB="⊟",AB="⊞",NB="⊠",OB="┘",IB="╛",MB="╜",DB="╝",kB="└",LB="╘",PB="╙",UB="╚",FB="│",BB="║",GB="┼",VB="╪",zB="╫",HB="╬",qB="┤",YB="╡",$B="╢",WB="╣",KB="├",jB="╞",QB="╟",XB="╠",ZB="‵",JB="˘",e4="˘",t4="¦",n4="𝒷",i4="ℬ",s4="⁏",r4="∽",o4="⋍",a4="⧅",l4="\\",c4="⟈",d4="•",u4="•",p4="≎",_4="⪮",h4="≏",f4="≎",m4="≏",g4="Ć",b4="ć",E4="⩄",y4="⩉",v4="⩋",S4="∩",T4="⋒",x4="⩇",C4="⩀",w4="ⅅ",R4="∩︀",A4="⁁",N4="ˇ",O4="ℭ",I4="⩍",M4="Č",D4="č",k4="Ç",L4="ç",P4="Ĉ",U4="ĉ",F4="∰",B4="⩌",G4="⩐",V4="Ċ",z4="ċ",H4="¸",q4="¸",Y4="⦲",$4="¢",W4="·",K4="·",j4="𝔠",Q4="ℭ",X4="Ч",Z4="ч",J4="✓",e5="✓",t5="Χ",n5="χ",i5="ˆ",s5="≗",r5="↺",o5="↻",a5="⊛",l5="⊚",c5="⊝",d5="⊙",u5="®",p5="Ⓢ",_5="⊖",h5="⊕",f5="⊗",m5="○",g5="⧃",b5="≗",E5="⨐",y5="⫯",v5="⧂",S5="∲",T5="”",x5="’",C5="♣",w5="♣",R5=":",A5="∷",N5="⩴",O5="≔",I5="≔",M5=",",D5="@",k5="∁",L5="∘",P5="∁",U5="ℂ",F5="≅",B5="⩭",G5="≡",V5="∮",z5="∯",H5="∮",q5="𝕔",Y5="ℂ",$5="∐",W5="∐",K5="©",j5="©",Q5="℗",X5="∳",Z5="↵",J5="✗",eG="⨯",tG="𝒞",nG="𝒸",iG="⫏",sG="⫑",rG="⫐",oG="⫒",aG="⋯",lG="⤸",cG="⤵",dG="⋞",uG="⋟",pG="↶",_G="⤽",hG="⩈",fG="⩆",mG="≍",gG="∪",bG="⋓",EG="⩊",yG="⊍",vG="⩅",SG="∪︀",TG="↷",xG="⤼",CG="⋞",wG="⋟",RG="⋎",AG="⋏",NG="¤",OG="↶",IG="↷",MG="⋎",DG="⋏",kG="∲",LG="∱",PG="⌭",UG="†",FG="‡",BG="ℸ",GG="↓",VG="↡",zG="⇓",HG="‐",qG="⫤",YG="⊣",$G="⤏",WG="˝",KG="Ď",jG="ď",QG="Д",XG="д",ZG="‡",JG="⇊",e6="ⅅ",t6="ⅆ",n6="⤑",i6="⩷",s6="°",r6="∇",o6="Δ",a6="δ",l6="⦱",c6="⥿",d6="𝔇",u6="𝔡",p6="⥥",_6="⇃",h6="⇂",f6="´",m6="˙",g6="˝",b6="`",E6="˜",y6="⋄",v6="⋄",S6="⋄",T6="♦",x6="♦",C6="¨",w6="ⅆ",R6="ϝ",A6="⋲",N6="÷",O6="÷",I6="⋇",M6="⋇",D6="Ђ",k6="ђ",L6="⌞",P6="⌍",U6="$",F6="𝔻",B6="𝕕",G6="¨",V6="˙",z6="⃜",H6="≐",q6="≑",Y6="≐",$6="∸",W6="∔",K6="⊡",j6="⌆",Q6="∯",X6="¨",Z6="⇓",J6="⇐",e9="⇔",t9="⫤",n9="⟸",i9="⟺",s9="⟹",r9="⇒",o9="⊨",a9="⇑",l9="⇕",c9="∥",d9="⤓",u9="↓",p9="↓",_9="⇓",h9="⇵",f9="̑",m9="⇊",g9="⇃",b9="⇂",E9="⥐",y9="⥞",v9="⥖",S9="↽",T9="⥟",x9="⥗",C9="⇁",w9="↧",R9="⊤",A9="⤐",N9="⌟",O9="⌌",I9="𝒟",M9="𝒹",D9="Ѕ",k9="ѕ",L9="⧶",P9="Đ",U9="đ",F9="⋱",B9="▿",G9="▾",V9="⇵",z9="⥯",H9="⦦",q9="Џ",Y9="џ",$9="⟿",W9="É",K9="é",j9="⩮",Q9="Ě",X9="ě",Z9="Ê",J9="ê",e8="≖",t8="≕",n8="Э",i8="э",s8="⩷",r8="Ė",o8="ė",a8="≑",l8="ⅇ",c8="≒",d8="𝔈",u8="𝔢",p8="⪚",_8="È",h8="è",f8="⪖",m8="⪘",g8="⪙",b8="∈",E8="⏧",y8="ℓ",v8="⪕",S8="⪗",T8="Ē",x8="ē",C8="∅",w8="∅",R8="◻",A8="∅",N8="▫",O8=" ",I8=" ",M8=" ",D8="Ŋ",k8="ŋ",L8=" ",P8="Ę",U8="ę",F8="𝔼",B8="𝕖",G8="⋕",V8="⧣",z8="⩱",H8="ε",q8="Ε",Y8="ε",$8="ϵ",W8="≖",K8="≕",j8="≂",Q8="⪖",X8="⪕",Z8="⩵",J8="=",eV="≂",tV="≟",nV="⇌",iV="≡",sV="⩸",rV="⧥",oV="⥱",aV="≓",lV="ℯ",cV="ℰ",dV="≐",uV="⩳",pV="≂",_V="Η",hV="η",fV="Ð",mV="ð",gV="Ë",bV="ë",EV="€",yV="!",vV="∃",SV="∃",TV="ℰ",xV="ⅇ",CV="ⅇ",wV="≒",RV="Ф",AV="ф",NV="♀",OV="ffi",IV="ff",MV="ffl",DV="𝔉",kV="𝔣",LV="fi",PV="◼",UV="▪",FV="fj",BV="♭",GV="fl",VV="▱",zV="ƒ",HV="𝔽",qV="𝕗",YV="∀",$V="∀",WV="⋔",KV="⫙",jV="ℱ",QV="⨍",XV="½",ZV="⅓",JV="¼",ez="⅕",tz="⅙",nz="⅛",iz="⅔",sz="⅖",rz="¾",oz="⅗",az="⅜",lz="⅘",cz="⅚",dz="⅝",uz="⅞",pz="⁄",_z="⌢",hz="𝒻",fz="ℱ",mz="ǵ",gz="Γ",bz="γ",Ez="Ϝ",yz="ϝ",vz="⪆",Sz="Ğ",Tz="ğ",xz="Ģ",Cz="Ĝ",wz="ĝ",Rz="Г",Az="г",Nz="Ġ",Oz="ġ",Iz="≥",Mz="≧",Dz="⪌",kz="⋛",Lz="≥",Pz="≧",Uz="⩾",Fz="⪩",Bz="⩾",Gz="⪀",Vz="⪂",zz="⪄",Hz="⋛︀",qz="⪔",Yz="𝔊",$z="𝔤",Wz="≫",Kz="⋙",jz="⋙",Qz="ℷ",Xz="Ѓ",Zz="ѓ",Jz="⪥",eH="≷",tH="⪒",nH="⪤",iH="⪊",sH="⪊",rH="⪈",oH="≩",aH="⪈",lH="≩",cH="⋧",dH="𝔾",uH="𝕘",pH="`",_H="≥",hH="⋛",fH="≧",mH="⪢",gH="≷",bH="⩾",EH="≳",yH="𝒢",vH="ℊ",SH="≳",TH="⪎",xH="⪐",CH="⪧",wH="⩺",RH=">",AH=">",NH="≫",OH="⋗",IH="⦕",MH="⩼",DH="⪆",kH="⥸",LH="⋗",PH="⋛",UH="⪌",FH="≷",BH="≳",GH="≩︀",VH="≩︀",zH="ˇ",HH=" ",qH="½",YH="ℋ",$H="Ъ",WH="ъ",KH="⥈",jH="↔",QH="⇔",XH="↭",ZH="^",JH="ℏ",e7="Ĥ",t7="ĥ",n7="♥",i7="♥",s7="…",r7="⊹",o7="𝔥",a7="ℌ",l7="ℋ",c7="⤥",d7="⤦",u7="⇿",p7="∻",_7="↩",h7="↪",f7="𝕙",m7="ℍ",g7="―",b7="─",E7="𝒽",y7="ℋ",v7="ℏ",S7="Ħ",T7="ħ",x7="≎",C7="≏",w7="⁃",R7="‐",A7="Í",N7="í",O7="⁣",I7="Î",M7="î",D7="И",k7="и",L7="İ",P7="Е",U7="е",F7="¡",B7="⇔",G7="𝔦",V7="ℑ",z7="Ì",H7="ì",q7="ⅈ",Y7="⨌",$7="∭",W7="⧜",K7="℩",j7="IJ",Q7="ij",X7="Ī",Z7="ī",J7="ℑ",eq="ⅈ",tq="ℐ",nq="ℑ",iq="ı",sq="ℑ",rq="⊷",oq="Ƶ",aq="⇒",lq="℅",cq="∞",dq="⧝",uq="ı",pq="⊺",_q="∫",hq="∬",fq="ℤ",mq="∫",gq="⊺",bq="⋂",Eq="⨗",yq="⨼",vq="⁣",Sq="⁢",Tq="Ё",xq="ё",Cq="Į",wq="į",Rq="𝕀",Aq="𝕚",Nq="Ι",Oq="ι",Iq="⨼",Mq="¿",Dq="𝒾",kq="ℐ",Lq="∈",Pq="⋵",Uq="⋹",Fq="⋴",Bq="⋳",Gq="∈",Vq="⁢",zq="Ĩ",Hq="ĩ",qq="І",Yq="і",$q="Ï",Wq="ï",Kq="Ĵ",jq="ĵ",Qq="Й",Xq="й",Zq="𝔍",Jq="𝔧",eY="ȷ",tY="𝕁",nY="𝕛",iY="𝒥",sY="𝒿",rY="Ј",oY="ј",aY="Є",lY="є",cY="Κ",dY="κ",uY="ϰ",pY="Ķ",_Y="ķ",hY="К",fY="к",mY="𝔎",gY="𝔨",bY="ĸ",EY="Х",yY="х",vY="Ќ",SY="ќ",TY="𝕂",xY="𝕜",CY="𝒦",wY="𝓀",RY="⇚",AY="Ĺ",NY="ĺ",OY="⦴",IY="ℒ",MY="Λ",DY="λ",kY="⟨",LY="⟪",PY="⦑",UY="⟨",FY="⪅",BY="ℒ",GY="«",VY="⇤",zY="⤟",HY="←",qY="↞",YY="⇐",$Y="⤝",WY="↩",KY="↫",jY="⤹",QY="⥳",XY="↢",ZY="⤙",JY="⤛",e$="⪫",t$="⪭",n$="⪭︀",i$="⤌",s$="⤎",r$="❲",o$="{",a$="[",l$="⦋",c$="⦏",d$="⦍",u$="Ľ",p$="ľ",_$="Ļ",h$="ļ",f$="⌈",m$="{",g$="Л",b$="л",E$="⤶",y$="“",v$="„",S$="⥧",T$="⥋",x$="↲",C$="≤",w$="≦",R$="⟨",A$="⇤",N$="←",O$="←",I$="⇐",M$="⇆",D$="↢",k$="⌈",L$="⟦",P$="⥡",U$="⥙",F$="⇃",B$="⌊",G$="↽",V$="↼",z$="⇇",H$="↔",q$="↔",Y$="⇔",$$="⇆",W$="⇋",K$="↭",j$="⥎",Q$="↤",X$="⊣",Z$="⥚",J$="⋋",eW="⧏",tW="⊲",nW="⊴",iW="⥑",sW="⥠",rW="⥘",oW="↿",aW="⥒",lW="↼",cW="⪋",dW="⋚",uW="≤",pW="≦",_W="⩽",hW="⪨",fW="⩽",mW="⩿",gW="⪁",bW="⪃",EW="⋚︀",yW="⪓",vW="⪅",SW="⋖",TW="⋚",xW="⪋",CW="⋚",wW="≦",RW="≶",AW="≶",NW="⪡",OW="≲",IW="⩽",MW="≲",DW="⥼",kW="⌊",LW="𝔏",PW="𝔩",UW="≶",FW="⪑",BW="⥢",GW="↽",VW="↼",zW="⥪",HW="▄",qW="Љ",YW="љ",$W="⇇",WW="≪",KW="⋘",jW="⌞",QW="⇚",XW="⥫",ZW="◺",JW="Ŀ",eK="ŀ",tK="⎰",nK="⎰",iK="⪉",sK="⪉",rK="⪇",oK="≨",aK="⪇",lK="≨",cK="⋦",dK="⟬",uK="⇽",pK="⟦",_K="⟵",hK="⟵",fK="⟸",mK="⟷",gK="⟷",bK="⟺",EK="⟼",yK="⟶",vK="⟶",SK="⟹",TK="↫",xK="↬",CK="⦅",wK="𝕃",RK="𝕝",AK="⨭",NK="⨴",OK="∗",IK="_",MK="↙",DK="↘",kK="◊",LK="◊",PK="⧫",UK="(",FK="⦓",BK="⇆",GK="⌟",VK="⇋",zK="⥭",HK="‎",qK="⊿",YK="‹",$K="𝓁",WK="ℒ",KK="↰",jK="↰",QK="≲",XK="⪍",ZK="⪏",JK="[",ej="‘",tj="‚",nj="Ł",ij="ł",sj="⪦",rj="⩹",oj="<",aj="<",lj="≪",cj="⋖",dj="⋋",uj="⋉",pj="⥶",_j="⩻",hj="◃",fj="⊴",mj="◂",gj="⦖",bj="⥊",Ej="⥦",yj="≨︀",vj="≨︀",Sj="¯",Tj="♂",xj="✠",Cj="✠",wj="↦",Rj="↦",Aj="↧",Nj="↤",Oj="↥",Ij="▮",Mj="⨩",Dj="М",kj="м",Lj="—",Pj="∺",Uj="∡",Fj=" ",Bj="ℳ",Gj="𝔐",Vj="𝔪",zj="℧",Hj="µ",qj="*",Yj="⫰",$j="∣",Wj="·",Kj="⊟",jj="−",Qj="∸",Xj="⨪",Zj="∓",Jj="⫛",eQ="…",tQ="∓",nQ="⊧",iQ="𝕄",sQ="𝕞",rQ="∓",oQ="𝓂",aQ="ℳ",lQ="∾",cQ="Μ",dQ="μ",uQ="⊸",pQ="⊸",_Q="∇",hQ="Ń",fQ="ń",mQ="∠⃒",gQ="≉",bQ="⩰̸",EQ="≋̸",yQ="ʼn",vQ="≉",SQ="♮",TQ="ℕ",xQ="♮",CQ=" ",wQ="≎̸",RQ="≏̸",AQ="⩃",NQ="Ň",OQ="ň",IQ="Ņ",MQ="ņ",DQ="≇",kQ="⩭̸",LQ="⩂",PQ="Н",UQ="н",FQ="–",BQ="⤤",GQ="↗",VQ="⇗",zQ="↗",HQ="≠",qQ="≐̸",YQ="​",$Q="​",WQ="​",KQ="​",jQ="≢",QQ="⤨",XQ="≂̸",ZQ="≫",JQ="≪",eX=` +`,tX="∄",nX="∄",iX="𝔑",sX="𝔫",rX="≧̸",oX="≱",aX="≱",lX="≧̸",cX="⩾̸",dX="⩾̸",uX="⋙̸",pX="≵",_X="≫⃒",hX="≯",fX="≯",mX="≫̸",gX="↮",bX="⇎",EX="⫲",yX="∋",vX="⋼",SX="⋺",TX="∋",xX="Њ",CX="њ",wX="↚",RX="⇍",AX="‥",NX="≦̸",OX="≰",IX="↚",MX="⇍",DX="↮",kX="⇎",LX="≰",PX="≦̸",UX="⩽̸",FX="⩽̸",BX="≮",GX="⋘̸",VX="≴",zX="≪⃒",HX="≮",qX="⋪",YX="⋬",$X="≪̸",WX="∤",KX="⁠",jX=" ",QX="𝕟",XX="ℕ",ZX="⫬",JX="¬",eZ="≢",tZ="≭",nZ="∦",iZ="∉",sZ="≠",rZ="≂̸",oZ="∄",aZ="≯",lZ="≱",cZ="≧̸",dZ="≫̸",uZ="≹",pZ="⩾̸",_Z="≵",hZ="≎̸",fZ="≏̸",mZ="∉",gZ="⋵̸",bZ="⋹̸",EZ="∉",yZ="⋷",vZ="⋶",SZ="⧏̸",TZ="⋪",xZ="⋬",CZ="≮",wZ="≰",RZ="≸",AZ="≪̸",NZ="⩽̸",OZ="≴",IZ="⪢̸",MZ="⪡̸",DZ="∌",kZ="∌",LZ="⋾",PZ="⋽",UZ="⊀",FZ="⪯̸",BZ="⋠",GZ="∌",VZ="⧐̸",zZ="⋫",HZ="⋭",qZ="⊏̸",YZ="⋢",$Z="⊐̸",WZ="⋣",KZ="⊂⃒",jZ="⊈",QZ="⊁",XZ="⪰̸",ZZ="⋡",JZ="≿̸",eJ="⊃⃒",tJ="⊉",nJ="≁",iJ="≄",sJ="≇",rJ="≉",oJ="∤",aJ="∦",lJ="∦",cJ="⫽⃥",dJ="∂̸",uJ="⨔",pJ="⊀",_J="⋠",hJ="⊀",fJ="⪯̸",mJ="⪯̸",gJ="⤳̸",bJ="↛",EJ="⇏",yJ="↝̸",vJ="↛",SJ="⇏",TJ="⋫",xJ="⋭",CJ="⊁",wJ="⋡",RJ="⪰̸",AJ="𝒩",NJ="𝓃",OJ="∤",IJ="∦",MJ="≁",DJ="≄",kJ="≄",LJ="∤",PJ="∦",UJ="⋢",FJ="⋣",BJ="⊄",GJ="⫅̸",VJ="⊈",zJ="⊂⃒",HJ="⊈",qJ="⫅̸",YJ="⊁",$J="⪰̸",WJ="⊅",KJ="⫆̸",jJ="⊉",QJ="⊃⃒",XJ="⊉",ZJ="⫆̸",JJ="≹",eee="Ñ",tee="ñ",nee="≸",iee="⋪",see="⋬",ree="⋫",oee="⋭",aee="Ν",lee="ν",cee="#",dee="№",uee=" ",pee="≍⃒",_ee="⊬",hee="⊭",fee="⊮",mee="⊯",gee="≥⃒",bee=">⃒",Eee="⤄",yee="⧞",vee="⤂",See="≤⃒",Tee="<⃒",xee="⊴⃒",Cee="⤃",wee="⊵⃒",Ree="∼⃒",Aee="⤣",Nee="↖",Oee="⇖",Iee="↖",Mee="⤧",Dee="Ó",kee="ó",Lee="⊛",Pee="Ô",Uee="ô",Fee="⊚",Bee="О",Gee="о",Vee="⊝",zee="Ő",Hee="ő",qee="⨸",Yee="⊙",$ee="⦼",Wee="Œ",Kee="œ",jee="⦿",Qee="𝔒",Xee="𝔬",Zee="˛",Jee="Ò",ete="ò",tte="⧁",nte="⦵",ite="Ω",ste="∮",rte="↺",ote="⦾",ate="⦻",lte="‾",cte="⧀",dte="Ō",ute="ō",pte="Ω",_te="ω",hte="Ο",fte="ο",mte="⦶",gte="⊖",bte="𝕆",Ete="𝕠",yte="⦷",vte="“",Ste="‘",Tte="⦹",xte="⊕",Cte="↻",wte="⩔",Rte="∨",Ate="⩝",Nte="ℴ",Ote="ℴ",Ite="ª",Mte="º",Dte="⊶",kte="⩖",Lte="⩗",Pte="⩛",Ute="Ⓢ",Fte="𝒪",Bte="ℴ",Gte="Ø",Vte="ø",zte="⊘",Hte="Õ",qte="õ",Yte="⨶",$te="⨷",Wte="⊗",Kte="Ö",jte="ö",Qte="⌽",Xte="‾",Zte="⏞",Jte="⎴",ene="⏜",tne="¶",nne="∥",ine="∥",sne="⫳",rne="⫽",one="∂",ane="∂",lne="П",cne="п",dne="%",une=".",pne="‰",_ne="⊥",hne="‱",fne="𝔓",mne="𝔭",gne="Φ",bne="φ",Ene="ϕ",yne="ℳ",vne="☎",Sne="Π",Tne="π",xne="⋔",Cne="ϖ",wne="ℏ",Rne="ℎ",Ane="ℏ",Nne="⨣",One="⊞",Ine="⨢",Mne="+",Dne="∔",kne="⨥",Lne="⩲",Pne="±",Une="±",Fne="⨦",Bne="⨧",Gne="±",Vne="ℌ",zne="⨕",Hne="𝕡",qne="ℙ",Yne="£",$ne="⪷",Wne="⪻",Kne="≺",jne="≼",Qne="⪷",Xne="≺",Zne="≼",Jne="≺",eie="⪯",tie="≼",nie="≾",iie="⪯",sie="⪹",rie="⪵",oie="⋨",aie="⪯",lie="⪳",cie="≾",die="′",uie="″",pie="ℙ",_ie="⪹",hie="⪵",fie="⋨",mie="∏",gie="∏",bie="⌮",Eie="⌒",yie="⌓",vie="∝",Sie="∝",Tie="∷",xie="∝",Cie="≾",wie="⊰",Rie="𝒫",Aie="𝓅",Nie="Ψ",Oie="ψ",Iie=" ",Mie="𝔔",Die="𝔮",kie="⨌",Lie="𝕢",Pie="ℚ",Uie="⁗",Fie="𝒬",Bie="𝓆",Gie="ℍ",Vie="⨖",zie="?",Hie="≟",qie='"',Yie='"',$ie="⇛",Wie="∽̱",Kie="Ŕ",jie="ŕ",Qie="√",Xie="⦳",Zie="⟩",Jie="⟫",ese="⦒",tse="⦥",nse="⟩",ise="»",sse="⥵",rse="⇥",ose="⤠",ase="⤳",lse="→",cse="↠",dse="⇒",use="⤞",pse="↪",_se="↬",hse="⥅",fse="⥴",mse="⤖",gse="↣",bse="↝",Ese="⤚",yse="⤜",vse="∶",Sse="ℚ",Tse="⤍",xse="⤏",Cse="⤐",wse="❳",Rse="}",Ase="]",Nse="⦌",Ose="⦎",Ise="⦐",Mse="Ř",Dse="ř",kse="Ŗ",Lse="ŗ",Pse="⌉",Use="}",Fse="Р",Bse="р",Gse="⤷",Vse="⥩",zse="”",Hse="”",qse="↳",Yse="ℜ",$se="ℛ",Wse="ℜ",Kse="ℝ",jse="ℜ",Qse="▭",Xse="®",Zse="®",Jse="∋",ere="⇋",tre="⥯",nre="⥽",ire="⌋",sre="𝔯",rre="ℜ",ore="⥤",are="⇁",lre="⇀",cre="⥬",dre="Ρ",ure="ρ",pre="ϱ",_re="⟩",hre="⇥",fre="→",mre="→",gre="⇒",bre="⇄",Ere="↣",yre="⌉",vre="⟧",Sre="⥝",Tre="⥕",xre="⇂",Cre="⌋",wre="⇁",Rre="⇀",Are="⇄",Nre="⇌",Ore="⇉",Ire="↝",Mre="↦",Dre="⊢",kre="⥛",Lre="⋌",Pre="⧐",Ure="⊳",Fre="⊵",Bre="⥏",Gre="⥜",Vre="⥔",zre="↾",Hre="⥓",qre="⇀",Yre="˚",$re="≓",Wre="⇄",Kre="⇌",jre="‏",Qre="⎱",Xre="⎱",Zre="⫮",Jre="⟭",eoe="⇾",toe="⟧",noe="⦆",ioe="𝕣",soe="ℝ",roe="⨮",ooe="⨵",aoe="⥰",loe=")",coe="⦔",doe="⨒",uoe="⇉",poe="⇛",_oe="›",hoe="𝓇",foe="ℛ",moe="↱",goe="↱",boe="]",Eoe="’",yoe="’",voe="⋌",Soe="⋊",Toe="▹",xoe="⊵",Coe="▸",woe="⧎",Roe="⧴",Aoe="⥨",Noe="℞",Ooe="Ś",Ioe="ś",Moe="‚",Doe="⪸",koe="Š",Loe="š",Poe="⪼",Uoe="≻",Foe="≽",Boe="⪰",Goe="⪴",Voe="Ş",zoe="ş",Hoe="Ŝ",qoe="ŝ",Yoe="⪺",$oe="⪶",Woe="⋩",Koe="⨓",joe="≿",Qoe="С",Xoe="с",Zoe="⊡",Joe="⋅",eae="⩦",tae="⤥",nae="↘",iae="⇘",sae="↘",rae="§",oae=";",aae="⤩",lae="∖",cae="∖",dae="✶",uae="𝔖",pae="𝔰",_ae="⌢",hae="♯",fae="Щ",mae="щ",gae="Ш",bae="ш",Eae="↓",yae="←",vae="∣",Sae="∥",Tae="→",xae="↑",Cae="­",wae="Σ",Rae="σ",Aae="ς",Nae="ς",Oae="∼",Iae="⩪",Mae="≃",Dae="≃",kae="⪞",Lae="⪠",Pae="⪝",Uae="⪟",Fae="≆",Bae="⨤",Gae="⥲",Vae="←",zae="∘",Hae="∖",qae="⨳",Yae="⧤",$ae="∣",Wae="⌣",Kae="⪪",jae="⪬",Qae="⪬︀",Xae="Ь",Zae="ь",Jae="⌿",ele="⧄",tle="/",nle="𝕊",ile="𝕤",sle="♠",rle="♠",ole="∥",ale="⊓",lle="⊓︀",cle="⊔",dle="⊔︀",ule="√",ple="⊏",_le="⊑",hle="⊏",fle="⊑",mle="⊐",gle="⊒",ble="⊐",Ele="⊒",yle="□",vle="□",Sle="⊓",Tle="⊏",xle="⊑",Cle="⊐",wle="⊒",Rle="⊔",Ale="▪",Nle="□",Ole="▪",Ile="→",Mle="𝒮",Dle="𝓈",kle="∖",Lle="⌣",Ple="⋆",Ule="⋆",Fle="☆",Ble="★",Gle="ϵ",Vle="ϕ",zle="¯",Hle="⊂",qle="⋐",Yle="⪽",$le="⫅",Wle="⊆",Kle="⫃",jle="⫁",Qle="⫋",Xle="⊊",Zle="⪿",Jle="⥹",ece="⊂",tce="⋐",nce="⊆",ice="⫅",sce="⊆",rce="⊊",oce="⫋",ace="⫇",lce="⫕",cce="⫓",dce="⪸",uce="≻",pce="≽",_ce="≻",hce="⪰",fce="≽",mce="≿",gce="⪰",bce="⪺",Ece="⪶",yce="⋩",vce="≿",Sce="∋",Tce="∑",xce="∑",Cce="♪",wce="¹",Rce="²",Ace="³",Nce="⊃",Oce="⋑",Ice="⪾",Mce="⫘",Dce="⫆",kce="⊇",Lce="⫄",Pce="⊃",Uce="⊇",Fce="⟉",Bce="⫗",Gce="⥻",Vce="⫂",zce="⫌",Hce="⊋",qce="⫀",Yce="⊃",$ce="⋑",Wce="⊇",Kce="⫆",jce="⊋",Qce="⫌",Xce="⫈",Zce="⫔",Jce="⫖",ede="⤦",tde="↙",nde="⇙",ide="↙",sde="⤪",rde="ß",ode=" ",ade="⌖",lde="Τ",cde="τ",dde="⎴",ude="Ť",pde="ť",_de="Ţ",hde="ţ",fde="Т",mde="т",gde="⃛",bde="⌕",Ede="𝔗",yde="𝔱",vde="∴",Sde="∴",Tde="∴",xde="Θ",Cde="θ",wde="ϑ",Rde="ϑ",Ade="≈",Nde="∼",Ode="  ",Ide=" ",Mde=" ",Dde="≈",kde="∼",Lde="Þ",Pde="þ",Ude="˜",Fde="∼",Bde="≃",Gde="≅",Vde="≈",zde="⨱",Hde="⊠",qde="×",Yde="⨰",$de="∭",Wde="⤨",Kde="⌶",jde="⫱",Qde="⊤",Xde="𝕋",Zde="𝕥",Jde="⫚",eue="⤩",tue="‴",nue="™",iue="™",sue="▵",rue="▿",oue="◃",aue="⊴",lue="≜",cue="▹",due="⊵",uue="◬",pue="≜",_ue="⨺",hue="⃛",fue="⨹",mue="⧍",gue="⨻",bue="⏢",Eue="𝒯",yue="𝓉",vue="Ц",Sue="ц",Tue="Ћ",xue="ћ",Cue="Ŧ",wue="ŧ",Rue="≬",Aue="↞",Nue="↠",Oue="Ú",Iue="ú",Mue="↑",Due="↟",kue="⇑",Lue="⥉",Pue="Ў",Uue="ў",Fue="Ŭ",Bue="ŭ",Gue="Û",Vue="û",zue="У",Hue="у",que="⇅",Yue="Ű",$ue="ű",Wue="⥮",Kue="⥾",jue="𝔘",Que="𝔲",Xue="Ù",Zue="ù",Jue="⥣",epe="↿",tpe="↾",npe="▀",ipe="⌜",spe="⌜",rpe="⌏",ope="◸",ape="Ū",lpe="ū",cpe="¨",dpe="_",upe="⏟",ppe="⎵",_pe="⏝",hpe="⋃",fpe="⊎",mpe="Ų",gpe="ų",bpe="𝕌",Epe="𝕦",ype="⤒",vpe="↑",Spe="↑",Tpe="⇑",xpe="⇅",Cpe="↕",wpe="↕",Rpe="⇕",Ape="⥮",Npe="↿",Ope="↾",Ipe="⊎",Mpe="↖",Dpe="↗",kpe="υ",Lpe="ϒ",Ppe="ϒ",Upe="Υ",Fpe="υ",Bpe="↥",Gpe="⊥",Vpe="⇈",zpe="⌝",Hpe="⌝",qpe="⌎",Ype="Ů",$pe="ů",Wpe="◹",Kpe="𝒰",jpe="𝓊",Qpe="⋰",Xpe="Ũ",Zpe="ũ",Jpe="▵",e_e="▴",t_e="⇈",n_e="Ü",i_e="ü",s_e="⦧",r_e="⦜",o_e="ϵ",a_e="ϰ",l_e="∅",c_e="ϕ",d_e="ϖ",u_e="∝",p_e="↕",__e="⇕",h_e="ϱ",f_e="ς",m_e="⊊︀",g_e="⫋︀",b_e="⊋︀",E_e="⫌︀",y_e="ϑ",v_e="⊲",S_e="⊳",T_e="⫨",x_e="⫫",C_e="⫩",w_e="В",R_e="в",A_e="⊢",N_e="⊨",O_e="⊩",I_e="⊫",M_e="⫦",D_e="⊻",k_e="∨",L_e="⋁",P_e="≚",U_e="⋮",F_e="|",B_e="‖",G_e="|",V_e="‖",z_e="∣",H_e="|",q_e="❘",Y_e="≀",$_e=" ",W_e="𝔙",K_e="𝔳",j_e="⊲",Q_e="⊂⃒",X_e="⊃⃒",Z_e="𝕍",J_e="𝕧",ehe="∝",the="⊳",nhe="𝒱",ihe="𝓋",she="⫋︀",rhe="⊊︀",ohe="⫌︀",ahe="⊋︀",lhe="⊪",che="⦚",dhe="Ŵ",uhe="ŵ",phe="⩟",_he="∧",hhe="⋀",fhe="≙",mhe="℘",ghe="𝔚",bhe="𝔴",Ehe="𝕎",yhe="𝕨",vhe="℘",She="≀",The="≀",xhe="𝒲",Che="𝓌",whe="⋂",Rhe="◯",Ahe="⋃",Nhe="▽",Ohe="𝔛",Ihe="𝔵",Mhe="⟷",Dhe="⟺",khe="Ξ",Lhe="ξ",Phe="⟵",Uhe="⟸",Fhe="⟼",Bhe="⋻",Ghe="⨀",Vhe="𝕏",zhe="𝕩",Hhe="⨁",qhe="⨂",Yhe="⟶",$he="⟹",Whe="𝒳",Khe="𝓍",jhe="⨆",Qhe="⨄",Xhe="△",Zhe="⋁",Jhe="⋀",efe="Ý",tfe="ý",nfe="Я",ife="я",sfe="Ŷ",rfe="ŷ",ofe="Ы",afe="ы",lfe="¥",cfe="𝔜",dfe="𝔶",ufe="Ї",pfe="ї",_fe="𝕐",hfe="𝕪",ffe="𝒴",mfe="𝓎",gfe="Ю",bfe="ю",Efe="ÿ",yfe="Ÿ",vfe="Ź",Sfe="ź",Tfe="Ž",xfe="ž",Cfe="З",wfe="з",Rfe="Ż",Afe="ż",Nfe="ℨ",Ofe="​",Ife="Ζ",Mfe="ζ",Dfe="𝔷",kfe="ℨ",Lfe="Ж",Pfe="ж",Ufe="⇝",Ffe="𝕫",Bfe="ℤ",Gfe="𝒵",Vfe="𝓏",zfe="‍",Hfe="‌",qfe={Aacute:RU,aacute:AU,Abreve:NU,abreve:OU,ac:IU,acd:MU,acE:DU,Acirc:kU,acirc:LU,acute:PU,Acy:UU,acy:FU,AElig:BU,aelig:GU,af:VU,Afr:zU,afr:HU,Agrave:qU,agrave:YU,alefsym:$U,aleph:WU,Alpha:KU,alpha:jU,Amacr:QU,amacr:XU,amalg:ZU,amp:JU,AMP:eF,andand:tF,And:nF,and:iF,andd:sF,andslope:rF,andv:oF,ang:aF,ange:lF,angle:cF,angmsdaa:dF,angmsdab:uF,angmsdac:pF,angmsdad:_F,angmsdae:hF,angmsdaf:fF,angmsdag:mF,angmsdah:gF,angmsd:bF,angrt:EF,angrtvb:yF,angrtvbd:vF,angsph:SF,angst:TF,angzarr:xF,Aogon:CF,aogon:wF,Aopf:RF,aopf:AF,apacir:NF,ap:OF,apE:IF,ape:MF,apid:DF,apos:kF,ApplyFunction:LF,approx:PF,approxeq:UF,Aring:FF,aring:BF,Ascr:GF,ascr:VF,Assign:zF,ast:HF,asymp:qF,asympeq:YF,Atilde:$F,atilde:WF,Auml:KF,auml:jF,awconint:QF,awint:XF,backcong:ZF,backepsilon:JF,backprime:e3,backsim:t3,backsimeq:n3,Backslash:i3,Barv:s3,barvee:r3,barwed:o3,Barwed:a3,barwedge:l3,bbrk:c3,bbrktbrk:d3,bcong:u3,Bcy:p3,bcy:_3,bdquo:h3,becaus:f3,because:m3,Because:g3,bemptyv:b3,bepsi:E3,bernou:y3,Bernoullis:v3,Beta:S3,beta:T3,beth:x3,between:C3,Bfr:w3,bfr:R3,bigcap:A3,bigcirc:N3,bigcup:O3,bigodot:I3,bigoplus:M3,bigotimes:D3,bigsqcup:k3,bigstar:L3,bigtriangledown:P3,bigtriangleup:U3,biguplus:F3,bigvee:B3,bigwedge:G3,bkarow:V3,blacklozenge:z3,blacksquare:H3,blacktriangle:q3,blacktriangledown:Y3,blacktriangleleft:$3,blacktriangleright:W3,blank:K3,blk12:j3,blk14:Q3,blk34:X3,block:Z3,bne:J3,bnequiv:eB,bNot:tB,bnot:nB,Bopf:iB,bopf:sB,bot:rB,bottom:oB,bowtie:aB,boxbox:lB,boxdl:cB,boxdL:dB,boxDl:uB,boxDL:pB,boxdr:_B,boxdR:hB,boxDr:fB,boxDR:mB,boxh:gB,boxH:bB,boxhd:EB,boxHd:yB,boxhD:vB,boxHD:SB,boxhu:TB,boxHu:xB,boxhU:CB,boxHU:wB,boxminus:RB,boxplus:AB,boxtimes:NB,boxul:OB,boxuL:IB,boxUl:MB,boxUL:DB,boxur:kB,boxuR:LB,boxUr:PB,boxUR:UB,boxv:FB,boxV:BB,boxvh:GB,boxvH:VB,boxVh:zB,boxVH:HB,boxvl:qB,boxvL:YB,boxVl:$B,boxVL:WB,boxvr:KB,boxvR:jB,boxVr:QB,boxVR:XB,bprime:ZB,breve:JB,Breve:e4,brvbar:t4,bscr:n4,Bscr:i4,bsemi:s4,bsim:r4,bsime:o4,bsolb:a4,bsol:l4,bsolhsub:c4,bull:d4,bullet:u4,bump:p4,bumpE:_4,bumpe:h4,Bumpeq:f4,bumpeq:m4,Cacute:g4,cacute:b4,capand:E4,capbrcup:y4,capcap:v4,cap:S4,Cap:T4,capcup:x4,capdot:C4,CapitalDifferentialD:w4,caps:R4,caret:A4,caron:N4,Cayleys:O4,ccaps:I4,Ccaron:M4,ccaron:D4,Ccedil:k4,ccedil:L4,Ccirc:P4,ccirc:U4,Cconint:F4,ccups:B4,ccupssm:G4,Cdot:V4,cdot:z4,cedil:H4,Cedilla:q4,cemptyv:Y4,cent:$4,centerdot:W4,CenterDot:K4,cfr:j4,Cfr:Q4,CHcy:X4,chcy:Z4,check:J4,checkmark:e5,Chi:t5,chi:n5,circ:i5,circeq:s5,circlearrowleft:r5,circlearrowright:o5,circledast:a5,circledcirc:l5,circleddash:c5,CircleDot:d5,circledR:u5,circledS:p5,CircleMinus:_5,CirclePlus:h5,CircleTimes:f5,cir:m5,cirE:g5,cire:b5,cirfnint:E5,cirmid:y5,cirscir:v5,ClockwiseContourIntegral:S5,CloseCurlyDoubleQuote:T5,CloseCurlyQuote:x5,clubs:C5,clubsuit:w5,colon:R5,Colon:A5,Colone:N5,colone:O5,coloneq:I5,comma:M5,commat:D5,comp:k5,compfn:L5,complement:P5,complexes:U5,cong:F5,congdot:B5,Congruent:G5,conint:V5,Conint:z5,ContourIntegral:H5,copf:q5,Copf:Y5,coprod:$5,Coproduct:W5,copy:K5,COPY:j5,copysr:Q5,CounterClockwiseContourIntegral:X5,crarr:Z5,cross:J5,Cross:eG,Cscr:tG,cscr:nG,csub:iG,csube:sG,csup:rG,csupe:oG,ctdot:aG,cudarrl:lG,cudarrr:cG,cuepr:dG,cuesc:uG,cularr:pG,cularrp:_G,cupbrcap:hG,cupcap:fG,CupCap:mG,cup:gG,Cup:bG,cupcup:EG,cupdot:yG,cupor:vG,cups:SG,curarr:TG,curarrm:xG,curlyeqprec:CG,curlyeqsucc:wG,curlyvee:RG,curlywedge:AG,curren:NG,curvearrowleft:OG,curvearrowright:IG,cuvee:MG,cuwed:DG,cwconint:kG,cwint:LG,cylcty:PG,dagger:UG,Dagger:FG,daleth:BG,darr:GG,Darr:VG,dArr:zG,dash:HG,Dashv:qG,dashv:YG,dbkarow:$G,dblac:WG,Dcaron:KG,dcaron:jG,Dcy:QG,dcy:XG,ddagger:ZG,ddarr:JG,DD:e6,dd:t6,DDotrahd:n6,ddotseq:i6,deg:s6,Del:r6,Delta:o6,delta:a6,demptyv:l6,dfisht:c6,Dfr:d6,dfr:u6,dHar:p6,dharl:_6,dharr:h6,DiacriticalAcute:f6,DiacriticalDot:m6,DiacriticalDoubleAcute:g6,DiacriticalGrave:b6,DiacriticalTilde:E6,diam:y6,diamond:v6,Diamond:S6,diamondsuit:T6,diams:x6,die:C6,DifferentialD:w6,digamma:R6,disin:A6,div:N6,divide:O6,divideontimes:I6,divonx:M6,DJcy:D6,djcy:k6,dlcorn:L6,dlcrop:P6,dollar:U6,Dopf:F6,dopf:B6,Dot:G6,dot:V6,DotDot:z6,doteq:H6,doteqdot:q6,DotEqual:Y6,dotminus:$6,dotplus:W6,dotsquare:K6,doublebarwedge:j6,DoubleContourIntegral:Q6,DoubleDot:X6,DoubleDownArrow:Z6,DoubleLeftArrow:J6,DoubleLeftRightArrow:e9,DoubleLeftTee:t9,DoubleLongLeftArrow:n9,DoubleLongLeftRightArrow:i9,DoubleLongRightArrow:s9,DoubleRightArrow:r9,DoubleRightTee:o9,DoubleUpArrow:a9,DoubleUpDownArrow:l9,DoubleVerticalBar:c9,DownArrowBar:d9,downarrow:u9,DownArrow:p9,Downarrow:_9,DownArrowUpArrow:h9,DownBreve:f9,downdownarrows:m9,downharpoonleft:g9,downharpoonright:b9,DownLeftRightVector:E9,DownLeftTeeVector:y9,DownLeftVectorBar:v9,DownLeftVector:S9,DownRightTeeVector:T9,DownRightVectorBar:x9,DownRightVector:C9,DownTeeArrow:w9,DownTee:R9,drbkarow:A9,drcorn:N9,drcrop:O9,Dscr:I9,dscr:M9,DScy:D9,dscy:k9,dsol:L9,Dstrok:P9,dstrok:U9,dtdot:F9,dtri:B9,dtrif:G9,duarr:V9,duhar:z9,dwangle:H9,DZcy:q9,dzcy:Y9,dzigrarr:$9,Eacute:W9,eacute:K9,easter:j9,Ecaron:Q9,ecaron:X9,Ecirc:Z9,ecirc:J9,ecir:e8,ecolon:t8,Ecy:n8,ecy:i8,eDDot:s8,Edot:r8,edot:o8,eDot:a8,ee:l8,efDot:c8,Efr:d8,efr:u8,eg:p8,Egrave:_8,egrave:h8,egs:f8,egsdot:m8,el:g8,Element:b8,elinters:E8,ell:y8,els:v8,elsdot:S8,Emacr:T8,emacr:x8,empty:C8,emptyset:w8,EmptySmallSquare:R8,emptyv:A8,EmptyVerySmallSquare:N8,emsp13:O8,emsp14:I8,emsp:M8,ENG:D8,eng:k8,ensp:L8,Eogon:P8,eogon:U8,Eopf:F8,eopf:B8,epar:G8,eparsl:V8,eplus:z8,epsi:H8,Epsilon:q8,epsilon:Y8,epsiv:$8,eqcirc:W8,eqcolon:K8,eqsim:j8,eqslantgtr:Q8,eqslantless:X8,Equal:Z8,equals:J8,EqualTilde:eV,equest:tV,Equilibrium:nV,equiv:iV,equivDD:sV,eqvparsl:rV,erarr:oV,erDot:aV,escr:lV,Escr:cV,esdot:dV,Esim:uV,esim:pV,Eta:_V,eta:hV,ETH:fV,eth:mV,Euml:gV,euml:bV,euro:EV,excl:yV,exist:vV,Exists:SV,expectation:TV,exponentiale:xV,ExponentialE:CV,fallingdotseq:wV,Fcy:RV,fcy:AV,female:NV,ffilig:OV,fflig:IV,ffllig:MV,Ffr:DV,ffr:kV,filig:LV,FilledSmallSquare:PV,FilledVerySmallSquare:UV,fjlig:FV,flat:BV,fllig:GV,fltns:VV,fnof:zV,Fopf:HV,fopf:qV,forall:YV,ForAll:$V,fork:WV,forkv:KV,Fouriertrf:jV,fpartint:QV,frac12:XV,frac13:ZV,frac14:JV,frac15:ez,frac16:tz,frac18:nz,frac23:iz,frac25:sz,frac34:rz,frac35:oz,frac38:az,frac45:lz,frac56:cz,frac58:dz,frac78:uz,frasl:pz,frown:_z,fscr:hz,Fscr:fz,gacute:mz,Gamma:gz,gamma:bz,Gammad:Ez,gammad:yz,gap:vz,Gbreve:Sz,gbreve:Tz,Gcedil:xz,Gcirc:Cz,gcirc:wz,Gcy:Rz,gcy:Az,Gdot:Nz,gdot:Oz,ge:Iz,gE:Mz,gEl:Dz,gel:kz,geq:Lz,geqq:Pz,geqslant:Uz,gescc:Fz,ges:Bz,gesdot:Gz,gesdoto:Vz,gesdotol:zz,gesl:Hz,gesles:qz,Gfr:Yz,gfr:$z,gg:Wz,Gg:Kz,ggg:jz,gimel:Qz,GJcy:Xz,gjcy:Zz,gla:Jz,gl:eH,glE:tH,glj:nH,gnap:iH,gnapprox:sH,gne:rH,gnE:oH,gneq:aH,gneqq:lH,gnsim:cH,Gopf:dH,gopf:uH,grave:pH,GreaterEqual:_H,GreaterEqualLess:hH,GreaterFullEqual:fH,GreaterGreater:mH,GreaterLess:gH,GreaterSlantEqual:bH,GreaterTilde:EH,Gscr:yH,gscr:vH,gsim:SH,gsime:TH,gsiml:xH,gtcc:CH,gtcir:wH,gt:RH,GT:AH,Gt:NH,gtdot:OH,gtlPar:IH,gtquest:MH,gtrapprox:DH,gtrarr:kH,gtrdot:LH,gtreqless:PH,gtreqqless:UH,gtrless:FH,gtrsim:BH,gvertneqq:GH,gvnE:VH,Hacek:zH,hairsp:HH,half:qH,hamilt:YH,HARDcy:$H,hardcy:WH,harrcir:KH,harr:jH,hArr:QH,harrw:XH,Hat:ZH,hbar:JH,Hcirc:e7,hcirc:t7,hearts:n7,heartsuit:i7,hellip:s7,hercon:r7,hfr:o7,Hfr:a7,HilbertSpace:l7,hksearow:c7,hkswarow:d7,hoarr:u7,homtht:p7,hookleftarrow:_7,hookrightarrow:h7,hopf:f7,Hopf:m7,horbar:g7,HorizontalLine:b7,hscr:E7,Hscr:y7,hslash:v7,Hstrok:S7,hstrok:T7,HumpDownHump:x7,HumpEqual:C7,hybull:w7,hyphen:R7,Iacute:A7,iacute:N7,ic:O7,Icirc:I7,icirc:M7,Icy:D7,icy:k7,Idot:L7,IEcy:P7,iecy:U7,iexcl:F7,iff:B7,ifr:G7,Ifr:V7,Igrave:z7,igrave:H7,ii:q7,iiiint:Y7,iiint:$7,iinfin:W7,iiota:K7,IJlig:j7,ijlig:Q7,Imacr:X7,imacr:Z7,image:J7,ImaginaryI:eq,imagline:tq,imagpart:nq,imath:iq,Im:sq,imof:rq,imped:oq,Implies:aq,incare:lq,in:"∈",infin:cq,infintie:dq,inodot:uq,intcal:pq,int:_q,Int:hq,integers:fq,Integral:mq,intercal:gq,Intersection:bq,intlarhk:Eq,intprod:yq,InvisibleComma:vq,InvisibleTimes:Sq,IOcy:Tq,iocy:xq,Iogon:Cq,iogon:wq,Iopf:Rq,iopf:Aq,Iota:Nq,iota:Oq,iprod:Iq,iquest:Mq,iscr:Dq,Iscr:kq,isin:Lq,isindot:Pq,isinE:Uq,isins:Fq,isinsv:Bq,isinv:Gq,it:Vq,Itilde:zq,itilde:Hq,Iukcy:qq,iukcy:Yq,Iuml:$q,iuml:Wq,Jcirc:Kq,jcirc:jq,Jcy:Qq,jcy:Xq,Jfr:Zq,jfr:Jq,jmath:eY,Jopf:tY,jopf:nY,Jscr:iY,jscr:sY,Jsercy:rY,jsercy:oY,Jukcy:aY,jukcy:lY,Kappa:cY,kappa:dY,kappav:uY,Kcedil:pY,kcedil:_Y,Kcy:hY,kcy:fY,Kfr:mY,kfr:gY,kgreen:bY,KHcy:EY,khcy:yY,KJcy:vY,kjcy:SY,Kopf:TY,kopf:xY,Kscr:CY,kscr:wY,lAarr:RY,Lacute:AY,lacute:NY,laemptyv:OY,lagran:IY,Lambda:MY,lambda:DY,lang:kY,Lang:LY,langd:PY,langle:UY,lap:FY,Laplacetrf:BY,laquo:GY,larrb:VY,larrbfs:zY,larr:HY,Larr:qY,lArr:YY,larrfs:$Y,larrhk:WY,larrlp:KY,larrpl:jY,larrsim:QY,larrtl:XY,latail:ZY,lAtail:JY,lat:e$,late:t$,lates:n$,lbarr:i$,lBarr:s$,lbbrk:r$,lbrace:o$,lbrack:a$,lbrke:l$,lbrksld:c$,lbrkslu:d$,Lcaron:u$,lcaron:p$,Lcedil:_$,lcedil:h$,lceil:f$,lcub:m$,Lcy:g$,lcy:b$,ldca:E$,ldquo:y$,ldquor:v$,ldrdhar:S$,ldrushar:T$,ldsh:x$,le:C$,lE:w$,LeftAngleBracket:R$,LeftArrowBar:A$,leftarrow:N$,LeftArrow:O$,Leftarrow:I$,LeftArrowRightArrow:M$,leftarrowtail:D$,LeftCeiling:k$,LeftDoubleBracket:L$,LeftDownTeeVector:P$,LeftDownVectorBar:U$,LeftDownVector:F$,LeftFloor:B$,leftharpoondown:G$,leftharpoonup:V$,leftleftarrows:z$,leftrightarrow:H$,LeftRightArrow:q$,Leftrightarrow:Y$,leftrightarrows:$$,leftrightharpoons:W$,leftrightsquigarrow:K$,LeftRightVector:j$,LeftTeeArrow:Q$,LeftTee:X$,LeftTeeVector:Z$,leftthreetimes:J$,LeftTriangleBar:eW,LeftTriangle:tW,LeftTriangleEqual:nW,LeftUpDownVector:iW,LeftUpTeeVector:sW,LeftUpVectorBar:rW,LeftUpVector:oW,LeftVectorBar:aW,LeftVector:lW,lEg:cW,leg:dW,leq:uW,leqq:pW,leqslant:_W,lescc:hW,les:fW,lesdot:mW,lesdoto:gW,lesdotor:bW,lesg:EW,lesges:yW,lessapprox:vW,lessdot:SW,lesseqgtr:TW,lesseqqgtr:xW,LessEqualGreater:CW,LessFullEqual:wW,LessGreater:RW,lessgtr:AW,LessLess:NW,lesssim:OW,LessSlantEqual:IW,LessTilde:MW,lfisht:DW,lfloor:kW,Lfr:LW,lfr:PW,lg:UW,lgE:FW,lHar:BW,lhard:GW,lharu:VW,lharul:zW,lhblk:HW,LJcy:qW,ljcy:YW,llarr:$W,ll:WW,Ll:KW,llcorner:jW,Lleftarrow:QW,llhard:XW,lltri:ZW,Lmidot:JW,lmidot:eK,lmoustache:tK,lmoust:nK,lnap:iK,lnapprox:sK,lne:rK,lnE:oK,lneq:aK,lneqq:lK,lnsim:cK,loang:dK,loarr:uK,lobrk:pK,longleftarrow:_K,LongLeftArrow:hK,Longleftarrow:fK,longleftrightarrow:mK,LongLeftRightArrow:gK,Longleftrightarrow:bK,longmapsto:EK,longrightarrow:yK,LongRightArrow:vK,Longrightarrow:SK,looparrowleft:TK,looparrowright:xK,lopar:CK,Lopf:wK,lopf:RK,loplus:AK,lotimes:NK,lowast:OK,lowbar:IK,LowerLeftArrow:MK,LowerRightArrow:DK,loz:kK,lozenge:LK,lozf:PK,lpar:UK,lparlt:FK,lrarr:BK,lrcorner:GK,lrhar:VK,lrhard:zK,lrm:HK,lrtri:qK,lsaquo:YK,lscr:$K,Lscr:WK,lsh:KK,Lsh:jK,lsim:QK,lsime:XK,lsimg:ZK,lsqb:JK,lsquo:ej,lsquor:tj,Lstrok:nj,lstrok:ij,ltcc:sj,ltcir:rj,lt:oj,LT:aj,Lt:lj,ltdot:cj,lthree:dj,ltimes:uj,ltlarr:pj,ltquest:_j,ltri:hj,ltrie:fj,ltrif:mj,ltrPar:gj,lurdshar:bj,luruhar:Ej,lvertneqq:yj,lvnE:vj,macr:Sj,male:Tj,malt:xj,maltese:Cj,Map:"⤅",map:wj,mapsto:Rj,mapstodown:Aj,mapstoleft:Nj,mapstoup:Oj,marker:Ij,mcomma:Mj,Mcy:Dj,mcy:kj,mdash:Lj,mDDot:Pj,measuredangle:Uj,MediumSpace:Fj,Mellintrf:Bj,Mfr:Gj,mfr:Vj,mho:zj,micro:Hj,midast:qj,midcir:Yj,mid:$j,middot:Wj,minusb:Kj,minus:jj,minusd:Qj,minusdu:Xj,MinusPlus:Zj,mlcp:Jj,mldr:eQ,mnplus:tQ,models:nQ,Mopf:iQ,mopf:sQ,mp:rQ,mscr:oQ,Mscr:aQ,mstpos:lQ,Mu:cQ,mu:dQ,multimap:uQ,mumap:pQ,nabla:_Q,Nacute:hQ,nacute:fQ,nang:mQ,nap:gQ,napE:bQ,napid:EQ,napos:yQ,napprox:vQ,natural:SQ,naturals:TQ,natur:xQ,nbsp:CQ,nbump:wQ,nbumpe:RQ,ncap:AQ,Ncaron:NQ,ncaron:OQ,Ncedil:IQ,ncedil:MQ,ncong:DQ,ncongdot:kQ,ncup:LQ,Ncy:PQ,ncy:UQ,ndash:FQ,nearhk:BQ,nearr:GQ,neArr:VQ,nearrow:zQ,ne:HQ,nedot:qQ,NegativeMediumSpace:YQ,NegativeThickSpace:$Q,NegativeThinSpace:WQ,NegativeVeryThinSpace:KQ,nequiv:jQ,nesear:QQ,nesim:XQ,NestedGreaterGreater:ZQ,NestedLessLess:JQ,NewLine:eX,nexist:tX,nexists:nX,Nfr:iX,nfr:sX,ngE:rX,nge:oX,ngeq:aX,ngeqq:lX,ngeqslant:cX,nges:dX,nGg:uX,ngsim:pX,nGt:_X,ngt:hX,ngtr:fX,nGtv:mX,nharr:gX,nhArr:bX,nhpar:EX,ni:yX,nis:vX,nisd:SX,niv:TX,NJcy:xX,njcy:CX,nlarr:wX,nlArr:RX,nldr:AX,nlE:NX,nle:OX,nleftarrow:IX,nLeftarrow:MX,nleftrightarrow:DX,nLeftrightarrow:kX,nleq:LX,nleqq:PX,nleqslant:UX,nles:FX,nless:BX,nLl:GX,nlsim:VX,nLt:zX,nlt:HX,nltri:qX,nltrie:YX,nLtv:$X,nmid:WX,NoBreak:KX,NonBreakingSpace:jX,nopf:QX,Nopf:XX,Not:ZX,not:JX,NotCongruent:eZ,NotCupCap:tZ,NotDoubleVerticalBar:nZ,NotElement:iZ,NotEqual:sZ,NotEqualTilde:rZ,NotExists:oZ,NotGreater:aZ,NotGreaterEqual:lZ,NotGreaterFullEqual:cZ,NotGreaterGreater:dZ,NotGreaterLess:uZ,NotGreaterSlantEqual:pZ,NotGreaterTilde:_Z,NotHumpDownHump:hZ,NotHumpEqual:fZ,notin:mZ,notindot:gZ,notinE:bZ,notinva:EZ,notinvb:yZ,notinvc:vZ,NotLeftTriangleBar:SZ,NotLeftTriangle:TZ,NotLeftTriangleEqual:xZ,NotLess:CZ,NotLessEqual:wZ,NotLessGreater:RZ,NotLessLess:AZ,NotLessSlantEqual:NZ,NotLessTilde:OZ,NotNestedGreaterGreater:IZ,NotNestedLessLess:MZ,notni:DZ,notniva:kZ,notnivb:LZ,notnivc:PZ,NotPrecedes:UZ,NotPrecedesEqual:FZ,NotPrecedesSlantEqual:BZ,NotReverseElement:GZ,NotRightTriangleBar:VZ,NotRightTriangle:zZ,NotRightTriangleEqual:HZ,NotSquareSubset:qZ,NotSquareSubsetEqual:YZ,NotSquareSuperset:$Z,NotSquareSupersetEqual:WZ,NotSubset:KZ,NotSubsetEqual:jZ,NotSucceeds:QZ,NotSucceedsEqual:XZ,NotSucceedsSlantEqual:ZZ,NotSucceedsTilde:JZ,NotSuperset:eJ,NotSupersetEqual:tJ,NotTilde:nJ,NotTildeEqual:iJ,NotTildeFullEqual:sJ,NotTildeTilde:rJ,NotVerticalBar:oJ,nparallel:aJ,npar:lJ,nparsl:cJ,npart:dJ,npolint:uJ,npr:pJ,nprcue:_J,nprec:hJ,npreceq:fJ,npre:mJ,nrarrc:gJ,nrarr:bJ,nrArr:EJ,nrarrw:yJ,nrightarrow:vJ,nRightarrow:SJ,nrtri:TJ,nrtrie:xJ,nsc:CJ,nsccue:wJ,nsce:RJ,Nscr:AJ,nscr:NJ,nshortmid:OJ,nshortparallel:IJ,nsim:MJ,nsime:DJ,nsimeq:kJ,nsmid:LJ,nspar:PJ,nsqsube:UJ,nsqsupe:FJ,nsub:BJ,nsubE:GJ,nsube:VJ,nsubset:zJ,nsubseteq:HJ,nsubseteqq:qJ,nsucc:YJ,nsucceq:$J,nsup:WJ,nsupE:KJ,nsupe:jJ,nsupset:QJ,nsupseteq:XJ,nsupseteqq:ZJ,ntgl:JJ,Ntilde:eee,ntilde:tee,ntlg:nee,ntriangleleft:iee,ntrianglelefteq:see,ntriangleright:ree,ntrianglerighteq:oee,Nu:aee,nu:lee,num:cee,numero:dee,numsp:uee,nvap:pee,nvdash:_ee,nvDash:hee,nVdash:fee,nVDash:mee,nvge:gee,nvgt:bee,nvHarr:Eee,nvinfin:yee,nvlArr:vee,nvle:See,nvlt:Tee,nvltrie:xee,nvrArr:Cee,nvrtrie:wee,nvsim:Ree,nwarhk:Aee,nwarr:Nee,nwArr:Oee,nwarrow:Iee,nwnear:Mee,Oacute:Dee,oacute:kee,oast:Lee,Ocirc:Pee,ocirc:Uee,ocir:Fee,Ocy:Bee,ocy:Gee,odash:Vee,Odblac:zee,odblac:Hee,odiv:qee,odot:Yee,odsold:$ee,OElig:Wee,oelig:Kee,ofcir:jee,Ofr:Qee,ofr:Xee,ogon:Zee,Ograve:Jee,ograve:ete,ogt:tte,ohbar:nte,ohm:ite,oint:ste,olarr:rte,olcir:ote,olcross:ate,oline:lte,olt:cte,Omacr:dte,omacr:ute,Omega:pte,omega:_te,Omicron:hte,omicron:fte,omid:mte,ominus:gte,Oopf:bte,oopf:Ete,opar:yte,OpenCurlyDoubleQuote:vte,OpenCurlyQuote:Ste,operp:Tte,oplus:xte,orarr:Cte,Or:wte,or:Rte,ord:Ate,order:Nte,orderof:Ote,ordf:Ite,ordm:Mte,origof:Dte,oror:kte,orslope:Lte,orv:Pte,oS:Ute,Oscr:Fte,oscr:Bte,Oslash:Gte,oslash:Vte,osol:zte,Otilde:Hte,otilde:qte,otimesas:Yte,Otimes:$te,otimes:Wte,Ouml:Kte,ouml:jte,ovbar:Qte,OverBar:Xte,OverBrace:Zte,OverBracket:Jte,OverParenthesis:ene,para:tne,parallel:nne,par:ine,parsim:sne,parsl:rne,part:one,PartialD:ane,Pcy:lne,pcy:cne,percnt:dne,period:une,permil:pne,perp:_ne,pertenk:hne,Pfr:fne,pfr:mne,Phi:gne,phi:bne,phiv:Ene,phmmat:yne,phone:vne,Pi:Sne,pi:Tne,pitchfork:xne,piv:Cne,planck:wne,planckh:Rne,plankv:Ane,plusacir:Nne,plusb:One,pluscir:Ine,plus:Mne,plusdo:Dne,plusdu:kne,pluse:Lne,PlusMinus:Pne,plusmn:Une,plussim:Fne,plustwo:Bne,pm:Gne,Poincareplane:Vne,pointint:zne,popf:Hne,Popf:qne,pound:Yne,prap:$ne,Pr:Wne,pr:Kne,prcue:jne,precapprox:Qne,prec:Xne,preccurlyeq:Zne,Precedes:Jne,PrecedesEqual:eie,PrecedesSlantEqual:tie,PrecedesTilde:nie,preceq:iie,precnapprox:sie,precneqq:rie,precnsim:oie,pre:aie,prE:lie,precsim:cie,prime:die,Prime:uie,primes:pie,prnap:_ie,prnE:hie,prnsim:fie,prod:mie,Product:gie,profalar:bie,profline:Eie,profsurf:yie,prop:vie,Proportional:Sie,Proportion:Tie,propto:xie,prsim:Cie,prurel:wie,Pscr:Rie,pscr:Aie,Psi:Nie,psi:Oie,puncsp:Iie,Qfr:Mie,qfr:Die,qint:kie,qopf:Lie,Qopf:Pie,qprime:Uie,Qscr:Fie,qscr:Bie,quaternions:Gie,quatint:Vie,quest:zie,questeq:Hie,quot:qie,QUOT:Yie,rAarr:$ie,race:Wie,Racute:Kie,racute:jie,radic:Qie,raemptyv:Xie,rang:Zie,Rang:Jie,rangd:ese,range:tse,rangle:nse,raquo:ise,rarrap:sse,rarrb:rse,rarrbfs:ose,rarrc:ase,rarr:lse,Rarr:cse,rArr:dse,rarrfs:use,rarrhk:pse,rarrlp:_se,rarrpl:hse,rarrsim:fse,Rarrtl:mse,rarrtl:gse,rarrw:bse,ratail:Ese,rAtail:yse,ratio:vse,rationals:Sse,rbarr:Tse,rBarr:xse,RBarr:Cse,rbbrk:wse,rbrace:Rse,rbrack:Ase,rbrke:Nse,rbrksld:Ose,rbrkslu:Ise,Rcaron:Mse,rcaron:Dse,Rcedil:kse,rcedil:Lse,rceil:Pse,rcub:Use,Rcy:Fse,rcy:Bse,rdca:Gse,rdldhar:Vse,rdquo:zse,rdquor:Hse,rdsh:qse,real:Yse,realine:$se,realpart:Wse,reals:Kse,Re:jse,rect:Qse,reg:Xse,REG:Zse,ReverseElement:Jse,ReverseEquilibrium:ere,ReverseUpEquilibrium:tre,rfisht:nre,rfloor:ire,rfr:sre,Rfr:rre,rHar:ore,rhard:are,rharu:lre,rharul:cre,Rho:dre,rho:ure,rhov:pre,RightAngleBracket:_re,RightArrowBar:hre,rightarrow:fre,RightArrow:mre,Rightarrow:gre,RightArrowLeftArrow:bre,rightarrowtail:Ere,RightCeiling:yre,RightDoubleBracket:vre,RightDownTeeVector:Sre,RightDownVectorBar:Tre,RightDownVector:xre,RightFloor:Cre,rightharpoondown:wre,rightharpoonup:Rre,rightleftarrows:Are,rightleftharpoons:Nre,rightrightarrows:Ore,rightsquigarrow:Ire,RightTeeArrow:Mre,RightTee:Dre,RightTeeVector:kre,rightthreetimes:Lre,RightTriangleBar:Pre,RightTriangle:Ure,RightTriangleEqual:Fre,RightUpDownVector:Bre,RightUpTeeVector:Gre,RightUpVectorBar:Vre,RightUpVector:zre,RightVectorBar:Hre,RightVector:qre,ring:Yre,risingdotseq:$re,rlarr:Wre,rlhar:Kre,rlm:jre,rmoustache:Qre,rmoust:Xre,rnmid:Zre,roang:Jre,roarr:eoe,robrk:toe,ropar:noe,ropf:ioe,Ropf:soe,roplus:roe,rotimes:ooe,RoundImplies:aoe,rpar:loe,rpargt:coe,rppolint:doe,rrarr:uoe,Rrightarrow:poe,rsaquo:_oe,rscr:hoe,Rscr:foe,rsh:moe,Rsh:goe,rsqb:boe,rsquo:Eoe,rsquor:yoe,rthree:voe,rtimes:Soe,rtri:Toe,rtrie:xoe,rtrif:Coe,rtriltri:woe,RuleDelayed:Roe,ruluhar:Aoe,rx:Noe,Sacute:Ooe,sacute:Ioe,sbquo:Moe,scap:Doe,Scaron:koe,scaron:Loe,Sc:Poe,sc:Uoe,sccue:Foe,sce:Boe,scE:Goe,Scedil:Voe,scedil:zoe,Scirc:Hoe,scirc:qoe,scnap:Yoe,scnE:$oe,scnsim:Woe,scpolint:Koe,scsim:joe,Scy:Qoe,scy:Xoe,sdotb:Zoe,sdot:Joe,sdote:eae,searhk:tae,searr:nae,seArr:iae,searrow:sae,sect:rae,semi:oae,seswar:aae,setminus:lae,setmn:cae,sext:dae,Sfr:uae,sfr:pae,sfrown:_ae,sharp:hae,SHCHcy:fae,shchcy:mae,SHcy:gae,shcy:bae,ShortDownArrow:Eae,ShortLeftArrow:yae,shortmid:vae,shortparallel:Sae,ShortRightArrow:Tae,ShortUpArrow:xae,shy:Cae,Sigma:wae,sigma:Rae,sigmaf:Aae,sigmav:Nae,sim:Oae,simdot:Iae,sime:Mae,simeq:Dae,simg:kae,simgE:Lae,siml:Pae,simlE:Uae,simne:Fae,simplus:Bae,simrarr:Gae,slarr:Vae,SmallCircle:zae,smallsetminus:Hae,smashp:qae,smeparsl:Yae,smid:$ae,smile:Wae,smt:Kae,smte:jae,smtes:Qae,SOFTcy:Xae,softcy:Zae,solbar:Jae,solb:ele,sol:tle,Sopf:nle,sopf:ile,spades:sle,spadesuit:rle,spar:ole,sqcap:ale,sqcaps:lle,sqcup:cle,sqcups:dle,Sqrt:ule,sqsub:ple,sqsube:_le,sqsubset:hle,sqsubseteq:fle,sqsup:mle,sqsupe:gle,sqsupset:ble,sqsupseteq:Ele,square:yle,Square:vle,SquareIntersection:Sle,SquareSubset:Tle,SquareSubsetEqual:xle,SquareSuperset:Cle,SquareSupersetEqual:wle,SquareUnion:Rle,squarf:Ale,squ:Nle,squf:Ole,srarr:Ile,Sscr:Mle,sscr:Dle,ssetmn:kle,ssmile:Lle,sstarf:Ple,Star:Ule,star:Fle,starf:Ble,straightepsilon:Gle,straightphi:Vle,strns:zle,sub:Hle,Sub:qle,subdot:Yle,subE:$le,sube:Wle,subedot:Kle,submult:jle,subnE:Qle,subne:Xle,subplus:Zle,subrarr:Jle,subset:ece,Subset:tce,subseteq:nce,subseteqq:ice,SubsetEqual:sce,subsetneq:rce,subsetneqq:oce,subsim:ace,subsub:lce,subsup:cce,succapprox:dce,succ:uce,succcurlyeq:pce,Succeeds:_ce,SucceedsEqual:hce,SucceedsSlantEqual:fce,SucceedsTilde:mce,succeq:gce,succnapprox:bce,succneqq:Ece,succnsim:yce,succsim:vce,SuchThat:Sce,sum:Tce,Sum:xce,sung:Cce,sup1:wce,sup2:Rce,sup3:Ace,sup:Nce,Sup:Oce,supdot:Ice,supdsub:Mce,supE:Dce,supe:kce,supedot:Lce,Superset:Pce,SupersetEqual:Uce,suphsol:Fce,suphsub:Bce,suplarr:Gce,supmult:Vce,supnE:zce,supne:Hce,supplus:qce,supset:Yce,Supset:$ce,supseteq:Wce,supseteqq:Kce,supsetneq:jce,supsetneqq:Qce,supsim:Xce,supsub:Zce,supsup:Jce,swarhk:ede,swarr:tde,swArr:nde,swarrow:ide,swnwar:sde,szlig:rde,Tab:ode,target:ade,Tau:lde,tau:cde,tbrk:dde,Tcaron:ude,tcaron:pde,Tcedil:_de,tcedil:hde,Tcy:fde,tcy:mde,tdot:gde,telrec:bde,Tfr:Ede,tfr:yde,there4:vde,therefore:Sde,Therefore:Tde,Theta:xde,theta:Cde,thetasym:wde,thetav:Rde,thickapprox:Ade,thicksim:Nde,ThickSpace:Ode,ThinSpace:Ide,thinsp:Mde,thkap:Dde,thksim:kde,THORN:Lde,thorn:Pde,tilde:Ude,Tilde:Fde,TildeEqual:Bde,TildeFullEqual:Gde,TildeTilde:Vde,timesbar:zde,timesb:Hde,times:qde,timesd:Yde,tint:$de,toea:Wde,topbot:Kde,topcir:jde,top:Qde,Topf:Xde,topf:Zde,topfork:Jde,tosa:eue,tprime:tue,trade:nue,TRADE:iue,triangle:sue,triangledown:rue,triangleleft:oue,trianglelefteq:aue,triangleq:lue,triangleright:cue,trianglerighteq:due,tridot:uue,trie:pue,triminus:_ue,TripleDot:hue,triplus:fue,trisb:mue,tritime:gue,trpezium:bue,Tscr:Eue,tscr:yue,TScy:vue,tscy:Sue,TSHcy:Tue,tshcy:xue,Tstrok:Cue,tstrok:wue,twixt:Rue,twoheadleftarrow:Aue,twoheadrightarrow:Nue,Uacute:Oue,uacute:Iue,uarr:Mue,Uarr:Due,uArr:kue,Uarrocir:Lue,Ubrcy:Pue,ubrcy:Uue,Ubreve:Fue,ubreve:Bue,Ucirc:Gue,ucirc:Vue,Ucy:zue,ucy:Hue,udarr:que,Udblac:Yue,udblac:$ue,udhar:Wue,ufisht:Kue,Ufr:jue,ufr:Que,Ugrave:Xue,ugrave:Zue,uHar:Jue,uharl:epe,uharr:tpe,uhblk:npe,ulcorn:ipe,ulcorner:spe,ulcrop:rpe,ultri:ope,Umacr:ape,umacr:lpe,uml:cpe,UnderBar:dpe,UnderBrace:upe,UnderBracket:ppe,UnderParenthesis:_pe,Union:hpe,UnionPlus:fpe,Uogon:mpe,uogon:gpe,Uopf:bpe,uopf:Epe,UpArrowBar:ype,uparrow:vpe,UpArrow:Spe,Uparrow:Tpe,UpArrowDownArrow:xpe,updownarrow:Cpe,UpDownArrow:wpe,Updownarrow:Rpe,UpEquilibrium:Ape,upharpoonleft:Npe,upharpoonright:Ope,uplus:Ipe,UpperLeftArrow:Mpe,UpperRightArrow:Dpe,upsi:kpe,Upsi:Lpe,upsih:Ppe,Upsilon:Upe,upsilon:Fpe,UpTeeArrow:Bpe,UpTee:Gpe,upuparrows:Vpe,urcorn:zpe,urcorner:Hpe,urcrop:qpe,Uring:Ype,uring:$pe,urtri:Wpe,Uscr:Kpe,uscr:jpe,utdot:Qpe,Utilde:Xpe,utilde:Zpe,utri:Jpe,utrif:e_e,uuarr:t_e,Uuml:n_e,uuml:i_e,uwangle:s_e,vangrt:r_e,varepsilon:o_e,varkappa:a_e,varnothing:l_e,varphi:c_e,varpi:d_e,varpropto:u_e,varr:p_e,vArr:__e,varrho:h_e,varsigma:f_e,varsubsetneq:m_e,varsubsetneqq:g_e,varsupsetneq:b_e,varsupsetneqq:E_e,vartheta:y_e,vartriangleleft:v_e,vartriangleright:S_e,vBar:T_e,Vbar:x_e,vBarv:C_e,Vcy:w_e,vcy:R_e,vdash:A_e,vDash:N_e,Vdash:O_e,VDash:I_e,Vdashl:M_e,veebar:D_e,vee:k_e,Vee:L_e,veeeq:P_e,vellip:U_e,verbar:F_e,Verbar:B_e,vert:G_e,Vert:V_e,VerticalBar:z_e,VerticalLine:H_e,VerticalSeparator:q_e,VerticalTilde:Y_e,VeryThinSpace:$_e,Vfr:W_e,vfr:K_e,vltri:j_e,vnsub:Q_e,vnsup:X_e,Vopf:Z_e,vopf:J_e,vprop:ehe,vrtri:the,Vscr:nhe,vscr:ihe,vsubnE:she,vsubne:rhe,vsupnE:ohe,vsupne:ahe,Vvdash:lhe,vzigzag:che,Wcirc:dhe,wcirc:uhe,wedbar:phe,wedge:_he,Wedge:hhe,wedgeq:fhe,weierp:mhe,Wfr:ghe,wfr:bhe,Wopf:Ehe,wopf:yhe,wp:vhe,wr:She,wreath:The,Wscr:xhe,wscr:Che,xcap:whe,xcirc:Rhe,xcup:Ahe,xdtri:Nhe,Xfr:Ohe,xfr:Ihe,xharr:Mhe,xhArr:Dhe,Xi:khe,xi:Lhe,xlarr:Phe,xlArr:Uhe,xmap:Fhe,xnis:Bhe,xodot:Ghe,Xopf:Vhe,xopf:zhe,xoplus:Hhe,xotime:qhe,xrarr:Yhe,xrArr:$he,Xscr:Whe,xscr:Khe,xsqcup:jhe,xuplus:Qhe,xutri:Xhe,xvee:Zhe,xwedge:Jhe,Yacute:efe,yacute:tfe,YAcy:nfe,yacy:ife,Ycirc:sfe,ycirc:rfe,Ycy:ofe,ycy:afe,yen:lfe,Yfr:cfe,yfr:dfe,YIcy:ufe,yicy:pfe,Yopf:_fe,yopf:hfe,Yscr:ffe,yscr:mfe,YUcy:gfe,yucy:bfe,yuml:Efe,Yuml:yfe,Zacute:vfe,zacute:Sfe,Zcaron:Tfe,zcaron:xfe,Zcy:Cfe,zcy:wfe,Zdot:Rfe,zdot:Afe,zeetrf:Nfe,ZeroWidthSpace:Ofe,Zeta:Ife,zeta:Mfe,zfr:Dfe,Zfr:kfe,ZHcy:Lfe,zhcy:Pfe,zigrarr:Ufe,zopf:Ffe,Zopf:Bfe,Zscr:Gfe,zscr:Vfe,zwj:zfe,zwnj:Hfe};var WA=qfe,iE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,qa={},Uv={};function Yfe(n){var e,t,i=Uv[n];if(i)return i;for(i=Uv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?i.push(t):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(t=!0),a=Yfe(e),i=0,s=n.length;i=55296&&r<=57343){if(r>=55296&&r<=56319&&i+1=56320&&o<=57343)){l+=encodeURIComponent(n[i]+n[i+1]),i++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(n[i])}return l}$u.defaultChars=";/?:@&=+$,-_.!~*'()#";$u.componentChars="-_.!~*'()";var $fe=$u,Fv={};function Wfe(n){var e,t,i=Fv[n];if(i)return i;for(i=Fv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),i.push(t);for(e=0;e=55296&&d<=57343?h+="���":h+=String.fromCharCode(d),s+=6;continue}if((o&248)===240&&s+91114111?h+="����":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}h+="�"}return h})}Wu.defaultChars=";/?:@&=+$,#";Wu.componentChars="";var Kfe=Wu,jfe=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function Jd(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Qfe=/^([a-z0-9.+-]+:)/i,Xfe=/:[0-9]*$/,Zfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Jfe=["<",">",'"',"`"," ","\r",` `," "],eme=["{","}","|","\\","^","`"].concat(Jfe),tme=["'"].concat(eme),Bv=["%","/","?",";","#"].concat(tme),Gv=["/","?","#"],nme=255,Vv=/^[+a-z0-9A-Z_-]{0,63}$/,ime=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zv={javascript:!0,"javascript:":!0},Hv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function sme(n,e){if(n&&n instanceof Jd)return n;var t=new Jd;return t.parse(n,e),t}Jd.prototype.parse=function(n,e){var t,i,s,r,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var l=Zfe.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=Qfe.exec(a);if(u&&(u=u[0],s=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(u&&zv[u])&&(a=a.substr(2),this.slashes=!0)),!zv[u]&&(o||u&&!Hv[u])){var d=-1;for(t=0;t127?g+="x":g+=b[y];if(!g.match(Vv)){var S=E.slice(0,t),C=E.slice(t+1),T=b.match(ime);T&&(S.push(T[1]),C.unshift(T[2])),C.length&&(a=C.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>nme&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var O=a.indexOf("#");O!==-1&&(this.hash=a.substr(O),a=a.slice(0,O));var k=a.indexOf("?");return k!==-1&&(this.search=a.substr(k),a=a.slice(0,k)),a&&(this.pathname=a),Hv[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Jd.prototype.parseHost=function(n){var e=Xfe.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var rme=sme;qa.encode=$fe;qa.decode=Kfe;qa.format=jfe;qa.parse=rme;var Ur={},Pp,qv;function KA(){return qv||(qv=1,Pp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Pp}var Up,Yv;function jA(){return Yv||(Yv=1,Up=/[\0-\x1F\x7F-\x9F]/),Up}var Fp,$v;function ome(){return $v||($v=1,Fp=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Fp}var Bp,Wv;function QA(){return Wv||(Wv=1,Bp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Bp}var Kv;function ame(){return Kv||(Kv=1,Ur.Any=KA(),Ur.Cc=jA(),Ur.Cf=ome(),Ur.P=iE,Ur.Z=QA()),Ur}(function(n){function e(L){return Object.prototype.toString.call(L)}function t(L){return e(L)==="[object String]"}var i=Object.prototype.hasOwnProperty;function s(L,$){return i.call(L,$)}function r(L){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(H){if(H){if(typeof H!="object")throw new TypeError(H+"must be object");Object.keys(H).forEach(function(U){L[U]=H[U]})}}),L}function o(L,$,H){return[].concat(L.slice(0,$),H,L.slice($+1))}function a(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function l(L){if(L>65535){L-=65536;var $=55296+(L>>10),H=56320+(L&1023);return String.fromCharCode($,H)}return String.fromCharCode(L)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(u.source+"|"+d.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,_=WA;function m(L,$){var H;return s(_,$)?_[$]:$.charCodeAt(0)===35&&f.test($)&&(H=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),a(H))?l(H):L}function E(L){return L.indexOf("\\")<0?L:L.replace(u,"$1")}function b(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(h,function($,H,U){return H||m($,U)})}var g=/[&<>"]/,y=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function S(L){return v[L]}function C(L){return g.test(L)?L.replace(y,S):L}var T=/[.?*+^$[\]\\(){}|-]/g;function O(L){return L.replace(T,"\\$&")}function k(L){switch(L){case 9:case 32:return!0}return!1}function x(L){if(L>=8192&&L<=8202)return!0;switch(L){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var I=iE;function F(L){return I.test(L)}function B(L){switch(L){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ne(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=qa,n.lib.ucmicro=ame(),n.assign=r,n.isString=t,n.has=s,n.unescapeMd=E,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=C,n.arrayReplaceAt=o,n.isSpace=k,n.isWhiteSpace=x,n.isMdAsciiPunct=B,n.isPunctChar=F,n.escapeRE=O,n.normalizeReference=ne})(Bt);var Ku={},lme=function(e,t,i){var s,r,o,a,l=-1,u=e.posMax,d=e.pos;for(e.pos=t+1,s=1;e.pos32))return a;if(s===41){if(r===0)break;r--}o++}return t===o||r!==0||(a.str=jv(e.slice(t,o)),a.pos=o,a.ok=!0),a},dme=Bt.unescapeAll,ume=function(e,t,i){var s,r,o=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(a>=i||(r=e.charCodeAt(a),r!==34&&r!==39&&r!==40))return l;for(a++,r===40&&(r=41);a"+po(r.content)+""};_s.code_block=function(n,e,t,i,s){var r=n[e];return""+po(n[e].content)+` `};_s.fence=function(n,e,t,i,s){var r=n[e],o=r.info?_me(r.info).trim():"",a="",l="",u,d,h,f,_;return o&&(h=o.split(/(\s+)/g),a=h[0],l=h.slice(2).join("")),t.highlight?u=t.highlight(r.content,a,l)||po(r.content):u=po(r.content),u.indexOf(""+u+` @@ -30,7 +30,7 @@ `:">",r)};Ya.prototype.renderInline=function(n,e,t){for(var i,s="",r=this.rules,o=0,a=n.length;o\s]/i.test(n)}function Sme(n){return/^<\/a\s*>/i.test(n)}var Tme=function(e){var t,i,s,r,o,a,l,u,d,h,f,_,m,E,b,g,y=e.tokens,v;if(e.md.options.linkify){for(i=0,s=y.length;i=0;t--){if(a=r[t],a.type==="link_close"){for(t--;r[t].level!==a.level&&r[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(vme(a.content)&&m>0&&m--,Sme(a.content)&&m++),!(m>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,v=e.md.linkify.match(d),l=[],_=a.level,f=0,v.length>0&&v[0].index===0&&t>0&&r[t-1].type==="text_special"&&(v=v.slice(1)),u=0;uf&&(o=new e.Token("text","",0),o.content=d.slice(f,h),o.level=_,l.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=_++,o.markup="linkify",o.info="auto",l.push(o),o=new e.Token("text","",0),o.content=g,o.level=_,l.push(o),o=new e.Token("link_close","a",-1),o.level=--_,o.markup="linkify",o.info="auto",l.push(o),f=v[u].lastIndex);f=0;e--)t=n[e],t.type==="text"&&!i&&(t.content=t.content.replace(Cme,Rme)),t.type==="link_open"&&t.info==="auto"&&i--,t.type==="link_close"&&t.info==="auto"&&i++}function Nme(n){var e,t,i=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!i&&XA.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&i--,t.type==="link_close"&&t.info==="auto"&&i++}var Ome=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(xme.test(e.tokens[t].content)&&Ame(e.tokens[t].children),XA.test(e.tokens[t].content)&&Nme(e.tokens[t].children))},Qv=Bt.isWhiteSpace,Xv=Bt.isPunctChar,Zv=Bt.isMdAsciiPunct,Ime=/['"]/,Jv=/['"]/g,eS="’";function Dc(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function Mme(n,e){var t,i,s,r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C,T;for(S=[],t=0;t=0&&!(S[y].level<=l);y--);if(S.length=y+1,i.type==="text"){s=i.content,o=0,a=s.length;e:for(;o=0)d=s.charCodeAt(r.index-1);else for(y=t-1;y>=0&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y--)if(n[y].content){d=n[y].content.charCodeAt(n[y].content.length-1);break}if(h=32,o=48&&d<=57&&(g=b=!1),b&&g&&(b=f,g=_),!b&&!g){v&&(i.content=Dc(i.content,r.index,eS));continue}if(g){for(y=S.length-1;y>=0&&(u=S[y],!(S[y].level=0;t--)e.tokens[t].type!=="inline"||!Ime.test(e.tokens[t].content)||Mme(e.tokens[t].children,e)},kme=function(e){var t,i,s,r,o,a,l=e.tokens;for(t=0,i=l.length;t=0&&(i=this.attrs[t][1]),i};$a.prototype.attrJoin=function(e,t){var i=this.attrIndex(e);i<0?this.attrPush([e,t]):this.attrs[i][1]=this.attrs[i][1]+" "+t};var rE=$a,Lme=rE;function ZA(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}ZA.prototype.Token=Lme;var Pme=ZA,Ume=sE,Gp=[["normalize",gme],["block",bme],["inline",Eme],["linkify",Tme],["replacements",Ome],["smartquotes",Dme],["text_join",kme]];function oE(){this.ruler=new Ume;for(var n=0;ni||(d=t+1,e.sCount[d]=4||(a=e.bMarks[d]+e.tShift[d],a>=e.eMarks[d])||(C=e.src.charCodeAt(a++),C!==124&&C!==45&&C!==58)||a>=e.eMarks[d]||(T=e.src.charCodeAt(a++),T!==124&&T!==45&&T!==58&&!Vp(T))||C===45&&Vp(T))return!1;for(;a=4||(h=tS(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),f=h.length,f===0||f!==m.length))return!1;if(s)return!0;for(y=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),_=e.push("table_open","table",1),_.map=b=[t,0],_=e.push("thead_open","thead",1),_.map=[t,t+1],_=e.push("tr_open","tr",1),_.map=[t,t+1],l=0;l=4)break;for(h=tS(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),d===t+2&&(_=e.push("tbody_open","tbody",1),_.map=g=[t+2,0]),_=e.push("tr_open","tr",1),_.map=[d,d+1],l=0;l=4){s++,r=s;continue}break}return e.line=r,o=e.push("code_block","code",0),o.content=e.getLines(t,r,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0},Vme=function(e,t,i,s){var r,o,a,l,u,d,h,f=!1,_=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||_+3>m||(r=e.src.charCodeAt(_),r!==126&&r!==96)||(u=_,_=e.skipChars(_,r),o=_-u,o<3)||(h=e.src.slice(u,_),a=e.src.slice(_,m),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(s)return!0;for(l=t;l++,!(l>=i||(_=u=e.bMarks[l]+e.tShift[l],m=e.eMarks[l],_=4)&&(_=e.skipChars(_,r),!(_-u=4||e.src.charCodeAt(I)!==62)return!1;if(s)return!0;for(m=[],E=[],y=[],v=[],T=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",f=t;f=F));f++){if(e.src.charCodeAt(I++)===62&&!k){for(l=e.sCount[f]+1,e.src.charCodeAt(I)===32?(I++,l++,r=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[f]+l)%4===3?(I++,l++,r=!1):r=!0):S=!1,_=l,m.push(e.bMarks[f]),e.bMarks[f]=I;I=F,E.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(S?1:0),y.push(e.sCount[f]),e.sCount[f]=_-l,v.push(e.tShift[f]),e.tShift[f]=I-e.bMarks[f];continue}if(d)break;for(C=!1,a=0,u=T.length;a",O.map=h=[t,0],e.md.block.tokenize(e,t,f),O=e.push("blockquote_close","blockquote",-1),O.markup=">",e.lineMax=x,e.parentType=g,h[1]=e.line,a=0;a=4||(r=e.src.charCodeAt(u++),r!==42&&r!==45&&r!==95))return!1;for(o=1;u=r||(t=n.src.charCodeAt(s++),t<48||t>57))return-1;for(;;){if(s>=r)return-1;if(t=n.src.charCodeAt(s++),t>=48&&t<=57){if(s-i>=10)return-1;continue}if(t===41||t===46)break;return-1}return s=4||e.listIndent>=0&&e.sCount[H]-e.listIndent>=4&&e.sCount[H]=e.blkIndent&&(U=!0),(I=iS(e,H))>=0){if(h=!0,B=e.bMarks[H]+e.tShift[H],g=Number(e.src.slice(B,I-1)),U&&g!==1)return!1}else if((I=nS(e,H))>=0)h=!1;else return!1;if(U&&e.skipSpaces(I)>=e.eMarks[H])return!1;if(s)return!0;for(b=e.src.charCodeAt(I-1),E=e.tokens.length,h?($=e.push("ordered_list_open","ol",1),g!==1&&($.attrs=[["start",g]])):$=e.push("bullet_list_open","ul",1),$.map=m=[H,0],$.markup=String.fromCharCode(b),F=!1,L=e.md.block.ruler.getRules("list"),C=e.parentType,e.parentType="list";H=y?u=1:u=v-d,u>4&&(u=1),l=d+u,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[H,0],h&&($.info=e.src.slice(B,I-1)),k=e.tight,O=e.tShift[H],T=e.sCount[H],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[H]=o-e.bMarks[H],e.sCount[H]=v,o>=y&&e.isEmpty(H+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,H,i,!0),(!e.tight||F)&&(Q=!1),F=e.line-H>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[H]=O,e.sCount[H]=T,e.tight=k,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),H=e.line,f[1]=H,H>=i||e.sCount[H]=4)break;for(ne=!1,a=0,_=L.length;a<_;a++)if(L[a](e,H,i,!0)){ne=!0;break}if(ne)break;if(h){if(I=iS(e,H),I<0)break;B=e.bMarks[H]+e.tShift[H]}else if(I=nS(e,H),I<0)break;if(b!==e.src.charCodeAt(I-1))break}return h?$=e.push("ordered_list_close","ol",-1):$=e.push("bullet_list_close","ul",-1),$.markup=String.fromCharCode(b),m[1]=H,e.line=H,e.parentType=C,Q&&$me(e,E),!0},Kme=Bt.normalizeReference,kc=Bt.isSpace,jme=function(e,t,i,s){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C=0,T=e.bMarks[t]+e.tShift[t],O=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(T)!==91)return!1;for(;++T3)&&!(e.sCount[k]<0)){for(y=!1,d=0,h=v.length;d"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:S,href:u}),e.parentType=m,e.line=t+C+1),!0)},Qme=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ju={},Xme="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zme="[^\"'=<>`\\x00-\\x20]+",Jme="'[^']*'",ege='"[^"]*"',tge="(?:"+Zme+"|"+Jme+"|"+ege+")",nge="(?:\\s+"+Xme+"(?:\\s*=\\s*"+tge+")?)",eN="<[A-Za-z][A-Za-z0-9\\-]*"+nge+"*\\s*\\/?>",tN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ige="|",sge="<[?][\\s\\S]*?[?]>",rge="]*>",oge="",age=new RegExp("^(?:"+eN+"|"+tN+"|"+ige+"|"+sge+"|"+rge+"|"+oge+")"),lge=new RegExp("^(?:"+eN+"|"+tN+")");ju.HTML_TAG_RE=age;ju.HTML_OPEN_CLOSE_TAG_RE=lge;var cge=Qme,dge=ju.HTML_OPEN_CLOSE_TAG_RE,Ro=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(dge.source+"\\s*$"),/^$/,!1]],uge=function(e,t,i,s){var r,o,a,l,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,d),r=0;r=4||(r=e.src.charCodeAt(u),r!==35||u>=d))return!1;for(o=1,r=e.src.charCodeAt(++u);r===35&&u6||uu&&sS(e.src.charCodeAt(a-1))&&(d=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,d).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},_ge=function(e,t,i){var s,r,o,a,l,u,d,h,f,_=t+1,m,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";_3)){if(e.sCount[_]>=e.blkIndent&&(u=e.bMarks[_]+e.tShift[_],d=e.eMarks[_],u=d)))){h=f===61?1:2;break}if(!(e.sCount[_]<0)){for(r=!1,o=0,a=E.length;o3)&&!(e.sCount[d]<0)){for(r=!1,o=0,a=h.length;o0&&this.level++,this.tokens.push(i),i};hs.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};hs.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Qu(this.src.charCodeAt(--e)))return e+1;return e};hs.prototype.skipChars=function(e,t){for(var i=this.src.length;ei;)if(t!==this.src.charCodeAt(--e))return e+1;return e};hs.prototype.getLines=function(e,t,i,s){var r,o,a,l,u,d,h,f=e;if(e>=t)return"";for(d=new Array(t-e),r=0;fi?d[r]=new Array(o-i+1).join(" ")+this.src.slice(l,u):d[r]=this.src.slice(l,u)}return d.join("")};hs.prototype.Token=nN;var fge=hs,mge=sE,Lc=[["table",Bme,["paragraph","reference"]],["code",Gme],["fence",Vme,["paragraph","reference","blockquote","list"]],["blockquote",Hme,["paragraph","reference","blockquote","list"]],["hr",Yme,["paragraph","reference","blockquote","list"]],["list",Wme,["paragraph","reference","blockquote"]],["reference",jme],["html_block",uge,["paragraph","reference","blockquote"]],["heading",pge,["paragraph","reference","blockquote"]],["lheading",_ge],["paragraph",hge]];function Xu(){this.ruler=new mge;for(var n=0;n=t||n.sCount[l]=d){n.line=t;break}for(r=n.line,s=0;s=n.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");n.tight=!u,n.isEmpty(n.line-1)&&(u=!0),l=n.line,l0||(i=e.pos,s=e.posMax,i+3>s)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(r=e.pending.match(yge),!r)||(o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),u=e.md.normalizeLink(l),!e.md.validateLink(u))?!1:(t||(e.pending=e.pending.slice(0,-o.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(l),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=l.length-o.length,!0)},Sge=Bt.isSpace,Tge=function(e,t){var i,s,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,s=e.posMax,!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(r=i-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){aE[n.charCodeAt(0)]=1});var Cge=function(e,t){var i,s,r,o,a,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=u))return!1;if(i=e.src.charCodeAt(l),i===10){for(t||e.push("hardbreak","br",0),l++;l=55296&&i<=56319&&l+1=56320&&s<=57343&&(o+=e.src[l+1],l++)),r="\\"+o,t||(a=e.push("text_special","",0),i<256&&aE[i]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=l+1,!0},wge=function(e,t){var i,s,r,o,a,l,u,d,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(i=h,h++,s=e.posMax;h=0;t--)i=e[t],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(s=e[i.end],a=t>0&&e[t-1].end===i.end+1&&e[t-1].marker===i.marker&&e[t-1].token===i.token-1&&e[i.end+1].token===s.token+1,o=String.fromCharCode(i.marker),r=n.tokens[i.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=n.tokens[s.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[i.end+1].token].content="",t--))}Ju.postProcess=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(aS(e,e.delimiters),t=0;t=E)return!1;if(b=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",b=l;l=E||e.src.charCodeAt(l)!==41)&&(g=!0),l++}if(g){if(typeof e.env.references>"u")return!1;if(l=0?r=e.src.slice(b,l++):l=o+1):l=o+1,r||(r=e.src.slice(a,o)),d=e.env.references[Rge(r)],!d)return e.pos=m,!1;f=d.href,_=d.title}return t||(e.pos=a,e.posMax=o,h=e.push("link_open","a",1),h.attrs=i=[["href",f]],_&&i.push(["title",_]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=l,e.posMax=E,!0},Nge=Bt.normalizeReference,qp=Bt.isSpace,Oge=function(e,t){var i,s,r,o,a,l,u,d,h,f,_,m,E,b="",g=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(u=a+1,u=y)return!1;for(E=u,h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),h.ok&&(b=e.md.normalizeLink(h.str),e.md.validateLink(b)?u=h.pos:b=""),E=u;u=y||e.src.charCodeAt(u)!==41)return e.pos=g,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u=0?o=e.src.slice(E,u++):u=a+1):u=a+1,o||(o=e.src.slice(l,a)),d=e.env.references[Nge(o)],!d)return e.pos=g,!1;b=d.href,f=d.title}return t||(r=e.src.slice(l,a),e.md.inline.parse(r,e.md,e.env,m=[]),_=e.push("image","img",0),_.attrs=i=[["src",b],["alt",""]],_.children=m,_.content=r,f&&i.push(["title",f])),e.pos=u,e.posMax=y,!0},Ige=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Mge=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Dge=function(e,t){var i,s,r,o,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(o=e.src.charCodeAt(u),o===60))return!1;if(o===62)break}return i=e.src.slice(a+1,u),Mge.test(i)?(s=e.md.normalizeLink(i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):Ige.test(i)?(s=e.md.normalizeLink("mailto:"+i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):!1},kge=ju.HTML_TAG_RE;function Lge(n){return/^\s]/i.test(n)}function Pge(n){return/^<\/a\s*>/i.test(n)}function Uge(n){var e=n|32;return e>=97&&e<=122}var Fge=function(e,t){var i,s,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(i=e.src.charCodeAt(a+1),i!==33&&i!==63&&i!==47&&!Uge(i))||(s=e.src.slice(a).match(kge),!s)?!1:(t||(o=e.push("html_inline","",0),o.content=s[0],Lge(o.content)&&e.linkLevel++,Pge(o.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},lS=WA,Bge=Bt.has,Gge=Bt.isValidEntityCode,cS=Bt.fromCodePoint,Vge=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,zge=/^&([a-z][a-z0-9]{1,31});/i,Hge=function(e,t){var i,s,r,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(i=e.src.charCodeAt(a+1),i===35){if(r=e.src.slice(a).match(Vge),r)return t||(s=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=Gge(s)?cS(s):cS(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(zge),r&&Bge(lS,r[1]))return t||(o=e.push("text_special","",0),o.content=lS[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function dS(n){var e,t,i,s,r,o,a,l,u={},d=n.length;if(d){var h=0,f=-2,_=[];for(e=0;er;t-=_[t]+1)if(s=n[t],s.marker===i.marker&&s.open&&s.end<0&&(a=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(a=!0),!a)){l=t>0&&!n[t-1].open?_[t-1]+1:0,_[e]=e-t+l,_[t]=l,i.open=!1,s.end=e,s.close=!1,o=-1,f=-2;break}o!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var qge=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(dS(e.delimiters),t=0;t0&&s++,r[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(s),i};fc.prototype.scanDelims=function(n,e){var t=n,i,s,r,o,a,l,u,d,h,f=!0,_=!0,m=this.posMax,E=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[i]=n.pos};mc.prototype.tokenize=function(n){for(var e,t,i,s=this.ruler.getRules(""),r=s.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};mc.prototype.parse=function(n,e,t,i){var s,r,o,a=new this.State(n,e,t,i);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,s=0;s|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Wp}function Vg(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n}function ep(n){return Object.prototype.toString.call(n)}function jge(n){return ep(n)==="[object String]"}function Qge(n){return ep(n)==="[object Object]"}function Xge(n){return ep(n)==="[object RegExp]"}function mS(n){return ep(n)==="[object Function]"}function Zge(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var iN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Jge(n){return Object.keys(n||{}).reduce(function(e,t){return e||iN.hasOwnProperty(t)},!1)}var ebe={"http:":{validate:function(n,e,t){var i=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(i)?i.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var i=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(i)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:i.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var i=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(i)?i.match(t.re.mailto)[0].length:0}}},tbe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",nbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ibe(n){n.__index__=-1,n.__text_cache__=""}function sbe(n){return function(e,t){var i=e.slice(t);return n.test(i)?i.match(n)[0].length:0}}function gS(){return function(n,e){e.normalize(n)}}function eu(n){var e=n.re=Kge()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(tbe),t.push(e.src_xn),e.src_tlds=t.join("|");function i(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var s=[];n.__compiled__={};function r(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(n.__schemas__).forEach(function(a){var l=n.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(n.__compiled__[a]=u,Qge(l)){Xge(l.validate)?u.validate=sbe(l.validate):mS(l.validate)?u.validate=l.validate:r(a,l),mS(l.normalize)?u.normalize=l.normalize:l.normalize?r(a,l):u.normalize=gS();return}if(jge(l)){s.push(a);return}r(a,l)}}),s.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:gS()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(Zge).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),ibe(n)}function rbe(n,e){var t=n.__index__,i=n.__last_index__,s=n.__text_cache__.slice(t,i);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=i+e,this.raw=s,this.text=s,this.url=s}function zg(n,e){var t=new rbe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function oi(n,e){if(!(this instanceof oi))return new oi(n,e);e||Jge(n)&&(e=n,n={}),this.__opts__=Vg({},iN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Vg({},ebe,n),this.__compiled__={},this.__tlds__=nbe,this.__tlds_replaced__=!1,this.re={},eu(this)}oi.prototype.add=function(e,t){return this.__schemas__[e]=t,eu(this),this};oi.prototype.set=function(e){return this.__opts__=Vg(this.__opts__,e),this};oi.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,i,s,r,o,a,l,u,d;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(r=this.testSchemaAt(e,t[2],l.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(s=e.match(this.re.email_fuzzy))!==null&&(o=s.index+s[1].length,a=s.index+s[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};oi.prototype.pretest=function(e){return this.re.pretest.test(e)};oi.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0};oi.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(zg(this,t)),t=this.__last_index__);for(var s=t?e.slice(t):e;this.test(s);)i.push(zg(this,t)),s=s.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null};oi.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,zg(this,0)):null};oi.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,s,r){return i!==r[s-1]}).reverse(),eu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,eu(this),this)};oi.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};oi.prototype.onCompile=function(){};var obe=oi;const ra=2147483647,is=36,cE=1,Jl=26,abe=38,lbe=700,sN=72,rN=128,oN="-",cbe=/^xn--/,dbe=/[^\0-\x7F]/,ube=/[\x2E\u3002\uFF0E\uFF61]/g,pbe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Kp=is-cE,ss=Math.floor,jp=String.fromCharCode;function dr(n){throw new RangeError(pbe[n])}function _be(n,e){const t=[];let i=n.length;for(;i--;)t[i]=e(n[i]);return t}function aN(n,e){const t=n.split("@");let i="";t.length>1&&(i=t[0]+"@",n=t[1]),n=n.replace(ube,".");const s=n.split("."),r=_be(s,e).join(".");return i+r}function dE(n){const e=[];let t=0;const i=n.length;for(;t=55296&&s<=56319&&tString.fromCodePoint(...n),hbe=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:is},bS=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},cN=function(n,e,t){let i=0;for(n=t?ss(n/lbe):n>>1,n+=ss(n/e);n>Kp*Jl>>1;i+=is)n=ss(n/Kp);return ss(i+(Kp+1)*n/(n+abe))},uE=function(n){const e=[],t=n.length;let i=0,s=rN,r=sN,o=n.lastIndexOf(oN);o<0&&(o=0);for(let a=0;a=128&&dr("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&dr("invalid-input");const f=hbe(n.charCodeAt(a++));f>=is&&dr("invalid-input"),f>ss((ra-i)/d)&&dr("overflow"),i+=f*d;const _=h<=r?cE:h>=r+Jl?Jl:h-r;if(f<_)break;const m=is-_;d>ss(ra/m)&&dr("overflow"),d*=m}const u=e.length+1;r=cN(i-l,u,l==0),ss(i/u)>ra-s&&dr("overflow"),s+=ss(i/u),i%=u,e.splice(i++,0,s)}return String.fromCodePoint(...e)},pE=function(n){const e=[];n=dE(n);const t=n.length;let i=rN,s=0,r=sN;for(const l of n)l<128&&e.push(jp(l));const o=e.length;let a=o;for(o&&e.push(oN);a=i&&dss((ra-s)/u)&&dr("overflow"),s+=(l-i)*u,i=l;for(const d of n)if(dra&&dr("overflow"),d===i){let h=s;for(let f=is;;f+=is){const _=f<=r?cE:f>=r+Jl?Jl:f-r;if(h<_)break;const m=h-_,E=is-_;e.push(jp(bS(_+m%E,0))),h=ss(m/E)}e.push(jp(bS(h,0))),r=cN(s,u,a===o),s=0,++a}++s,++i}return e.join("")},dN=function(n){return aN(n,function(e){return cbe.test(e)?uE(e.slice(4).toLowerCase()):e})},uN=function(n){return aN(n,function(e){return dbe.test(e)?"xn--"+pE(e):e})},fbe={version:"2.1.0",ucs2:{decode:dE,encode:lN},decode:uE,encode:pE,toASCII:uN,toUnicode:dN},mbe=Object.freeze(Object.defineProperty({__proto__:null,decode:uE,default:fbe,encode:pE,toASCII:uN,toUnicode:dN,ucs2decode:dE,ucs2encode:lN},Symbol.toStringTag,{value:"Module"})),gbe=KP(mbe);var bbe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Ebe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ybe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Dl=Bt,vbe=Ku,Sbe=hme,Tbe=Fme,xbe=gge,Cbe=Wge,wbe=obe,eo=qa,pN=gbe,Rbe={default:bbe,zero:Ebe,commonmark:ybe},Abe=/^(vbscript|javascript|file|data):/,Nbe=/^data:image\/(gif|png|jpeg|webp);/;function Obe(n){var e=n.trim().toLowerCase();return Abe.test(e)?!!Nbe.test(e):!0}var _N=["http:","https:","mailto:"];function Ibe(n){var e=eo.parse(n,!0);if(e.hostname&&(!e.protocol||_N.indexOf(e.protocol)>=0))try{e.hostname=pN.toASCII(e.hostname)}catch{}return eo.encode(eo.format(e))}function Mbe(n){var e=eo.parse(n,!0);if(e.hostname&&(!e.protocol||_N.indexOf(e.protocol)>=0))try{e.hostname=pN.toUnicode(e.hostname)}catch{}return eo.decode(eo.format(e),eo.decode.defaultChars+"%")}function Ci(n,e){if(!(this instanceof Ci))return new Ci(n,e);e||Dl.isString(n)||(e=n||{},n="default"),this.inline=new Cbe,this.block=new xbe,this.core=new Tbe,this.renderer=new Sbe,this.linkify=new wbe,this.validateLink=Obe,this.normalizeLink=Ibe,this.normalizeLinkText=Mbe,this.utils=Dl,this.helpers=Dl.assign({},vbe),this.options={},this.configure(n),e&&this.set(e)}Ci.prototype.set=function(n){return Dl.assign(this.options,n),this};Ci.prototype.configure=function(n){var e=this,t;if(Dl.isString(n)&&(t=n,n=Rbe[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};Ci.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Ci.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Ci.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Ci.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Ci.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Ci.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Ci.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Dbe=Ci,kbe=Dbe;const Lbe=Ar(kbe),Pbe="😀",Ube="😃",Fbe="😄",Bbe="😁",Gbe="😆",Vbe="😆",zbe="😅",Hbe="🤣",qbe="😂",Ybe="🙂",$be="🙃",Wbe="😉",Kbe="😊",jbe="😇",Qbe="🥰",Xbe="😍",Zbe="🤩",Jbe="😘",eEe="😗",tEe="☺️",nEe="😚",iEe="😙",sEe="🥲",rEe="😋",oEe="😛",aEe="😜",lEe="🤪",cEe="😝",dEe="🤑",uEe="🤗",pEe="🤭",_Ee="🤫",hEe="🤔",fEe="🤐",mEe="🤨",gEe="😐",bEe="😑",EEe="😶",yEe="😏",vEe="😒",SEe="🙄",TEe="😬",xEe="🤥",CEe="😌",wEe="😔",REe="😪",AEe="🤤",NEe="😴",OEe="😷",IEe="🤒",MEe="🤕",DEe="🤢",kEe="🤮",LEe="🤧",PEe="🥵",UEe="🥶",FEe="🥴",BEe="😵",GEe="🤯",VEe="🤠",zEe="🥳",HEe="🥸",qEe="😎",YEe="🤓",$Ee="🧐",WEe="😕",KEe="😟",jEe="🙁",QEe="☹️",XEe="😮",ZEe="😯",JEe="😲",eye="😳",tye="🥺",nye="😦",iye="😧",sye="😨",rye="😰",oye="😥",aye="😢",lye="😭",cye="😱",dye="😖",uye="😣",pye="😞",_ye="😓",hye="😩",fye="😫",mye="🥱",gye="😤",bye="😡",Eye="😡",yye="😠",vye="🤬",Sye="😈",Tye="👿",xye="💀",Cye="☠️",wye="💩",Rye="💩",Aye="💩",Nye="🤡",Oye="👹",Iye="👺",Mye="👻",Dye="👽",kye="👾",Lye="🤖",Pye="😺",Uye="😸",Fye="😹",Bye="😻",Gye="😼",Vye="😽",zye="🙀",Hye="😿",qye="😾",Yye="🙈",$ye="🙉",Wye="🙊",Kye="💋",jye="💌",Qye="💘",Xye="💝",Zye="💖",Jye="💗",eve="💓",tve="💞",nve="💕",ive="💟",sve="❣️",rve="💔",ove="❤️",ave="🧡",lve="💛",cve="💚",dve="💙",uve="💜",pve="🤎",_ve="🖤",hve="🤍",fve="💢",mve="💥",gve="💥",bve="💫",Eve="💦",yve="💨",vve="🕳️",Sve="💣",Tve="💬",xve="👁️‍🗨️",Cve="🗨️",wve="🗯️",Rve="💭",Ave="💤",Nve="👋",Ove="🤚",Ive="🖐️",Mve="✋",Dve="✋",kve="🖖",Lve="👌",Pve="🤌",Uve="🤏",Fve="✌️",Bve="🤞",Gve="🤟",Vve="🤘",zve="🤙",Hve="👈",qve="👉",Yve="👆",$ve="🖕",Wve="🖕",Kve="👇",jve="☝️",Qve="👍",Xve="👎",Zve="✊",Jve="✊",eSe="👊",tSe="👊",nSe="👊",iSe="🤛",sSe="🤜",rSe="👏",oSe="🙌",aSe="👐",lSe="🤲",cSe="🤝",dSe="🙏",uSe="✍️",pSe="💅",_Se="🤳",hSe="💪",fSe="🦾",mSe="🦿",gSe="🦵",bSe="🦶",ESe="👂",ySe="🦻",vSe="👃",SSe="🧠",TSe="🫀",xSe="🫁",CSe="🦷",wSe="🦴",RSe="👀",ASe="👁️",NSe="👅",OSe="👄",ISe="👶",MSe="🧒",DSe="👦",kSe="👧",LSe="🧑",PSe="👱",USe="👨",FSe="🧔",BSe="👨‍🦰",GSe="👨‍🦱",VSe="👨‍🦳",zSe="👨‍🦲",HSe="👩",qSe="👩‍🦰",YSe="🧑‍🦰",$Se="👩‍🦱",WSe="🧑‍🦱",KSe="👩‍🦳",jSe="🧑‍🦳",QSe="👩‍🦲",XSe="🧑‍🦲",ZSe="👱‍♀️",JSe="👱‍♀️",e0e="👱‍♂️",t0e="🧓",n0e="👴",i0e="👵",s0e="🙍",r0e="🙍‍♂️",o0e="🙍‍♀️",a0e="🙎",l0e="🙎‍♂️",c0e="🙎‍♀️",d0e="🙅",u0e="🙅‍♂️",p0e="🙅‍♂️",_0e="🙅‍♀️",h0e="🙅‍♀️",f0e="🙆",m0e="🙆‍♂️",g0e="🙆‍♀️",b0e="💁",E0e="💁",y0e="💁‍♂️",v0e="💁‍♂️",S0e="💁‍♀️",T0e="💁‍♀️",x0e="🙋",C0e="🙋‍♂️",w0e="🙋‍♀️",R0e="🧏",A0e="🧏‍♂️",N0e="🧏‍♀️",O0e="🙇",I0e="🙇‍♂️",M0e="🙇‍♀️",D0e="🤦",k0e="🤦‍♂️",L0e="🤦‍♀️",P0e="🤷",U0e="🤷‍♂️",F0e="🤷‍♀️",B0e="🧑‍⚕️",G0e="👨‍⚕️",V0e="👩‍⚕️",z0e="🧑‍🎓",H0e="👨‍🎓",q0e="👩‍🎓",Y0e="🧑‍🏫",$0e="👨‍🏫",W0e="👩‍🏫",K0e="🧑‍⚖️",j0e="👨‍⚖️",Q0e="👩‍⚖️",X0e="🧑‍🌾",Z0e="👨‍🌾",J0e="👩‍🌾",eTe="🧑‍🍳",tTe="👨‍🍳",nTe="👩‍🍳",iTe="🧑‍🔧",sTe="👨‍🔧",rTe="👩‍🔧",oTe="🧑‍🏭",aTe="👨‍🏭",lTe="👩‍🏭",cTe="🧑‍💼",dTe="👨‍💼",uTe="👩‍💼",pTe="🧑‍🔬",_Te="👨‍🔬",hTe="👩‍🔬",fTe="🧑‍💻",mTe="👨‍💻",gTe="👩‍💻",bTe="🧑‍🎤",ETe="👨‍🎤",yTe="👩‍🎤",vTe="🧑‍🎨",STe="👨‍🎨",TTe="👩‍🎨",xTe="🧑‍✈️",CTe="👨‍✈️",wTe="👩‍✈️",RTe="🧑‍🚀",ATe="👨‍🚀",NTe="👩‍🚀",OTe="🧑‍🚒",ITe="👨‍🚒",MTe="👩‍🚒",DTe="👮",kTe="👮",LTe="👮‍♂️",PTe="👮‍♀️",UTe="🕵️",FTe="🕵️‍♂️",BTe="🕵️‍♀️",GTe="💂",VTe="💂‍♂️",zTe="💂‍♀️",HTe="🥷",qTe="👷",YTe="👷‍♂️",$Te="👷‍♀️",WTe="🤴",KTe="👸",jTe="👳",QTe="👳‍♂️",XTe="👳‍♀️",ZTe="👲",JTe="🧕",exe="🤵",txe="🤵‍♂️",nxe="🤵‍♀️",ixe="👰",sxe="👰‍♂️",rxe="👰‍♀️",oxe="👰‍♀️",axe="🤰",lxe="🤱",cxe="👩‍🍼",dxe="👨‍🍼",uxe="🧑‍🍼",pxe="👼",_xe="🎅",hxe="🤶",fxe="🧑‍🎄",mxe="🦸",gxe="🦸‍♂️",bxe="🦸‍♀️",Exe="🦹",yxe="🦹‍♂️",vxe="🦹‍♀️",Sxe="🧙",Txe="🧙‍♂️",xxe="🧙‍♀️",Cxe="🧚",wxe="🧚‍♂️",Rxe="🧚‍♀️",Axe="🧛",Nxe="🧛‍♂️",Oxe="🧛‍♀️",Ixe="🧜",Mxe="🧜‍♂️",Dxe="🧜‍♀️",kxe="🧝",Lxe="🧝‍♂️",Pxe="🧝‍♀️",Uxe="🧞",Fxe="🧞‍♂️",Bxe="🧞‍♀️",Gxe="🧟",Vxe="🧟‍♂️",zxe="🧟‍♀️",Hxe="💆",qxe="💆‍♂️",Yxe="💆‍♀️",$xe="💇",Wxe="💇‍♂️",Kxe="💇‍♀️",jxe="🚶",Qxe="🚶‍♂️",Xxe="🚶‍♀️",Zxe="🧍",Jxe="🧍‍♂️",eCe="🧍‍♀️",tCe="🧎",nCe="🧎‍♂️",iCe="🧎‍♀️",sCe="🧑‍🦯",rCe="👨‍🦯",oCe="👩‍🦯",aCe="🧑‍🦼",lCe="👨‍🦼",cCe="👩‍🦼",dCe="🧑‍🦽",uCe="👨‍🦽",pCe="👩‍🦽",_Ce="🏃",hCe="🏃",fCe="🏃‍♂️",mCe="🏃‍♀️",gCe="💃",bCe="💃",ECe="🕺",yCe="🕴️",vCe="👯",SCe="👯‍♂️",TCe="👯‍♀️",xCe="🧖",CCe="🧖‍♂️",wCe="🧖‍♀️",RCe="🧗",ACe="🧗‍♂️",NCe="🧗‍♀️",OCe="🤺",ICe="🏇",MCe="⛷️",DCe="🏂",kCe="🏌️",LCe="🏌️‍♂️",PCe="🏌️‍♀️",UCe="🏄",FCe="🏄‍♂️",BCe="🏄‍♀️",GCe="🚣",VCe="🚣‍♂️",zCe="🚣‍♀️",HCe="🏊",qCe="🏊‍♂️",YCe="🏊‍♀️",$Ce="⛹️",WCe="⛹️‍♂️",KCe="⛹️‍♂️",jCe="⛹️‍♀️",QCe="⛹️‍♀️",XCe="🏋️",ZCe="🏋️‍♂️",JCe="🏋️‍♀️",e1e="🚴",t1e="🚴‍♂️",n1e="🚴‍♀️",i1e="🚵",s1e="🚵‍♂️",r1e="🚵‍♀️",o1e="🤸",a1e="🤸‍♂️",l1e="🤸‍♀️",c1e="🤼",d1e="🤼‍♂️",u1e="🤼‍♀️",p1e="🤽",_1e="🤽‍♂️",h1e="🤽‍♀️",f1e="🤾",m1e="🤾‍♂️",g1e="🤾‍♀️",b1e="🤹",E1e="🤹‍♂️",y1e="🤹‍♀️",v1e="🧘",S1e="🧘‍♂️",T1e="🧘‍♀️",x1e="🛀",C1e="🛌",w1e="🧑‍🤝‍🧑",R1e="👭",A1e="👫",N1e="👬",O1e="💏",I1e="👩‍❤️‍💋‍👨",M1e="👨‍❤️‍💋‍👨",D1e="👩‍❤️‍💋‍👩",k1e="💑",L1e="👩‍❤️‍👨",P1e="👨‍❤️‍👨",U1e="👩‍❤️‍👩",F1e="👪",B1e="👨‍👩‍👦",G1e="👨‍👩‍👧",V1e="👨‍👩‍👧‍👦",z1e="👨‍👩‍👦‍👦",H1e="👨‍👩‍👧‍👧",q1e="👨‍👨‍👦",Y1e="👨‍👨‍👧",$1e="👨‍👨‍👧‍👦",W1e="👨‍👨‍👦‍👦",K1e="👨‍👨‍👧‍👧",j1e="👩‍👩‍👦",Q1e="👩‍👩‍👧",X1e="👩‍👩‍👧‍👦",Z1e="👩‍👩‍👦‍👦",J1e="👩‍👩‍👧‍👧",ewe="👨‍👦",twe="👨‍👦‍👦",nwe="👨‍👧",iwe="👨‍👧‍👦",swe="👨‍👧‍👧",rwe="👩‍👦",owe="👩‍👦‍👦",awe="👩‍👧",lwe="👩‍👧‍👦",cwe="👩‍👧‍👧",dwe="🗣️",uwe="👤",pwe="👥",_we="🫂",hwe="👣",fwe="🐵",mwe="🐒",gwe="🦍",bwe="🦧",Ewe="🐶",ywe="🐕",vwe="🦮",Swe="🐕‍🦺",Twe="🐩",xwe="🐺",Cwe="🦊",wwe="🦝",Rwe="🐱",Awe="🐈",Nwe="🐈‍⬛",Owe="🦁",Iwe="🐯",Mwe="🐅",Dwe="🐆",kwe="🐴",Lwe="🐎",Pwe="🦄",Uwe="🦓",Fwe="🦌",Bwe="🦬",Gwe="🐮",Vwe="🐂",zwe="🐃",Hwe="🐄",qwe="🐷",Ywe="🐖",$we="🐗",Wwe="🐽",Kwe="🐏",jwe="🐑",Qwe="🐐",Xwe="🐪",Zwe="🐫",Jwe="🦙",eRe="🦒",tRe="🐘",nRe="🦣",iRe="🦏",sRe="🦛",rRe="🐭",oRe="🐁",aRe="🐀",lRe="🐹",cRe="🐰",dRe="🐇",uRe="🐿️",pRe="🦫",_Re="🦔",hRe="🦇",fRe="🐻",mRe="🐻‍❄️",gRe="🐨",bRe="🐼",ERe="🦥",yRe="🦦",vRe="🦨",SRe="🦘",TRe="🦡",xRe="🐾",CRe="🐾",wRe="🦃",RRe="🐔",ARe="🐓",NRe="🐣",ORe="🐤",IRe="🐥",MRe="🐦",DRe="🐧",kRe="🕊️",LRe="🦅",PRe="🦆",URe="🦢",FRe="🦉",BRe="🦤",GRe="🪶",VRe="🦩",zRe="🦚",HRe="🦜",qRe="🐸",YRe="🐊",$Re="🐢",WRe="🦎",KRe="🐍",jRe="🐲",QRe="🐉",XRe="🦕",ZRe="🐳",JRe="🐋",eAe="🐬",tAe="🐬",nAe="🦭",iAe="🐟",sAe="🐠",rAe="🐡",oAe="🦈",aAe="🐙",lAe="🐚",cAe="🐌",dAe="🦋",uAe="🐛",pAe="🐜",_Ae="🐝",hAe="🐝",fAe="🪲",mAe="🐞",gAe="🦗",bAe="🪳",EAe="🕷️",yAe="🕸️",vAe="🦂",SAe="🦟",TAe="🪰",xAe="🪱",CAe="🦠",wAe="💐",RAe="🌸",AAe="💮",NAe="🏵️",OAe="🌹",IAe="🥀",MAe="🌺",DAe="🌻",kAe="🌼",LAe="🌷",PAe="🌱",UAe="🪴",FAe="🌲",BAe="🌳",GAe="🌴",VAe="🌵",zAe="🌾",HAe="🌿",qAe="☘️",YAe="🍀",$Ae="🍁",WAe="🍂",KAe="🍃",jAe="🍇",QAe="🍈",XAe="🍉",ZAe="🍊",JAe="🍊",eNe="🍊",tNe="🍋",nNe="🍌",iNe="🍍",sNe="🥭",rNe="🍎",oNe="🍏",aNe="🍐",lNe="🍑",cNe="🍒",dNe="🍓",uNe="🫐",pNe="🥝",_Ne="🍅",hNe="🫒",fNe="🥥",mNe="🥑",gNe="🍆",bNe="🥔",ENe="🥕",yNe="🌽",vNe="🌶️",SNe="🫑",TNe="🥒",xNe="🥬",CNe="🥦",wNe="🧄",RNe="🧅",ANe="🍄",NNe="🥜",ONe="🌰",INe="🍞",MNe="🥐",DNe="🥖",kNe="🫓",LNe="🥨",PNe="🥯",UNe="🥞",FNe="🧇",BNe="🧀",GNe="🍖",VNe="🍗",zNe="🥩",HNe="🥓",qNe="🍔",YNe="🍟",$Ne="🍕",WNe="🌭",KNe="🥪",jNe="🌮",QNe="🌯",XNe="🫔",ZNe="🥙",JNe="🧆",eOe="🥚",tOe="🍳",nOe="🥘",iOe="🍲",sOe="🫕",rOe="🥣",oOe="🥗",aOe="🍿",lOe="🧈",cOe="🧂",dOe="🥫",uOe="🍱",pOe="🍘",_Oe="🍙",hOe="🍚",fOe="🍛",mOe="🍜",gOe="🍝",bOe="🍠",EOe="🍢",yOe="🍣",vOe="🍤",SOe="🍥",TOe="🥮",xOe="🍡",COe="🥟",wOe="🥠",ROe="🥡",AOe="🦀",NOe="🦞",OOe="🦐",IOe="🦑",MOe="🦪",DOe="🍦",kOe="🍧",LOe="🍨",POe="🍩",UOe="🍪",FOe="🎂",BOe="🍰",GOe="🧁",VOe="🥧",zOe="🍫",HOe="🍬",qOe="🍭",YOe="🍮",$Oe="🍯",WOe="🍼",KOe="🥛",jOe="☕",QOe="🫖",XOe="🍵",ZOe="🍶",JOe="🍾",eIe="🍷",tIe="🍸",nIe="🍹",iIe="🍺",sIe="🍻",rIe="🥂",oIe="🥃",aIe="🥤",lIe="🧋",cIe="🧃",dIe="🧉",uIe="🧊",pIe="🥢",_Ie="🍽️",hIe="🍴",fIe="🥄",mIe="🔪",gIe="🔪",bIe="🏺",EIe="🌍",yIe="🌎",vIe="🌏",SIe="🌐",TIe="🗺️",xIe="🗾",CIe="🧭",wIe="🏔️",RIe="⛰️",AIe="🌋",NIe="🗻",OIe="🏕️",IIe="🏖️",MIe="🏜️",DIe="🏝️",kIe="🏞️",LIe="🏟️",PIe="🏛️",UIe="🏗️",FIe="🧱",BIe="🪨",GIe="🪵",VIe="🛖",zIe="🏘️",HIe="🏚️",qIe="🏠",YIe="🏡",$Ie="🏢",WIe="🏣",KIe="🏤",jIe="🏥",QIe="🏦",XIe="🏨",ZIe="🏩",JIe="🏪",eMe="🏫",tMe="🏬",nMe="🏭",iMe="🏯",sMe="🏰",rMe="💒",oMe="🗼",aMe="🗽",lMe="⛪",cMe="🕌",dMe="🛕",uMe="🕍",pMe="⛩️",_Me="🕋",hMe="⛲",fMe="⛺",mMe="🌁",gMe="🌃",bMe="🏙️",EMe="🌄",yMe="🌅",vMe="🌆",SMe="🌇",TMe="🌉",xMe="♨️",CMe="🎠",wMe="🎡",RMe="🎢",AMe="💈",NMe="🎪",OMe="🚂",IMe="🚃",MMe="🚄",DMe="🚅",kMe="🚆",LMe="🚇",PMe="🚈",UMe="🚉",FMe="🚊",BMe="🚝",GMe="🚞",VMe="🚋",zMe="🚌",HMe="🚍",qMe="🚎",YMe="🚐",$Me="🚑",WMe="🚒",KMe="🚓",jMe="🚔",QMe="🚕",XMe="🚖",ZMe="🚗",JMe="🚗",e2e="🚘",t2e="🚙",n2e="🛻",i2e="🚚",s2e="🚛",r2e="🚜",o2e="🏎️",a2e="🏍️",l2e="🛵",c2e="🦽",d2e="🦼",u2e="🛺",p2e="🚲",_2e="🛴",h2e="🛹",f2e="🛼",m2e="🚏",g2e="🛣️",b2e="🛤️",E2e="🛢️",y2e="⛽",v2e="🚨",S2e="🚥",T2e="🚦",x2e="🛑",C2e="🚧",w2e="⚓",R2e="⛵",A2e="⛵",N2e="🛶",O2e="🚤",I2e="🛳️",M2e="⛴️",D2e="🛥️",k2e="🚢",L2e="✈️",P2e="🛩️",U2e="🛫",F2e="🛬",B2e="🪂",G2e="💺",V2e="🚁",z2e="🚟",H2e="🚠",q2e="🚡",Y2e="🛰️",$2e="🚀",W2e="🛸",K2e="🛎️",j2e="🧳",Q2e="⌛",X2e="⏳",Z2e="⌚",J2e="⏰",eDe="⏱️",tDe="⏲️",nDe="🕰️",iDe="🕛",sDe="🕧",rDe="🕐",oDe="🕜",aDe="🕑",lDe="🕝",cDe="🕒",dDe="🕞",uDe="🕓",pDe="🕟",_De="🕔",hDe="🕠",fDe="🕕",mDe="🕡",gDe="🕖",bDe="🕢",EDe="🕗",yDe="🕣",vDe="🕘",SDe="🕤",TDe="🕙",xDe="🕥",CDe="🕚",wDe="🕦",RDe="🌑",ADe="🌒",NDe="🌓",ODe="🌔",IDe="🌔",MDe="🌕",DDe="🌖",kDe="🌗",LDe="🌘",PDe="🌙",UDe="🌚",FDe="🌛",BDe="🌜",GDe="🌡️",VDe="☀️",zDe="🌝",HDe="🌞",qDe="🪐",YDe="⭐",$De="🌟",WDe="🌠",KDe="🌌",jDe="☁️",QDe="⛅",XDe="⛈️",ZDe="🌤️",JDe="🌥️",eke="🌦️",tke="🌧️",nke="🌨️",ike="🌩️",ske="🌪️",rke="🌫️",oke="🌬️",ake="🌀",lke="🌈",cke="🌂",dke="☂️",uke="☔",pke="⛱️",_ke="⚡",hke="❄️",fke="☃️",mke="⛄",gke="☄️",bke="🔥",Eke="💧",yke="🌊",vke="🎃",Ske="🎄",Tke="🎆",xke="🎇",Cke="🧨",wke="✨",Rke="🎈",Ake="🎉",Nke="🎊",Oke="🎋",Ike="🎍",Mke="🎎",Dke="🎏",kke="🎐",Lke="🎑",Pke="🧧",Uke="🎀",Fke="🎁",Bke="🎗️",Gke="🎟️",Vke="🎫",zke="🎖️",Hke="🏆",qke="🏅",Yke="⚽",$ke="⚾",Wke="🥎",Kke="🏀",jke="🏐",Qke="🏈",Xke="🏉",Zke="🎾",Jke="🥏",eLe="🎳",tLe="🏏",nLe="🏑",iLe="🏒",sLe="🥍",rLe="🏓",oLe="🏸",aLe="🥊",lLe="🥋",cLe="🥅",dLe="⛳",uLe="⛸️",pLe="🎣",_Le="🤿",hLe="🎽",fLe="🎿",mLe="🛷",gLe="🥌",bLe="🎯",ELe="🪀",yLe="🪁",vLe="🔮",SLe="🪄",TLe="🧿",xLe="🎮",CLe="🕹️",wLe="🎰",RLe="🎲",ALe="🧩",NLe="🧸",OLe="🪅",ILe="🪆",MLe="♠️",DLe="♥️",kLe="♦️",LLe="♣️",PLe="♟️",ULe="🃏",FLe="🀄",BLe="🎴",GLe="🎭",VLe="🖼️",zLe="🎨",HLe="🧵",qLe="🪡",YLe="🧶",$Le="🪢",WLe="👓",KLe="🕶️",jLe="🥽",QLe="🥼",XLe="🦺",ZLe="👔",JLe="👕",ePe="👕",tPe="👖",nPe="🧣",iPe="🧤",sPe="🧥",rPe="🧦",oPe="👗",aPe="👘",lPe="🥻",cPe="🩱",dPe="🩲",uPe="🩳",pPe="👙",_Pe="👚",hPe="👛",fPe="👜",mPe="👝",gPe="🛍️",bPe="🎒",EPe="🩴",yPe="👞",vPe="👞",SPe="👟",TPe="🥾",xPe="🥿",CPe="👠",wPe="👡",RPe="🩰",APe="👢",NPe="👑",OPe="👒",IPe="🎩",MPe="🎓",DPe="🧢",kPe="🪖",LPe="⛑️",PPe="📿",UPe="💄",FPe="💍",BPe="💎",GPe="🔇",VPe="🔈",zPe="🔉",HPe="🔊",qPe="📢",YPe="📣",$Pe="📯",WPe="🔔",KPe="🔕",jPe="🎼",QPe="🎵",XPe="🎶",ZPe="🎙️",JPe="🎚️",eUe="🎛️",tUe="🎤",nUe="🎧",iUe="📻",sUe="🎷",rUe="🪗",oUe="🎸",aUe="🎹",lUe="🎺",cUe="🎻",dUe="🪕",uUe="🥁",pUe="🪘",_Ue="📱",hUe="📲",fUe="☎️",mUe="☎️",gUe="📞",bUe="📟",EUe="📠",yUe="🔋",vUe="🔌",SUe="💻",TUe="🖥️",xUe="🖨️",CUe="⌨️",wUe="🖱️",RUe="🖲️",AUe="💽",NUe="💾",OUe="💿",IUe="📀",MUe="🧮",DUe="🎥",kUe="🎞️",LUe="📽️",PUe="🎬",UUe="📺",FUe="📷",BUe="📸",GUe="📹",VUe="📼",zUe="🔍",HUe="🔎",qUe="🕯️",YUe="💡",$Ue="🔦",WUe="🏮",KUe="🏮",jUe="🪔",QUe="📔",XUe="📕",ZUe="📖",JUe="📖",eFe="📗",tFe="📘",nFe="📙",iFe="📚",sFe="📓",rFe="📒",oFe="📃",aFe="📜",lFe="📄",cFe="📰",dFe="🗞️",uFe="📑",pFe="🔖",_Fe="🏷️",hFe="💰",fFe="🪙",mFe="💴",gFe="💵",bFe="💶",EFe="💷",yFe="💸",vFe="💳",SFe="🧾",TFe="💹",xFe="✉️",CFe="📧",wFe="📨",RFe="📩",AFe="📤",NFe="📥",OFe="📫",IFe="📪",MFe="📬",DFe="📭",kFe="📮",LFe="🗳️",PFe="✏️",UFe="✒️",FFe="🖋️",BFe="🖊️",GFe="🖌️",VFe="🖍️",zFe="📝",HFe="📝",qFe="💼",YFe="📁",$Fe="📂",WFe="🗂️",KFe="📅",jFe="📆",QFe="🗒️",XFe="🗓️",ZFe="📇",JFe="📈",e3e="📉",t3e="📊",n3e="📋",i3e="📌",s3e="📍",r3e="📎",o3e="🖇️",a3e="📏",l3e="📐",c3e="✂️",d3e="🗃️",u3e="🗄️",p3e="🗑️",_3e="🔒",h3e="🔓",f3e="🔏",m3e="🔐",g3e="🔑",b3e="🗝️",E3e="🔨",y3e="🪓",v3e="⛏️",S3e="⚒️",T3e="🛠️",x3e="🗡️",C3e="⚔️",w3e="🔫",R3e="🪃",A3e="🏹",N3e="🛡️",O3e="🪚",I3e="🔧",M3e="🪛",D3e="🔩",k3e="⚙️",L3e="🗜️",P3e="⚖️",U3e="🦯",F3e="🔗",B3e="⛓️",G3e="🪝",V3e="🧰",z3e="🧲",H3e="🪜",q3e="⚗️",Y3e="🧪",$3e="🧫",W3e="🧬",K3e="🔬",j3e="🔭",Q3e="📡",X3e="💉",Z3e="🩸",J3e="💊",eBe="🩹",tBe="🩺",nBe="🚪",iBe="🛗",sBe="🪞",rBe="🪟",oBe="🛏️",aBe="🛋️",lBe="🪑",cBe="🚽",dBe="🪠",uBe="🚿",pBe="🛁",_Be="🪤",hBe="🪒",fBe="🧴",mBe="🧷",gBe="🧹",bBe="🧺",EBe="🧻",yBe="🪣",vBe="🧼",SBe="🪥",TBe="🧽",xBe="🧯",CBe="🛒",wBe="🚬",RBe="⚰️",ABe="🪦",NBe="⚱️",OBe="🗿",IBe="🪧",MBe="🏧",DBe="🚮",kBe="🚰",LBe="♿",PBe="🚹",UBe="🚺",FBe="🚻",BBe="🚼",GBe="🚾",VBe="🛂",zBe="🛃",HBe="🛄",qBe="🛅",YBe="⚠️",$Be="🚸",WBe="⛔",KBe="🚫",jBe="🚳",QBe="🚭",XBe="🚯",ZBe="🚷",JBe="📵",e5e="🔞",t5e="☢️",n5e="☣️",i5e="⬆️",s5e="↗️",r5e="➡️",o5e="↘️",a5e="⬇️",l5e="↙️",c5e="⬅️",d5e="↖️",u5e="↕️",p5e="↔️",_5e="↩️",h5e="↪️",f5e="⤴️",m5e="⤵️",g5e="🔃",b5e="🔄",E5e="🔙",y5e="🔚",v5e="🔛",S5e="🔜",T5e="🔝",x5e="🛐",C5e="⚛️",w5e="🕉️",R5e="✡️",A5e="☸️",N5e="☯️",O5e="✝️",I5e="☦️",M5e="☪️",D5e="☮️",k5e="🕎",L5e="🔯",P5e="♈",U5e="♉",F5e="♊",B5e="♋",G5e="♌",V5e="♍",z5e="♎",H5e="♏",q5e="♐",Y5e="♑",$5e="♒",W5e="♓",K5e="⛎",j5e="🔀",Q5e="🔁",X5e="🔂",Z5e="▶️",J5e="⏩",e4e="⏭️",t4e="⏯️",n4e="◀️",i4e="⏪",s4e="⏮️",r4e="🔼",o4e="⏫",a4e="🔽",l4e="⏬",c4e="⏸️",d4e="⏹️",u4e="⏺️",p4e="⏏️",_4e="🎦",h4e="🔅",f4e="🔆",m4e="📶",g4e="📳",b4e="📴",E4e="♀️",y4e="♂️",v4e="⚧️",S4e="✖️",T4e="➕",x4e="➖",C4e="➗",w4e="♾️",R4e="‼️",A4e="⁉️",N4e="❓",O4e="❔",I4e="❕",M4e="❗",D4e="❗",k4e="〰️",L4e="💱",P4e="💲",U4e="⚕️",F4e="♻️",B4e="⚜️",G4e="🔱",V4e="📛",z4e="🔰",H4e="⭕",q4e="✅",Y4e="☑️",$4e="✔️",W4e="❌",K4e="❎",j4e="➰",Q4e="➿",X4e="〽️",Z4e="✳️",J4e="✴️",eGe="❇️",tGe="©️",nGe="®️",iGe="™️",sGe="#️⃣",rGe="*️⃣",oGe="0️⃣",aGe="1️⃣",lGe="2️⃣",cGe="3️⃣",dGe="4️⃣",uGe="5️⃣",pGe="6️⃣",_Ge="7️⃣",hGe="8️⃣",fGe="9️⃣",mGe="🔟",gGe="🔠",bGe="🔡",EGe="🔣",yGe="🔤",vGe="🅰️",SGe="🆎",TGe="🅱️",xGe="🆑",CGe="🆒",wGe="🆓",RGe="ℹ️",AGe="🆔",NGe="Ⓜ️",OGe="🆖",IGe="🅾️",MGe="🆗",DGe="🅿️",kGe="🆘",LGe="🆙",PGe="🆚",UGe="🈁",FGe="🈂️",BGe="🉐",GGe="🉑",VGe="㊗️",zGe="㊙️",HGe="🈵",qGe="🔴",YGe="🟠",$Ge="🟡",WGe="🟢",KGe="🔵",jGe="🟣",QGe="🟤",XGe="⚫",ZGe="⚪",JGe="🟥",e6e="🟧",t6e="🟨",n6e="🟩",i6e="🟦",s6e="🟪",r6e="🟫",o6e="⬛",a6e="⬜",l6e="◼️",c6e="◻️",d6e="◾",u6e="◽",p6e="▪️",_6e="▫️",h6e="🔶",f6e="🔷",m6e="🔸",g6e="🔹",b6e="🔺",E6e="🔻",y6e="💠",v6e="🔘",S6e="🔳",T6e="🔲",x6e="🏁",C6e="🚩",w6e="🎌",R6e="🏴",A6e="🏳️",N6e="🏳️‍🌈",O6e="🏳️‍⚧️",I6e="🏴‍☠️",M6e="🇦🇨",D6e="🇦🇩",k6e="🇦🇪",L6e="🇦🇫",P6e="🇦🇬",U6e="🇦🇮",F6e="🇦🇱",B6e="🇦🇲",G6e="🇦🇴",V6e="🇦🇶",z6e="🇦🇷",H6e="🇦🇸",q6e="🇦🇹",Y6e="🇦🇺",$6e="🇦🇼",W6e="🇦🇽",K6e="🇦🇿",j6e="🇧🇦",Q6e="🇧🇧",X6e="🇧🇩",Z6e="🇧🇪",J6e="🇧🇫",e9e="🇧🇬",t9e="🇧🇭",n9e="🇧🇮",i9e="🇧🇯",s9e="🇧🇱",r9e="🇧🇲",o9e="🇧🇳",a9e="🇧🇴",l9e="🇧🇶",c9e="🇧🇷",d9e="🇧🇸",u9e="🇧🇹",p9e="🇧🇻",_9e="🇧🇼",h9e="🇧🇾",f9e="🇧🇿",m9e="🇨🇦",g9e="🇨🇨",b9e="🇨🇩",E9e="🇨🇫",y9e="🇨🇬",v9e="🇨🇭",S9e="🇨🇮",T9e="🇨🇰",x9e="🇨🇱",C9e="🇨🇲",w9e="🇨🇳",R9e="🇨🇴",A9e="🇨🇵",N9e="🇨🇷",O9e="🇨🇺",I9e="🇨🇻",M9e="🇨🇼",D9e="🇨🇽",k9e="🇨🇾",L9e="🇨🇿",P9e="🇩🇪",U9e="🇩🇬",F9e="🇩🇯",B9e="🇩🇰",G9e="🇩🇲",V9e="🇩🇴",z9e="🇩🇿",H9e="🇪🇦",q9e="🇪🇨",Y9e="🇪🇪",$9e="🇪🇬",W9e="🇪🇭",K9e="🇪🇷",j9e="🇪🇸",Q9e="🇪🇹",X9e="🇪🇺",Z9e="🇪🇺",J9e="🇫🇮",e8e="🇫🇯",t8e="🇫🇰",n8e="🇫🇲",i8e="🇫🇴",s8e="🇫🇷",r8e="🇬🇦",o8e="🇬🇧",a8e="🇬🇧",l8e="🇬🇩",c8e="🇬🇪",d8e="🇬🇫",u8e="🇬🇬",p8e="🇬🇭",_8e="🇬🇮",h8e="🇬🇱",f8e="🇬🇲",m8e="🇬🇳",g8e="🇬🇵",b8e="🇬🇶",E8e="🇬🇷",y8e="🇬🇸",v8e="🇬🇹",S8e="🇬🇺",T8e="🇬🇼",x8e="🇬🇾",C8e="🇭🇰",w8e="🇭🇲",R8e="🇭🇳",A8e="🇭🇷",N8e="🇭🇹",O8e="🇭🇺",I8e="🇮🇨",M8e="🇮🇩",D8e="🇮🇪",k8e="🇮🇱",L8e="🇮🇲",P8e="🇮🇳",U8e="🇮🇴",F8e="🇮🇶",B8e="🇮🇷",G8e="🇮🇸",V8e="🇮🇹",z8e="🇯🇪",H8e="🇯🇲",q8e="🇯🇴",Y8e="🇯🇵",$8e="🇰🇪",W8e="🇰🇬",K8e="🇰🇭",j8e="🇰🇮",Q8e="🇰🇲",X8e="🇰🇳",Z8e="🇰🇵",J8e="🇰🇷",eVe="🇰🇼",tVe="🇰🇾",nVe="🇰🇿",iVe="🇱🇦",sVe="🇱🇧",rVe="🇱🇨",oVe="🇱🇮",aVe="🇱🇰",lVe="🇱🇷",cVe="🇱🇸",dVe="🇱🇹",uVe="🇱🇺",pVe="🇱🇻",_Ve="🇱🇾",hVe="🇲🇦",fVe="🇲🇨",mVe="🇲🇩",gVe="🇲🇪",bVe="🇲🇫",EVe="🇲🇬",yVe="🇲🇭",vVe="🇲🇰",SVe="🇲🇱",TVe="🇲🇲",xVe="🇲🇳",CVe="🇲🇴",wVe="🇲🇵",RVe="🇲🇶",AVe="🇲🇷",NVe="🇲🇸",OVe="🇲🇹",IVe="🇲🇺",MVe="🇲🇻",DVe="🇲🇼",kVe="🇲🇽",LVe="🇲🇾",PVe="🇲🇿",UVe="🇳🇦",FVe="🇳🇨",BVe="🇳🇪",GVe="🇳🇫",VVe="🇳🇬",zVe="🇳🇮",HVe="🇳🇱",qVe="🇳🇴",YVe="🇳🇵",$Ve="🇳🇷",WVe="🇳🇺",KVe="🇳🇿",jVe="🇴🇲",QVe="🇵🇦",XVe="🇵🇪",ZVe="🇵🇫",JVe="🇵🇬",eze="🇵🇭",tze="🇵🇰",nze="🇵🇱",ize="🇵🇲",sze="🇵🇳",rze="🇵🇷",oze="🇵🇸",aze="🇵🇹",lze="🇵🇼",cze="🇵🇾",dze="🇶🇦",uze="🇷🇪",pze="🇷🇴",_ze="🇷🇸",hze="🇷🇺",fze="🇷🇼",mze="🇸🇦",gze="🇸🇧",bze="🇸🇨",Eze="🇸🇩",yze="🇸🇪",vze="🇸🇬",Sze="🇸🇭",Tze="🇸🇮",xze="🇸🇯",Cze="🇸🇰",wze="🇸🇱",Rze="🇸🇲",Aze="🇸🇳",Nze="🇸🇴",Oze="🇸🇷",Ize="🇸🇸",Mze="🇸🇹",Dze="🇸🇻",kze="🇸🇽",Lze="🇸🇾",Pze="🇸🇿",Uze="🇹🇦",Fze="🇹🇨",Bze="🇹🇩",Gze="🇹🇫",Vze="🇹🇬",zze="🇹🇭",Hze="🇹🇯",qze="🇹🇰",Yze="🇹🇱",$ze="🇹🇲",Wze="🇹🇳",Kze="🇹🇴",jze="🇹🇷",Qze="🇹🇹",Xze="🇹🇻",Zze="🇹🇼",Jze="🇹🇿",eHe="🇺🇦",tHe="🇺🇬",nHe="🇺🇲",iHe="🇺🇳",sHe="🇺🇸",rHe="🇺🇾",oHe="🇺🇿",aHe="🇻🇦",lHe="🇻🇨",cHe="🇻🇪",dHe="🇻🇬",uHe="🇻🇮",pHe="🇻🇳",_He="🇻🇺",hHe="🇼🇫",fHe="🇼🇸",mHe="🇽🇰",gHe="🇾🇪",bHe="🇾🇹",EHe="🇿🇦",yHe="🇿🇲",vHe="🇿🇼",SHe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",THe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",xHe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",CHe={100:"💯",1234:"🔢",grinning:Pbe,smiley:Ube,smile:Fbe,grin:Bbe,laughing:Gbe,satisfied:Vbe,sweat_smile:zbe,rofl:Hbe,joy:qbe,slightly_smiling_face:Ybe,upside_down_face:$be,wink:Wbe,blush:Kbe,innocent:jbe,smiling_face_with_three_hearts:Qbe,heart_eyes:Xbe,star_struck:Zbe,kissing_heart:Jbe,kissing:eEe,relaxed:tEe,kissing_closed_eyes:nEe,kissing_smiling_eyes:iEe,smiling_face_with_tear:sEe,yum:rEe,stuck_out_tongue:oEe,stuck_out_tongue_winking_eye:aEe,zany_face:lEe,stuck_out_tongue_closed_eyes:cEe,money_mouth_face:dEe,hugs:uEe,hand_over_mouth:pEe,shushing_face:_Ee,thinking:hEe,zipper_mouth_face:fEe,raised_eyebrow:mEe,neutral_face:gEe,expressionless:bEe,no_mouth:EEe,smirk:yEe,unamused:vEe,roll_eyes:SEe,grimacing:TEe,lying_face:xEe,relieved:CEe,pensive:wEe,sleepy:REe,drooling_face:AEe,sleeping:NEe,mask:OEe,face_with_thermometer:IEe,face_with_head_bandage:MEe,nauseated_face:DEe,vomiting_face:kEe,sneezing_face:LEe,hot_face:PEe,cold_face:UEe,woozy_face:FEe,dizzy_face:BEe,exploding_head:GEe,cowboy_hat_face:VEe,partying_face:zEe,disguised_face:HEe,sunglasses:qEe,nerd_face:YEe,monocle_face:$Ee,confused:WEe,worried:KEe,slightly_frowning_face:jEe,frowning_face:QEe,open_mouth:XEe,hushed:ZEe,astonished:JEe,flushed:eye,pleading_face:tye,frowning:nye,anguished:iye,fearful:sye,cold_sweat:rye,disappointed_relieved:oye,cry:aye,sob:lye,scream:cye,confounded:dye,persevere:uye,disappointed:pye,sweat:_ye,weary:hye,tired_face:fye,yawning_face:mye,triumph:gye,rage:bye,pout:Eye,angry:yye,cursing_face:vye,smiling_imp:Sye,imp:Tye,skull:xye,skull_and_crossbones:Cye,hankey:wye,poop:Rye,shit:Aye,clown_face:Nye,japanese_ogre:Oye,japanese_goblin:Iye,ghost:Mye,alien:Dye,space_invader:kye,robot:Lye,smiley_cat:Pye,smile_cat:Uye,joy_cat:Fye,heart_eyes_cat:Bye,smirk_cat:Gye,kissing_cat:Vye,scream_cat:zye,crying_cat_face:Hye,pouting_cat:qye,see_no_evil:Yye,hear_no_evil:$ye,speak_no_evil:Wye,kiss:Kye,love_letter:jye,cupid:Qye,gift_heart:Xye,sparkling_heart:Zye,heartpulse:Jye,heartbeat:eve,revolving_hearts:tve,two_hearts:nve,heart_decoration:ive,heavy_heart_exclamation:sve,broken_heart:rve,heart:ove,orange_heart:ave,yellow_heart:lve,green_heart:cve,blue_heart:dve,purple_heart:uve,brown_heart:pve,black_heart:_ve,white_heart:hve,anger:fve,boom:mve,collision:gve,dizzy:bve,sweat_drops:Eve,dash:yve,hole:vve,bomb:Sve,speech_balloon:Tve,eye_speech_bubble:xve,left_speech_bubble:Cve,right_anger_bubble:wve,thought_balloon:Rve,zzz:Ave,wave:Nve,raised_back_of_hand:Ove,raised_hand_with_fingers_splayed:Ive,hand:Mve,raised_hand:Dve,vulcan_salute:kve,ok_hand:Lve,pinched_fingers:Pve,pinching_hand:Uve,v:Fve,crossed_fingers:Bve,love_you_gesture:Gve,metal:Vve,call_me_hand:zve,point_left:Hve,point_right:qve,point_up_2:Yve,middle_finger:$ve,fu:Wve,point_down:Kve,point_up:jve,"+1":"👍",thumbsup:Qve,"-1":"👎",thumbsdown:Xve,fist_raised:Zve,fist:Jve,fist_oncoming:eSe,facepunch:tSe,punch:nSe,fist_left:iSe,fist_right:sSe,clap:rSe,raised_hands:oSe,open_hands:aSe,palms_up_together:lSe,handshake:cSe,pray:dSe,writing_hand:uSe,nail_care:pSe,selfie:_Se,muscle:hSe,mechanical_arm:fSe,mechanical_leg:mSe,leg:gSe,foot:bSe,ear:ESe,ear_with_hearing_aid:ySe,nose:vSe,brain:SSe,anatomical_heart:TSe,lungs:xSe,tooth:CSe,bone:wSe,eyes:RSe,eye:ASe,tongue:NSe,lips:OSe,baby:ISe,child:MSe,boy:DSe,girl:kSe,adult:LSe,blond_haired_person:PSe,man:USe,bearded_person:FSe,red_haired_man:BSe,curly_haired_man:GSe,white_haired_man:VSe,bald_man:zSe,woman:HSe,red_haired_woman:qSe,person_red_hair:YSe,curly_haired_woman:$Se,person_curly_hair:WSe,white_haired_woman:KSe,person_white_hair:jSe,bald_woman:QSe,person_bald:XSe,blond_haired_woman:ZSe,blonde_woman:JSe,blond_haired_man:e0e,older_adult:t0e,older_man:n0e,older_woman:i0e,frowning_person:s0e,frowning_man:r0e,frowning_woman:o0e,pouting_face:a0e,pouting_man:l0e,pouting_woman:c0e,no_good:d0e,no_good_man:u0e,ng_man:p0e,no_good_woman:_0e,ng_woman:h0e,ok_person:f0e,ok_man:m0e,ok_woman:g0e,tipping_hand_person:b0e,information_desk_person:E0e,tipping_hand_man:y0e,sassy_man:v0e,tipping_hand_woman:S0e,sassy_woman:T0e,raising_hand:x0e,raising_hand_man:C0e,raising_hand_woman:w0e,deaf_person:R0e,deaf_man:A0e,deaf_woman:N0e,bow:O0e,bowing_man:I0e,bowing_woman:M0e,facepalm:D0e,man_facepalming:k0e,woman_facepalming:L0e,shrug:P0e,man_shrugging:U0e,woman_shrugging:F0e,health_worker:B0e,man_health_worker:G0e,woman_health_worker:V0e,student:z0e,man_student:H0e,woman_student:q0e,teacher:Y0e,man_teacher:$0e,woman_teacher:W0e,judge:K0e,man_judge:j0e,woman_judge:Q0e,farmer:X0e,man_farmer:Z0e,woman_farmer:J0e,cook:eTe,man_cook:tTe,woman_cook:nTe,mechanic:iTe,man_mechanic:sTe,woman_mechanic:rTe,factory_worker:oTe,man_factory_worker:aTe,woman_factory_worker:lTe,office_worker:cTe,man_office_worker:dTe,woman_office_worker:uTe,scientist:pTe,man_scientist:_Te,woman_scientist:hTe,technologist:fTe,man_technologist:mTe,woman_technologist:gTe,singer:bTe,man_singer:ETe,woman_singer:yTe,artist:vTe,man_artist:STe,woman_artist:TTe,pilot:xTe,man_pilot:CTe,woman_pilot:wTe,astronaut:RTe,man_astronaut:ATe,woman_astronaut:NTe,firefighter:OTe,man_firefighter:ITe,woman_firefighter:MTe,police_officer:DTe,cop:kTe,policeman:LTe,policewoman:PTe,detective:UTe,male_detective:FTe,female_detective:BTe,guard:GTe,guardsman:VTe,guardswoman:zTe,ninja:HTe,construction_worker:qTe,construction_worker_man:YTe,construction_worker_woman:$Te,prince:WTe,princess:KTe,person_with_turban:jTe,man_with_turban:QTe,woman_with_turban:XTe,man_with_gua_pi_mao:ZTe,woman_with_headscarf:JTe,person_in_tuxedo:exe,man_in_tuxedo:txe,woman_in_tuxedo:nxe,person_with_veil:ixe,man_with_veil:sxe,woman_with_veil:rxe,bride_with_veil:oxe,pregnant_woman:axe,breast_feeding:lxe,woman_feeding_baby:cxe,man_feeding_baby:dxe,person_feeding_baby:uxe,angel:pxe,santa:_xe,mrs_claus:hxe,mx_claus:fxe,superhero:mxe,superhero_man:gxe,superhero_woman:bxe,supervillain:Exe,supervillain_man:yxe,supervillain_woman:vxe,mage:Sxe,mage_man:Txe,mage_woman:xxe,fairy:Cxe,fairy_man:wxe,fairy_woman:Rxe,vampire:Axe,vampire_man:Nxe,vampire_woman:Oxe,merperson:Ixe,merman:Mxe,mermaid:Dxe,elf:kxe,elf_man:Lxe,elf_woman:Pxe,genie:Uxe,genie_man:Fxe,genie_woman:Bxe,zombie:Gxe,zombie_man:Vxe,zombie_woman:zxe,massage:Hxe,massage_man:qxe,massage_woman:Yxe,haircut:$xe,haircut_man:Wxe,haircut_woman:Kxe,walking:jxe,walking_man:Qxe,walking_woman:Xxe,standing_person:Zxe,standing_man:Jxe,standing_woman:eCe,kneeling_person:tCe,kneeling_man:nCe,kneeling_woman:iCe,person_with_probing_cane:sCe,man_with_probing_cane:rCe,woman_with_probing_cane:oCe,person_in_motorized_wheelchair:aCe,man_in_motorized_wheelchair:lCe,woman_in_motorized_wheelchair:cCe,person_in_manual_wheelchair:dCe,man_in_manual_wheelchair:uCe,woman_in_manual_wheelchair:pCe,runner:_Ce,running:hCe,running_man:fCe,running_woman:mCe,woman_dancing:gCe,dancer:bCe,man_dancing:ECe,business_suit_levitating:yCe,dancers:vCe,dancing_men:SCe,dancing_women:TCe,sauna_person:xCe,sauna_man:CCe,sauna_woman:wCe,climbing:RCe,climbing_man:ACe,climbing_woman:NCe,person_fencing:OCe,horse_racing:ICe,skier:MCe,snowboarder:DCe,golfing:kCe,golfing_man:LCe,golfing_woman:PCe,surfer:UCe,surfing_man:FCe,surfing_woman:BCe,rowboat:GCe,rowing_man:VCe,rowing_woman:zCe,swimmer:HCe,swimming_man:qCe,swimming_woman:YCe,bouncing_ball_person:$Ce,bouncing_ball_man:WCe,basketball_man:KCe,bouncing_ball_woman:jCe,basketball_woman:QCe,weight_lifting:XCe,weight_lifting_man:ZCe,weight_lifting_woman:JCe,bicyclist:e1e,biking_man:t1e,biking_woman:n1e,mountain_bicyclist:i1e,mountain_biking_man:s1e,mountain_biking_woman:r1e,cartwheeling:o1e,man_cartwheeling:a1e,woman_cartwheeling:l1e,wrestling:c1e,men_wrestling:d1e,women_wrestling:u1e,water_polo:p1e,man_playing_water_polo:_1e,woman_playing_water_polo:h1e,handball_person:f1e,man_playing_handball:m1e,woman_playing_handball:g1e,juggling_person:b1e,man_juggling:E1e,woman_juggling:y1e,lotus_position:v1e,lotus_position_man:S1e,lotus_position_woman:T1e,bath:x1e,sleeping_bed:C1e,people_holding_hands:w1e,two_women_holding_hands:R1e,couple:A1e,two_men_holding_hands:N1e,couplekiss:O1e,couplekiss_man_woman:I1e,couplekiss_man_man:M1e,couplekiss_woman_woman:D1e,couple_with_heart:k1e,couple_with_heart_woman_man:L1e,couple_with_heart_man_man:P1e,couple_with_heart_woman_woman:U1e,family:F1e,family_man_woman_boy:B1e,family_man_woman_girl:G1e,family_man_woman_girl_boy:V1e,family_man_woman_boy_boy:z1e,family_man_woman_girl_girl:H1e,family_man_man_boy:q1e,family_man_man_girl:Y1e,family_man_man_girl_boy:$1e,family_man_man_boy_boy:W1e,family_man_man_girl_girl:K1e,family_woman_woman_boy:j1e,family_woman_woman_girl:Q1e,family_woman_woman_girl_boy:X1e,family_woman_woman_boy_boy:Z1e,family_woman_woman_girl_girl:J1e,family_man_boy:ewe,family_man_boy_boy:twe,family_man_girl:nwe,family_man_girl_boy:iwe,family_man_girl_girl:swe,family_woman_boy:rwe,family_woman_boy_boy:owe,family_woman_girl:awe,family_woman_girl_boy:lwe,family_woman_girl_girl:cwe,speaking_head:dwe,bust_in_silhouette:uwe,busts_in_silhouette:pwe,people_hugging:_we,footprints:hwe,monkey_face:fwe,monkey:mwe,gorilla:gwe,orangutan:bwe,dog:Ewe,dog2:ywe,guide_dog:vwe,service_dog:Swe,poodle:Twe,wolf:xwe,fox_face:Cwe,raccoon:wwe,cat:Rwe,cat2:Awe,black_cat:Nwe,lion:Owe,tiger:Iwe,tiger2:Mwe,leopard:Dwe,horse:kwe,racehorse:Lwe,unicorn:Pwe,zebra:Uwe,deer:Fwe,bison:Bwe,cow:Gwe,ox:Vwe,water_buffalo:zwe,cow2:Hwe,pig:qwe,pig2:Ywe,boar:$we,pig_nose:Wwe,ram:Kwe,sheep:jwe,goat:Qwe,dromedary_camel:Xwe,camel:Zwe,llama:Jwe,giraffe:eRe,elephant:tRe,mammoth:nRe,rhinoceros:iRe,hippopotamus:sRe,mouse:rRe,mouse2:oRe,rat:aRe,hamster:lRe,rabbit:cRe,rabbit2:dRe,chipmunk:uRe,beaver:pRe,hedgehog:_Re,bat:hRe,bear:fRe,polar_bear:mRe,koala:gRe,panda_face:bRe,sloth:ERe,otter:yRe,skunk:vRe,kangaroo:SRe,badger:TRe,feet:xRe,paw_prints:CRe,turkey:wRe,chicken:RRe,rooster:ARe,hatching_chick:NRe,baby_chick:ORe,hatched_chick:IRe,bird:MRe,penguin:DRe,dove:kRe,eagle:LRe,duck:PRe,swan:URe,owl:FRe,dodo:BRe,feather:GRe,flamingo:VRe,peacock:zRe,parrot:HRe,frog:qRe,crocodile:YRe,turtle:$Re,lizard:WRe,snake:KRe,dragon_face:jRe,dragon:QRe,sauropod:XRe,"t-rex":"🦖",whale:ZRe,whale2:JRe,dolphin:eAe,flipper:tAe,seal:nAe,fish:iAe,tropical_fish:sAe,blowfish:rAe,shark:oAe,octopus:aAe,shell:lAe,snail:cAe,butterfly:dAe,bug:uAe,ant:pAe,bee:_Ae,honeybee:hAe,beetle:fAe,lady_beetle:mAe,cricket:gAe,cockroach:bAe,spider:EAe,spider_web:yAe,scorpion:vAe,mosquito:SAe,fly:TAe,worm:xAe,microbe:CAe,bouquet:wAe,cherry_blossom:RAe,white_flower:AAe,rosette:NAe,rose:OAe,wilted_flower:IAe,hibiscus:MAe,sunflower:DAe,blossom:kAe,tulip:LAe,seedling:PAe,potted_plant:UAe,evergreen_tree:FAe,deciduous_tree:BAe,palm_tree:GAe,cactus:VAe,ear_of_rice:zAe,herb:HAe,shamrock:qAe,four_leaf_clover:YAe,maple_leaf:$Ae,fallen_leaf:WAe,leaves:KAe,grapes:jAe,melon:QAe,watermelon:XAe,tangerine:ZAe,orange:JAe,mandarin:eNe,lemon:tNe,banana:nNe,pineapple:iNe,mango:sNe,apple:rNe,green_apple:oNe,pear:aNe,peach:lNe,cherries:cNe,strawberry:dNe,blueberries:uNe,kiwi_fruit:pNe,tomato:_Ne,olive:hNe,coconut:fNe,avocado:mNe,eggplant:gNe,potato:bNe,carrot:ENe,corn:yNe,hot_pepper:vNe,bell_pepper:SNe,cucumber:TNe,leafy_green:xNe,broccoli:CNe,garlic:wNe,onion:RNe,mushroom:ANe,peanuts:NNe,chestnut:ONe,bread:INe,croissant:MNe,baguette_bread:DNe,flatbread:kNe,pretzel:LNe,bagel:PNe,pancakes:UNe,waffle:FNe,cheese:BNe,meat_on_bone:GNe,poultry_leg:VNe,cut_of_meat:zNe,bacon:HNe,hamburger:qNe,fries:YNe,pizza:$Ne,hotdog:WNe,sandwich:KNe,taco:jNe,burrito:QNe,tamale:XNe,stuffed_flatbread:ZNe,falafel:JNe,egg:eOe,fried_egg:tOe,shallow_pan_of_food:nOe,stew:iOe,fondue:sOe,bowl_with_spoon:rOe,green_salad:oOe,popcorn:aOe,butter:lOe,salt:cOe,canned_food:dOe,bento:uOe,rice_cracker:pOe,rice_ball:_Oe,rice:hOe,curry:fOe,ramen:mOe,spaghetti:gOe,sweet_potato:bOe,oden:EOe,sushi:yOe,fried_shrimp:vOe,fish_cake:SOe,moon_cake:TOe,dango:xOe,dumpling:COe,fortune_cookie:wOe,takeout_box:ROe,crab:AOe,lobster:NOe,shrimp:OOe,squid:IOe,oyster:MOe,icecream:DOe,shaved_ice:kOe,ice_cream:LOe,doughnut:POe,cookie:UOe,birthday:FOe,cake:BOe,cupcake:GOe,pie:VOe,chocolate_bar:zOe,candy:HOe,lollipop:qOe,custard:YOe,honey_pot:$Oe,baby_bottle:WOe,milk_glass:KOe,coffee:jOe,teapot:QOe,tea:XOe,sake:ZOe,champagne:JOe,wine_glass:eIe,cocktail:tIe,tropical_drink:nIe,beer:iIe,beers:sIe,clinking_glasses:rIe,tumbler_glass:oIe,cup_with_straw:aIe,bubble_tea:lIe,beverage_box:cIe,mate:dIe,ice_cube:uIe,chopsticks:pIe,plate_with_cutlery:_Ie,fork_and_knife:hIe,spoon:fIe,hocho:mIe,knife:gIe,amphora:bIe,earth_africa:EIe,earth_americas:yIe,earth_asia:vIe,globe_with_meridians:SIe,world_map:TIe,japan:xIe,compass:CIe,mountain_snow:wIe,mountain:RIe,volcano:AIe,mount_fuji:NIe,camping:OIe,beach_umbrella:IIe,desert:MIe,desert_island:DIe,national_park:kIe,stadium:LIe,classical_building:PIe,building_construction:UIe,bricks:FIe,rock:BIe,wood:GIe,hut:VIe,houses:zIe,derelict_house:HIe,house:qIe,house_with_garden:YIe,office:$Ie,post_office:WIe,european_post_office:KIe,hospital:jIe,bank:QIe,hotel:XIe,love_hotel:ZIe,convenience_store:JIe,school:eMe,department_store:tMe,factory:nMe,japanese_castle:iMe,european_castle:sMe,wedding:rMe,tokyo_tower:oMe,statue_of_liberty:aMe,church:lMe,mosque:cMe,hindu_temple:dMe,synagogue:uMe,shinto_shrine:pMe,kaaba:_Me,fountain:hMe,tent:fMe,foggy:mMe,night_with_stars:gMe,cityscape:bMe,sunrise_over_mountains:EMe,sunrise:yMe,city_sunset:vMe,city_sunrise:SMe,bridge_at_night:TMe,hotsprings:xMe,carousel_horse:CMe,ferris_wheel:wMe,roller_coaster:RMe,barber:AMe,circus_tent:NMe,steam_locomotive:OMe,railway_car:IMe,bullettrain_side:MMe,bullettrain_front:DMe,train2:kMe,metro:LMe,light_rail:PMe,station:UMe,tram:FMe,monorail:BMe,mountain_railway:GMe,train:VMe,bus:zMe,oncoming_bus:HMe,trolleybus:qMe,minibus:YMe,ambulance:$Me,fire_engine:WMe,police_car:KMe,oncoming_police_car:jMe,taxi:QMe,oncoming_taxi:XMe,car:ZMe,red_car:JMe,oncoming_automobile:e2e,blue_car:t2e,pickup_truck:n2e,truck:i2e,articulated_lorry:s2e,tractor:r2e,racing_car:o2e,motorcycle:a2e,motor_scooter:l2e,manual_wheelchair:c2e,motorized_wheelchair:d2e,auto_rickshaw:u2e,bike:p2e,kick_scooter:_2e,skateboard:h2e,roller_skate:f2e,busstop:m2e,motorway:g2e,railway_track:b2e,oil_drum:E2e,fuelpump:y2e,rotating_light:v2e,traffic_light:S2e,vertical_traffic_light:T2e,stop_sign:x2e,construction:C2e,anchor:w2e,boat:R2e,sailboat:A2e,canoe:N2e,speedboat:O2e,passenger_ship:I2e,ferry:M2e,motor_boat:D2e,ship:k2e,airplane:L2e,small_airplane:P2e,flight_departure:U2e,flight_arrival:F2e,parachute:B2e,seat:G2e,helicopter:V2e,suspension_railway:z2e,mountain_cableway:H2e,aerial_tramway:q2e,artificial_satellite:Y2e,rocket:$2e,flying_saucer:W2e,bellhop_bell:K2e,luggage:j2e,hourglass:Q2e,hourglass_flowing_sand:X2e,watch:Z2e,alarm_clock:J2e,stopwatch:eDe,timer_clock:tDe,mantelpiece_clock:nDe,clock12:iDe,clock1230:sDe,clock1:rDe,clock130:oDe,clock2:aDe,clock230:lDe,clock3:cDe,clock330:dDe,clock4:uDe,clock430:pDe,clock5:_De,clock530:hDe,clock6:fDe,clock630:mDe,clock7:gDe,clock730:bDe,clock8:EDe,clock830:yDe,clock9:vDe,clock930:SDe,clock10:TDe,clock1030:xDe,clock11:CDe,clock1130:wDe,new_moon:RDe,waxing_crescent_moon:ADe,first_quarter_moon:NDe,moon:ODe,waxing_gibbous_moon:IDe,full_moon:MDe,waning_gibbous_moon:DDe,last_quarter_moon:kDe,waning_crescent_moon:LDe,crescent_moon:PDe,new_moon_with_face:UDe,first_quarter_moon_with_face:FDe,last_quarter_moon_with_face:BDe,thermometer:GDe,sunny:VDe,full_moon_with_face:zDe,sun_with_face:HDe,ringed_planet:qDe,star:YDe,star2:$De,stars:WDe,milky_way:KDe,cloud:jDe,partly_sunny:QDe,cloud_with_lightning_and_rain:XDe,sun_behind_small_cloud:ZDe,sun_behind_large_cloud:JDe,sun_behind_rain_cloud:eke,cloud_with_rain:tke,cloud_with_snow:nke,cloud_with_lightning:ike,tornado:ske,fog:rke,wind_face:oke,cyclone:ake,rainbow:lke,closed_umbrella:cke,open_umbrella:dke,umbrella:uke,parasol_on_ground:pke,zap:_ke,snowflake:hke,snowman_with_snow:fke,snowman:mke,comet:gke,fire:bke,droplet:Eke,ocean:yke,jack_o_lantern:vke,christmas_tree:Ske,fireworks:Tke,sparkler:xke,firecracker:Cke,sparkles:wke,balloon:Rke,tada:Ake,confetti_ball:Nke,tanabata_tree:Oke,bamboo:Ike,dolls:Mke,flags:Dke,wind_chime:kke,rice_scene:Lke,red_envelope:Pke,ribbon:Uke,gift:Fke,reminder_ribbon:Bke,tickets:Gke,ticket:Vke,medal_military:zke,trophy:Hke,medal_sports:qke,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:Yke,baseball:$ke,softball:Wke,basketball:Kke,volleyball:jke,football:Qke,rugby_football:Xke,tennis:Zke,flying_disc:Jke,bowling:eLe,cricket_game:tLe,field_hockey:nLe,ice_hockey:iLe,lacrosse:sLe,ping_pong:rLe,badminton:oLe,boxing_glove:aLe,martial_arts_uniform:lLe,goal_net:cLe,golf:dLe,ice_skate:uLe,fishing_pole_and_fish:pLe,diving_mask:_Le,running_shirt_with_sash:hLe,ski:fLe,sled:mLe,curling_stone:gLe,dart:bLe,yo_yo:ELe,kite:yLe,"8ball":"🎱",crystal_ball:vLe,magic_wand:SLe,nazar_amulet:TLe,video_game:xLe,joystick:CLe,slot_machine:wLe,game_die:RLe,jigsaw:ALe,teddy_bear:NLe,pinata:OLe,nesting_dolls:ILe,spades:MLe,hearts:DLe,diamonds:kLe,clubs:LLe,chess_pawn:PLe,black_joker:ULe,mahjong:FLe,flower_playing_cards:BLe,performing_arts:GLe,framed_picture:VLe,art:zLe,thread:HLe,sewing_needle:qLe,yarn:YLe,knot:$Le,eyeglasses:WLe,dark_sunglasses:KLe,goggles:jLe,lab_coat:QLe,safety_vest:XLe,necktie:ZLe,shirt:JLe,tshirt:ePe,jeans:tPe,scarf:nPe,gloves:iPe,coat:sPe,socks:rPe,dress:oPe,kimono:aPe,sari:lPe,one_piece_swimsuit:cPe,swim_brief:dPe,shorts:uPe,bikini:pPe,womans_clothes:_Pe,purse:hPe,handbag:fPe,pouch:mPe,shopping:gPe,school_satchel:bPe,thong_sandal:EPe,mans_shoe:yPe,shoe:vPe,athletic_shoe:SPe,hiking_boot:TPe,flat_shoe:xPe,high_heel:CPe,sandal:wPe,ballet_shoes:RPe,boot:APe,crown:NPe,womans_hat:OPe,tophat:IPe,mortar_board:MPe,billed_cap:DPe,military_helmet:kPe,rescue_worker_helmet:LPe,prayer_beads:PPe,lipstick:UPe,ring:FPe,gem:BPe,mute:GPe,speaker:VPe,sound:zPe,loud_sound:HPe,loudspeaker:qPe,mega:YPe,postal_horn:$Pe,bell:WPe,no_bell:KPe,musical_score:jPe,musical_note:QPe,notes:XPe,studio_microphone:ZPe,level_slider:JPe,control_knobs:eUe,microphone:tUe,headphones:nUe,radio:iUe,saxophone:sUe,accordion:rUe,guitar:oUe,musical_keyboard:aUe,trumpet:lUe,violin:cUe,banjo:dUe,drum:uUe,long_drum:pUe,iphone:_Ue,calling:hUe,phone:fUe,telephone:mUe,telephone_receiver:gUe,pager:bUe,fax:EUe,battery:yUe,electric_plug:vUe,computer:SUe,desktop_computer:TUe,printer:xUe,keyboard:CUe,computer_mouse:wUe,trackball:RUe,minidisc:AUe,floppy_disk:NUe,cd:OUe,dvd:IUe,abacus:MUe,movie_camera:DUe,film_strip:kUe,film_projector:LUe,clapper:PUe,tv:UUe,camera:FUe,camera_flash:BUe,video_camera:GUe,vhs:VUe,mag:zUe,mag_right:HUe,candle:qUe,bulb:YUe,flashlight:$Ue,izakaya_lantern:WUe,lantern:KUe,diya_lamp:jUe,notebook_with_decorative_cover:QUe,closed_book:XUe,book:ZUe,open_book:JUe,green_book:eFe,blue_book:tFe,orange_book:nFe,books:iFe,notebook:sFe,ledger:rFe,page_with_curl:oFe,scroll:aFe,page_facing_up:lFe,newspaper:cFe,newspaper_roll:dFe,bookmark_tabs:uFe,bookmark:pFe,label:_Fe,moneybag:hFe,coin:fFe,yen:mFe,dollar:gFe,euro:bFe,pound:EFe,money_with_wings:yFe,credit_card:vFe,receipt:SFe,chart:TFe,envelope:xFe,email:CFe,"e-mail":"📧",incoming_envelope:wFe,envelope_with_arrow:RFe,outbox_tray:AFe,inbox_tray:NFe,package:"📦",mailbox:OFe,mailbox_closed:IFe,mailbox_with_mail:MFe,mailbox_with_no_mail:DFe,postbox:kFe,ballot_box:LFe,pencil2:PFe,black_nib:UFe,fountain_pen:FFe,pen:BFe,paintbrush:GFe,crayon:VFe,memo:zFe,pencil:HFe,briefcase:qFe,file_folder:YFe,open_file_folder:$Fe,card_index_dividers:WFe,date:KFe,calendar:jFe,spiral_notepad:QFe,spiral_calendar:XFe,card_index:ZFe,chart_with_upwards_trend:JFe,chart_with_downwards_trend:e3e,bar_chart:t3e,clipboard:n3e,pushpin:i3e,round_pushpin:s3e,paperclip:r3e,paperclips:o3e,straight_ruler:a3e,triangular_ruler:l3e,scissors:c3e,card_file_box:d3e,file_cabinet:u3e,wastebasket:p3e,lock:_3e,unlock:h3e,lock_with_ink_pen:f3e,closed_lock_with_key:m3e,key:g3e,old_key:b3e,hammer:E3e,axe:y3e,pick:v3e,hammer_and_pick:S3e,hammer_and_wrench:T3e,dagger:x3e,crossed_swords:C3e,gun:w3e,boomerang:R3e,bow_and_arrow:A3e,shield:N3e,carpentry_saw:O3e,wrench:I3e,screwdriver:M3e,nut_and_bolt:D3e,gear:k3e,clamp:L3e,balance_scale:P3e,probing_cane:U3e,link:F3e,chains:B3e,hook:G3e,toolbox:V3e,magnet:z3e,ladder:H3e,alembic:q3e,test_tube:Y3e,petri_dish:$3e,dna:W3e,microscope:K3e,telescope:j3e,satellite:Q3e,syringe:X3e,drop_of_blood:Z3e,pill:J3e,adhesive_bandage:eBe,stethoscope:tBe,door:nBe,elevator:iBe,mirror:sBe,window:rBe,bed:oBe,couch_and_lamp:aBe,chair:lBe,toilet:cBe,plunger:dBe,shower:uBe,bathtub:pBe,mouse_trap:_Be,razor:hBe,lotion_bottle:fBe,safety_pin:mBe,broom:gBe,basket:bBe,roll_of_paper:EBe,bucket:yBe,soap:vBe,toothbrush:SBe,sponge:TBe,fire_extinguisher:xBe,shopping_cart:CBe,smoking:wBe,coffin:RBe,headstone:ABe,funeral_urn:NBe,moyai:OBe,placard:IBe,atm:MBe,put_litter_in_its_place:DBe,potable_water:kBe,wheelchair:LBe,mens:PBe,womens:UBe,restroom:FBe,baby_symbol:BBe,wc:GBe,passport_control:VBe,customs:zBe,baggage_claim:HBe,left_luggage:qBe,warning:YBe,children_crossing:$Be,no_entry:WBe,no_entry_sign:KBe,no_bicycles:jBe,no_smoking:QBe,do_not_litter:XBe,"non-potable_water":"🚱",no_pedestrians:ZBe,no_mobile_phones:JBe,underage:e5e,radioactive:t5e,biohazard:n5e,arrow_up:i5e,arrow_upper_right:s5e,arrow_right:r5e,arrow_lower_right:o5e,arrow_down:a5e,arrow_lower_left:l5e,arrow_left:c5e,arrow_upper_left:d5e,arrow_up_down:u5e,left_right_arrow:p5e,leftwards_arrow_with_hook:_5e,arrow_right_hook:h5e,arrow_heading_up:f5e,arrow_heading_down:m5e,arrows_clockwise:g5e,arrows_counterclockwise:b5e,back:E5e,end:y5e,on:v5e,soon:S5e,top:T5e,place_of_worship:x5e,atom_symbol:C5e,om:w5e,star_of_david:R5e,wheel_of_dharma:A5e,yin_yang:N5e,latin_cross:O5e,orthodox_cross:I5e,star_and_crescent:M5e,peace_symbol:D5e,menorah:k5e,six_pointed_star:L5e,aries:P5e,taurus:U5e,gemini:F5e,cancer:B5e,leo:G5e,virgo:V5e,libra:z5e,scorpius:H5e,sagittarius:q5e,capricorn:Y5e,aquarius:$5e,pisces:W5e,ophiuchus:K5e,twisted_rightwards_arrows:j5e,repeat:Q5e,repeat_one:X5e,arrow_forward:Z5e,fast_forward:J5e,next_track_button:e4e,play_or_pause_button:t4e,arrow_backward:n4e,rewind:i4e,previous_track_button:s4e,arrow_up_small:r4e,arrow_double_up:o4e,arrow_down_small:a4e,arrow_double_down:l4e,pause_button:c4e,stop_button:d4e,record_button:u4e,eject_button:p4e,cinema:_4e,low_brightness:h4e,high_brightness:f4e,signal_strength:m4e,vibration_mode:g4e,mobile_phone_off:b4e,female_sign:E4e,male_sign:y4e,transgender_symbol:v4e,heavy_multiplication_x:S4e,heavy_plus_sign:T4e,heavy_minus_sign:x4e,heavy_division_sign:C4e,infinity:w4e,bangbang:R4e,interrobang:A4e,question:N4e,grey_question:O4e,grey_exclamation:I4e,exclamation:M4e,heavy_exclamation_mark:D4e,wavy_dash:k4e,currency_exchange:L4e,heavy_dollar_sign:P4e,medical_symbol:U4e,recycle:F4e,fleur_de_lis:B4e,trident:G4e,name_badge:V4e,beginner:z4e,o:H4e,white_check_mark:q4e,ballot_box_with_check:Y4e,heavy_check_mark:$4e,x:W4e,negative_squared_cross_mark:K4e,curly_loop:j4e,loop:Q4e,part_alternation_mark:X4e,eight_spoked_asterisk:Z4e,eight_pointed_black_star:J4e,sparkle:eGe,copyright:tGe,registered:nGe,tm:iGe,hash:sGe,asterisk:rGe,zero:oGe,one:aGe,two:lGe,three:cGe,four:dGe,five:uGe,six:pGe,seven:_Ge,eight:hGe,nine:fGe,keycap_ten:mGe,capital_abcd:gGe,abcd:bGe,symbols:EGe,abc:yGe,a:vGe,ab:SGe,b:TGe,cl:xGe,cool:CGe,free:wGe,information_source:RGe,id:AGe,m:NGe,new:"🆕",ng:OGe,o2:IGe,ok:MGe,parking:DGe,sos:kGe,up:LGe,vs:PGe,koko:UGe,sa:FGe,ideograph_advantage:BGe,accept:GGe,congratulations:VGe,secret:zGe,u6e80:HGe,red_circle:qGe,orange_circle:YGe,yellow_circle:$Ge,green_circle:WGe,large_blue_circle:KGe,purple_circle:jGe,brown_circle:QGe,black_circle:XGe,white_circle:ZGe,red_square:JGe,orange_square:e6e,yellow_square:t6e,green_square:n6e,blue_square:i6e,purple_square:s6e,brown_square:r6e,black_large_square:o6e,white_large_square:a6e,black_medium_square:l6e,white_medium_square:c6e,black_medium_small_square:d6e,white_medium_small_square:u6e,black_small_square:p6e,white_small_square:_6e,large_orange_diamond:h6e,large_blue_diamond:f6e,small_orange_diamond:m6e,small_blue_diamond:g6e,small_red_triangle:b6e,small_red_triangle_down:E6e,diamond_shape_with_a_dot_inside:y6e,radio_button:v6e,white_square_button:S6e,black_square_button:T6e,checkered_flag:x6e,triangular_flag_on_post:C6e,crossed_flags:w6e,black_flag:R6e,white_flag:A6e,rainbow_flag:N6e,transgender_flag:O6e,pirate_flag:I6e,ascension_island:M6e,andorra:D6e,united_arab_emirates:k6e,afghanistan:L6e,antigua_barbuda:P6e,anguilla:U6e,albania:F6e,armenia:B6e,angola:G6e,antarctica:V6e,argentina:z6e,american_samoa:H6e,austria:q6e,australia:Y6e,aruba:$6e,aland_islands:W6e,azerbaijan:K6e,bosnia_herzegovina:j6e,barbados:Q6e,bangladesh:X6e,belgium:Z6e,burkina_faso:J6e,bulgaria:e9e,bahrain:t9e,burundi:n9e,benin:i9e,st_barthelemy:s9e,bermuda:r9e,brunei:o9e,bolivia:a9e,caribbean_netherlands:l9e,brazil:c9e,bahamas:d9e,bhutan:u9e,bouvet_island:p9e,botswana:_9e,belarus:h9e,belize:f9e,canada:m9e,cocos_islands:g9e,congo_kinshasa:b9e,central_african_republic:E9e,congo_brazzaville:y9e,switzerland:v9e,cote_divoire:S9e,cook_islands:T9e,chile:x9e,cameroon:C9e,cn:w9e,colombia:R9e,clipperton_island:A9e,costa_rica:N9e,cuba:O9e,cape_verde:I9e,curacao:M9e,christmas_island:D9e,cyprus:k9e,czech_republic:L9e,de:P9e,diego_garcia:U9e,djibouti:F9e,denmark:B9e,dominica:G9e,dominican_republic:V9e,algeria:z9e,ceuta_melilla:H9e,ecuador:q9e,estonia:Y9e,egypt:$9e,western_sahara:W9e,eritrea:K9e,es:j9e,ethiopia:Q9e,eu:X9e,european_union:Z9e,finland:J9e,fiji:e8e,falkland_islands:t8e,micronesia:n8e,faroe_islands:i8e,fr:s8e,gabon:r8e,gb:o8e,uk:a8e,grenada:l8e,georgia:c8e,french_guiana:d8e,guernsey:u8e,ghana:p8e,gibraltar:_8e,greenland:h8e,gambia:f8e,guinea:m8e,guadeloupe:g8e,equatorial_guinea:b8e,greece:E8e,south_georgia_south_sandwich_islands:y8e,guatemala:v8e,guam:S8e,guinea_bissau:T8e,guyana:x8e,hong_kong:C8e,heard_mcdonald_islands:w8e,honduras:R8e,croatia:A8e,haiti:N8e,hungary:O8e,canary_islands:I8e,indonesia:M8e,ireland:D8e,israel:k8e,isle_of_man:L8e,india:P8e,british_indian_ocean_territory:U8e,iraq:F8e,iran:B8e,iceland:G8e,it:V8e,jersey:z8e,jamaica:H8e,jordan:q8e,jp:Y8e,kenya:$8e,kyrgyzstan:W8e,cambodia:K8e,kiribati:j8e,comoros:Q8e,st_kitts_nevis:X8e,north_korea:Z8e,kr:J8e,kuwait:eVe,cayman_islands:tVe,kazakhstan:nVe,laos:iVe,lebanon:sVe,st_lucia:rVe,liechtenstein:oVe,sri_lanka:aVe,liberia:lVe,lesotho:cVe,lithuania:dVe,luxembourg:uVe,latvia:pVe,libya:_Ve,morocco:hVe,monaco:fVe,moldova:mVe,montenegro:gVe,st_martin:bVe,madagascar:EVe,marshall_islands:yVe,macedonia:vVe,mali:SVe,myanmar:TVe,mongolia:xVe,macau:CVe,northern_mariana_islands:wVe,martinique:RVe,mauritania:AVe,montserrat:NVe,malta:OVe,mauritius:IVe,maldives:MVe,malawi:DVe,mexico:kVe,malaysia:LVe,mozambique:PVe,namibia:UVe,new_caledonia:FVe,niger:BVe,norfolk_island:GVe,nigeria:VVe,nicaragua:zVe,netherlands:HVe,norway:qVe,nepal:YVe,nauru:$Ve,niue:WVe,new_zealand:KVe,oman:jVe,panama:QVe,peru:XVe,french_polynesia:ZVe,papua_new_guinea:JVe,philippines:eze,pakistan:tze,poland:nze,st_pierre_miquelon:ize,pitcairn_islands:sze,puerto_rico:rze,palestinian_territories:oze,portugal:aze,palau:lze,paraguay:cze,qatar:dze,reunion:uze,romania:pze,serbia:_ze,ru:hze,rwanda:fze,saudi_arabia:mze,solomon_islands:gze,seychelles:bze,sudan:Eze,sweden:yze,singapore:vze,st_helena:Sze,slovenia:Tze,svalbard_jan_mayen:xze,slovakia:Cze,sierra_leone:wze,san_marino:Rze,senegal:Aze,somalia:Nze,suriname:Oze,south_sudan:Ize,sao_tome_principe:Mze,el_salvador:Dze,sint_maarten:kze,syria:Lze,swaziland:Pze,tristan_da_cunha:Uze,turks_caicos_islands:Fze,chad:Bze,french_southern_territories:Gze,togo:Vze,thailand:zze,tajikistan:Hze,tokelau:qze,timor_leste:Yze,turkmenistan:$ze,tunisia:Wze,tonga:Kze,tr:jze,trinidad_tobago:Qze,tuvalu:Xze,taiwan:Zze,tanzania:Jze,ukraine:eHe,uganda:tHe,us_outlying_islands:nHe,united_nations:iHe,us:sHe,uruguay:rHe,uzbekistan:oHe,vatican_city:aHe,st_vincent_grenadines:lHe,venezuela:cHe,british_virgin_islands:dHe,us_virgin_islands:uHe,vietnam:pHe,vanuatu:_He,wallis_futuna:hHe,samoa:fHe,kosovo:mHe,yemen:gHe,mayotte:bHe,south_africa:EHe,zambia:yHe,zimbabwe:vHe,england:SHe,scotland:THe,wales:xHe};var wHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(y[g-1])||g+b.lengthm&&(_=new f("text","",0),_.content=d.slice(m,g),E.push(_)),_=new f("emoji","",0),_.markup=v,_.content=t[v],E.push(_),m=g+b.length}),m=0;f--)b=E[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&s.test(b.content)&&(g[_].children=E=o(E,f,u(b.content,b.level,h.Token)))}};function NHe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var OHe=function(e){var t=e.defs,i;e.enabled.length&&(t=Object.keys(t).reduce(function(l,u){return e.enabled.indexOf(u)>=0&&(l[u]=t[u]),l},{})),i=Object.keys(e.shortcuts).reduce(function(l,u){return t[u]?Array.isArray(e.shortcuts[u])?(e.shortcuts[u].forEach(function(d){l[d]=u}),l):(l[e.shortcuts[u]]=u,l):l},{});var s=Object.keys(t),r;s.length===0?r="^$":r=s.map(function(l){return":"+l+":"}).concat(Object.keys(i)).sort().reverse().map(function(l){return NHe(l)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:t,shortcuts:i,scanRE:o,replaceRE:a}},IHe=RHe,MHe=AHe,DHe=OHe,kHe=function(e,t){var i={defs:{},shortcuts:{},enabled:[]},s=DHe(e.utils.assign({},i,t||{}));e.renderer.rules.emoji=IHe,e.core.ruler.after("linkify","emoji",MHe(e,s.defs,s.shortcuts,s.scanRE,s.replaceRE))},LHe=CHe,PHe=wHe,UHe=kHe,FHe=function(e,t){var i={defs:LHe,shortcuts:PHe,enabled:[]},s=e.utils.assign({},i,t||{});UHe(e,s)};const BHe=Ar(FHe);var ES=!1,ga={false:"push",true:"unshift",after:"push",before:"unshift"},tu={isPermalinkSymbol:!0};function Hg(n,e,t,i){var s;if(!ES){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),ES=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:tu}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[i+1].children[ga[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(s=t.tokens[i+1].children)[ga[e.permalinkBefore]].apply(s,o)}function hN(n){return"#"+n}function fN(n){return{}}var GHe={class:"header-anchor",symbol:"#",renderHref:hN,renderAttrs:fN};function gc(n){function e(t){return t=Object.assign({},e.defaults,t),function(i,s,r,o){return n(i,t,s,r,o)}}return e.defaults=Object.assign({},GHe),e.renderPermalinkImpl=n,e}var tp=gc(function(n,e,t,i,s){var r,o=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,i)))}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}),new i.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";i.tokens[s+1].children[ga[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=i.tokens[s+1].children)[ga[e.placement]].apply(r,o)});Object.assign(tp.defaults,{space:!0,placement:"after",ariaHidden:!1});var Hr=gc(tp.renderPermalinkImpl);Hr.defaults=Object.assign({},tp.defaults,{ariaHidden:!0});var mN=gc(function(n,e,t,i,s){var r=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],Object.entries(e.renderAttrs(n,i)))})].concat(e.safariReaderFix?[new i.Token("span_open","span",1)]:[],i.tokens[s+1].children,e.safariReaderFix?[new i.Token("span_close","span",-1)]:[],[new i.Token("link_close","a",-1)]);i.tokens[s+1]=Object.assign(new i.Token("inline","",0),{children:r})});Object.assign(mN.defaults,{safariReaderFix:!1});var yS=gc(function(n,e,t,i,s){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=i.tokens[s+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,f){return h+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(n,i)]),l.push.apply(l,Object.entries(e.renderAttrs(n,i))),e.style==="visually-hidden"){if(a.push(Object.assign(new i.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new i.Token("text","",0),{content:e.assistiveText(o)}),new i.Token("span_close","span",-1)),e.space){var u=typeof e.space=="string"?e.space:" ";a[ga[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:u}))}a[ga[e.placement]](Object.assign(new i.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}),new i.Token("span_close","span",-1))}else a.push(Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,n]);var d=[Object.assign(new i.Token("link_open","a",1),{attrs:l})].concat(a,[new i.Token("link_close","a",-1)]);(r=i.tokens).splice.apply(r,[s+3,0].concat(d)),e.wrapper&&(i.tokens.splice(s,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[0]+` +`,o.map=[t,e.line],!0},Vme=function(e,t,i,s){var r,o,a,l,u,d,h,f=!1,_=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||_+3>m||(r=e.src.charCodeAt(_),r!==126&&r!==96)||(u=_,_=e.skipChars(_,r),o=_-u,o<3)||(h=e.src.slice(u,_),a=e.src.slice(_,m),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(s)return!0;for(l=t;l++,!(l>=i||(_=u=e.bMarks[l]+e.tShift[l],m=e.eMarks[l],_=4)&&(_=e.skipChars(_,r),!(_-u=4||e.src.charCodeAt(I)!==62)return!1;if(s)return!0;for(m=[],E=[],y=[],v=[],T=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",f=t;f=F));f++){if(e.src.charCodeAt(I++)===62&&!k){for(l=e.sCount[f]+1,e.src.charCodeAt(I)===32?(I++,l++,r=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[f]+l)%4===3?(I++,l++,r=!1):r=!0):S=!1,_=l,m.push(e.bMarks[f]),e.bMarks[f]=I;I=F,E.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(S?1:0),y.push(e.sCount[f]),e.sCount[f]=_-l,v.push(e.tShift[f]),e.tShift[f]=I-e.bMarks[f];continue}if(d)break;for(C=!1,a=0,u=T.length;a",O.map=h=[t,0],e.md.block.tokenize(e,t,f),O=e.push("blockquote_close","blockquote",-1),O.markup=">",e.lineMax=x,e.parentType=g,h[1]=e.line,a=0;a=4||(r=e.src.charCodeAt(u++),r!==42&&r!==45&&r!==95))return!1;for(o=1;u=r||(t=n.src.charCodeAt(s++),t<48||t>57))return-1;for(;;){if(s>=r)return-1;if(t=n.src.charCodeAt(s++),t>=48&&t<=57){if(s-i>=10)return-1;continue}if(t===41||t===46)break;return-1}return s=4||e.listIndent>=0&&e.sCount[H]-e.listIndent>=4&&e.sCount[H]=e.blkIndent&&(U=!0),(I=iS(e,H))>=0){if(h=!0,B=e.bMarks[H]+e.tShift[H],g=Number(e.src.slice(B,I-1)),U&&g!==1)return!1}else if((I=nS(e,H))>=0)h=!1;else return!1;if(U&&e.skipSpaces(I)>=e.eMarks[H])return!1;if(s)return!0;for(b=e.src.charCodeAt(I-1),E=e.tokens.length,h?($=e.push("ordered_list_open","ol",1),g!==1&&($.attrs=[["start",g]])):$=e.push("bullet_list_open","ul",1),$.map=m=[H,0],$.markup=String.fromCharCode(b),F=!1,L=e.md.block.ruler.getRules("list"),C=e.parentType,e.parentType="list";H=y?u=1:u=v-d,u>4&&(u=1),l=d+u,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[H,0],h&&($.info=e.src.slice(B,I-1)),k=e.tight,O=e.tShift[H],T=e.sCount[H],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[H]=o-e.bMarks[H],e.sCount[H]=v,o>=y&&e.isEmpty(H+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,H,i,!0),(!e.tight||F)&&(Q=!1),F=e.line-H>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[H]=O,e.sCount[H]=T,e.tight=k,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),H=e.line,f[1]=H,H>=i||e.sCount[H]=4)break;for(ne=!1,a=0,_=L.length;a<_;a++)if(L[a](e,H,i,!0)){ne=!0;break}if(ne)break;if(h){if(I=iS(e,H),I<0)break;B=e.bMarks[H]+e.tShift[H]}else if(I=nS(e,H),I<0)break;if(b!==e.src.charCodeAt(I-1))break}return h?$=e.push("ordered_list_close","ol",-1):$=e.push("bullet_list_close","ul",-1),$.markup=String.fromCharCode(b),m[1]=H,e.line=H,e.parentType=C,Q&&$me(e,E),!0},Kme=Bt.normalizeReference,kc=Bt.isSpace,jme=function(e,t,i,s){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C=0,T=e.bMarks[t]+e.tShift[t],O=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(T)!==91)return!1;for(;++T3)&&!(e.sCount[k]<0)){for(y=!1,d=0,h=v.length;d"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:S,href:u}),e.parentType=m,e.line=t+C+1),!0)},Qme=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ju={},Xme="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zme="[^\"'=<>`\\x00-\\x20]+",Jme="'[^']*'",ege='"[^"]*"',tge="(?:"+Zme+"|"+Jme+"|"+ege+")",nge="(?:\\s+"+Xme+"(?:\\s*=\\s*"+tge+")?)",eN="<[A-Za-z][A-Za-z0-9\\-]*"+nge+"*\\s*\\/?>",tN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ige="|",sge="<[?][\\s\\S]*?[?]>",rge="]*>",oge="",age=new RegExp("^(?:"+eN+"|"+tN+"|"+ige+"|"+sge+"|"+rge+"|"+oge+")"),lge=new RegExp("^(?:"+eN+"|"+tN+")");ju.HTML_TAG_RE=age;ju.HTML_OPEN_CLOSE_TAG_RE=lge;var cge=Qme,dge=ju.HTML_OPEN_CLOSE_TAG_RE,Ro=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(dge.source+"\\s*$"),/^$/,!1]],uge=function(e,t,i,s){var r,o,a,l,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,d),r=0;r=4||(r=e.src.charCodeAt(u),r!==35||u>=d))return!1;for(o=1,r=e.src.charCodeAt(++u);r===35&&u6||uu&&sS(e.src.charCodeAt(a-1))&&(d=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,d).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},_ge=function(e,t,i){var s,r,o,a,l,u,d,h,f,_=t+1,m,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";_3)){if(e.sCount[_]>=e.blkIndent&&(u=e.bMarks[_]+e.tShift[_],d=e.eMarks[_],u=d)))){h=f===61?1:2;break}if(!(e.sCount[_]<0)){for(r=!1,o=0,a=E.length;o3)&&!(e.sCount[d]<0)){for(r=!1,o=0,a=h.length;o0&&this.level++,this.tokens.push(i),i};hs.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};hs.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Qu(this.src.charCodeAt(--e)))return e+1;return e};hs.prototype.skipChars=function(e,t){for(var i=this.src.length;ei;)if(t!==this.src.charCodeAt(--e))return e+1;return e};hs.prototype.getLines=function(e,t,i,s){var r,o,a,l,u,d,h,f=e;if(e>=t)return"";for(d=new Array(t-e),r=0;fi?d[r]=new Array(o-i+1).join(" ")+this.src.slice(l,u):d[r]=this.src.slice(l,u)}return d.join("")};hs.prototype.Token=nN;var fge=hs,mge=sE,Lc=[["table",Bme,["paragraph","reference"]],["code",Gme],["fence",Vme,["paragraph","reference","blockquote","list"]],["blockquote",Hme,["paragraph","reference","blockquote","list"]],["hr",Yme,["paragraph","reference","blockquote","list"]],["list",Wme,["paragraph","reference","blockquote"]],["reference",jme],["html_block",uge,["paragraph","reference","blockquote"]],["heading",pge,["paragraph","reference","blockquote"]],["lheading",_ge],["paragraph",hge]];function Xu(){this.ruler=new mge;for(var n=0;n=t||n.sCount[l]=d){n.line=t;break}for(r=n.line,s=0;s=n.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");n.tight=!u,n.isEmpty(n.line-1)&&(u=!0),l=n.line,l0||(i=e.pos,s=e.posMax,i+3>s)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(r=e.pending.match(yge),!r)||(o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),u=e.md.normalizeLink(l),!e.md.validateLink(u))?!1:(t||(e.pending=e.pending.slice(0,-o.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(l),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=l.length-o.length,!0)},Sge=Bt.isSpace,Tge=function(e,t){var i,s,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,s=e.posMax,!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(r=i-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){aE[n.charCodeAt(0)]=1});var Cge=function(e,t){var i,s,r,o,a,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=u))return!1;if(i=e.src.charCodeAt(l),i===10){for(t||e.push("hardbreak","br",0),l++;l=55296&&i<=56319&&l+1=56320&&s<=57343&&(o+=e.src[l+1],l++)),r="\\"+o,t||(a=e.push("text_special","",0),i<256&&aE[i]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=l+1,!0},wge=function(e,t){var i,s,r,o,a,l,u,d,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(i=h,h++,s=e.posMax;h=0;t--)i=e[t],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(s=e[i.end],a=t>0&&e[t-1].end===i.end+1&&e[t-1].marker===i.marker&&e[t-1].token===i.token-1&&e[i.end+1].token===s.token+1,o=String.fromCharCode(i.marker),r=n.tokens[i.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=n.tokens[s.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[i.end+1].token].content="",t--))}Ju.postProcess=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(aS(e,e.delimiters),t=0;t=E)return!1;if(b=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",b=l;l=E||e.src.charCodeAt(l)!==41)&&(g=!0),l++}if(g){if(typeof e.env.references>"u")return!1;if(l=0?r=e.src.slice(b,l++):l=o+1):l=o+1,r||(r=e.src.slice(a,o)),d=e.env.references[Rge(r)],!d)return e.pos=m,!1;f=d.href,_=d.title}return t||(e.pos=a,e.posMax=o,h=e.push("link_open","a",1),h.attrs=i=[["href",f]],_&&i.push(["title",_]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=l,e.posMax=E,!0},Nge=Bt.normalizeReference,qp=Bt.isSpace,Oge=function(e,t){var i,s,r,o,a,l,u,d,h,f,_,m,E,b="",g=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(u=a+1,u=y)return!1;for(E=u,h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),h.ok&&(b=e.md.normalizeLink(h.str),e.md.validateLink(b)?u=h.pos:b=""),E=u;u=y||e.src.charCodeAt(u)!==41)return e.pos=g,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u=0?o=e.src.slice(E,u++):u=a+1):u=a+1,o||(o=e.src.slice(l,a)),d=e.env.references[Nge(o)],!d)return e.pos=g,!1;b=d.href,f=d.title}return t||(r=e.src.slice(l,a),e.md.inline.parse(r,e.md,e.env,m=[]),_=e.push("image","img",0),_.attrs=i=[["src",b],["alt",""]],_.children=m,_.content=r,f&&i.push(["title",f])),e.pos=u,e.posMax=y,!0},Ige=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Mge=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Dge=function(e,t){var i,s,r,o,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(o=e.src.charCodeAt(u),o===60))return!1;if(o===62)break}return i=e.src.slice(a+1,u),Mge.test(i)?(s=e.md.normalizeLink(i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):Ige.test(i)?(s=e.md.normalizeLink("mailto:"+i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):!1},kge=ju.HTML_TAG_RE;function Lge(n){return/^\s]/i.test(n)}function Pge(n){return/^<\/a\s*>/i.test(n)}function Uge(n){var e=n|32;return e>=97&&e<=122}var Fge=function(e,t){var i,s,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(i=e.src.charCodeAt(a+1),i!==33&&i!==63&&i!==47&&!Uge(i))||(s=e.src.slice(a).match(kge),!s)?!1:(t||(o=e.push("html_inline","",0),o.content=s[0],Lge(o.content)&&e.linkLevel++,Pge(o.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},lS=WA,Bge=Bt.has,Gge=Bt.isValidEntityCode,cS=Bt.fromCodePoint,Vge=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,zge=/^&([a-z][a-z0-9]{1,31});/i,Hge=function(e,t){var i,s,r,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(i=e.src.charCodeAt(a+1),i===35){if(r=e.src.slice(a).match(Vge),r)return t||(s=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=Gge(s)?cS(s):cS(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(zge),r&&Bge(lS,r[1]))return t||(o=e.push("text_special","",0),o.content=lS[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function dS(n){var e,t,i,s,r,o,a,l,u={},d=n.length;if(d){var h=0,f=-2,_=[];for(e=0;er;t-=_[t]+1)if(s=n[t],s.marker===i.marker&&s.open&&s.end<0&&(a=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(a=!0),!a)){l=t>0&&!n[t-1].open?_[t-1]+1:0,_[e]=e-t+l,_[t]=l,i.open=!1,s.end=e,s.close=!1,o=-1,f=-2;break}o!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var qge=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(dS(e.delimiters),t=0;t0&&s++,r[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(s),i};fc.prototype.scanDelims=function(n,e){var t=n,i,s,r,o,a,l,u,d,h,f=!0,_=!0,m=this.posMax,E=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[i]=n.pos};mc.prototype.tokenize=function(n){for(var e,t,i,s=this.ruler.getRules(""),r=s.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};mc.prototype.parse=function(n,e,t,i){var s,r,o,a=new this.State(n,e,t,i);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,s=0;s|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Wp}function Vg(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n}function ep(n){return Object.prototype.toString.call(n)}function jge(n){return ep(n)==="[object String]"}function Qge(n){return ep(n)==="[object Object]"}function Xge(n){return ep(n)==="[object RegExp]"}function mS(n){return ep(n)==="[object Function]"}function Zge(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var iN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Jge(n){return Object.keys(n||{}).reduce(function(e,t){return e||iN.hasOwnProperty(t)},!1)}var ebe={"http:":{validate:function(n,e,t){var i=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(i)?i.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var i=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(i)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:i.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var i=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(i)?i.match(t.re.mailto)[0].length:0}}},tbe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",nbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ibe(n){n.__index__=-1,n.__text_cache__=""}function sbe(n){return function(e,t){var i=e.slice(t);return n.test(i)?i.match(n)[0].length:0}}function gS(){return function(n,e){e.normalize(n)}}function eu(n){var e=n.re=Kge()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(tbe),t.push(e.src_xn),e.src_tlds=t.join("|");function i(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var s=[];n.__compiled__={};function r(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(n.__schemas__).forEach(function(a){var l=n.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(n.__compiled__[a]=u,Qge(l)){Xge(l.validate)?u.validate=sbe(l.validate):mS(l.validate)?u.validate=l.validate:r(a,l),mS(l.normalize)?u.normalize=l.normalize:l.normalize?r(a,l):u.normalize=gS();return}if(jge(l)){s.push(a);return}r(a,l)}}),s.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:gS()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(Zge).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),ibe(n)}function rbe(n,e){var t=n.__index__,i=n.__last_index__,s=n.__text_cache__.slice(t,i);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=i+e,this.raw=s,this.text=s,this.url=s}function zg(n,e){var t=new rbe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function oi(n,e){if(!(this instanceof oi))return new oi(n,e);e||Jge(n)&&(e=n,n={}),this.__opts__=Vg({},iN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Vg({},ebe,n),this.__compiled__={},this.__tlds__=nbe,this.__tlds_replaced__=!1,this.re={},eu(this)}oi.prototype.add=function(e,t){return this.__schemas__[e]=t,eu(this),this};oi.prototype.set=function(e){return this.__opts__=Vg(this.__opts__,e),this};oi.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,i,s,r,o,a,l,u,d;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(r=this.testSchemaAt(e,t[2],l.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(s=e.match(this.re.email_fuzzy))!==null&&(o=s.index+s[1].length,a=s.index+s[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};oi.prototype.pretest=function(e){return this.re.pretest.test(e)};oi.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0};oi.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(zg(this,t)),t=this.__last_index__);for(var s=t?e.slice(t):e;this.test(s);)i.push(zg(this,t)),s=s.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null};oi.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,zg(this,0)):null};oi.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,s,r){return i!==r[s-1]}).reverse(),eu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,eu(this),this)};oi.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};oi.prototype.onCompile=function(){};var obe=oi;const ra=2147483647,is=36,cE=1,Jl=26,abe=38,lbe=700,sN=72,rN=128,oN="-",cbe=/^xn--/,dbe=/[^\0-\x7F]/,ube=/[\x2E\u3002\uFF0E\uFF61]/g,pbe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Kp=is-cE,ss=Math.floor,jp=String.fromCharCode;function dr(n){throw new RangeError(pbe[n])}function _be(n,e){const t=[];let i=n.length;for(;i--;)t[i]=e(n[i]);return t}function aN(n,e){const t=n.split("@");let i="";t.length>1&&(i=t[0]+"@",n=t[1]),n=n.replace(ube,".");const s=n.split("."),r=_be(s,e).join(".");return i+r}function dE(n){const e=[];let t=0;const i=n.length;for(;t=55296&&s<=56319&&tString.fromCodePoint(...n),hbe=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:is},bS=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},cN=function(n,e,t){let i=0;for(n=t?ss(n/lbe):n>>1,n+=ss(n/e);n>Kp*Jl>>1;i+=is)n=ss(n/Kp);return ss(i+(Kp+1)*n/(n+abe))},uE=function(n){const e=[],t=n.length;let i=0,s=rN,r=sN,o=n.lastIndexOf(oN);o<0&&(o=0);for(let a=0;a=128&&dr("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&dr("invalid-input");const f=hbe(n.charCodeAt(a++));f>=is&&dr("invalid-input"),f>ss((ra-i)/d)&&dr("overflow"),i+=f*d;const _=h<=r?cE:h>=r+Jl?Jl:h-r;if(f<_)break;const m=is-_;d>ss(ra/m)&&dr("overflow"),d*=m}const u=e.length+1;r=cN(i-l,u,l==0),ss(i/u)>ra-s&&dr("overflow"),s+=ss(i/u),i%=u,e.splice(i++,0,s)}return String.fromCodePoint(...e)},pE=function(n){const e=[];n=dE(n);const t=n.length;let i=rN,s=0,r=sN;for(const l of n)l<128&&e.push(jp(l));const o=e.length;let a=o;for(o&&e.push(oN);a=i&&dss((ra-s)/u)&&dr("overflow"),s+=(l-i)*u,i=l;for(const d of n)if(dra&&dr("overflow"),d===i){let h=s;for(let f=is;;f+=is){const _=f<=r?cE:f>=r+Jl?Jl:f-r;if(h<_)break;const m=h-_,E=is-_;e.push(jp(bS(_+m%E,0))),h=ss(m/E)}e.push(jp(bS(h,0))),r=cN(s,u,a===o),s=0,++a}++s,++i}return e.join("")},dN=function(n){return aN(n,function(e){return cbe.test(e)?uE(e.slice(4).toLowerCase()):e})},uN=function(n){return aN(n,function(e){return dbe.test(e)?"xn--"+pE(e):e})},fbe={version:"2.1.0",ucs2:{decode:dE,encode:lN},decode:uE,encode:pE,toASCII:uN,toUnicode:dN},mbe=Object.freeze(Object.defineProperty({__proto__:null,decode:uE,default:fbe,encode:pE,toASCII:uN,toUnicode:dN,ucs2decode:dE,ucs2encode:lN},Symbol.toStringTag,{value:"Module"})),gbe=KP(mbe);var bbe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Ebe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ybe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Dl=Bt,vbe=Ku,Sbe=hme,Tbe=Fme,xbe=gge,Cbe=Wge,wbe=obe,eo=qa,pN=gbe,Rbe={default:bbe,zero:Ebe,commonmark:ybe},Abe=/^(vbscript|javascript|file|data):/,Nbe=/^data:image\/(gif|png|jpeg|webp);/;function Obe(n){var e=n.trim().toLowerCase();return Abe.test(e)?!!Nbe.test(e):!0}var _N=["http:","https:","mailto:"];function Ibe(n){var e=eo.parse(n,!0);if(e.hostname&&(!e.protocol||_N.indexOf(e.protocol)>=0))try{e.hostname=pN.toASCII(e.hostname)}catch{}return eo.encode(eo.format(e))}function Mbe(n){var e=eo.parse(n,!0);if(e.hostname&&(!e.protocol||_N.indexOf(e.protocol)>=0))try{e.hostname=pN.toUnicode(e.hostname)}catch{}return eo.decode(eo.format(e),eo.decode.defaultChars+"%")}function Ci(n,e){if(!(this instanceof Ci))return new Ci(n,e);e||Dl.isString(n)||(e=n||{},n="default"),this.inline=new Cbe,this.block=new xbe,this.core=new Tbe,this.renderer=new Sbe,this.linkify=new wbe,this.validateLink=Obe,this.normalizeLink=Ibe,this.normalizeLinkText=Mbe,this.utils=Dl,this.helpers=Dl.assign({},vbe),this.options={},this.configure(n),e&&this.set(e)}Ci.prototype.set=function(n){return Dl.assign(this.options,n),this};Ci.prototype.configure=function(n){var e=this,t;if(Dl.isString(n)&&(t=n,n=Rbe[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};Ci.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Ci.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Ci.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Ci.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Ci.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Ci.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Ci.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Dbe=Ci,kbe=Dbe;const Lbe=Ar(kbe),Pbe="😀",Ube="😃",Fbe="😄",Bbe="😁",Gbe="😆",Vbe="😆",zbe="😅",Hbe="🤣",qbe="😂",Ybe="🙂",$be="🙃",Wbe="😉",Kbe="😊",jbe="😇",Qbe="🥰",Xbe="😍",Zbe="🤩",Jbe="😘",eEe="😗",tEe="☺️",nEe="😚",iEe="😙",sEe="🥲",rEe="😋",oEe="😛",aEe="😜",lEe="🤪",cEe="😝",dEe="🤑",uEe="🤗",pEe="🤭",_Ee="🤫",hEe="🤔",fEe="🤐",mEe="🤨",gEe="😐",bEe="😑",EEe="😶",yEe="😏",vEe="😒",SEe="🙄",TEe="😬",xEe="🤥",CEe="😌",wEe="😔",REe="😪",AEe="🤤",NEe="😴",OEe="😷",IEe="🤒",MEe="🤕",DEe="🤢",kEe="🤮",LEe="🤧",PEe="🥵",UEe="🥶",FEe="🥴",BEe="😵",GEe="🤯",VEe="🤠",zEe="🥳",HEe="🥸",qEe="😎",YEe="🤓",$Ee="🧐",WEe="😕",KEe="😟",jEe="🙁",QEe="☹️",XEe="😮",ZEe="😯",JEe="😲",eye="😳",tye="🥺",nye="😦",iye="😧",sye="😨",rye="😰",oye="😥",aye="😢",lye="😭",cye="😱",dye="😖",uye="😣",pye="😞",_ye="😓",hye="😩",fye="😫",mye="🥱",gye="😤",bye="😡",Eye="😡",yye="😠",vye="🤬",Sye="😈",Tye="👿",xye="💀",Cye="☠️",wye="💩",Rye="💩",Aye="💩",Nye="🤡",Oye="👹",Iye="👺",Mye="👻",Dye="👽",kye="👾",Lye="🤖",Pye="😺",Uye="😸",Fye="😹",Bye="😻",Gye="😼",Vye="😽",zye="🙀",Hye="😿",qye="😾",Yye="🙈",$ye="🙉",Wye="🙊",Kye="💋",jye="💌",Qye="💘",Xye="💝",Zye="💖",Jye="💗",eve="💓",tve="💞",nve="💕",ive="💟",sve="❣️",rve="💔",ove="❤️",ave="🧡",lve="💛",cve="💚",dve="💙",uve="💜",pve="🤎",_ve="🖤",hve="🤍",fve="💢",mve="💥",gve="💥",bve="💫",Eve="💦",yve="💨",vve="🕳️",Sve="💣",Tve="💬",xve="👁️‍🗨️",Cve="🗨️",wve="🗯️",Rve="💭",Ave="💤",Nve="👋",Ove="🤚",Ive="🖐️",Mve="✋",Dve="✋",kve="🖖",Lve="👌",Pve="🤌",Uve="🤏",Fve="✌️",Bve="🤞",Gve="🤟",Vve="🤘",zve="🤙",Hve="👈",qve="👉",Yve="👆",$ve="🖕",Wve="🖕",Kve="👇",jve="☝️",Qve="👍",Xve="👎",Zve="✊",Jve="✊",eSe="👊",tSe="👊",nSe="👊",iSe="🤛",sSe="🤜",rSe="👏",oSe="🙌",aSe="👐",lSe="🤲",cSe="🤝",dSe="🙏",uSe="✍️",pSe="💅",_Se="🤳",hSe="💪",fSe="🦾",mSe="🦿",gSe="🦵",bSe="🦶",ESe="👂",ySe="🦻",vSe="👃",SSe="🧠",TSe="🫀",xSe="🫁",CSe="🦷",wSe="🦴",RSe="👀",ASe="👁️",NSe="👅",OSe="👄",ISe="👶",MSe="🧒",DSe="👦",kSe="👧",LSe="🧑",PSe="👱",USe="👨",FSe="🧔",BSe="👨‍🦰",GSe="👨‍🦱",VSe="👨‍🦳",zSe="👨‍🦲",HSe="👩",qSe="👩‍🦰",YSe="🧑‍🦰",$Se="👩‍🦱",WSe="🧑‍🦱",KSe="👩‍🦳",jSe="🧑‍🦳",QSe="👩‍🦲",XSe="🧑‍🦲",ZSe="👱‍♀️",JSe="👱‍♀️",e0e="👱‍♂️",t0e="🧓",n0e="👴",i0e="👵",s0e="🙍",r0e="🙍‍♂️",o0e="🙍‍♀️",a0e="🙎",l0e="🙎‍♂️",c0e="🙎‍♀️",d0e="🙅",u0e="🙅‍♂️",p0e="🙅‍♂️",_0e="🙅‍♀️",h0e="🙅‍♀️",f0e="🙆",m0e="🙆‍♂️",g0e="🙆‍♀️",b0e="💁",E0e="💁",y0e="💁‍♂️",v0e="💁‍♂️",S0e="💁‍♀️",T0e="💁‍♀️",x0e="🙋",C0e="🙋‍♂️",w0e="🙋‍♀️",R0e="🧏",A0e="🧏‍♂️",N0e="🧏‍♀️",O0e="🙇",I0e="🙇‍♂️",M0e="🙇‍♀️",D0e="🤦",k0e="🤦‍♂️",L0e="🤦‍♀️",P0e="🤷",U0e="🤷‍♂️",F0e="🤷‍♀️",B0e="🧑‍⚕️",G0e="👨‍⚕️",V0e="👩‍⚕️",z0e="🧑‍🎓",H0e="👨‍🎓",q0e="👩‍🎓",Y0e="🧑‍🏫",$0e="👨‍🏫",W0e="👩‍🏫",K0e="🧑‍⚖️",j0e="👨‍⚖️",Q0e="👩‍⚖️",X0e="🧑‍🌾",Z0e="👨‍🌾",J0e="👩‍🌾",eTe="🧑‍🍳",tTe="👨‍🍳",nTe="👩‍🍳",iTe="🧑‍🔧",sTe="👨‍🔧",rTe="👩‍🔧",oTe="🧑‍🏭",aTe="👨‍🏭",lTe="👩‍🏭",cTe="🧑‍💼",dTe="👨‍💼",uTe="👩‍💼",pTe="🧑‍🔬",_Te="👨‍🔬",hTe="👩‍🔬",fTe="🧑‍💻",mTe="👨‍💻",gTe="👩‍💻",bTe="🧑‍🎤",ETe="👨‍🎤",yTe="👩‍🎤",vTe="🧑‍🎨",STe="👨‍🎨",TTe="👩‍🎨",xTe="🧑‍✈️",CTe="👨‍✈️",wTe="👩‍✈️",RTe="🧑‍🚀",ATe="👨‍🚀",NTe="👩‍🚀",OTe="🧑‍🚒",ITe="👨‍🚒",MTe="👩‍🚒",DTe="👮",kTe="👮",LTe="👮‍♂️",PTe="👮‍♀️",UTe="🕵️",FTe="🕵️‍♂️",BTe="🕵️‍♀️",GTe="💂",VTe="💂‍♂️",zTe="💂‍♀️",HTe="🥷",qTe="👷",YTe="👷‍♂️",$Te="👷‍♀️",WTe="🤴",KTe="👸",jTe="👳",QTe="👳‍♂️",XTe="👳‍♀️",ZTe="👲",JTe="🧕",exe="🤵",txe="🤵‍♂️",nxe="🤵‍♀️",ixe="👰",sxe="👰‍♂️",rxe="👰‍♀️",oxe="👰‍♀️",axe="🤰",lxe="🤱",cxe="👩‍🍼",dxe="👨‍🍼",uxe="🧑‍🍼",pxe="👼",_xe="🎅",hxe="🤶",fxe="🧑‍🎄",mxe="🦸",gxe="🦸‍♂️",bxe="🦸‍♀️",Exe="🦹",yxe="🦹‍♂️",vxe="🦹‍♀️",Sxe="🧙",Txe="🧙‍♂️",xxe="🧙‍♀️",Cxe="🧚",wxe="🧚‍♂️",Rxe="🧚‍♀️",Axe="🧛",Nxe="🧛‍♂️",Oxe="🧛‍♀️",Ixe="🧜",Mxe="🧜‍♂️",Dxe="🧜‍♀️",kxe="🧝",Lxe="🧝‍♂️",Pxe="🧝‍♀️",Uxe="🧞",Fxe="🧞‍♂️",Bxe="🧞‍♀️",Gxe="🧟",Vxe="🧟‍♂️",zxe="🧟‍♀️",Hxe="💆",qxe="💆‍♂️",Yxe="💆‍♀️",$xe="💇",Wxe="💇‍♂️",Kxe="💇‍♀️",jxe="🚶",Qxe="🚶‍♂️",Xxe="🚶‍♀️",Zxe="🧍",Jxe="🧍‍♂️",eCe="🧍‍♀️",tCe="🧎",nCe="🧎‍♂️",iCe="🧎‍♀️",sCe="🧑‍🦯",rCe="👨‍🦯",oCe="👩‍🦯",aCe="🧑‍🦼",lCe="👨‍🦼",cCe="👩‍🦼",dCe="🧑‍🦽",uCe="👨‍🦽",pCe="👩‍🦽",_Ce="🏃",hCe="🏃",fCe="🏃‍♂️",mCe="🏃‍♀️",gCe="💃",bCe="💃",ECe="🕺",yCe="🕴️",vCe="👯",SCe="👯‍♂️",TCe="👯‍♀️",xCe="🧖",CCe="🧖‍♂️",wCe="🧖‍♀️",RCe="🧗",ACe="🧗‍♂️",NCe="🧗‍♀️",OCe="🤺",ICe="🏇",MCe="⛷️",DCe="🏂",kCe="🏌️",LCe="🏌️‍♂️",PCe="🏌️‍♀️",UCe="🏄",FCe="🏄‍♂️",BCe="🏄‍♀️",GCe="🚣",VCe="🚣‍♂️",zCe="🚣‍♀️",HCe="🏊",qCe="🏊‍♂️",YCe="🏊‍♀️",$Ce="⛹️",WCe="⛹️‍♂️",KCe="⛹️‍♂️",jCe="⛹️‍♀️",QCe="⛹️‍♀️",XCe="🏋️",ZCe="🏋️‍♂️",JCe="🏋️‍♀️",e1e="🚴",t1e="🚴‍♂️",n1e="🚴‍♀️",i1e="🚵",s1e="🚵‍♂️",r1e="🚵‍♀️",o1e="🤸",a1e="🤸‍♂️",l1e="🤸‍♀️",c1e="🤼",d1e="🤼‍♂️",u1e="🤼‍♀️",p1e="🤽",_1e="🤽‍♂️",h1e="🤽‍♀️",f1e="🤾",m1e="🤾‍♂️",g1e="🤾‍♀️",b1e="🤹",E1e="🤹‍♂️",y1e="🤹‍♀️",v1e="🧘",S1e="🧘‍♂️",T1e="🧘‍♀️",x1e="🛀",C1e="🛌",w1e="🧑‍🤝‍🧑",R1e="👭",A1e="👫",N1e="👬",O1e="💏",I1e="👩‍❤️‍💋‍👨",M1e="👨‍❤️‍💋‍👨",D1e="👩‍❤️‍💋‍👩",k1e="💑",L1e="👩‍❤️‍👨",P1e="👨‍❤️‍👨",U1e="👩‍❤️‍👩",F1e="👪",B1e="👨‍👩‍👦",G1e="👨‍👩‍👧",V1e="👨‍👩‍👧‍👦",z1e="👨‍👩‍👦‍👦",H1e="👨‍👩‍👧‍👧",q1e="👨‍👨‍👦",Y1e="👨‍👨‍👧",$1e="👨‍👨‍👧‍👦",W1e="👨‍👨‍👦‍👦",K1e="👨‍👨‍👧‍👧",j1e="👩‍👩‍👦",Q1e="👩‍👩‍👧",X1e="👩‍👩‍👧‍👦",Z1e="👩‍👩‍👦‍👦",J1e="👩‍👩‍👧‍👧",ewe="👨‍👦",twe="👨‍👦‍👦",nwe="👨‍👧",iwe="👨‍👧‍👦",swe="👨‍👧‍👧",rwe="👩‍👦",owe="👩‍👦‍👦",awe="👩‍👧",lwe="👩‍👧‍👦",cwe="👩‍👧‍👧",dwe="🗣️",uwe="👤",pwe="👥",_we="🫂",hwe="👣",fwe="🐵",mwe="🐒",gwe="🦍",bwe="🦧",Ewe="🐶",ywe="🐕",vwe="🦮",Swe="🐕‍🦺",Twe="🐩",xwe="🐺",Cwe="🦊",wwe="🦝",Rwe="🐱",Awe="🐈",Nwe="🐈‍⬛",Owe="🦁",Iwe="🐯",Mwe="🐅",Dwe="🐆",kwe="🐴",Lwe="🐎",Pwe="🦄",Uwe="🦓",Fwe="🦌",Bwe="🦬",Gwe="🐮",Vwe="🐂",zwe="🐃",Hwe="🐄",qwe="🐷",Ywe="🐖",$we="🐗",Wwe="🐽",Kwe="🐏",jwe="🐑",Qwe="🐐",Xwe="🐪",Zwe="🐫",Jwe="🦙",eRe="🦒",tRe="🐘",nRe="🦣",iRe="🦏",sRe="🦛",rRe="🐭",oRe="🐁",aRe="🐀",lRe="🐹",cRe="🐰",dRe="🐇",uRe="🐿️",pRe="🦫",_Re="🦔",hRe="🦇",fRe="🐻",mRe="🐻‍❄️",gRe="🐨",bRe="🐼",ERe="🦥",yRe="🦦",vRe="🦨",SRe="🦘",TRe="🦡",xRe="🐾",CRe="🐾",wRe="🦃",RRe="🐔",ARe="🐓",NRe="🐣",ORe="🐤",IRe="🐥",MRe="🐦",DRe="🐧",kRe="🕊️",LRe="🦅",PRe="🦆",URe="🦢",FRe="🦉",BRe="🦤",GRe="🪶",VRe="🦩",zRe="🦚",HRe="🦜",qRe="🐸",YRe="🐊",$Re="🐢",WRe="🦎",KRe="🐍",jRe="🐲",QRe="🐉",XRe="🦕",ZRe="🐳",JRe="🐋",eAe="🐬",tAe="🐬",nAe="🦭",iAe="🐟",sAe="🐠",rAe="🐡",oAe="🦈",aAe="🐙",lAe="🐚",cAe="🐌",dAe="🦋",uAe="🐛",pAe="🐜",_Ae="🐝",hAe="🐝",fAe="🪲",mAe="🐞",gAe="🦗",bAe="🪳",EAe="🕷️",yAe="🕸️",vAe="🦂",SAe="🦟",TAe="🪰",xAe="🪱",CAe="🦠",wAe="💐",RAe="🌸",AAe="💮",NAe="🏵️",OAe="🌹",IAe="🥀",MAe="🌺",DAe="🌻",kAe="🌼",LAe="🌷",PAe="🌱",UAe="🪴",FAe="🌲",BAe="🌳",GAe="🌴",VAe="🌵",zAe="🌾",HAe="🌿",qAe="☘️",YAe="🍀",$Ae="🍁",WAe="🍂",KAe="🍃",jAe="🍇",QAe="🍈",XAe="🍉",ZAe="🍊",JAe="🍊",eNe="🍊",tNe="🍋",nNe="🍌",iNe="🍍",sNe="🥭",rNe="🍎",oNe="🍏",aNe="🍐",lNe="🍑",cNe="🍒",dNe="🍓",uNe="🫐",pNe="🥝",_Ne="🍅",hNe="🫒",fNe="🥥",mNe="🥑",gNe="🍆",bNe="🥔",ENe="🥕",yNe="🌽",vNe="🌶️",SNe="🫑",TNe="🥒",xNe="🥬",CNe="🥦",wNe="🧄",RNe="🧅",ANe="🍄",NNe="🥜",ONe="🌰",INe="🍞",MNe="🥐",DNe="🥖",kNe="🫓",LNe="🥨",PNe="🥯",UNe="🥞",FNe="🧇",BNe="🧀",GNe="🍖",VNe="🍗",zNe="🥩",HNe="🥓",qNe="🍔",YNe="🍟",$Ne="🍕",WNe="🌭",KNe="🥪",jNe="🌮",QNe="🌯",XNe="🫔",ZNe="🥙",JNe="🧆",eOe="🥚",tOe="🍳",nOe="🥘",iOe="🍲",sOe="🫕",rOe="🥣",oOe="🥗",aOe="🍿",lOe="🧈",cOe="🧂",dOe="🥫",uOe="🍱",pOe="🍘",_Oe="🍙",hOe="🍚",fOe="🍛",mOe="🍜",gOe="🍝",bOe="🍠",EOe="🍢",yOe="🍣",vOe="🍤",SOe="🍥",TOe="🥮",xOe="🍡",COe="🥟",wOe="🥠",ROe="🥡",AOe="🦀",NOe="🦞",OOe="🦐",IOe="🦑",MOe="🦪",DOe="🍦",kOe="🍧",LOe="🍨",POe="🍩",UOe="🍪",FOe="🎂",BOe="🍰",GOe="🧁",VOe="🥧",zOe="🍫",HOe="🍬",qOe="🍭",YOe="🍮",$Oe="🍯",WOe="🍼",KOe="🥛",jOe="☕",QOe="🫖",XOe="🍵",ZOe="🍶",JOe="🍾",eIe="🍷",tIe="🍸",nIe="🍹",iIe="🍺",sIe="🍻",rIe="🥂",oIe="🥃",aIe="🥤",lIe="🧋",cIe="🧃",dIe="🧉",uIe="🧊",pIe="🥢",_Ie="🍽️",hIe="🍴",fIe="🥄",mIe="🔪",gIe="🔪",bIe="🏺",EIe="🌍",yIe="🌎",vIe="🌏",SIe="🌐",TIe="🗺️",xIe="🗾",CIe="🧭",wIe="🏔️",RIe="⛰️",AIe="🌋",NIe="🗻",OIe="🏕️",IIe="🏖️",MIe="🏜️",DIe="🏝️",kIe="🏞️",LIe="🏟️",PIe="🏛️",UIe="🏗️",FIe="🧱",BIe="🪨",GIe="🪵",VIe="🛖",zIe="🏘️",HIe="🏚️",qIe="🏠",YIe="🏡",$Ie="🏢",WIe="🏣",KIe="🏤",jIe="🏥",QIe="🏦",XIe="🏨",ZIe="🏩",JIe="🏪",eMe="🏫",tMe="🏬",nMe="🏭",iMe="🏯",sMe="🏰",rMe="💒",oMe="🗼",aMe="🗽",lMe="⛪",cMe="🕌",dMe="🛕",uMe="🕍",pMe="⛩️",_Me="🕋",hMe="⛲",fMe="⛺",mMe="🌁",gMe="🌃",bMe="🏙️",EMe="🌄",yMe="🌅",vMe="🌆",SMe="🌇",TMe="🌉",xMe="♨️",CMe="🎠",wMe="🎡",RMe="🎢",AMe="💈",NMe="🎪",OMe="🚂",IMe="🚃",MMe="🚄",DMe="🚅",kMe="🚆",LMe="🚇",PMe="🚈",UMe="🚉",FMe="🚊",BMe="🚝",GMe="🚞",VMe="🚋",zMe="🚌",HMe="🚍",qMe="🚎",YMe="🚐",$Me="🚑",WMe="🚒",KMe="🚓",jMe="🚔",QMe="🚕",XMe="🚖",ZMe="🚗",JMe="🚗",e2e="🚘",t2e="🚙",n2e="🛻",i2e="🚚",s2e="🚛",r2e="🚜",o2e="🏎️",a2e="🏍️",l2e="🛵",c2e="🦽",d2e="🦼",u2e="🛺",p2e="🚲",_2e="🛴",h2e="🛹",f2e="🛼",m2e="🚏",g2e="🛣️",b2e="🛤️",E2e="🛢️",y2e="⛽",v2e="🚨",S2e="🚥",T2e="🚦",x2e="🛑",C2e="🚧",w2e="⚓",R2e="⛵",A2e="⛵",N2e="🛶",O2e="🚤",I2e="🛳️",M2e="⛴️",D2e="🛥️",k2e="🚢",L2e="✈️",P2e="🛩️",U2e="🛫",F2e="🛬",B2e="🪂",G2e="💺",V2e="🚁",z2e="🚟",H2e="🚠",q2e="🚡",Y2e="🛰️",$2e="🚀",W2e="🛸",K2e="🛎️",j2e="🧳",Q2e="⌛",X2e="⏳",Z2e="⌚",J2e="⏰",eDe="⏱️",tDe="⏲️",nDe="🕰️",iDe="🕛",sDe="🕧",rDe="🕐",oDe="🕜",aDe="🕑",lDe="🕝",cDe="🕒",dDe="🕞",uDe="🕓",pDe="🕟",_De="🕔",hDe="🕠",fDe="🕕",mDe="🕡",gDe="🕖",bDe="🕢",EDe="🕗",yDe="🕣",vDe="🕘",SDe="🕤",TDe="🕙",xDe="🕥",CDe="🕚",wDe="🕦",RDe="🌑",ADe="🌒",NDe="🌓",ODe="🌔",IDe="🌔",MDe="🌕",DDe="🌖",kDe="🌗",LDe="🌘",PDe="🌙",UDe="🌚",FDe="🌛",BDe="🌜",GDe="🌡️",VDe="☀️",zDe="🌝",HDe="🌞",qDe="🪐",YDe="⭐",$De="🌟",WDe="🌠",KDe="🌌",jDe="☁️",QDe="⛅",XDe="⛈️",ZDe="🌤️",JDe="🌥️",eke="🌦️",tke="🌧️",nke="🌨️",ike="🌩️",ske="🌪️",rke="🌫️",oke="🌬️",ake="🌀",lke="🌈",cke="🌂",dke="☂️",uke="☔",pke="⛱️",_ke="⚡",hke="❄️",fke="☃️",mke="⛄",gke="☄️",bke="🔥",Eke="💧",yke="🌊",vke="🎃",Ske="🎄",Tke="🎆",xke="🎇",Cke="🧨",wke="✨",Rke="🎈",Ake="🎉",Nke="🎊",Oke="🎋",Ike="🎍",Mke="🎎",Dke="🎏",kke="🎐",Lke="🎑",Pke="🧧",Uke="🎀",Fke="🎁",Bke="🎗️",Gke="🎟️",Vke="🎫",zke="🎖️",Hke="🏆",qke="🏅",Yke="⚽",$ke="⚾",Wke="🥎",Kke="🏀",jke="🏐",Qke="🏈",Xke="🏉",Zke="🎾",Jke="🥏",eLe="🎳",tLe="🏏",nLe="🏑",iLe="🏒",sLe="🥍",rLe="🏓",oLe="🏸",aLe="🥊",lLe="🥋",cLe="🥅",dLe="⛳",uLe="⛸️",pLe="🎣",_Le="🤿",hLe="🎽",fLe="🎿",mLe="🛷",gLe="🥌",bLe="🎯",ELe="🪀",yLe="🪁",vLe="🔮",SLe="🪄",TLe="🧿",xLe="🎮",CLe="🕹️",wLe="🎰",RLe="🎲",ALe="🧩",NLe="🧸",OLe="🪅",ILe="🪆",MLe="♠️",DLe="♥️",kLe="♦️",LLe="♣️",PLe="♟️",ULe="🃏",FLe="🀄",BLe="🎴",GLe="🎭",VLe="🖼️",zLe="🎨",HLe="🧵",qLe="🪡",YLe="🧶",$Le="🪢",WLe="👓",KLe="🕶️",jLe="🥽",QLe="🥼",XLe="🦺",ZLe="👔",JLe="👕",ePe="👕",tPe="👖",nPe="🧣",iPe="🧤",sPe="🧥",rPe="🧦",oPe="👗",aPe="👘",lPe="🥻",cPe="🩱",dPe="🩲",uPe="🩳",pPe="👙",_Pe="👚",hPe="👛",fPe="👜",mPe="👝",gPe="🛍️",bPe="🎒",EPe="🩴",yPe="👞",vPe="👞",SPe="👟",TPe="🥾",xPe="🥿",CPe="👠",wPe="👡",RPe="🩰",APe="👢",NPe="👑",OPe="👒",IPe="🎩",MPe="🎓",DPe="🧢",kPe="🪖",LPe="⛑️",PPe="📿",UPe="💄",FPe="💍",BPe="💎",GPe="🔇",VPe="🔈",zPe="🔉",HPe="🔊",qPe="📢",YPe="📣",$Pe="📯",WPe="🔔",KPe="🔕",jPe="🎼",QPe="🎵",XPe="🎶",ZPe="🎙️",JPe="🎚️",eUe="🎛️",tUe="🎤",nUe="🎧",iUe="📻",sUe="🎷",rUe="🪗",oUe="🎸",aUe="🎹",lUe="🎺",cUe="🎻",dUe="🪕",uUe="🥁",pUe="🪘",_Ue="📱",hUe="📲",fUe="☎️",mUe="☎️",gUe="📞",bUe="📟",EUe="📠",yUe="🔋",vUe="🔌",SUe="💻",TUe="🖥️",xUe="🖨️",CUe="⌨️",wUe="🖱️",RUe="🖲️",AUe="💽",NUe="💾",OUe="💿",IUe="📀",MUe="🧮",DUe="🎥",kUe="🎞️",LUe="📽️",PUe="🎬",UUe="📺",FUe="📷",BUe="📸",GUe="📹",VUe="📼",zUe="🔍",HUe="🔎",qUe="🕯️",YUe="💡",$Ue="🔦",WUe="🏮",KUe="🏮",jUe="🪔",QUe="📔",XUe="📕",ZUe="📖",JUe="📖",eFe="📗",tFe="📘",nFe="📙",iFe="📚",sFe="📓",rFe="📒",oFe="📃",aFe="📜",lFe="📄",cFe="📰",dFe="🗞️",uFe="📑",pFe="🔖",_Fe="🏷️",hFe="💰",fFe="🪙",mFe="💴",gFe="💵",bFe="💶",EFe="💷",yFe="💸",vFe="💳",SFe="🧾",TFe="💹",xFe="✉️",CFe="📧",wFe="📨",RFe="📩",AFe="📤",NFe="📥",OFe="📫",IFe="📪",MFe="📬",DFe="📭",kFe="📮",LFe="🗳️",PFe="✏️",UFe="✒️",FFe="🖋️",BFe="🖊️",GFe="🖌️",VFe="🖍️",zFe="📝",HFe="📝",qFe="💼",YFe="📁",$Fe="📂",WFe="🗂️",KFe="📅",jFe="📆",QFe="🗒️",XFe="🗓️",ZFe="📇",JFe="📈",e3e="📉",t3e="📊",n3e="📋",i3e="📌",s3e="📍",r3e="📎",o3e="🖇️",a3e="📏",l3e="📐",c3e="✂️",d3e="🗃️",u3e="🗄️",p3e="🗑️",_3e="🔒",h3e="🔓",f3e="🔏",m3e="🔐",g3e="🔑",b3e="🗝️",E3e="🔨",y3e="🪓",v3e="⛏️",S3e="⚒️",T3e="🛠️",x3e="🗡️",C3e="⚔️",w3e="🔫",R3e="🪃",A3e="🏹",N3e="🛡️",O3e="🪚",I3e="🔧",M3e="🪛",D3e="🔩",k3e="⚙️",L3e="🗜️",P3e="⚖️",U3e="🦯",F3e="🔗",B3e="⛓️",G3e="🪝",V3e="🧰",z3e="🧲",H3e="🪜",q3e="⚗️",Y3e="🧪",$3e="🧫",W3e="🧬",K3e="🔬",j3e="🔭",Q3e="📡",X3e="💉",Z3e="🩸",J3e="💊",eBe="🩹",tBe="🩺",nBe="🚪",iBe="🛗",sBe="🪞",rBe="🪟",oBe="🛏️",aBe="🛋️",lBe="🪑",cBe="🚽",dBe="🪠",uBe="🚿",pBe="🛁",_Be="🪤",hBe="🪒",fBe="🧴",mBe="🧷",gBe="🧹",bBe="🧺",EBe="🧻",yBe="🪣",vBe="🧼",SBe="🪥",TBe="🧽",xBe="🧯",CBe="🛒",wBe="🚬",RBe="⚰️",ABe="🪦",NBe="⚱️",OBe="🗿",IBe="🪧",MBe="🏧",DBe="🚮",kBe="🚰",LBe="♿",PBe="🚹",UBe="🚺",FBe="🚻",BBe="🚼",GBe="🚾",VBe="🛂",zBe="🛃",HBe="🛄",qBe="🛅",YBe="⚠️",$Be="🚸",WBe="⛔",KBe="🚫",jBe="🚳",QBe="🚭",XBe="🚯",ZBe="🚷",JBe="📵",e4e="🔞",t4e="☢️",n4e="☣️",i4e="⬆️",s4e="↗️",r4e="➡️",o4e="↘️",a4e="⬇️",l4e="↙️",c4e="⬅️",d4e="↖️",u4e="↕️",p4e="↔️",_4e="↩️",h4e="↪️",f4e="⤴️",m4e="⤵️",g4e="🔃",b4e="🔄",E4e="🔙",y4e="🔚",v4e="🔛",S4e="🔜",T4e="🔝",x4e="🛐",C4e="⚛️",w4e="🕉️",R4e="✡️",A4e="☸️",N4e="☯️",O4e="✝️",I4e="☦️",M4e="☪️",D4e="☮️",k4e="🕎",L4e="🔯",P4e="♈",U4e="♉",F4e="♊",B4e="♋",G4e="♌",V4e="♍",z4e="♎",H4e="♏",q4e="♐",Y4e="♑",$4e="♒",W4e="♓",K4e="⛎",j4e="🔀",Q4e="🔁",X4e="🔂",Z4e="▶️",J4e="⏩",e5e="⏭️",t5e="⏯️",n5e="◀️",i5e="⏪",s5e="⏮️",r5e="🔼",o5e="⏫",a5e="🔽",l5e="⏬",c5e="⏸️",d5e="⏹️",u5e="⏺️",p5e="⏏️",_5e="🎦",h5e="🔅",f5e="🔆",m5e="📶",g5e="📳",b5e="📴",E5e="♀️",y5e="♂️",v5e="⚧️",S5e="✖️",T5e="➕",x5e="➖",C5e="➗",w5e="♾️",R5e="‼️",A5e="⁉️",N5e="❓",O5e="❔",I5e="❕",M5e="❗",D5e="❗",k5e="〰️",L5e="💱",P5e="💲",U5e="⚕️",F5e="♻️",B5e="⚜️",G5e="🔱",V5e="📛",z5e="🔰",H5e="⭕",q5e="✅",Y5e="☑️",$5e="✔️",W5e="❌",K5e="❎",j5e="➰",Q5e="➿",X5e="〽️",Z5e="✳️",J5e="✴️",eGe="❇️",tGe="©️",nGe="®️",iGe="™️",sGe="#️⃣",rGe="*️⃣",oGe="0️⃣",aGe="1️⃣",lGe="2️⃣",cGe="3️⃣",dGe="4️⃣",uGe="5️⃣",pGe="6️⃣",_Ge="7️⃣",hGe="8️⃣",fGe="9️⃣",mGe="🔟",gGe="🔠",bGe="🔡",EGe="🔣",yGe="🔤",vGe="🅰️",SGe="🆎",TGe="🅱️",xGe="🆑",CGe="🆒",wGe="🆓",RGe="ℹ️",AGe="🆔",NGe="Ⓜ️",OGe="🆖",IGe="🅾️",MGe="🆗",DGe="🅿️",kGe="🆘",LGe="🆙",PGe="🆚",UGe="🈁",FGe="🈂️",BGe="🉐",GGe="🉑",VGe="㊗️",zGe="㊙️",HGe="🈵",qGe="🔴",YGe="🟠",$Ge="🟡",WGe="🟢",KGe="🔵",jGe="🟣",QGe="🟤",XGe="⚫",ZGe="⚪",JGe="🟥",e6e="🟧",t6e="🟨",n6e="🟩",i6e="🟦",s6e="🟪",r6e="🟫",o6e="⬛",a6e="⬜",l6e="◼️",c6e="◻️",d6e="◾",u6e="◽",p6e="▪️",_6e="▫️",h6e="🔶",f6e="🔷",m6e="🔸",g6e="🔹",b6e="🔺",E6e="🔻",y6e="💠",v6e="🔘",S6e="🔳",T6e="🔲",x6e="🏁",C6e="🚩",w6e="🎌",R6e="🏴",A6e="🏳️",N6e="🏳️‍🌈",O6e="🏳️‍⚧️",I6e="🏴‍☠️",M6e="🇦🇨",D6e="🇦🇩",k6e="🇦🇪",L6e="🇦🇫",P6e="🇦🇬",U6e="🇦🇮",F6e="🇦🇱",B6e="🇦🇲",G6e="🇦🇴",V6e="🇦🇶",z6e="🇦🇷",H6e="🇦🇸",q6e="🇦🇹",Y6e="🇦🇺",$6e="🇦🇼",W6e="🇦🇽",K6e="🇦🇿",j6e="🇧🇦",Q6e="🇧🇧",X6e="🇧🇩",Z6e="🇧🇪",J6e="🇧🇫",e9e="🇧🇬",t9e="🇧🇭",n9e="🇧🇮",i9e="🇧🇯",s9e="🇧🇱",r9e="🇧🇲",o9e="🇧🇳",a9e="🇧🇴",l9e="🇧🇶",c9e="🇧🇷",d9e="🇧🇸",u9e="🇧🇹",p9e="🇧🇻",_9e="🇧🇼",h9e="🇧🇾",f9e="🇧🇿",m9e="🇨🇦",g9e="🇨🇨",b9e="🇨🇩",E9e="🇨🇫",y9e="🇨🇬",v9e="🇨🇭",S9e="🇨🇮",T9e="🇨🇰",x9e="🇨🇱",C9e="🇨🇲",w9e="🇨🇳",R9e="🇨🇴",A9e="🇨🇵",N9e="🇨🇷",O9e="🇨🇺",I9e="🇨🇻",M9e="🇨🇼",D9e="🇨🇽",k9e="🇨🇾",L9e="🇨🇿",P9e="🇩🇪",U9e="🇩🇬",F9e="🇩🇯",B9e="🇩🇰",G9e="🇩🇲",V9e="🇩🇴",z9e="🇩🇿",H9e="🇪🇦",q9e="🇪🇨",Y9e="🇪🇪",$9e="🇪🇬",W9e="🇪🇭",K9e="🇪🇷",j9e="🇪🇸",Q9e="🇪🇹",X9e="🇪🇺",Z9e="🇪🇺",J9e="🇫🇮",e8e="🇫🇯",t8e="🇫🇰",n8e="🇫🇲",i8e="🇫🇴",s8e="🇫🇷",r8e="🇬🇦",o8e="🇬🇧",a8e="🇬🇧",l8e="🇬🇩",c8e="🇬🇪",d8e="🇬🇫",u8e="🇬🇬",p8e="🇬🇭",_8e="🇬🇮",h8e="🇬🇱",f8e="🇬🇲",m8e="🇬🇳",g8e="🇬🇵",b8e="🇬🇶",E8e="🇬🇷",y8e="🇬🇸",v8e="🇬🇹",S8e="🇬🇺",T8e="🇬🇼",x8e="🇬🇾",C8e="🇭🇰",w8e="🇭🇲",R8e="🇭🇳",A8e="🇭🇷",N8e="🇭🇹",O8e="🇭🇺",I8e="🇮🇨",M8e="🇮🇩",D8e="🇮🇪",k8e="🇮🇱",L8e="🇮🇲",P8e="🇮🇳",U8e="🇮🇴",F8e="🇮🇶",B8e="🇮🇷",G8e="🇮🇸",V8e="🇮🇹",z8e="🇯🇪",H8e="🇯🇲",q8e="🇯🇴",Y8e="🇯🇵",$8e="🇰🇪",W8e="🇰🇬",K8e="🇰🇭",j8e="🇰🇮",Q8e="🇰🇲",X8e="🇰🇳",Z8e="🇰🇵",J8e="🇰🇷",eVe="🇰🇼",tVe="🇰🇾",nVe="🇰🇿",iVe="🇱🇦",sVe="🇱🇧",rVe="🇱🇨",oVe="🇱🇮",aVe="🇱🇰",lVe="🇱🇷",cVe="🇱🇸",dVe="🇱🇹",uVe="🇱🇺",pVe="🇱🇻",_Ve="🇱🇾",hVe="🇲🇦",fVe="🇲🇨",mVe="🇲🇩",gVe="🇲🇪",bVe="🇲🇫",EVe="🇲🇬",yVe="🇲🇭",vVe="🇲🇰",SVe="🇲🇱",TVe="🇲🇲",xVe="🇲🇳",CVe="🇲🇴",wVe="🇲🇵",RVe="🇲🇶",AVe="🇲🇷",NVe="🇲🇸",OVe="🇲🇹",IVe="🇲🇺",MVe="🇲🇻",DVe="🇲🇼",kVe="🇲🇽",LVe="🇲🇾",PVe="🇲🇿",UVe="🇳🇦",FVe="🇳🇨",BVe="🇳🇪",GVe="🇳🇫",VVe="🇳🇬",zVe="🇳🇮",HVe="🇳🇱",qVe="🇳🇴",YVe="🇳🇵",$Ve="🇳🇷",WVe="🇳🇺",KVe="🇳🇿",jVe="🇴🇲",QVe="🇵🇦",XVe="🇵🇪",ZVe="🇵🇫",JVe="🇵🇬",eze="🇵🇭",tze="🇵🇰",nze="🇵🇱",ize="🇵🇲",sze="🇵🇳",rze="🇵🇷",oze="🇵🇸",aze="🇵🇹",lze="🇵🇼",cze="🇵🇾",dze="🇶🇦",uze="🇷🇪",pze="🇷🇴",_ze="🇷🇸",hze="🇷🇺",fze="🇷🇼",mze="🇸🇦",gze="🇸🇧",bze="🇸🇨",Eze="🇸🇩",yze="🇸🇪",vze="🇸🇬",Sze="🇸🇭",Tze="🇸🇮",xze="🇸🇯",Cze="🇸🇰",wze="🇸🇱",Rze="🇸🇲",Aze="🇸🇳",Nze="🇸🇴",Oze="🇸🇷",Ize="🇸🇸",Mze="🇸🇹",Dze="🇸🇻",kze="🇸🇽",Lze="🇸🇾",Pze="🇸🇿",Uze="🇹🇦",Fze="🇹🇨",Bze="🇹🇩",Gze="🇹🇫",Vze="🇹🇬",zze="🇹🇭",Hze="🇹🇯",qze="🇹🇰",Yze="🇹🇱",$ze="🇹🇲",Wze="🇹🇳",Kze="🇹🇴",jze="🇹🇷",Qze="🇹🇹",Xze="🇹🇻",Zze="🇹🇼",Jze="🇹🇿",eHe="🇺🇦",tHe="🇺🇬",nHe="🇺🇲",iHe="🇺🇳",sHe="🇺🇸",rHe="🇺🇾",oHe="🇺🇿",aHe="🇻🇦",lHe="🇻🇨",cHe="🇻🇪",dHe="🇻🇬",uHe="🇻🇮",pHe="🇻🇳",_He="🇻🇺",hHe="🇼🇫",fHe="🇼🇸",mHe="🇽🇰",gHe="🇾🇪",bHe="🇾🇹",EHe="🇿🇦",yHe="🇿🇲",vHe="🇿🇼",SHe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",THe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",xHe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",CHe={100:"💯",1234:"🔢",grinning:Pbe,smiley:Ube,smile:Fbe,grin:Bbe,laughing:Gbe,satisfied:Vbe,sweat_smile:zbe,rofl:Hbe,joy:qbe,slightly_smiling_face:Ybe,upside_down_face:$be,wink:Wbe,blush:Kbe,innocent:jbe,smiling_face_with_three_hearts:Qbe,heart_eyes:Xbe,star_struck:Zbe,kissing_heart:Jbe,kissing:eEe,relaxed:tEe,kissing_closed_eyes:nEe,kissing_smiling_eyes:iEe,smiling_face_with_tear:sEe,yum:rEe,stuck_out_tongue:oEe,stuck_out_tongue_winking_eye:aEe,zany_face:lEe,stuck_out_tongue_closed_eyes:cEe,money_mouth_face:dEe,hugs:uEe,hand_over_mouth:pEe,shushing_face:_Ee,thinking:hEe,zipper_mouth_face:fEe,raised_eyebrow:mEe,neutral_face:gEe,expressionless:bEe,no_mouth:EEe,smirk:yEe,unamused:vEe,roll_eyes:SEe,grimacing:TEe,lying_face:xEe,relieved:CEe,pensive:wEe,sleepy:REe,drooling_face:AEe,sleeping:NEe,mask:OEe,face_with_thermometer:IEe,face_with_head_bandage:MEe,nauseated_face:DEe,vomiting_face:kEe,sneezing_face:LEe,hot_face:PEe,cold_face:UEe,woozy_face:FEe,dizzy_face:BEe,exploding_head:GEe,cowboy_hat_face:VEe,partying_face:zEe,disguised_face:HEe,sunglasses:qEe,nerd_face:YEe,monocle_face:$Ee,confused:WEe,worried:KEe,slightly_frowning_face:jEe,frowning_face:QEe,open_mouth:XEe,hushed:ZEe,astonished:JEe,flushed:eye,pleading_face:tye,frowning:nye,anguished:iye,fearful:sye,cold_sweat:rye,disappointed_relieved:oye,cry:aye,sob:lye,scream:cye,confounded:dye,persevere:uye,disappointed:pye,sweat:_ye,weary:hye,tired_face:fye,yawning_face:mye,triumph:gye,rage:bye,pout:Eye,angry:yye,cursing_face:vye,smiling_imp:Sye,imp:Tye,skull:xye,skull_and_crossbones:Cye,hankey:wye,poop:Rye,shit:Aye,clown_face:Nye,japanese_ogre:Oye,japanese_goblin:Iye,ghost:Mye,alien:Dye,space_invader:kye,robot:Lye,smiley_cat:Pye,smile_cat:Uye,joy_cat:Fye,heart_eyes_cat:Bye,smirk_cat:Gye,kissing_cat:Vye,scream_cat:zye,crying_cat_face:Hye,pouting_cat:qye,see_no_evil:Yye,hear_no_evil:$ye,speak_no_evil:Wye,kiss:Kye,love_letter:jye,cupid:Qye,gift_heart:Xye,sparkling_heart:Zye,heartpulse:Jye,heartbeat:eve,revolving_hearts:tve,two_hearts:nve,heart_decoration:ive,heavy_heart_exclamation:sve,broken_heart:rve,heart:ove,orange_heart:ave,yellow_heart:lve,green_heart:cve,blue_heart:dve,purple_heart:uve,brown_heart:pve,black_heart:_ve,white_heart:hve,anger:fve,boom:mve,collision:gve,dizzy:bve,sweat_drops:Eve,dash:yve,hole:vve,bomb:Sve,speech_balloon:Tve,eye_speech_bubble:xve,left_speech_bubble:Cve,right_anger_bubble:wve,thought_balloon:Rve,zzz:Ave,wave:Nve,raised_back_of_hand:Ove,raised_hand_with_fingers_splayed:Ive,hand:Mve,raised_hand:Dve,vulcan_salute:kve,ok_hand:Lve,pinched_fingers:Pve,pinching_hand:Uve,v:Fve,crossed_fingers:Bve,love_you_gesture:Gve,metal:Vve,call_me_hand:zve,point_left:Hve,point_right:qve,point_up_2:Yve,middle_finger:$ve,fu:Wve,point_down:Kve,point_up:jve,"+1":"👍",thumbsup:Qve,"-1":"👎",thumbsdown:Xve,fist_raised:Zve,fist:Jve,fist_oncoming:eSe,facepunch:tSe,punch:nSe,fist_left:iSe,fist_right:sSe,clap:rSe,raised_hands:oSe,open_hands:aSe,palms_up_together:lSe,handshake:cSe,pray:dSe,writing_hand:uSe,nail_care:pSe,selfie:_Se,muscle:hSe,mechanical_arm:fSe,mechanical_leg:mSe,leg:gSe,foot:bSe,ear:ESe,ear_with_hearing_aid:ySe,nose:vSe,brain:SSe,anatomical_heart:TSe,lungs:xSe,tooth:CSe,bone:wSe,eyes:RSe,eye:ASe,tongue:NSe,lips:OSe,baby:ISe,child:MSe,boy:DSe,girl:kSe,adult:LSe,blond_haired_person:PSe,man:USe,bearded_person:FSe,red_haired_man:BSe,curly_haired_man:GSe,white_haired_man:VSe,bald_man:zSe,woman:HSe,red_haired_woman:qSe,person_red_hair:YSe,curly_haired_woman:$Se,person_curly_hair:WSe,white_haired_woman:KSe,person_white_hair:jSe,bald_woman:QSe,person_bald:XSe,blond_haired_woman:ZSe,blonde_woman:JSe,blond_haired_man:e0e,older_adult:t0e,older_man:n0e,older_woman:i0e,frowning_person:s0e,frowning_man:r0e,frowning_woman:o0e,pouting_face:a0e,pouting_man:l0e,pouting_woman:c0e,no_good:d0e,no_good_man:u0e,ng_man:p0e,no_good_woman:_0e,ng_woman:h0e,ok_person:f0e,ok_man:m0e,ok_woman:g0e,tipping_hand_person:b0e,information_desk_person:E0e,tipping_hand_man:y0e,sassy_man:v0e,tipping_hand_woman:S0e,sassy_woman:T0e,raising_hand:x0e,raising_hand_man:C0e,raising_hand_woman:w0e,deaf_person:R0e,deaf_man:A0e,deaf_woman:N0e,bow:O0e,bowing_man:I0e,bowing_woman:M0e,facepalm:D0e,man_facepalming:k0e,woman_facepalming:L0e,shrug:P0e,man_shrugging:U0e,woman_shrugging:F0e,health_worker:B0e,man_health_worker:G0e,woman_health_worker:V0e,student:z0e,man_student:H0e,woman_student:q0e,teacher:Y0e,man_teacher:$0e,woman_teacher:W0e,judge:K0e,man_judge:j0e,woman_judge:Q0e,farmer:X0e,man_farmer:Z0e,woman_farmer:J0e,cook:eTe,man_cook:tTe,woman_cook:nTe,mechanic:iTe,man_mechanic:sTe,woman_mechanic:rTe,factory_worker:oTe,man_factory_worker:aTe,woman_factory_worker:lTe,office_worker:cTe,man_office_worker:dTe,woman_office_worker:uTe,scientist:pTe,man_scientist:_Te,woman_scientist:hTe,technologist:fTe,man_technologist:mTe,woman_technologist:gTe,singer:bTe,man_singer:ETe,woman_singer:yTe,artist:vTe,man_artist:STe,woman_artist:TTe,pilot:xTe,man_pilot:CTe,woman_pilot:wTe,astronaut:RTe,man_astronaut:ATe,woman_astronaut:NTe,firefighter:OTe,man_firefighter:ITe,woman_firefighter:MTe,police_officer:DTe,cop:kTe,policeman:LTe,policewoman:PTe,detective:UTe,male_detective:FTe,female_detective:BTe,guard:GTe,guardsman:VTe,guardswoman:zTe,ninja:HTe,construction_worker:qTe,construction_worker_man:YTe,construction_worker_woman:$Te,prince:WTe,princess:KTe,person_with_turban:jTe,man_with_turban:QTe,woman_with_turban:XTe,man_with_gua_pi_mao:ZTe,woman_with_headscarf:JTe,person_in_tuxedo:exe,man_in_tuxedo:txe,woman_in_tuxedo:nxe,person_with_veil:ixe,man_with_veil:sxe,woman_with_veil:rxe,bride_with_veil:oxe,pregnant_woman:axe,breast_feeding:lxe,woman_feeding_baby:cxe,man_feeding_baby:dxe,person_feeding_baby:uxe,angel:pxe,santa:_xe,mrs_claus:hxe,mx_claus:fxe,superhero:mxe,superhero_man:gxe,superhero_woman:bxe,supervillain:Exe,supervillain_man:yxe,supervillain_woman:vxe,mage:Sxe,mage_man:Txe,mage_woman:xxe,fairy:Cxe,fairy_man:wxe,fairy_woman:Rxe,vampire:Axe,vampire_man:Nxe,vampire_woman:Oxe,merperson:Ixe,merman:Mxe,mermaid:Dxe,elf:kxe,elf_man:Lxe,elf_woman:Pxe,genie:Uxe,genie_man:Fxe,genie_woman:Bxe,zombie:Gxe,zombie_man:Vxe,zombie_woman:zxe,massage:Hxe,massage_man:qxe,massage_woman:Yxe,haircut:$xe,haircut_man:Wxe,haircut_woman:Kxe,walking:jxe,walking_man:Qxe,walking_woman:Xxe,standing_person:Zxe,standing_man:Jxe,standing_woman:eCe,kneeling_person:tCe,kneeling_man:nCe,kneeling_woman:iCe,person_with_probing_cane:sCe,man_with_probing_cane:rCe,woman_with_probing_cane:oCe,person_in_motorized_wheelchair:aCe,man_in_motorized_wheelchair:lCe,woman_in_motorized_wheelchair:cCe,person_in_manual_wheelchair:dCe,man_in_manual_wheelchair:uCe,woman_in_manual_wheelchair:pCe,runner:_Ce,running:hCe,running_man:fCe,running_woman:mCe,woman_dancing:gCe,dancer:bCe,man_dancing:ECe,business_suit_levitating:yCe,dancers:vCe,dancing_men:SCe,dancing_women:TCe,sauna_person:xCe,sauna_man:CCe,sauna_woman:wCe,climbing:RCe,climbing_man:ACe,climbing_woman:NCe,person_fencing:OCe,horse_racing:ICe,skier:MCe,snowboarder:DCe,golfing:kCe,golfing_man:LCe,golfing_woman:PCe,surfer:UCe,surfing_man:FCe,surfing_woman:BCe,rowboat:GCe,rowing_man:VCe,rowing_woman:zCe,swimmer:HCe,swimming_man:qCe,swimming_woman:YCe,bouncing_ball_person:$Ce,bouncing_ball_man:WCe,basketball_man:KCe,bouncing_ball_woman:jCe,basketball_woman:QCe,weight_lifting:XCe,weight_lifting_man:ZCe,weight_lifting_woman:JCe,bicyclist:e1e,biking_man:t1e,biking_woman:n1e,mountain_bicyclist:i1e,mountain_biking_man:s1e,mountain_biking_woman:r1e,cartwheeling:o1e,man_cartwheeling:a1e,woman_cartwheeling:l1e,wrestling:c1e,men_wrestling:d1e,women_wrestling:u1e,water_polo:p1e,man_playing_water_polo:_1e,woman_playing_water_polo:h1e,handball_person:f1e,man_playing_handball:m1e,woman_playing_handball:g1e,juggling_person:b1e,man_juggling:E1e,woman_juggling:y1e,lotus_position:v1e,lotus_position_man:S1e,lotus_position_woman:T1e,bath:x1e,sleeping_bed:C1e,people_holding_hands:w1e,two_women_holding_hands:R1e,couple:A1e,two_men_holding_hands:N1e,couplekiss:O1e,couplekiss_man_woman:I1e,couplekiss_man_man:M1e,couplekiss_woman_woman:D1e,couple_with_heart:k1e,couple_with_heart_woman_man:L1e,couple_with_heart_man_man:P1e,couple_with_heart_woman_woman:U1e,family:F1e,family_man_woman_boy:B1e,family_man_woman_girl:G1e,family_man_woman_girl_boy:V1e,family_man_woman_boy_boy:z1e,family_man_woman_girl_girl:H1e,family_man_man_boy:q1e,family_man_man_girl:Y1e,family_man_man_girl_boy:$1e,family_man_man_boy_boy:W1e,family_man_man_girl_girl:K1e,family_woman_woman_boy:j1e,family_woman_woman_girl:Q1e,family_woman_woman_girl_boy:X1e,family_woman_woman_boy_boy:Z1e,family_woman_woman_girl_girl:J1e,family_man_boy:ewe,family_man_boy_boy:twe,family_man_girl:nwe,family_man_girl_boy:iwe,family_man_girl_girl:swe,family_woman_boy:rwe,family_woman_boy_boy:owe,family_woman_girl:awe,family_woman_girl_boy:lwe,family_woman_girl_girl:cwe,speaking_head:dwe,bust_in_silhouette:uwe,busts_in_silhouette:pwe,people_hugging:_we,footprints:hwe,monkey_face:fwe,monkey:mwe,gorilla:gwe,orangutan:bwe,dog:Ewe,dog2:ywe,guide_dog:vwe,service_dog:Swe,poodle:Twe,wolf:xwe,fox_face:Cwe,raccoon:wwe,cat:Rwe,cat2:Awe,black_cat:Nwe,lion:Owe,tiger:Iwe,tiger2:Mwe,leopard:Dwe,horse:kwe,racehorse:Lwe,unicorn:Pwe,zebra:Uwe,deer:Fwe,bison:Bwe,cow:Gwe,ox:Vwe,water_buffalo:zwe,cow2:Hwe,pig:qwe,pig2:Ywe,boar:$we,pig_nose:Wwe,ram:Kwe,sheep:jwe,goat:Qwe,dromedary_camel:Xwe,camel:Zwe,llama:Jwe,giraffe:eRe,elephant:tRe,mammoth:nRe,rhinoceros:iRe,hippopotamus:sRe,mouse:rRe,mouse2:oRe,rat:aRe,hamster:lRe,rabbit:cRe,rabbit2:dRe,chipmunk:uRe,beaver:pRe,hedgehog:_Re,bat:hRe,bear:fRe,polar_bear:mRe,koala:gRe,panda_face:bRe,sloth:ERe,otter:yRe,skunk:vRe,kangaroo:SRe,badger:TRe,feet:xRe,paw_prints:CRe,turkey:wRe,chicken:RRe,rooster:ARe,hatching_chick:NRe,baby_chick:ORe,hatched_chick:IRe,bird:MRe,penguin:DRe,dove:kRe,eagle:LRe,duck:PRe,swan:URe,owl:FRe,dodo:BRe,feather:GRe,flamingo:VRe,peacock:zRe,parrot:HRe,frog:qRe,crocodile:YRe,turtle:$Re,lizard:WRe,snake:KRe,dragon_face:jRe,dragon:QRe,sauropod:XRe,"t-rex":"🦖",whale:ZRe,whale2:JRe,dolphin:eAe,flipper:tAe,seal:nAe,fish:iAe,tropical_fish:sAe,blowfish:rAe,shark:oAe,octopus:aAe,shell:lAe,snail:cAe,butterfly:dAe,bug:uAe,ant:pAe,bee:_Ae,honeybee:hAe,beetle:fAe,lady_beetle:mAe,cricket:gAe,cockroach:bAe,spider:EAe,spider_web:yAe,scorpion:vAe,mosquito:SAe,fly:TAe,worm:xAe,microbe:CAe,bouquet:wAe,cherry_blossom:RAe,white_flower:AAe,rosette:NAe,rose:OAe,wilted_flower:IAe,hibiscus:MAe,sunflower:DAe,blossom:kAe,tulip:LAe,seedling:PAe,potted_plant:UAe,evergreen_tree:FAe,deciduous_tree:BAe,palm_tree:GAe,cactus:VAe,ear_of_rice:zAe,herb:HAe,shamrock:qAe,four_leaf_clover:YAe,maple_leaf:$Ae,fallen_leaf:WAe,leaves:KAe,grapes:jAe,melon:QAe,watermelon:XAe,tangerine:ZAe,orange:JAe,mandarin:eNe,lemon:tNe,banana:nNe,pineapple:iNe,mango:sNe,apple:rNe,green_apple:oNe,pear:aNe,peach:lNe,cherries:cNe,strawberry:dNe,blueberries:uNe,kiwi_fruit:pNe,tomato:_Ne,olive:hNe,coconut:fNe,avocado:mNe,eggplant:gNe,potato:bNe,carrot:ENe,corn:yNe,hot_pepper:vNe,bell_pepper:SNe,cucumber:TNe,leafy_green:xNe,broccoli:CNe,garlic:wNe,onion:RNe,mushroom:ANe,peanuts:NNe,chestnut:ONe,bread:INe,croissant:MNe,baguette_bread:DNe,flatbread:kNe,pretzel:LNe,bagel:PNe,pancakes:UNe,waffle:FNe,cheese:BNe,meat_on_bone:GNe,poultry_leg:VNe,cut_of_meat:zNe,bacon:HNe,hamburger:qNe,fries:YNe,pizza:$Ne,hotdog:WNe,sandwich:KNe,taco:jNe,burrito:QNe,tamale:XNe,stuffed_flatbread:ZNe,falafel:JNe,egg:eOe,fried_egg:tOe,shallow_pan_of_food:nOe,stew:iOe,fondue:sOe,bowl_with_spoon:rOe,green_salad:oOe,popcorn:aOe,butter:lOe,salt:cOe,canned_food:dOe,bento:uOe,rice_cracker:pOe,rice_ball:_Oe,rice:hOe,curry:fOe,ramen:mOe,spaghetti:gOe,sweet_potato:bOe,oden:EOe,sushi:yOe,fried_shrimp:vOe,fish_cake:SOe,moon_cake:TOe,dango:xOe,dumpling:COe,fortune_cookie:wOe,takeout_box:ROe,crab:AOe,lobster:NOe,shrimp:OOe,squid:IOe,oyster:MOe,icecream:DOe,shaved_ice:kOe,ice_cream:LOe,doughnut:POe,cookie:UOe,birthday:FOe,cake:BOe,cupcake:GOe,pie:VOe,chocolate_bar:zOe,candy:HOe,lollipop:qOe,custard:YOe,honey_pot:$Oe,baby_bottle:WOe,milk_glass:KOe,coffee:jOe,teapot:QOe,tea:XOe,sake:ZOe,champagne:JOe,wine_glass:eIe,cocktail:tIe,tropical_drink:nIe,beer:iIe,beers:sIe,clinking_glasses:rIe,tumbler_glass:oIe,cup_with_straw:aIe,bubble_tea:lIe,beverage_box:cIe,mate:dIe,ice_cube:uIe,chopsticks:pIe,plate_with_cutlery:_Ie,fork_and_knife:hIe,spoon:fIe,hocho:mIe,knife:gIe,amphora:bIe,earth_africa:EIe,earth_americas:yIe,earth_asia:vIe,globe_with_meridians:SIe,world_map:TIe,japan:xIe,compass:CIe,mountain_snow:wIe,mountain:RIe,volcano:AIe,mount_fuji:NIe,camping:OIe,beach_umbrella:IIe,desert:MIe,desert_island:DIe,national_park:kIe,stadium:LIe,classical_building:PIe,building_construction:UIe,bricks:FIe,rock:BIe,wood:GIe,hut:VIe,houses:zIe,derelict_house:HIe,house:qIe,house_with_garden:YIe,office:$Ie,post_office:WIe,european_post_office:KIe,hospital:jIe,bank:QIe,hotel:XIe,love_hotel:ZIe,convenience_store:JIe,school:eMe,department_store:tMe,factory:nMe,japanese_castle:iMe,european_castle:sMe,wedding:rMe,tokyo_tower:oMe,statue_of_liberty:aMe,church:lMe,mosque:cMe,hindu_temple:dMe,synagogue:uMe,shinto_shrine:pMe,kaaba:_Me,fountain:hMe,tent:fMe,foggy:mMe,night_with_stars:gMe,cityscape:bMe,sunrise_over_mountains:EMe,sunrise:yMe,city_sunset:vMe,city_sunrise:SMe,bridge_at_night:TMe,hotsprings:xMe,carousel_horse:CMe,ferris_wheel:wMe,roller_coaster:RMe,barber:AMe,circus_tent:NMe,steam_locomotive:OMe,railway_car:IMe,bullettrain_side:MMe,bullettrain_front:DMe,train2:kMe,metro:LMe,light_rail:PMe,station:UMe,tram:FMe,monorail:BMe,mountain_railway:GMe,train:VMe,bus:zMe,oncoming_bus:HMe,trolleybus:qMe,minibus:YMe,ambulance:$Me,fire_engine:WMe,police_car:KMe,oncoming_police_car:jMe,taxi:QMe,oncoming_taxi:XMe,car:ZMe,red_car:JMe,oncoming_automobile:e2e,blue_car:t2e,pickup_truck:n2e,truck:i2e,articulated_lorry:s2e,tractor:r2e,racing_car:o2e,motorcycle:a2e,motor_scooter:l2e,manual_wheelchair:c2e,motorized_wheelchair:d2e,auto_rickshaw:u2e,bike:p2e,kick_scooter:_2e,skateboard:h2e,roller_skate:f2e,busstop:m2e,motorway:g2e,railway_track:b2e,oil_drum:E2e,fuelpump:y2e,rotating_light:v2e,traffic_light:S2e,vertical_traffic_light:T2e,stop_sign:x2e,construction:C2e,anchor:w2e,boat:R2e,sailboat:A2e,canoe:N2e,speedboat:O2e,passenger_ship:I2e,ferry:M2e,motor_boat:D2e,ship:k2e,airplane:L2e,small_airplane:P2e,flight_departure:U2e,flight_arrival:F2e,parachute:B2e,seat:G2e,helicopter:V2e,suspension_railway:z2e,mountain_cableway:H2e,aerial_tramway:q2e,artificial_satellite:Y2e,rocket:$2e,flying_saucer:W2e,bellhop_bell:K2e,luggage:j2e,hourglass:Q2e,hourglass_flowing_sand:X2e,watch:Z2e,alarm_clock:J2e,stopwatch:eDe,timer_clock:tDe,mantelpiece_clock:nDe,clock12:iDe,clock1230:sDe,clock1:rDe,clock130:oDe,clock2:aDe,clock230:lDe,clock3:cDe,clock330:dDe,clock4:uDe,clock430:pDe,clock5:_De,clock530:hDe,clock6:fDe,clock630:mDe,clock7:gDe,clock730:bDe,clock8:EDe,clock830:yDe,clock9:vDe,clock930:SDe,clock10:TDe,clock1030:xDe,clock11:CDe,clock1130:wDe,new_moon:RDe,waxing_crescent_moon:ADe,first_quarter_moon:NDe,moon:ODe,waxing_gibbous_moon:IDe,full_moon:MDe,waning_gibbous_moon:DDe,last_quarter_moon:kDe,waning_crescent_moon:LDe,crescent_moon:PDe,new_moon_with_face:UDe,first_quarter_moon_with_face:FDe,last_quarter_moon_with_face:BDe,thermometer:GDe,sunny:VDe,full_moon_with_face:zDe,sun_with_face:HDe,ringed_planet:qDe,star:YDe,star2:$De,stars:WDe,milky_way:KDe,cloud:jDe,partly_sunny:QDe,cloud_with_lightning_and_rain:XDe,sun_behind_small_cloud:ZDe,sun_behind_large_cloud:JDe,sun_behind_rain_cloud:eke,cloud_with_rain:tke,cloud_with_snow:nke,cloud_with_lightning:ike,tornado:ske,fog:rke,wind_face:oke,cyclone:ake,rainbow:lke,closed_umbrella:cke,open_umbrella:dke,umbrella:uke,parasol_on_ground:pke,zap:_ke,snowflake:hke,snowman_with_snow:fke,snowman:mke,comet:gke,fire:bke,droplet:Eke,ocean:yke,jack_o_lantern:vke,christmas_tree:Ske,fireworks:Tke,sparkler:xke,firecracker:Cke,sparkles:wke,balloon:Rke,tada:Ake,confetti_ball:Nke,tanabata_tree:Oke,bamboo:Ike,dolls:Mke,flags:Dke,wind_chime:kke,rice_scene:Lke,red_envelope:Pke,ribbon:Uke,gift:Fke,reminder_ribbon:Bke,tickets:Gke,ticket:Vke,medal_military:zke,trophy:Hke,medal_sports:qke,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:Yke,baseball:$ke,softball:Wke,basketball:Kke,volleyball:jke,football:Qke,rugby_football:Xke,tennis:Zke,flying_disc:Jke,bowling:eLe,cricket_game:tLe,field_hockey:nLe,ice_hockey:iLe,lacrosse:sLe,ping_pong:rLe,badminton:oLe,boxing_glove:aLe,martial_arts_uniform:lLe,goal_net:cLe,golf:dLe,ice_skate:uLe,fishing_pole_and_fish:pLe,diving_mask:_Le,running_shirt_with_sash:hLe,ski:fLe,sled:mLe,curling_stone:gLe,dart:bLe,yo_yo:ELe,kite:yLe,"8ball":"🎱",crystal_ball:vLe,magic_wand:SLe,nazar_amulet:TLe,video_game:xLe,joystick:CLe,slot_machine:wLe,game_die:RLe,jigsaw:ALe,teddy_bear:NLe,pinata:OLe,nesting_dolls:ILe,spades:MLe,hearts:DLe,diamonds:kLe,clubs:LLe,chess_pawn:PLe,black_joker:ULe,mahjong:FLe,flower_playing_cards:BLe,performing_arts:GLe,framed_picture:VLe,art:zLe,thread:HLe,sewing_needle:qLe,yarn:YLe,knot:$Le,eyeglasses:WLe,dark_sunglasses:KLe,goggles:jLe,lab_coat:QLe,safety_vest:XLe,necktie:ZLe,shirt:JLe,tshirt:ePe,jeans:tPe,scarf:nPe,gloves:iPe,coat:sPe,socks:rPe,dress:oPe,kimono:aPe,sari:lPe,one_piece_swimsuit:cPe,swim_brief:dPe,shorts:uPe,bikini:pPe,womans_clothes:_Pe,purse:hPe,handbag:fPe,pouch:mPe,shopping:gPe,school_satchel:bPe,thong_sandal:EPe,mans_shoe:yPe,shoe:vPe,athletic_shoe:SPe,hiking_boot:TPe,flat_shoe:xPe,high_heel:CPe,sandal:wPe,ballet_shoes:RPe,boot:APe,crown:NPe,womans_hat:OPe,tophat:IPe,mortar_board:MPe,billed_cap:DPe,military_helmet:kPe,rescue_worker_helmet:LPe,prayer_beads:PPe,lipstick:UPe,ring:FPe,gem:BPe,mute:GPe,speaker:VPe,sound:zPe,loud_sound:HPe,loudspeaker:qPe,mega:YPe,postal_horn:$Pe,bell:WPe,no_bell:KPe,musical_score:jPe,musical_note:QPe,notes:XPe,studio_microphone:ZPe,level_slider:JPe,control_knobs:eUe,microphone:tUe,headphones:nUe,radio:iUe,saxophone:sUe,accordion:rUe,guitar:oUe,musical_keyboard:aUe,trumpet:lUe,violin:cUe,banjo:dUe,drum:uUe,long_drum:pUe,iphone:_Ue,calling:hUe,phone:fUe,telephone:mUe,telephone_receiver:gUe,pager:bUe,fax:EUe,battery:yUe,electric_plug:vUe,computer:SUe,desktop_computer:TUe,printer:xUe,keyboard:CUe,computer_mouse:wUe,trackball:RUe,minidisc:AUe,floppy_disk:NUe,cd:OUe,dvd:IUe,abacus:MUe,movie_camera:DUe,film_strip:kUe,film_projector:LUe,clapper:PUe,tv:UUe,camera:FUe,camera_flash:BUe,video_camera:GUe,vhs:VUe,mag:zUe,mag_right:HUe,candle:qUe,bulb:YUe,flashlight:$Ue,izakaya_lantern:WUe,lantern:KUe,diya_lamp:jUe,notebook_with_decorative_cover:QUe,closed_book:XUe,book:ZUe,open_book:JUe,green_book:eFe,blue_book:tFe,orange_book:nFe,books:iFe,notebook:sFe,ledger:rFe,page_with_curl:oFe,scroll:aFe,page_facing_up:lFe,newspaper:cFe,newspaper_roll:dFe,bookmark_tabs:uFe,bookmark:pFe,label:_Fe,moneybag:hFe,coin:fFe,yen:mFe,dollar:gFe,euro:bFe,pound:EFe,money_with_wings:yFe,credit_card:vFe,receipt:SFe,chart:TFe,envelope:xFe,email:CFe,"e-mail":"📧",incoming_envelope:wFe,envelope_with_arrow:RFe,outbox_tray:AFe,inbox_tray:NFe,package:"📦",mailbox:OFe,mailbox_closed:IFe,mailbox_with_mail:MFe,mailbox_with_no_mail:DFe,postbox:kFe,ballot_box:LFe,pencil2:PFe,black_nib:UFe,fountain_pen:FFe,pen:BFe,paintbrush:GFe,crayon:VFe,memo:zFe,pencil:HFe,briefcase:qFe,file_folder:YFe,open_file_folder:$Fe,card_index_dividers:WFe,date:KFe,calendar:jFe,spiral_notepad:QFe,spiral_calendar:XFe,card_index:ZFe,chart_with_upwards_trend:JFe,chart_with_downwards_trend:e3e,bar_chart:t3e,clipboard:n3e,pushpin:i3e,round_pushpin:s3e,paperclip:r3e,paperclips:o3e,straight_ruler:a3e,triangular_ruler:l3e,scissors:c3e,card_file_box:d3e,file_cabinet:u3e,wastebasket:p3e,lock:_3e,unlock:h3e,lock_with_ink_pen:f3e,closed_lock_with_key:m3e,key:g3e,old_key:b3e,hammer:E3e,axe:y3e,pick:v3e,hammer_and_pick:S3e,hammer_and_wrench:T3e,dagger:x3e,crossed_swords:C3e,gun:w3e,boomerang:R3e,bow_and_arrow:A3e,shield:N3e,carpentry_saw:O3e,wrench:I3e,screwdriver:M3e,nut_and_bolt:D3e,gear:k3e,clamp:L3e,balance_scale:P3e,probing_cane:U3e,link:F3e,chains:B3e,hook:G3e,toolbox:V3e,magnet:z3e,ladder:H3e,alembic:q3e,test_tube:Y3e,petri_dish:$3e,dna:W3e,microscope:K3e,telescope:j3e,satellite:Q3e,syringe:X3e,drop_of_blood:Z3e,pill:J3e,adhesive_bandage:eBe,stethoscope:tBe,door:nBe,elevator:iBe,mirror:sBe,window:rBe,bed:oBe,couch_and_lamp:aBe,chair:lBe,toilet:cBe,plunger:dBe,shower:uBe,bathtub:pBe,mouse_trap:_Be,razor:hBe,lotion_bottle:fBe,safety_pin:mBe,broom:gBe,basket:bBe,roll_of_paper:EBe,bucket:yBe,soap:vBe,toothbrush:SBe,sponge:TBe,fire_extinguisher:xBe,shopping_cart:CBe,smoking:wBe,coffin:RBe,headstone:ABe,funeral_urn:NBe,moyai:OBe,placard:IBe,atm:MBe,put_litter_in_its_place:DBe,potable_water:kBe,wheelchair:LBe,mens:PBe,womens:UBe,restroom:FBe,baby_symbol:BBe,wc:GBe,passport_control:VBe,customs:zBe,baggage_claim:HBe,left_luggage:qBe,warning:YBe,children_crossing:$Be,no_entry:WBe,no_entry_sign:KBe,no_bicycles:jBe,no_smoking:QBe,do_not_litter:XBe,"non-potable_water":"🚱",no_pedestrians:ZBe,no_mobile_phones:JBe,underage:e4e,radioactive:t4e,biohazard:n4e,arrow_up:i4e,arrow_upper_right:s4e,arrow_right:r4e,arrow_lower_right:o4e,arrow_down:a4e,arrow_lower_left:l4e,arrow_left:c4e,arrow_upper_left:d4e,arrow_up_down:u4e,left_right_arrow:p4e,leftwards_arrow_with_hook:_4e,arrow_right_hook:h4e,arrow_heading_up:f4e,arrow_heading_down:m4e,arrows_clockwise:g4e,arrows_counterclockwise:b4e,back:E4e,end:y4e,on:v4e,soon:S4e,top:T4e,place_of_worship:x4e,atom_symbol:C4e,om:w4e,star_of_david:R4e,wheel_of_dharma:A4e,yin_yang:N4e,latin_cross:O4e,orthodox_cross:I4e,star_and_crescent:M4e,peace_symbol:D4e,menorah:k4e,six_pointed_star:L4e,aries:P4e,taurus:U4e,gemini:F4e,cancer:B4e,leo:G4e,virgo:V4e,libra:z4e,scorpius:H4e,sagittarius:q4e,capricorn:Y4e,aquarius:$4e,pisces:W4e,ophiuchus:K4e,twisted_rightwards_arrows:j4e,repeat:Q4e,repeat_one:X4e,arrow_forward:Z4e,fast_forward:J4e,next_track_button:e5e,play_or_pause_button:t5e,arrow_backward:n5e,rewind:i5e,previous_track_button:s5e,arrow_up_small:r5e,arrow_double_up:o5e,arrow_down_small:a5e,arrow_double_down:l5e,pause_button:c5e,stop_button:d5e,record_button:u5e,eject_button:p5e,cinema:_5e,low_brightness:h5e,high_brightness:f5e,signal_strength:m5e,vibration_mode:g5e,mobile_phone_off:b5e,female_sign:E5e,male_sign:y5e,transgender_symbol:v5e,heavy_multiplication_x:S5e,heavy_plus_sign:T5e,heavy_minus_sign:x5e,heavy_division_sign:C5e,infinity:w5e,bangbang:R5e,interrobang:A5e,question:N5e,grey_question:O5e,grey_exclamation:I5e,exclamation:M5e,heavy_exclamation_mark:D5e,wavy_dash:k5e,currency_exchange:L5e,heavy_dollar_sign:P5e,medical_symbol:U5e,recycle:F5e,fleur_de_lis:B5e,trident:G5e,name_badge:V5e,beginner:z5e,o:H5e,white_check_mark:q5e,ballot_box_with_check:Y5e,heavy_check_mark:$5e,x:W5e,negative_squared_cross_mark:K5e,curly_loop:j5e,loop:Q5e,part_alternation_mark:X5e,eight_spoked_asterisk:Z5e,eight_pointed_black_star:J5e,sparkle:eGe,copyright:tGe,registered:nGe,tm:iGe,hash:sGe,asterisk:rGe,zero:oGe,one:aGe,two:lGe,three:cGe,four:dGe,five:uGe,six:pGe,seven:_Ge,eight:hGe,nine:fGe,keycap_ten:mGe,capital_abcd:gGe,abcd:bGe,symbols:EGe,abc:yGe,a:vGe,ab:SGe,b:TGe,cl:xGe,cool:CGe,free:wGe,information_source:RGe,id:AGe,m:NGe,new:"🆕",ng:OGe,o2:IGe,ok:MGe,parking:DGe,sos:kGe,up:LGe,vs:PGe,koko:UGe,sa:FGe,ideograph_advantage:BGe,accept:GGe,congratulations:VGe,secret:zGe,u6e80:HGe,red_circle:qGe,orange_circle:YGe,yellow_circle:$Ge,green_circle:WGe,large_blue_circle:KGe,purple_circle:jGe,brown_circle:QGe,black_circle:XGe,white_circle:ZGe,red_square:JGe,orange_square:e6e,yellow_square:t6e,green_square:n6e,blue_square:i6e,purple_square:s6e,brown_square:r6e,black_large_square:o6e,white_large_square:a6e,black_medium_square:l6e,white_medium_square:c6e,black_medium_small_square:d6e,white_medium_small_square:u6e,black_small_square:p6e,white_small_square:_6e,large_orange_diamond:h6e,large_blue_diamond:f6e,small_orange_diamond:m6e,small_blue_diamond:g6e,small_red_triangle:b6e,small_red_triangle_down:E6e,diamond_shape_with_a_dot_inside:y6e,radio_button:v6e,white_square_button:S6e,black_square_button:T6e,checkered_flag:x6e,triangular_flag_on_post:C6e,crossed_flags:w6e,black_flag:R6e,white_flag:A6e,rainbow_flag:N6e,transgender_flag:O6e,pirate_flag:I6e,ascension_island:M6e,andorra:D6e,united_arab_emirates:k6e,afghanistan:L6e,antigua_barbuda:P6e,anguilla:U6e,albania:F6e,armenia:B6e,angola:G6e,antarctica:V6e,argentina:z6e,american_samoa:H6e,austria:q6e,australia:Y6e,aruba:$6e,aland_islands:W6e,azerbaijan:K6e,bosnia_herzegovina:j6e,barbados:Q6e,bangladesh:X6e,belgium:Z6e,burkina_faso:J6e,bulgaria:e9e,bahrain:t9e,burundi:n9e,benin:i9e,st_barthelemy:s9e,bermuda:r9e,brunei:o9e,bolivia:a9e,caribbean_netherlands:l9e,brazil:c9e,bahamas:d9e,bhutan:u9e,bouvet_island:p9e,botswana:_9e,belarus:h9e,belize:f9e,canada:m9e,cocos_islands:g9e,congo_kinshasa:b9e,central_african_republic:E9e,congo_brazzaville:y9e,switzerland:v9e,cote_divoire:S9e,cook_islands:T9e,chile:x9e,cameroon:C9e,cn:w9e,colombia:R9e,clipperton_island:A9e,costa_rica:N9e,cuba:O9e,cape_verde:I9e,curacao:M9e,christmas_island:D9e,cyprus:k9e,czech_republic:L9e,de:P9e,diego_garcia:U9e,djibouti:F9e,denmark:B9e,dominica:G9e,dominican_republic:V9e,algeria:z9e,ceuta_melilla:H9e,ecuador:q9e,estonia:Y9e,egypt:$9e,western_sahara:W9e,eritrea:K9e,es:j9e,ethiopia:Q9e,eu:X9e,european_union:Z9e,finland:J9e,fiji:e8e,falkland_islands:t8e,micronesia:n8e,faroe_islands:i8e,fr:s8e,gabon:r8e,gb:o8e,uk:a8e,grenada:l8e,georgia:c8e,french_guiana:d8e,guernsey:u8e,ghana:p8e,gibraltar:_8e,greenland:h8e,gambia:f8e,guinea:m8e,guadeloupe:g8e,equatorial_guinea:b8e,greece:E8e,south_georgia_south_sandwich_islands:y8e,guatemala:v8e,guam:S8e,guinea_bissau:T8e,guyana:x8e,hong_kong:C8e,heard_mcdonald_islands:w8e,honduras:R8e,croatia:A8e,haiti:N8e,hungary:O8e,canary_islands:I8e,indonesia:M8e,ireland:D8e,israel:k8e,isle_of_man:L8e,india:P8e,british_indian_ocean_territory:U8e,iraq:F8e,iran:B8e,iceland:G8e,it:V8e,jersey:z8e,jamaica:H8e,jordan:q8e,jp:Y8e,kenya:$8e,kyrgyzstan:W8e,cambodia:K8e,kiribati:j8e,comoros:Q8e,st_kitts_nevis:X8e,north_korea:Z8e,kr:J8e,kuwait:eVe,cayman_islands:tVe,kazakhstan:nVe,laos:iVe,lebanon:sVe,st_lucia:rVe,liechtenstein:oVe,sri_lanka:aVe,liberia:lVe,lesotho:cVe,lithuania:dVe,luxembourg:uVe,latvia:pVe,libya:_Ve,morocco:hVe,monaco:fVe,moldova:mVe,montenegro:gVe,st_martin:bVe,madagascar:EVe,marshall_islands:yVe,macedonia:vVe,mali:SVe,myanmar:TVe,mongolia:xVe,macau:CVe,northern_mariana_islands:wVe,martinique:RVe,mauritania:AVe,montserrat:NVe,malta:OVe,mauritius:IVe,maldives:MVe,malawi:DVe,mexico:kVe,malaysia:LVe,mozambique:PVe,namibia:UVe,new_caledonia:FVe,niger:BVe,norfolk_island:GVe,nigeria:VVe,nicaragua:zVe,netherlands:HVe,norway:qVe,nepal:YVe,nauru:$Ve,niue:WVe,new_zealand:KVe,oman:jVe,panama:QVe,peru:XVe,french_polynesia:ZVe,papua_new_guinea:JVe,philippines:eze,pakistan:tze,poland:nze,st_pierre_miquelon:ize,pitcairn_islands:sze,puerto_rico:rze,palestinian_territories:oze,portugal:aze,palau:lze,paraguay:cze,qatar:dze,reunion:uze,romania:pze,serbia:_ze,ru:hze,rwanda:fze,saudi_arabia:mze,solomon_islands:gze,seychelles:bze,sudan:Eze,sweden:yze,singapore:vze,st_helena:Sze,slovenia:Tze,svalbard_jan_mayen:xze,slovakia:Cze,sierra_leone:wze,san_marino:Rze,senegal:Aze,somalia:Nze,suriname:Oze,south_sudan:Ize,sao_tome_principe:Mze,el_salvador:Dze,sint_maarten:kze,syria:Lze,swaziland:Pze,tristan_da_cunha:Uze,turks_caicos_islands:Fze,chad:Bze,french_southern_territories:Gze,togo:Vze,thailand:zze,tajikistan:Hze,tokelau:qze,timor_leste:Yze,turkmenistan:$ze,tunisia:Wze,tonga:Kze,tr:jze,trinidad_tobago:Qze,tuvalu:Xze,taiwan:Zze,tanzania:Jze,ukraine:eHe,uganda:tHe,us_outlying_islands:nHe,united_nations:iHe,us:sHe,uruguay:rHe,uzbekistan:oHe,vatican_city:aHe,st_vincent_grenadines:lHe,venezuela:cHe,british_virgin_islands:dHe,us_virgin_islands:uHe,vietnam:pHe,vanuatu:_He,wallis_futuna:hHe,samoa:fHe,kosovo:mHe,yemen:gHe,mayotte:bHe,south_africa:EHe,zambia:yHe,zimbabwe:vHe,england:SHe,scotland:THe,wales:xHe};var wHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(y[g-1])||g+b.lengthm&&(_=new f("text","",0),_.content=d.slice(m,g),E.push(_)),_=new f("emoji","",0),_.markup=v,_.content=t[v],E.push(_),m=g+b.length}),m=0;f--)b=E[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&s.test(b.content)&&(g[_].children=E=o(E,f,u(b.content,b.level,h.Token)))}};function NHe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var OHe=function(e){var t=e.defs,i;e.enabled.length&&(t=Object.keys(t).reduce(function(l,u){return e.enabled.indexOf(u)>=0&&(l[u]=t[u]),l},{})),i=Object.keys(e.shortcuts).reduce(function(l,u){return t[u]?Array.isArray(e.shortcuts[u])?(e.shortcuts[u].forEach(function(d){l[d]=u}),l):(l[e.shortcuts[u]]=u,l):l},{});var s=Object.keys(t),r;s.length===0?r="^$":r=s.map(function(l){return":"+l+":"}).concat(Object.keys(i)).sort().reverse().map(function(l){return NHe(l)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:t,shortcuts:i,scanRE:o,replaceRE:a}},IHe=RHe,MHe=AHe,DHe=OHe,kHe=function(e,t){var i={defs:{},shortcuts:{},enabled:[]},s=DHe(e.utils.assign({},i,t||{}));e.renderer.rules.emoji=IHe,e.core.ruler.after("linkify","emoji",MHe(e,s.defs,s.shortcuts,s.scanRE,s.replaceRE))},LHe=CHe,PHe=wHe,UHe=kHe,FHe=function(e,t){var i={defs:LHe,shortcuts:PHe,enabled:[]},s=e.utils.assign({},i,t||{});UHe(e,s)};const BHe=Ar(FHe);var ES=!1,ga={false:"push",true:"unshift",after:"push",before:"unshift"},tu={isPermalinkSymbol:!0};function Hg(n,e,t,i){var s;if(!ES){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),ES=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:tu}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[i+1].children[ga[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(s=t.tokens[i+1].children)[ga[e.permalinkBefore]].apply(s,o)}function hN(n){return"#"+n}function fN(n){return{}}var GHe={class:"header-anchor",symbol:"#",renderHref:hN,renderAttrs:fN};function gc(n){function e(t){return t=Object.assign({},e.defaults,t),function(i,s,r,o){return n(i,t,s,r,o)}}return e.defaults=Object.assign({},GHe),e.renderPermalinkImpl=n,e}var tp=gc(function(n,e,t,i,s){var r,o=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,i)))}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}),new i.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";i.tokens[s+1].children[ga[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=i.tokens[s+1].children)[ga[e.placement]].apply(r,o)});Object.assign(tp.defaults,{space:!0,placement:"after",ariaHidden:!1});var Hr=gc(tp.renderPermalinkImpl);Hr.defaults=Object.assign({},tp.defaults,{ariaHidden:!0});var mN=gc(function(n,e,t,i,s){var r=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],Object.entries(e.renderAttrs(n,i)))})].concat(e.safariReaderFix?[new i.Token("span_open","span",1)]:[],i.tokens[s+1].children,e.safariReaderFix?[new i.Token("span_close","span",-1)]:[],[new i.Token("link_close","a",-1)]);i.tokens[s+1]=Object.assign(new i.Token("inline","",0),{children:r})});Object.assign(mN.defaults,{safariReaderFix:!1});var yS=gc(function(n,e,t,i,s){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=i.tokens[s+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,f){return h+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(n,i)]),l.push.apply(l,Object.entries(e.renderAttrs(n,i))),e.style==="visually-hidden"){if(a.push(Object.assign(new i.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new i.Token("text","",0),{content:e.assistiveText(o)}),new i.Token("span_close","span",-1)),e.space){var u=typeof e.space=="string"?e.space:" ";a[ga[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:u}))}a[ga[e.placement]](Object.assign(new i.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}),new i.Token("span_close","span",-1))}else a.push(Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,n]);var d=[Object.assign(new i.Token("link_open","a",1),{attrs:l})].concat(a,[new i.Token("link_close","a",-1)]);(r=i.tokens).splice.apply(r,[s+3,0].concat(d)),e.wrapper&&(i.tokens.splice(s,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[0]+` `})),i.tokens.splice(s+3+d.length+1,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[1]+` `})))});function vS(n,e,t,i){var s=n,r=i;if(t&&Object.prototype.hasOwnProperty.call(e,s))throw new Error("User defined `id` attribute `"+n+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,s);)s=n+"-"+r,r+=1;return e[s]=!0,s}function jo(n,e){e=Object.assign({},jo.defaults,e),n.core.ruler.push("anchor",function(t){for(var i,s={},r=t.tokens,o=Array.isArray(e.level)?(i=e.level,function(h){return i.includes(h)}):function(h){return function(f){return f>=h}}(e.level),a=0;a"u"||n===null)throw new TypeError("Cannot convert first argument to object");for(var e=Object(n),t=1;t"u"||i===null))for(var s=Object.keys(Object(i)),r=0,o=s.length;r=0}});var r={"*":"·","**":"∗","***":"⋆","//":"/","|":"|",":":":","'":"′","''":"″","'''":"‴","''''":"⁗",xx:"×","-:":"÷","|><":"⋉","><|":"⋊","|><|":"⋈","@":"∘","o+":"⊕",ox:"⊗","o.":"⊙","!":"!",sum:"∑",prod:"∏","^^":"∧","^^^":"⋀",vv:"∨",vvv:"⋁",nn:"∩",nnn:"⋂",uu:"∪",uuu:"⋃",int:"∫",oint:"∮",dint:"∬","+-":"±",del:"∂",grad:"∇",aleph:"ℵ","/_":"∠",diamond:"⋄",square:"□","|__":"⌊","__|":"⌋","|~":"⌈","~|":"⌉","=":"=","!=":"≠","<":"<",">":">","<=":"≤",">=":"≥","-<":"≺","-<=":"⪯",">-":"≻",">-=":"⪰",in:"∈","!in":"∉",sub:"⊂",sup:"⊃",sube:"⊆",supe:"⊇","-=":"≡","==":"≡","~=":"≅","~~":"≈",prop:"∝","<-":"←","->":"→","=>":"⇒","<=>":"⇔","|->":"↦",">->":"↣","->>":"↠",">->>":"⤖",uarr:"↑",darr:"↓",larr:"←",rarr:"→",harr:"↔",lArr:"⇐",rArr:"⇒",hArr:"⇔",iff:"⇔",",":",",":.":"∴","...":"…",cdots:"⋯",ddots:"⋱",vdots:"⋮",if:"if",otherwise:"otherwise",and:"and",or:"or",not:"¬",AA:"∀",EE:"∃","_|_":"⊥",TT:"⊤","|--":"⊢","|==":"⊨"};Fn.operators=r,Object.defineProperty(r,"contains",{value:function(h){return typeof r[h]<"u"}}),Object.defineProperty(r,"get",{value:function(h){return r[h]||h}}),Object.defineProperty(r,"regexp",{value:new RegExp("("+Object.keys(r).sort(function(d,h){return h.length-d.length}).map(o).join("|")+"|[+-<=>|~¬±×÷ϐϑϒϕϰϱϴϵ϶؆؇؈‖′″‴⁀⁄⁒⁡-⁤⁺-⁾₊-₎★☆♠♡♢♣♭♮♯﬩。-ィ+<=>\^|~¬←↑→↓∀-⋿⨀-⫿⟀-⟥⦀-⦂⦙-⧿⌁-⏿■-◿⬀-⯿←-⇿⟰-⟿⤀-⥿⃐-⃯])")});function o(d){return d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var a={open:{"(:":"⟨","{:":""},close:{":)":"⟩",":}":""},complex:{abs:{open:"|",close:"|"},floor:{open:"⌊",close:"⌋"},ceil:{open:"⌈",close:"⌉"},norm:{open:"∥",close:"∥"}}};Fn.groupings=a,Object.defineProperty(a.open,"regexp",{value:/([[⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗]|[({]:?)/}),Object.defineProperty(a.close,"regexp",{value:/([\]⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘]|:?[)}])/}),Object.defineProperty(a.open,"get",{value:function(h){var f=a.open[h];return typeof f=="string"?f:h}}),Object.defineProperty(a.close,"get",{value:function(h){var f=a.close[h];return typeof f=="string"?f:h}}),Object.defineProperty(a.complex,"contains",{value:function(h){return Object.keys(a.complex).indexOf(h)>=0}}),Object.defineProperty(a.complex,"get",{value:function(h){return a.complex[h]}}),Object.freeze(a.open),Object.freeze(a.close),Object.freeze(a.complex);var l={rm:"normal",bf:"bold",it:"italic",bb:"double-struck",cc:"script",tt:"monospace",fr:"fraktur",sf:"sans-serif"};Fn.fonts=l,Object.defineProperty(l,"get",{value:function(h){return l[h]}}),Object.defineProperty(l,"regexp",{value:new RegExp("("+Object.keys(l).join("|")+")")});var u={hat:{type:"over",accent:"^"},bar:{type:"over",accent:"‾"},ul:{type:"under",accent:"_"},vec:{type:"over",accent:"→"},dot:{type:"over",accent:"⋅"},ddot:{type:"over",accent:"⋅⋅"},tilde:{type:"over",accent:"˜"},cancel:{type:"enclose",attrs:{notation:"updiagonalstrike"}}};return Fn.accents=u,Object.defineProperty(u,"contains",{value:function(h){return Object.keys(u).indexOf(h)>=0}}),Object.defineProperty(u,"get",{value:function(h){return u[h]}}),Object.defineProperty(u,"regexp",{value:new RegExp("("+Object.keys(u).join("|")+")")}),Fn}var TS;function VHe(){if(TS)return cl;TS=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=void 0;var n=gN();function e(C){var T=new RegExp("^"+n.operators.regexp.source),O=T.exec(C),k=O[0];return[n.operators.get(k),C.slice(k.length)]}function t(C){var T=new RegExp("^"+n.groupings.open.regexp.source);return C.match(T)}function i(C,T){var O=new RegExp("^[0-9A-Za-z+\\-!]{2,}(\\s|".concat(T.colSep,"|").concat(T.rowSep,")"));return C.match(O)}function s(C,T,O){if(!t(C))return!1;var k=a(C)[4];if(!(k.trim().startsWith(T)||k.match(/^\s*\n/)&&t(k.trim())))return!1;for(;k&&k.trim();)if(k=(a(k)||[])[4],k&&(k.startsWith(O)||k.match(/^\s*\n/)))return!1;return!0}var r=new RegExp("("+n.identifiers.funs.concat(Object.keys(n.accents)).concat(["sqrt"]).sort(function(C,T){return C.length-T.length}).join("|")+")$");function o(C){return C.match(r)}function a(C){for(var T=new RegExp("^"+n.groupings.open.regexp.source),O=new RegExp("^"+n.groupings.close.regexp.source),k,x,I,F,B=0,ne=0;ne0;){var B=a(x),ne=B?B[0]:x,L=B?B[4]:"",$=F.exec(ne);if($)return T(O,k+$.index,I);k+=B.slice(0,-1).map(d("length")).reduce(h),B[1]===""?k+=2:B[1]==="〈"&&(k+=1),B[3]===""?k+=2:B[3]==="〉"&&(k+=1),x=L}return null}function d(C){return function(T){return T[C]}}function h(C,T){return C+T}function f(C){var T=new RegExp("^("+n.fonts.regexp.source+" ?)?"+C);return function(O){return T.exec(O)}}var _=f("(`)\\w+`"),m=f('(")');function E(C){return _(C)||m(C)}function b(C){var T=_(C)||m(C),O=T&&T[2],k=T&&T[3],x=k==='"'?"mtext":k==="`"?"mi":"",I=C.indexOf(k),F=I+1+C.slice(I+1).indexOf(k),B=I>0?n.fonts.get(O):"";return{tagname:x,text:C.slice(I+1,F),font:B,rest:C.slice(F+1)}}var g=["lim","",""];function y(C){return g.indexOf(C)>=0}var v={endsInFunc:o,isgroupStart:t,isgroupable:i,isvertGroupStart:l,splitNextGroup:a,splitNextVert:u,splitNextOperator:e,ismatrixInterior:s,isfontCommand:E,splitfont:b,shouldGoUnder:y},S=v;return cl.default=S,cl}var xS;function zHe(){if(xS)return ll;xS=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var n=t(VHe()),e=gN();function t(j){return j&&j.__esModule?j:{default:j}}function i(j,ae){return o(j)||r(j,ae)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function r(j,ae){var ve=[],ee=!0,Ee=!1,xe=void 0;try{for(var Me=j[Symbol.iterator](),Z;!(ee=(Z=Me.next()).done)&&(ve.push(Z.value),!(ae&&ve.length===ae));ee=!0);}catch(ye){Ee=!0,xe=ye}finally{try{!ee&&Me.return!=null&&Me.return()}finally{if(Ee)throw xe}}return ve}function o(j){if(Array.isArray(j))return j}function a(j){return function ae(ve,ee){if(typeof ve=="object")return function(xe){return ae(xe,ve)};if(typeof ee!="object")return"<".concat(j,">").concat(ve,"");var Ee=Object.keys(ee).map(function(xe){return"".concat(xe,'="').concat(ee[xe],'"')}).join(" ");return"<".concat(j," ").concat(Ee,">").concat(ve,"")}}var l=a("mi"),u=a("mn"),d=a("mo"),h=a("mfrac"),f=a("msup"),_=a("msub"),m=a("msubsup"),E=a("munder"),b=a("mover"),g=a("munderover"),y=a("menclose"),v=a("mrow"),S=a("msqrt"),C=a("mroot"),T=a("mfenced"),O=a("mtable"),k=a("mtr"),x=a("mtd");function I(j){var ae=j.decimalMark==="."?"\\.":j.decimalMark,ve=new RegExp("^".concat(e.numbers.digitRange,"+(").concat(ae).concat(e.numbers.digitRange,"+)?")),ee=Me(j.colSep),Ee=Me(j.rowSep),xe=Me(` `);function Me(z){return function(pe){for(var re=[],ce=0,M=0,N=0;N1){var ue='');return z(pe.trim(),re+ue)}return z(pe.trim(),re)}var X=fe(pe,M),ie=i(X,2),Ae=ie[0],Ce=ie[1];if((Ce&&Ce.trimLeft().startsWith("/")||Ce.trimLeft().startsWith("./"))&&!Ce.trimLeft().match(/^\.?\/\//)){var ke=K(Ae,Ce),Qe=i(ke,2);Ae=Qe[0],Ce=Qe[1]}return z(Ce,re+Ae)};function ye(z){if(z.trim().length===0)return"";var pe=Z(z,"",!1,!0);return pe===ne(pe)?pe:v(pe)}function fe(z,pe,re){if(!z)return["",""];var ce,M,N=z[0],W=z.slice(1),ue=N+(W.match(/^[A-Za-z]+/)||"");if(z.startsWith("sqrt")){var X=fe(z.slice(4).trim(),pe);ce=S(X[0]?B(X[0]):v("")),M=X[1]}else if(z.startsWith("root")){var ie=fe(z.slice(4).trimLeft(),pe),Ae=ie[0]?B(ie[0]):v(""),Ce=fe(ie[1].trimLeft(),pe),ke=Ce[0]?B(Ce[0]):v("");ce=C(ke+Ae),M=Ce[1]}else if(N==="\\"&&z.length>1)if(z[1].match(/[(\[]/)){var Qe=L(W);ce=d(z.slice(2,Qe)),M=z.slice(Qe+1)}else ce=d(z[1]),M=z.slice(2);else if(e.accents.contains(ue)){var ct=e.accents.get(ue),Pe=z.slice(ue.length).trimLeft(),ut=Pe.match(/^\s*\(?([ij])\)?/),Ze=fe(Pe);switch(ct.type){case"over":ut?(ce=b(l(ut[1]==="i"?"ı":"ȷ")+d(ct.accent,{accent:!0})),M=Pe.slice(ut[0].length)):(ce=b(B(Ze[0])+d(ct.accent,{accent:!0})),M=Ze[1]);break;case"under":ce=E(B(Ze[0])+d(ct.accent)),M=Ze[1];break;case"enclose":ce=y(B(Ze[0]),ct.attrs),M=Ze[1];break;default:throw new Error("Invalid config for accent "+ue)}}else if(n.default.isfontCommand(z)){var qe=n.default.splitfont(z);ce=a(qe.tagname)(qe.text,qe.font&&{mathvariant:qe.font}),M=qe.rest}else if(e.groupings.complex.contains(ue)){var tt=e.groupings.complex.get(ue),Fe=z.slice(ue.length).trimLeft(),pt=fe(Fe);ce=T(B(pt[0]),tt),M=pt[1]}else if(n.default.isgroupStart(z)||n.default.isvertGroupStart(z)){var oe=n.default.isgroupStart(z)?n.default.splitNextGroup(z):n.default.splitNextVert(z),Ke=i(oe,5),Ue=Ke[1],Oe=Ke[2],Be=Ke[3],dt=Ke[4];M=e.groupings.open.get(dt);var Et=function(){var In=xe(Oe);return In.length>1?In:Ee(Oe)}();if(n.default.ismatrixInterior(Oe.trim(),j.colSep,j.rowSep)){Oe.trim().endsWith(j.colSep)&&(Oe=Oe.trimRight().slice(0,-1));var Qt=Ue==="{"&&Be==="",cn=le(Oe,Qt&&{columnalign:"center left"});ce=T(cn,{open:Ue,close:Be})}else if(Et.length>1)if(Et.length===2&&Ue==="("&&Be===")"){var Ct=h(Et.map(ye).join(""),{linethickness:0});ce=T(Ct,{open:Ue,close:Be})}else{var $t=Et.map(ee);U($t).length===1&&U($t)[0].match(/^\s*$/)&&($t=$t.slice(0,-1));var Sn=$t.map(function(In){return k(In.map(Q(x,ye)).join(""))}).join("");ce=T(O(Sn),{open:Ue,close:Be})}else{var bs=ee(Oe),Mr=bs.map(ye).join(""),ci={open:Ue,close:Be};j.colSep!==","&&(ci.separators=j.colSep),ce=T(Mr,ci)}}else if(!pe&&n.default.isgroupable(z,j)){var Tn=de(z);ce=ye(Tn[0]),M=Tn[1]}else if(e.numbers.isdigit(N)){var di=z.match(ve)[0];ce=u(di),M=W.slice(di.length-1)}else if(z.match(/^#`[^`]+`/)){var ji=z.match(/^#`([^`]+)`/)[1];ce=u(ji),M=z.slice(ji.length+3)}else if(z.match(new RegExp("^"+e.operators.regexp.source))&&!e.identifiers.contains(ue)){var Es=n.default.splitNextOperator(z),ys=i(Es,2),vs=ys[0],nt=ys[1],R=z.startsWith("'"),Y=H(["∂","∇"],vs),te=H(["|"],vs),ge=z.startsWith("| "),me={};R&&(me.lspace=0,me.rspace=0),Y&&(me.rspace=0),te&&(me.stretchy=!0),ge&&(me.lspace="veryverythickmathspace",me.rspace="veryverythickmathspace"),ce=d(vs,!$(me)&&me),M=nt}else if(e.identifiers.contains(ue)){var Ve=e.identifiers[ue],Xe=Ve.match(/[\u0391-\u03A9\u2100-\u214F\u2200-\u22FF]/);ce=Xe?l(Ve,{mathvariant:"normal"}):l(Ve),M=W.slice(ue.length-1)}else N==="O"&&W[0]==="/"?(ce=l(e.identifiers["O/"],{mathvariant:"normal"}),M=W.slice(1)):(ce=l(N),M=W);if(M&&M.trimLeft().match(/\.?[\^_]/)){if((!re||!re.match(/m(sup|over)/))&&M.trim().startsWith("_")&&(M.trim().length<=1||!M.trim()[1].match(/[|_]/))){var it=Ne(ce,M),at=i(it,2);ce=at[0],M=at[1]}else if(re!=="mover"&&M.trim().startsWith("._")&&(M.trim().length<=2||!M.trim()[2].match(/[|_]/))){var rt=D(ce,M),_t=i(rt,2);ce=_t[0],M=_t[1]}else if((!re||!re.match(/m(sub|under)/))&&M.trim().startsWith("^")&&(M.trim().length<=1||M.trim()[1]!=="^")){var ht=Le(ce,M),Kt=i(ht,2);ce=Kt[0],M=Kt[1]}else if(re!=="munder"&&M.trim().startsWith(".^")&&(M.trim().length<=2||M.trim()[2]!=="^")){var xn=q(ce,M),sn=i(xn,2);ce=sn[0],M=sn[1]}}return[ce,M]}function Ne(z,pe){var re=fe(pe.trim().slice(1).trim(),!0,"msub"),ce=re[0]?B(re[0]):v(""),M,N=re[1];if(N&&N.trim().startsWith("^")&&(N.trim().length<=1||!N.trim()[1]!=="^")){var W=fe(N.trim().slice(1).trim(),!0),ue=W[0]?B(W[0]):v(""),X=n.default.shouldGoUnder(z)?g:m;M=X(z+ce+ue),N=W[1]}else{var ie=n.default.shouldGoUnder(z)?E:_;M=ie(z+ce)}return[M,N]}function Le(z,pe){var re=fe(pe.trim().slice(1).trim(),!0,"msup"),ce=re[0]?B(re[0]):v(""),M,N=re[1];if(N.trim().startsWith("_")&&(N.trim().length<=1||!N.trim()[1].match(/[|_]/))){var W=fe(N.trim().slice(1).trim(),!0),ue=W[0]?B(W[0]):v(""),X=n.default.shouldGoUnder(z)?g:m;M=X(z+ue+ce),N=W[1]}else{var ie=n.default.shouldGoUnder(z)?b:f;M=ie(z+ce)}return[M,N]}function D(z,pe){var re=fe(pe.trim().slice(2).trim(),!0,"munder"),ce=re[0]?B(re[0]):v(""),M,N=re[1],W=N.match(/^(\.?\^)[^\^]/);if(W){var ue=fe(N.trim().slice(W[1].length).trim(),!0),X=ue[0]?B(ue[0]):v("");M=g(z+ce+X),N=ue[1]}else M=E(z+ce);return[M,N]}function q(z,pe){var re=fe(pe.trim().slice(2).trim(),!0,"mover"),ce=re[0]?B(re[0]):v(""),M,N=re[1],W=N.match(/^(\.?_)[^_|]/);if(W){var ue=fe(N.trim().slice(W[1].length).trim(),!0),X=ue[0]?B(ue[0]):v("");M=g(z+X+ce),N=ue[1]}else M=b(z+ce);return[M,N]}function K(z,pe){var re=pe.trim().startsWith("./"),ce=pe.trim().slice(re?2:1),M,N,W;if(ce.startsWith(" ")){var ue=ce.trim().split(" ");M=ye(ue[0]),W=ce.trimLeft().slice(ue[0].length+1)}else{var X=fe(ce),ie=i(X,2);M=ie[0],W=ie[1]}return M=M||v(""),N=h(B(z)+B(M),re&&{bevelled:!0}),W&&W.trim().startsWith("/")||W.trim().startsWith("./")?K(N,W):[N,W]}function de(z){var pe=new RegExp("(\\s|".concat(j.colSep,"|").concat(j.rowSep,"|$)")),re=z.match(pe),ce=z.slice(0,re.index),M=re[0],N=z.slice(re.index+1),W=ce,ue=M+N;if(!n.default.isgroupStart(N.trim())&&n.default.endsInFunc(ce)){var X=de(N);W+=M+X[0],ue=X[1]}else if(ce.match(/root$/)){var ie=de(N),Ae=de(ie[1].trimLeft());W+=M+ie[0]+" "+Ae[0],ue=M+Ae[1]}return[W,ue]}function le(z,pe){var re=function(){var ce=ee(z);return ce.length>1?ce:xe(z)}().map(function(ce){return ce.trim().slice(1,-1)});return O(re.map(Re).join(""),pe)}function Re(z,pe){if(pe=typeof pe=="string"?pe:"",!z||z.length===0)return k(pe);var re=Ie(z.trim(),""),ce=i(re,2),M=ce[0],N=ce[1];return Re(N.trim(),pe+M)}function Ie(z,pe){if(!z||z.length===0)return[x(pe),""];if(z[0]===j.colSep)return[x(pe),z.slice(1).trim()];var re=fe(z),ce=i(re,2),M=ce[0],N=ce[1];return Ie(N.trim(),pe+M)}return Z}function F(j){var ae=ne(j),ve=j.slice(0,j.lastIndexOf(ae));return[ve,ae]}function B(j){var ae=j.replace(/^]*>/,"").replace(/<\/mfenced>$/,"");return F(ae)[1]===ae?ae:v(ae)}function ne(j){var ae=j.match(/<\/(m[a-z]+)>$/);if(!ae){var ve=j.match(//);if(ve){var ee=ve.match[0].length;return j.slice(ee)}else return""}var Ee=ae[1],xe=j.length-(Ee.length+3),Me=0;for(xe;xe>=0;xe-=1){if(j.slice(xe).startsWith("<".concat(Ee))){if(Me===0)break;Me-=1}j.slice(xe-2).startsWith("=0}function U(j){return j.slice(-1)[0]}function Q(j,ae){return function(ve){return j(ae(ve))}}I.getlastel=ne;var J=I;return ll.default=J,ll}var CS;function HHe(){if(CS)return Ao;CS=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.ascii2mathml=t,Ao.default=void 0;var n=e(zHe());function e(s){return s&&s.__esModule?s:{default:s}}function t(s,r){if(typeof s=="object")return function(h,f){var _=Object.assign({},s,f);return t(h,_)};if(r=typeof r=="object"?r:{},r.annotate=r.annotate||!1,r.bare=r.bare||!1,r.display=r.display||"inline",r.standalone=r.standalone||!1,r.dir=r.dir||"ltr",r.decimalMark=r.decimalMark||".",r.colSep=r.colSep||",",r.rowSep=r.rowSep||";",r.decimalMark===","&&r.colSep===","&&(r.colSep=";"),r.colSep===";"&&r.rowSep===";"&&(r.rowSep=";;"),r.bare){if(r.standalone)throw new Error("Can't output a valid HTML without a root element");if(r.display&&r.display.toLowerCase()!=="inline")throw new Error("Can't display block without root element.");if(r.dir&&r.dir.toLowerCase()!=="ltr")throw new Error("Can't have right-to-left direction without root element.")}var o=(0,n.default)(r),a,l=r.bare?function(h){return h}:function(h){return"").concat(h,"")};if(r.annotate){var u=o(s.trim(),""),d=u===n.default.getlastel(u)?u:"".concat(u,"");a=l(""+d+''+s+"")}else a=l(o(s.trim(),""));return r.standalone&&(a=""+s+""+a+""),a}var i=t;return Ao.default=i,Ao}var Qp=null;function wS(n,e,t){var i=e,s,r,o,a,l,u,d,h=!0,f=!0,_=n.posMax,m=n.md.utils.isWhiteSpace;return s=e>0?n.src.charCodeAt(e-1):32,i>=_&&(a=!1),i+=t,o=i-e,r=i<_?n.src.charCodeAt(i):32,u=m(s),d=m(r),d&&(h=!1),u&&(f=!1),a=h,l=f,{can_open:a,can_close:l,delims:o}}function qHe(n,e){return function(i,s){var r,o,a,l,u,d=i.posMax,h=i.pos,f=i.src.slice(h,h+n.length);if(f!==n||s)return!1;if(a=wS(i,h,f.length),r=a.delims,!a.can_open)return i.pos+=r,i.pending+=i.src.slice(h,i.pos),!0;for(i.pos=h+n.length;i.posg||(a=i.src.slice(b,b+n.length),a!==n))return!1;if(b+=n.length,f=i.src.slice(b,g),o)return!0;for(f.trim().slice(-e.length)===e&&(f=f.trim().slice(0,-e.length),E=!0),d=s;!(E||(d++,d>=r)||(b=i.bMarks[d]+i.tShift[d],g=i.eMarks[d],b=4||(m=i.src.slice(0,g).lastIndexOf(e),_=i.src.slice(b,m),b+=_.length+e.length,b=i.skipSpaces(b),!(b{this `,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),Se.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(n){n.target.src=Ti},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){this.filterModels()}},async mounted(){console.log("Getting voices"),this.getVoices(),console.log("Constructing"),this.load_everything(),this.getSeviceVoices();try{console.log("Loading input devices list");const n=await Se.get("/get_snd_input_devices");this.snd_input_devices=n.data.device_names,this.snd_input_devices_indexes=n.data.device_indexes}catch{console.log("Couldin't list input devices")}try{console.log("Loading output devices list");const n=await Se.get("/get_snd_output_devices");this.snd_output_devices=n.data.device_names,this.snd_output_devices_indexes=n.data.device_indexes}catch{console.log("Couldin't list output devices")}},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(` `,"
")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return Pi;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Pi}}},imgModel:{get(){try{let n=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return n>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[n].icon}`),this.$store.state.modelsZoo[n].icon):Pi}catch{console.log("error")}if(!this.isMounted)return Pi;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Pi}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:Ti},set(n){this.$store.state.config.user_avatar=n}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(n){this.$store.state.config.hardware_mode=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},xtts_enable:{get(){return this.$store.state.config.xtts_enable},set(n){this.$store.state.config.xtts_enable=n}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(n){console.log("Current xtts voice set to ",n),this.$store.state.config.xtts_current_language=n}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.xtts_current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(n){this.$store.state.config.discussion_db_name=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);if(n>-1)return this.bindingsZoo[n].name},active_pesonality(){if(!this.isMounted)return;const n=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(n>-1)return this.personalities[n].name},speed_computed(){return rs(this.addModel.speed)},total_size_computed(){return rs(this.addModel.total_size)},downloaded_size_computed(){return rs(this.addModel.downloaded_size)}},watch:{xtts_enable(n){n||(this.configFile.auto_read=!1)},bec_collapsed(){Ge(()=>{ze.replace()})},pc_collapsed(){Ge(()=>{ze.replace()})},mc_collapsed(){Ge(()=>{ze.replace()})},sc_collapsed(){Ge(()=>{ze.replace()})},showConfirmation(){Ge(()=>{ze.replace()})},mzl_collapsed(){Ge(()=>{ze.replace()})},pzl_collapsed(){Ge(()=>{ze.replace()})},ezl_collapsed(){Ge(()=>{ze.replace()})},bzl_collapsed(){Ge(()=>{ze.replace()})},all_collapsed(n){this.collapseAll(n),Ge(()=>{ze.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Ge(()=>{ze.replace()})},isLoading(){Ge(()=>{ze.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Ge(()=>{ze.replace()})}},async beforeRouteLeave(n){if(await this.$router.isReady(),this.settingsChanged)return await this.$store.state.yesNoDialog.askQuestion(`Did You forget to apply changes? -You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},P=n=>(yo("data-v-53eceb3e"),n=n(),vo(),n),$rt={class:"container overflow-y-scroll flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Wrt={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Krt={key:0,class:"flex gap-3 flex-1 items-center duration-75"},jrt=P(()=>c("i",{"data-feather":"x"},null,-1)),Qrt=[jrt],Xrt=P(()=>c("i",{"data-feather":"check"},null,-1)),Zrt=[Xrt],Jrt={key:1,class:"flex gap-3 flex-1 items-center"},eot=P(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),tot=[eot],not=P(()=>c("i",{"data-feather":"list"},null,-1)),iot=[not],sot={class:"flex gap-3 flex-1 items-center justify-end"},rot=P(()=>c("i",{"data-feather":"trash-2"},null,-1)),oot=[rot],aot=P(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),lot=[aot],cot=P(()=>c("i",{"data-feather":"arrow-up-circle"},null,-1)),dot=P(()=>c("i",{"data-feather":"alert-circle"},null,-1)),uot={class:"flex gap-3 items-center"},pot={key:0,class:"flex gap-3 items-center"},_ot=P(()=>c("div",{class:"flex flex-row"},[c("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),c("i",{"data-feather":"check"})],-1)),hot=[_ot],fot=P(()=>c("div",{class:"flex flex-row"},[c("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),c("i",{"data-feather":"x"})],-1)),mot=[fot],got={key:1,role:"status"},bot=P(()=>c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),Eot=P(()=>c("span",{class:"sr-only"},"Loading...",-1)),yot={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},vot={class:"flex flex-row p-3"},Sot=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Tot=[Sot],xot=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Cot=[xot],wot=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Rot=P(()=>c("div",{class:"mr-2"},"|",-1)),Aot={class:"text-base font-semibold cursor-pointer select-none items-center"},Not={class:"flex gap-2 items-center"},Oot={key:0},Iot=["src"],Mot={class:"font-bold font-large text-lg"},Dot={key:1},kot={class:"flex gap-2 items-center"},Lot=["src"],Pot={class:"font-bold font-large text-lg"},Uot=P(()=>c("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Fot={class:"font-bold font-large text-lg"},Bot=P(()=>c("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Got={class:"font-bold font-large text-lg"},Vot={class:"mb-2"},zot=P(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[c("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),et(" CPU Ram usage: ")],-1)),Hot={class:"flex flex-col mx-2"},qot=P(()=>c("b",null,"Avaliable ram: ",-1)),Yot=P(()=>c("b",null,"Ram usage: ",-1)),$ot={class:"p-2"},Wot={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Kot={class:"mb-2"},jot=P(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),et(" Disk usage: ")],-1)),Qot={class:"flex flex-col mx-2"},Xot=P(()=>c("b",null,"Avaliable disk space: ",-1)),Zot=P(()=>c("b",null,"Disk usage: ",-1)),Jot={class:"p-2"},eat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},tat={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},nat=["src"],iat={class:"flex flex-col mx-2"},sat=P(()=>c("b",null,"Model: ",-1)),rat=P(()=>c("b",null,"Avaliable vram: ",-1)),oat=P(()=>c("b",null,"GPU usage: ",-1)),aat={class:"p-2"},lat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},cat={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},dat={class:"flex flex-row p-3"},uat=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),pat=[uat],_at=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),hat=[_at],fat=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),mat={class:"flex flex-col mb-2 px-3 pb-2"},gat={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},bat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),Eat={for:"logo-upload"},yat=["src"],vat={style:{width:"10%"}},Sat=P(()=>c("i",{"data-feather":"x"},null,-1)),Tat=[Sat],xat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),Cat={class:"text-center items-center"},wat={class:"flex flex-row"},Rat=P(()=>c("option",{value:"cpu"},"CPU",-1)),Aat=P(()=>c("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),Nat=P(()=>c("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Oat=P(()=>c("option",{value:"nvidia"},"NVIDIA",-1)),Iat=P(()=>c("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),Mat=P(()=>c("option",{value:"amd"},"AMD",-1)),Dat=P(()=>c("option",{value:"apple-intel"},"Apple Intel",-1)),kat=P(()=>c("option",{value:"apple-silicon"},"Apple Silicon",-1)),Lat=[Rat,Aat,Nat,Oat,Iat,Mat,Dat,kat],Pat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Uat={style:{width:"100%"}},Fat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),Bat={class:"flex flex-row"},Gat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),Vat={class:"flex flex-row"},zat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),Hat={class:"flex flex-row"},qat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),Yat={class:"flex flex-row"},$at=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),Wat={class:"flex flex-row"},Kat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),jat={class:"flex flex-row"},Qat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),Xat={class:"flex flex-row"},Zat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),Jat={class:"flex flex-row"},elt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),tlt={class:"flex flex-row"},nlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),ilt={class:"flex flex-row"},slt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},rlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),olt=P(()=>c("option",{value:"lollms"},"Lollms communication template",-1)),alt=P(()=>c("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1)),llt=P(()=>c("option",{value:"llama3"},"LLama3 communication template",-1)),clt=P(()=>c("option",{value:"mistral"},"Mistral communication template",-1)),dlt=[olt,alt,llt,clt],ult=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),plt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),_lt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),hlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),flt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),mlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),glt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),blt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),Elt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),ylt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),vlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),Slt=["innerHTML"],Tlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),Clt={style:{width:"100%"}},wlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),Rlt={style:{width:"100%"}},Alt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),Nlt={style:{width:"100%"}},Olt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),Ilt={style:{width:"100%"}},Mlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),Dlt={for:"avatar-upload"},klt=["src"],Llt={style:{width:"10%"}},Plt=P(()=>c("i",{"data-feather":"x"},null,-1)),Ult=[Plt],Flt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),Blt={class:"flex flex-row"},Glt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),Vlt={style:{width:"100%"}},zlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),Hlt={style:{width:"100%"}},qlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Ylt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),$lt={style:{width:"100%"}},Wlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),Klt={style:{width:"100%"}},jlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),Qlt={style:{width:"100%"}},Xlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),Zlt={style:{width:"100%"}},Jlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),ect={style:{width:"100%"}},tct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),ict={class:"flex flex-row"},sct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),rct={style:{width:"100%"}},oct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},act=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),lct={class:"flex flex-row"},cct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},dct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),uct={class:"flex flex-row"},pct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),_ct={class:"flex flex-row"},hct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),fct={class:"flex flex-row"},mct={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},gct={class:"flex flex-row p-3"},bct=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Ect=[bct],yct=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),vct=[yct],Sct=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1)),Tct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),Cct={style:{width:"100%"}},wct=["onUpdate:modelValue"],Rct=["onClick"],Act=["onClick"],Nct=["onClick"],Oct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),Ict=P(()=>c("option",{value:"bert"},"Bert Vectorizer",-1)),Mct=P(()=>c("option",{value:"tfidf"},"TFIDF Vectorizer",-1)),Dct=P(()=>c("option",{value:"word2vec"},"Word2Vec Vectorizer",-1)),kct=[Ict,Mct,Dct],Lct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),Pct=P(()=>c("option",{value:"bert-base-nli-mean-tokens"},"bert-base-nli-mean-tokens",-1)),Uct=[Pct],Fct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),Bct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),Gct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),Vct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),zct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),Hct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),qct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Yct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),$ct={class:"flex flex-row"},Wct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),Kct={class:"flex flex-row"},jct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),Qct={class:"flex flex-row"},Xct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),Zct={class:"flex flex-row"},Jct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),edt={class:"flex flex-row"},tdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),ndt=P(()=>c("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),idt=P(()=>c("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1)),sdt=P(()=>c("option",{value:"model_embedding"},"Model Embedding",-1)),rdt=P(()=>c("option",{value:"sentense_transformer"},"Sentense Transformer",-1)),odt=[ndt,idt,sdt,rdt],adt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),ldt={style:{width:"100%"}},cdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),ddt=P(()=>c("option",{value:"PCA"},"PCA",-1)),udt=P(()=>c("option",{value:"TSNE"},"TSNE",-1)),pdt=[ddt,udt],_dt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),hdt={class:"flex flex-row"},fdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),mdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),gdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),bdt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Edt={class:"flex flex-row p-3"},ydt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),vdt=[ydt],Sdt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Tdt=[Sdt],xdt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1)),Cdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet search:")],-1)),Rdt={class:"flex flex-row"},Adt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),Ndt={class:"flex flex-row"},Odt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),Idt={class:"flex flex-row"},Mdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),Ddt={class:"flex flex-row"},kdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),Ldt={class:"flex flex-col"},Pdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),Udt={class:"flex flex-col"},Fdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),Bdt={class:"flex flex-col"},Gdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),Vdt={class:"flex flex-col"},zdt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Hdt={class:"flex flex-row p-3"},qdt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Ydt=[qdt],$dt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Wdt=[$dt],Kdt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1)),jdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Qdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),Xdt={style:{width:"100%"}},Zdt=P(()=>c("option",{value:"None"},"None",-1)),Jdt=P(()=>c("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1)),eut=P(()=>c("option",{value:"xtts"},"XTTS",-1)),tut=P(()=>c("option",{value:"openai_tts"},"Open AI TTS",-1)),nut=[Zdt,Jdt,eut,tut],iut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),sut={style:{width:"100%"}},rut=P(()=>c("option",{value:"None"},"None",-1)),out=P(()=>c("option",{value:"whisper"},"Whisper",-1)),aut=P(()=>c("option",{value:"openai_whisper"},"Open AI Whisper",-1)),lut=[rut,out,aut],cut=P(()=>c("tr",null,null,-1)),dut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),uut={style:{width:"100%"}},put=P(()=>c("option",{value:"None"},"None",-1)),_ut=P(()=>c("option",{value:"diffusers"},"Diffusers",-1)),hut=P(()=>c("option",{value:"autosd"},"AUTO1111's SD",-1)),fut=P(()=>c("option",{value:"dall-e"},"Open AI DALL-E",-1)),mut=P(()=>c("option",{value:"midjourney"},"Midjourney",-1)),gut=P(()=>c("option",{value:"comfyui"},"Comfyui",-1)),but=P(()=>c("option",{value:"fooocus"},"Fooocus",-1)),Eut=[put,_ut,hut,fut,mut,gut,but],yut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),vut={style:{width:"100%"}},Sut=P(()=>c("option",{value:"None"},"None",-1)),Tut=P(()=>c("option",{value:"musicgen"},"Music Gen",-1)),xut=[Sut,Tut],Cut={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),Rut={class:"flex flex-row"},Aut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),Nut={class:"flex flex-row"},Out=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),Iut={class:"flex flex-row"},Mut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),Dut={class:"flex flex-row"},kut={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Lut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),Put={style:{width:"100%"}},Uut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),Fut={style:{width:"100%"}},But=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),Gut={style:{width:"100%"}},Vut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),zut={style:{width:"100%"}},Hut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),qut={style:{width:"100%"}},Yut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),$ut={style:{width:"100%"}},Wut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),Kut={style:{width:"100%"}},jut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),Qut={class:"flex flex-row"},Xut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),Zut={class:"flex flex-row"},Jut={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ept=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),tpt={style:{width:"100%"}},npt=["value"],ipt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),spt={style:{width:"100%"}},rpt=["value"],opt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},apt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),lpt={style:{width:"100%"}},cpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys (coma separated, if empty, anyone can use the server without authentication):")],-1)),dpt={style:{width:"100%"}},upt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),ppt={style:{width:"100%"}},_pt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode (deactivates all code exectuion to protect the PC from attacks):")],-1)),hpt={style:{width:"100%"}},fpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),mpt={style:{width:"100%"}},gpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),bpt={style:{width:"100%"}},Ept=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),ypt={style:{width:"100%"}},vpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),Spt={style:{width:"100%"}},Tpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),Cpt={class:"flex flex-row"},wpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),Rpt={class:"flex flex-row"},Apt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),Npt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),Opt=["value"],Ipt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Mpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),Dpt={class:"flex flex-row"},kpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Lpt={class:"flex flex-row"},Ppt=["value"],Upt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Fpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),Bpt={class:"flex flex-row"},Gpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),Vpt={class:"flex flex-row"},zpt=["value"],Hpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},qpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),Ypt={class:"flex flex-row"},$pt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),Wpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),Kpt=["value"],jpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Qpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_enable",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),Xpt={class:"flex flex-row"},Zpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xTTS service:")],-1)),Jpt={class:"flex flex-row"},e_t=["href"],t_t=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/xtts-api-server/blob/main/LICENSE",target:"_blank"},"licence",-1)),n_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),i_t={class:"flex flex-row"},s_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),r_t={class:"flex flex-row"},o_t=["disabled"],a_t=["value"],l_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),c_t={class:"flex flex-row"},d_t=["disabled"],u_t=["value"],p_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_use_deepspeed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable deepspeed:")],-1)),__t={class:"flex flex-row"},h_t=["disabled"],f_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_use_streaming_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable streaming mode:")],-1)),m_t={class:"flex flex-row"},g_t=["disabled"],b_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),E_t={class:"flex flex-row"},y_t=["disabled"],v_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),S_t={class:"flex flex-row"},T_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),x_t={class:"flex flex-row"},C_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),w_t={class:"flex flex-row"},R_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),A_t={class:"flex flex-row"},N_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),O_t={class:"flex flex-row"},I_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),M_t={class:"flex flex-row"},D_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),k_t={class:"flex flex-row"},L_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),P_t={class:"flex flex-row"},U_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},F_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),B_t={class:"flex flex-row"},G_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),V_t={class:"flex flex-row"},z_t=P(()=>c("option",null," tts-1 ",-1)),H_t=P(()=>c("option",null," tts-2 ",-1)),q_t=[z_t,H_t],Y_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),$_t={class:"flex flex-row"},W_t=P(()=>c("option",null," alloy ",-1)),K_t=P(()=>c("option",null," echo ",-1)),j_t=P(()=>c("option",null," fable ",-1)),Q_t=P(()=>c("option",null," nova ",-1)),X_t=P(()=>c("option",null," shimmer ",-1)),Z_t=[W_t,K_t,j_t,Q_t,X_t],J_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},eht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),tht={class:"flex flex-row"},nht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),iht=[nht],sht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),rht={class:"flex flex-row"},oht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1)),aht={class:"flex flex-row"},lht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),cht={class:"flex flex-row"},dht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},uht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),pht={class:"flex flex-row"},_ht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1)),hht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),fht={class:"flex flex-row"},mht=P(()=>c("td",null,null,-1)),ght={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},bht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),Eht={class:"flex flex-row"},yht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},vht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),Sht={class:"flex flex-row"},Tht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),xht={class:"flex flex-row"},Cht=P(()=>c("option",null," dall-e-2 ",-1)),wht=P(()=>c("option",null," dall-e-3 ",-1)),Rht=[Cht,wht],Aht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Nht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),Oht={class:"flex flex-row"},Iht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Mht=[Iht],Dht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),kht={class:"flex flex-row"},Lht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Pht=[Lht],Uht=P(()=>c("td",{style:{"min-width":"200px"}},null,-1)),Fht={class:"flex flex-row"},Bht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1)),Ght=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),Vht={class:"flex flex-row"},zht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),qht={class:"flex flex-row"},Yht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),$ht=[Yht],Wht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),Kht={class:"flex flex-row"},jht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),Qht={class:"flex flex-row"},Xht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Zht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),Jht={class:"flex flex-row"},eft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),tft=[eft],nft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),ift={class:"flex flex-row"},sft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),rft={class:"flex flex-row"},oft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),aft={class:"flex flex-col align-bottom"},lft={class:"relative"},cft=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),dft={class:"absolute right-0"},uft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),pft={class:"flex flex-row"},_ft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),hft={class:"flex flex-row"},fft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),mft={class:"flex flex-row"},gft={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},bft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),Eft={class:"flex flex-row"},yft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),vft=[yft],Sft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),Tft={class:"flex flex-row"},xft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),Cft={class:"flex flex-row"},wft={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Rft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Motion Ctrl service:")],-1)),Aft={class:"flex flex-row"},Nft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Oft=[Nft],Ift=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Motion Ctrl service:")],-1)),Mft={class:"flex flex-row"},Dft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),kft={class:"flex flex-row"},Lft={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Pft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_enable",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),Uft={class:"flex flex-row"},Fft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),Bft={class:"flex flex-row"},Gft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),Vft={class:"flex flex-row"},zft={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Hft={class:"flex flex-row p-3"},qft=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Yft=[qft],$ft=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Wft=[$ft],Kft=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),jft={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Qft=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Xft={key:1,class:"mr-2"},Zft={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Jft={class:"flex gap-1 items-center"},emt=["src"],tmt={class:"font-bold font-large text-lg line-clamp-1"},nmt={key:0,class:"mb-2"},imt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},smt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),rmt=[smt],omt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),amt=[omt],lmt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},cmt={class:"flex flex-row p-3"},dmt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),umt=[dmt],pmt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),_mt=[pmt],hmt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),fmt={class:"flex flex-row items-center"},mmt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},gmt=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),bmt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Emt=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),ymt={key:2,class:"mr-2"},vmt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Smt={class:"flex gap-1 items-center"},Tmt=["src"],xmt={class:"font-bold font-large text-lg line-clamp-1"},Cmt={class:"mx-2 mb-4"},wmt={class:"relative"},Rmt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Amt={key:0},Nmt=P(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Omt=[Nmt],Imt={key:1},Mmt=P(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),Dmt=[Mmt],kmt=P(()=>c("label",{for:"only_installed"},"Show only installed models",-1)),Lmt=P(()=>c("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),Pmt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Umt=P(()=>c("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),Fmt=P(()=>c("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Bmt=[Umt,Fmt],Gmt={key:1,class:"mb-2"},Vmt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},zmt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Hmt=[zmt],qmt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Ymt=[qmt],$mt={class:"mb-2"},Wmt={class:"p-2"},Kmt={class:"mb-3"},jmt=P(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),Qmt={key:0},Xmt={class:"mb-3"},Zmt=P(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),Jmt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},egt=P(()=>c("div",{role:"status",class:"justify-center"},null,-1)),tgt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},ngt={class:"w-full p-2"},igt={class:"flex justify-between mb-1"},sgt=Vb(' Downloading Loading...',1),rgt={class:"text-sm font-medium text-blue-700 dark:text-white"},ogt=["title"],agt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},lgt={class:"flex justify-between mb-1"},cgt={class:"text-base font-medium text-blue-700 dark:text-white"},dgt={class:"text-sm font-medium text-blue-700 dark:text-white"},ugt={class:"flex flex-grow"},pgt={class:"flex flex-row flex-grow gap-3"},_gt={class:"p-2 text-center grow"},hgt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},fgt={class:"flex flex-row p-3 items-center"},mgt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),ggt=[mgt],bgt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Egt=[bgt],ygt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),vgt={key:0,class:"mr-2"},Sgt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Tgt={key:1,class:"mr-2"},xgt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Cgt={key:0,class:"flex -space-x-4 items-center"},wgt={class:"group items-center flex flex-row"},Rgt=["onClick"],Agt=["src","title"],Ngt=["onClick"],Ogt=P(()=>c("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[c("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),Igt=[Ogt],Mgt=P(()=>c("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),Dgt=[Mgt],kgt={class:"mx-2 mb-4"},Lgt=P(()=>c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Pgt={class:"relative"},Ugt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Fgt={key:0},Bgt=P(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Ggt=[Bgt],Vgt={key:1},zgt=P(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),Hgt=[zgt],qgt={key:0,class:"mx-2 mb-4"},Ygt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},$gt=["selected"],Wgt={key:0,class:"mb-2"},Kgt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},jgt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Qgt=[jgt],Xgt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Zgt=[Xgt],Jgt={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ebt={class:"flex flex-row"},tbt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),nbt=[tbt],ibt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),sbt=[ibt],rbt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),obt={class:"m-2"},abt={class:"flex flex-row gap-2 items-center"},lbt=P(()=>c("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),cbt={class:"m-2"},dbt=P(()=>c("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),ubt={class:"m-2"},pbt={class:"flex flex-col align-bottom"},_bt={class:"relative"},hbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),fbt={class:"absolute right-0"},mbt={class:"m-2"},gbt={class:"flex flex-col align-bottom"},bbt={class:"relative"},Ebt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),ybt={class:"absolute right-0"},vbt={class:"m-2"},Sbt={class:"flex flex-col align-bottom"},Tbt={class:"relative"},xbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),Cbt={class:"absolute right-0"},wbt={class:"m-2"},Rbt={class:"flex flex-col align-bottom"},Abt={class:"relative"},Nbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),Obt={class:"absolute right-0"},Ibt={class:"m-2"},Mbt={class:"flex flex-col align-bottom"},Dbt={class:"relative"},kbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Lbt={class:"absolute right-0"},Pbt={class:"m-2"},Ubt={class:"flex flex-col align-bottom"},Fbt={class:"relative"},Bbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Gbt={class:"absolute right-0"};function Vbt(n,e,t,i,s,r){const o=mt("Card"),a=mt("BindingEntry"),l=mt("RadioOptions"),u=mt("model-entry"),d=mt("personality-entry"),h=mt("AddModelDialog"),f=mt("ChoiceDialog");return w(),A(Ye,null,[c("div",$rt,[c("div",Wrt,[s.showConfirmation?(w(),A("div",Krt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=be(_=>s.showConfirmation=!1,["stop"]))},Qrt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=be(_=>r.save_configuration(),["stop"]))},Zrt)])):V("",!0),s.showConfirmation?V("",!0):(w(),A("div",Jrt,[c("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=_=>r.reset_configuration())},tot),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=be(_=>s.all_collapsed=!s.all_collapsed,["stop"]))},iot)])),c("div",sot,[c("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=_=>r.api_get_req("clear_uploads").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},oot),c("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=_=>r.api_post_req("restart_program").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},lot),s.has_updates?(w(),A("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=_=>r.api_post_req("update_software").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[cot,dot,et(" = ")])):V("",!0),c("div",uot,[s.settingsChanged?(w(),A("div",pot,[s.isLoading?V("",!0):(w(),A("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=be(_=>r.applyConfiguration(),["stop"]))},hot)),s.isLoading?V("",!0):(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=be(_=>r.cancelConfiguration(),["stop"]))},mot))])):V("",!0),s.isLoading?(w(),A("div",got,[c("p",null,he(s.loading_text),1),bot,Eot])):V("",!0)])])]),c("div",{class:He(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[c("div",yot,[c("div",vot,[c("button",{onClick:e[9]||(e[9]=be(_=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Tot,512),[[Mt,s.sc_collapsed]]),G(c("div",null,Cot,512),[[Mt,!s.sc_collapsed]]),wot,Rot,c("div",Aot,[c("div",Not,[c("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(w(),A("div",Oot,[(w(!0),A(Ye,null,lt(r.vramUsage.gpus,_=>(w(),A("div",{class:"flex gap-2 items-center",key:_},[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Iot),c("h3",Mot,[c("div",null,he(r.computedFileSize(_.used_vram))+" / "+he(r.computedFileSize(_.total_vram))+" ("+he(_.percentage)+"%) ",1)])]))),128))])):V("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(w(),A("div",Dot,[c("div",kot,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Lot),c("h3",Pot,[c("div",null,he(r.vramUsage.gpus.length)+"x ",1)])])])):V("",!0)]),Uot,c("h3",Fot,[c("div",null,he(r.ram_usage)+" / "+he(r.ram_total_space)+" ("+he(r.ram_percent_usage)+"%)",1)]),Bot,c("h3",Got,[c("div",null,he(r.disk_binding_models_usage)+" / "+he(r.disk_total_space)+" ("+he(r.disk_percent_usage)+"%)",1)])])])])]),c("div",{class:He([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Vot,[zot,c("div",Hot,[c("div",null,[qot,et(he(r.ram_available_space),1)]),c("div",null,[Yot,et(" "+he(r.ram_usage)+" / "+he(r.ram_total_space)+" ("+he(r.ram_percent_usage)+")% ",1)])]),c("div",$ot,[c("div",Wot,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+r.ram_percent_usage+"%;")},null,4)])])]),c("div",Kot,[jot,c("div",Qot,[c("div",null,[Xot,et(he(r.disk_available_space),1)]),c("div",null,[Zot,et(" "+he(r.disk_binding_models_usage)+" / "+he(r.disk_total_space)+" ("+he(r.disk_percent_usage)+"%)",1)])]),c("div",Jot,[c("div",eat,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(w(!0),A(Ye,null,lt(r.vramUsage.gpus,_=>(w(),A("div",{class:"mb-2",key:_},[c("label",tat,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,nat),et(" GPU usage: ")]),c("div",iat,[c("div",null,[sat,et(he(_.gpu_model),1)]),c("div",null,[rat,et(he(this.computedFileSize(_.available_space)),1)]),c("div",null,[oat,et(" "+he(this.computedFileSize(_.used_vram))+" / "+he(this.computedFileSize(_.total_vram))+" ("+he(_.percentage)+"%)",1)])]),c("div",aat,[c("div",lat,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+_.percentage+"%;")},null,4)])])]))),128))],2)]),c("div",cat,[c("div",dat,[c("button",{onClick:e[10]||(e[10]=be(_=>s.minconf_collapsed=!s.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,pat,512),[[Mt,s.minconf_collapsed]]),G(c("div",null,hat,512),[[Mt,!s.minconf_collapsed]]),fat])]),c("div",{class:He([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",mat,[Te(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",gat,[c("tr",null,[bat,c("td",null,[c("label",Eat,[c("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,yat)]),c("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[11]||(e[11]=(..._)=>r.uploadLogo&&r.uploadLogo(..._))},null,32)]),c("td",vat,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[12]||(e[12]=be(_=>r.resetLogo(),["stop"]))},Tat)])]),c("tr",null,[xat,c("td",Cat,[c("div",wat,[G(c("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[13]||(e[13]=_=>r.configFile.hardware_mode=_),onChange:e[14]||(e[14]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},Lat,544),[[jt,r.configFile.hardware_mode]])])])]),c("tr",null,[Pat,c("td",Uat,[G(c("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[15]||(e[15]=_=>r.configFile.discussion_db_name=_),onChange:e[16]||(e[16]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.discussion_db_name]])])]),c("tr",null,[Fat,c("td",null,[c("div",Bat,[G(c("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[17]||(e[17]=_=>r.configFile.copy_to_clipboard_add_all_details=_),onChange:e[18]||(e[18]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.copy_to_clipboard_add_all_details]])])])]),c("tr",null,[Gat,c("td",null,[c("div",Vat,[G(c("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[19]||(e[19]=_=>r.configFile.auto_show_browser=_),onChange:e[20]||(e[20]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_show_browser]])])])]),c("tr",null,[zat,c("td",null,[c("div",Hat,[G(c("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[21]||(e[21]=_=>r.configFile.debug=_),onChange:e[22]||(e[22]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.debug]])])])]),c("tr",null,[qat,c("td",null,[c("div",Yat,[G(c("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[23]||(e[23]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[24]||(e[24]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.debug_show_final_full_prompt]])])])]),c("tr",null,[$at,c("td",null,[c("div",Wat,[G(c("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[25]||(e[25]=_=>r.configFile.debug_show_chunks=_),onChange:e[26]||(e[26]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.debug_show_chunks]])])])]),c("tr",null,[Kat,c("td",null,[c("div",jat,[G(c("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[27]||(e[27]=_=>r.configFile.debug_log_file_path=_),onChange:e[28]||(e[28]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.debug_log_file_path]])])])]),c("tr",null,[Qat,c("td",null,[c("div",Xat,[G(c("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[29]||(e[29]=_=>r.configFile.show_news_panel=_),onChange:e[30]||(e[30]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.show_news_panel]])])])]),c("tr",null,[Zat,c("td",null,[c("div",Jat,[G(c("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[31]||(e[31]=_=>r.configFile.auto_save=_),onChange:e[32]||(e[32]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_save]])])])]),c("tr",null,[elt,c("td",null,[c("div",tlt,[G(c("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[33]||(e[33]=_=>r.configFile.auto_update=_),onChange:e[34]||(e[34]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_update]])])])]),c("tr",null,[nlt,c("td",null,[c("div",ilt,[G(c("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[35]||(e[35]=_=>r.configFile.auto_title=_),onChange:e[36]||(e[36]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_title]])])])])])]),_:1}),Te(o,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",slt,[c("tr",null,[rlt,c("td",null,[c("select",{onChange:e[37]||(e[37]=(..._)=>r.handleTemplateSelection&&r.handleTemplateSelection(..._))},dlt,32)])]),c("tr",null,[ult,c("td",null,[G(c("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[38]||(e[38]=_=>r.configFile.start_header_id_template=_),onChange:e[39]||(e[39]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_header_id_template]])])]),c("tr",null,[plt,c("td",null,[G(c("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[40]||(e[40]=_=>r.configFile.end_header_id_template=_),onChange:e[41]||(e[41]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_header_id_template]])])]),c("tr",null,[_lt,c("td",null,[G(c("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[42]||(e[42]=_=>r.configFile.start_user_header_id_template=_),onChange:e[43]||(e[43]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_user_header_id_template]])])]),c("tr",null,[hlt,c("td",null,[G(c("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[44]||(e[44]=_=>r.configFile.end_user_header_id_template=_),onChange:e[45]||(e[45]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_user_header_id_template]])])]),c("tr",null,[flt,c("td",null,[G(c("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[46]||(e[46]=_=>r.configFile.end_user_message_id_template=_),onChange:e[47]||(e[47]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_user_message_id_template]])])]),c("tr",null,[mlt,c("td",null,[G(c("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[48]||(e[48]=_=>r.configFile.start_ai_header_id_template=_),onChange:e[49]||(e[49]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_ai_header_id_template]])])]),c("tr",null,[glt,c("td",null,[G(c("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[50]||(e[50]=_=>r.configFile.end_ai_header_id_template=_),onChange:e[51]||(e[51]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_ai_header_id_template]])])]),c("tr",null,[blt,c("td",null,[G(c("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[52]||(e[52]=_=>r.configFile.end_ai_message_id_template=_),onChange:e[53]||(e[53]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_ai_message_id_template]])])]),c("tr",null,[Elt,c("td",null,[G(c("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[54]||(e[54]=_=>r.configFile.separator_template=_),onChange:e[55]||(e[55]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.separator_template]])])]),c("tr",null,[ylt,c("td",null,[G(c("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[56]||(e[56]=_=>r.configFile.system_message_template=_),onChange:e[57]||(e[57]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.system_message_template]])])]),c("tr",null,[vlt,c("td",null,[c("div",{innerHTML:r.full_template},null,8,Slt)])])])]),_:1}),Te(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tlt,[c("tr",null,[xlt,c("td",Clt,[G(c("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[58]||(e[58]=_=>r.configFile.user_name=_),onChange:e[59]||(e[59]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.user_name]])])]),c("tr",null,[wlt,c("td",Rlt,[G(c("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[60]||(e[60]=_=>r.configFile.user_description=_),onChange:e[61]||(e[61]=_=>s.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.user_description]])])]),c("tr",null,[Alt,c("td",Nlt,[G(c("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[62]||(e[62]=_=>r.configFile.use_user_informations_in_discussion=_),onChange:e[63]||(e[63]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_user_informations_in_discussion]])])]),c("tr",null,[Olt,c("td",Ilt,[G(c("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[64]||(e[64]=_=>r.configFile.use_model_name_in_discussions=_),onChange:e[65]||(e[65]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_model_name_in_discussions]])])]),c("tr",null,[Mlt,c("td",null,[c("label",Dlt,[c("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,klt)]),c("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[66]||(e[66]=(..._)=>r.uploadAvatar&&r.uploadAvatar(..._))},null,32)]),c("td",Llt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[67]||(e[67]=be(_=>r.resetAvatar(),["stop"]))},Ult)])]),c("tr",null,[Flt,c("td",null,[c("div",Blt,[G(c("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[68]||(e[68]=_=>r.configFile.use_user_name_in_discussions=_),onChange:e[69]||(e[69]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_user_name_in_discussions]])])])]),c("tr",null,[Glt,c("td",Vlt,[G(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[70]||(e[70]=_=>r.configFile.max_n_predict=_),onChange:e[71]||(e[71]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.max_n_predict]])])]),c("tr",null,[zlt,c("td",Hlt,[G(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[72]||(e[72]=_=>r.configFile.max_n_predict=_),onChange:e[73]||(e[73]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.max_n_predict]])])])])]),_:1}),Te(o,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",qlt,[c("tr",null,[Ylt,c("td",$lt,[G(c("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[74]||(e[74]=_=>r.configFile.turn_on_code_execution=_),onChange:e[75]||(e[75]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_code_execution]])])]),c("tr",null,[Wlt,c("td",Klt,[G(c("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[76]||(e[76]=_=>r.configFile.turn_on_code_validation=_),onChange:e[77]||(e[77]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_code_validation]])])]),c("tr",null,[jlt,c("td",Qlt,[G(c("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[78]||(e[78]=_=>r.configFile.turn_on_setting_update_validation=_),onChange:e[79]||(e[79]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_setting_update_validation]])])]),c("tr",null,[Xlt,c("td",Zlt,[G(c("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[80]||(e[80]=_=>r.configFile.turn_on_open_file_validation=_),onChange:e[81]||(e[81]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_open_file_validation]])])]),c("tr",null,[Jlt,c("td",ect,[G(c("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[82]||(e[82]=_=>r.configFile.turn_on_send_file_validation=_),onChange:e[83]||(e[83]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),Te(o,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",tct,[c("tr",null,[nct,c("td",null,[c("div",ict,[G(c("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[84]||(e[84]=_=>r.configFile.activate_skills_lib=_),onChange:e[85]||(e[85]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_skills_lib]])])])]),c("tr",null,[sct,c("td",rct,[G(c("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[86]||(e[86]=_=>r.configFile.skills_lib_database_name=_),onChange:e[87]||(e[87]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.skills_lib_database_name]])])])])]),_:1}),Te(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",oct,[c("tr",null,[act,c("td",null,[c("div",lct,[G(c("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[88]||(e[88]=_=>r.configFile.pdf_latex_path=_),onChange:e[89]||(e[89]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.pdf_latex_path]])])])])])]),_:1}),Te(o,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",cct,[c("tr",null,[dct,c("td",null,[c("div",uct,[G(c("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[90]||(e[90]=_=>r.configFile.positive_boost=_),onChange:e[91]||(e[91]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.positive_boost]])])])]),c("tr",null,[pct,c("td",null,[c("div",_ct,[G(c("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[92]||(e[92]=_=>r.configFile.negative_boost=_),onChange:e[93]||(e[93]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.negative_boost]])])])]),c("tr",null,[hct,c("td",null,[c("div",fct,[G(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[94]||(e[94]=_=>r.configFile.fun_mode=_),onChange:e[95]||(e[95]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),c("div",mct,[c("div",gct,[c("button",{onClick:e[96]||(e[96]=be(_=>s.data_conf_collapsed=!s.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Ect,512),[[Mt,s.data_conf_collapsed]]),G(c("div",null,vct,512),[[Mt,!s.data_conf_collapsed]]),Sct])]),c("div",{class:He([{hidden:s.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tct,[c("tr",null,[xct,c("td",Cct,[(w(!0),A(Ye,null,lt(r.configFile.rag_databases,(_,m)=>(w(),A("div",{key:m,class:"flex items-center mb-2"},[G(c("input",{type:"text","onUpdate:modelValue":E=>r.configFile.rag_databases[m]=E,onChange:e[97]||(e[97]=E=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,wct),[[we,r.configFile.rag_databases[m]]]),c("button",{onClick:E=>r.vectorize_folder(m),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,Rct),c("button",{onClick:E=>r.select_folder(m),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,Act),c("button",{onClick:E=>r.removeDataSource(m),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,Nct)]))),128)),c("button",{onClick:e[98]||(e[98]=(..._)=>r.addDataSource&&r.addDataSource(..._)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),c("tr",null,[Oct,c("td",null,[G(c("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[99]||(e[99]=_=>r.configFile.rag_vectorizer=_),onChange:e[100]||(e[100]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},kct,544),[[jt,r.configFile.rag_vectorizer]])])]),c("tr",null,[Lct,c("td",null,[G(c("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[101]||(e[101]=_=>r.configFile.rag_vectorizer_model=_),onChange:e[102]||(e[102]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Uct,544),[[jt,r.configFile.rag_vectorizer_model]])])]),c("tr",null,[Fct,c("td",null,[G(c("input",{id:"rag_chunk_size","onUpdate:modelValue":e[103]||(e[103]=_=>r.configFile.rag_chunk_size=_),onChange:e[104]||(e[104]=_=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.rag_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[105]||(e[105]=_=>r.configFile.rag_chunk_size=_),type:"number",onChange:e[106]||(e[106]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_chunk_size]])])]),c("tr",null,[Bct,c("td",null,[G(c("input",{id:"rag_n_chunks","onUpdate:modelValue":e[107]||(e[107]=_=>r.configFile.rag_n_chunks=_),onChange:e[108]||(e[108]=_=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.rag_n_chunks]]),G(c("input",{"onUpdate:modelValue":e[109]||(e[109]=_=>r.configFile.rag_n_chunks=_),type:"number",onChange:e[110]||(e[110]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_n_chunks]])])]),c("tr",null,[Gct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[111]||(e[111]=_=>r.configFile.rag_clean_chunks=_),type:"checkbox",onChange:e[112]||(e[112]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_clean_chunks]])])]),c("tr",null,[Vct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[113]||(e[113]=_=>r.configFile.rag_follow_subfolders=_),type:"checkbox",onChange:e[114]||(e[114]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_follow_subfolders]])])]),c("tr",null,[zct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[115]||(e[115]=_=>r.configFile.rag_check_new_files_at_startup=_),type:"checkbox",onChange:e[116]||(e[116]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_check_new_files_at_startup]])])]),c("tr",null,[Hct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[117]||(e[117]=_=>r.configFile.rag_preprocess_chunks=_),type:"checkbox",onChange:e[118]||(e[118]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_preprocess_chunks]])])])])]),_:1}),Te(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",qct,[c("tr",null,[Yct,c("td",null,[c("div",$ct,[G(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[119]||(e[119]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[120]||(e[120]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[Wct,c("td",null,[c("div",Kct,[G(c("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[121]||(e[121]=_=>r.configFile.data_vectorization_visualize_on_vectorization=_),onChange:e[122]||(e[122]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),c("tr",null,[jct,c("td",null,[c("div",Qct,[G(c("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[123]||(e[123]=_=>r.configFile.data_vectorization_build_keys_words=_),onChange:e[124]||(e[124]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_build_keys_words]])])])]),c("tr",null,[Xct,c("td",null,[c("div",Zct,[G(c("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[125]||(e[125]=_=>r.configFile.data_vectorization_force_first_chunk=_),onChange:e[126]||(e[126]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_force_first_chunk]])])])]),c("tr",null,[Jct,c("td",null,[c("div",edt,[G(c("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[127]||(e[127]=_=>r.configFile.data_vectorization_put_chunk_informations_into_context=_),onChange:e[128]||(e[128]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),c("tr",null,[tdt,c("td",null,[G(c("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[129]||(e[129]=_=>r.configFile.data_vectorization_method=_),onChange:e[130]||(e[130]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},odt,544),[[jt,r.configFile.data_vectorization_method]])])]),c("tr",null,[adt,c("td",ldt,[G(c("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[131]||(e[131]=_=>r.configFile.data_vectorization_sentense_transformer_model=_),onChange:e[132]||(e[132]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_sentense_transformer_model]])])]),c("tr",null,[cdt,c("td",null,[G(c("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[133]||(e[133]=_=>r.configFile.data_visualization_method=_),onChange:e[134]||(e[134]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},pdt,544),[[jt,r.configFile.data_visualization_method]])])]),c("tr",null,[_dt,c("td",null,[c("div",hdt,[G(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[135]||(e[135]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[136]||(e[136]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[fdt,c("td",null,[G(c("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[137]||(e[137]=_=>r.configFile.data_vectorization_chunk_size=_),onChange:e[138]||(e[138]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.data_vectorization_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[139]||(e[139]=_=>r.configFile.data_vectorization_chunk_size=_),type:"number",onChange:e[140]||(e[140]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_chunk_size]])])]),c("tr",null,[mdt,c("td",null,[G(c("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[141]||(e[141]=_=>r.configFile.data_vectorization_overlap_size=_),onChange:e[142]||(e[142]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.data_vectorization_overlap_size]]),G(c("input",{"onUpdate:modelValue":e[143]||(e[143]=_=>r.configFile.data_vectorization_overlap_size=_),type:"number",onChange:e[144]||(e[144]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_overlap_size]])])]),c("tr",null,[gdt,c("td",null,[G(c("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[145]||(e[145]=_=>r.configFile.data_vectorization_nb_chunks=_),onChange:e[146]||(e[146]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.data_vectorization_nb_chunks]]),G(c("input",{"onUpdate:modelValue":e[147]||(e[147]=_=>r.configFile.data_vectorization_nb_chunks=_),type:"number",onChange:e[148]||(e[148]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),c("div",bdt,[c("div",Edt,[c("button",{onClick:e[149]||(e[149]=be(_=>s.internet_conf_collapsed=!s.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,vdt,512),[[Mt,s.internet_conf_collapsed]]),G(c("div",null,Tdt,512),[[Mt,!s.internet_conf_collapsed]]),xdt])]),c("div",{class:He([{hidden:s.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Cdt,[c("tr",null,[wdt,c("td",null,[c("div",Rdt,[G(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[150]||(e[150]=_=>r.configFile.activate_internet_search=_),onChange:e[151]||(e[151]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_internet_search]])])])]),c("tr",null,[Adt,c("td",null,[c("div",Ndt,[G(c("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[152]||(e[152]=_=>r.configFile.activate_internet_pages_judgement=_),onChange:e[153]||(e[153]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_internet_pages_judgement]])])])]),c("tr",null,[Odt,c("td",null,[c("div",Idt,[G(c("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[154]||(e[154]=_=>r.configFile.internet_quick_search=_),onChange:e[155]||(e[155]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.internet_quick_search]])])])]),c("tr",null,[Mdt,c("td",null,[c("div",Ddt,[G(c("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[156]||(e[156]=_=>r.configFile.internet_activate_search_decision=_),onChange:e[157]||(e[157]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.internet_activate_search_decision]])])])]),c("tr",null,[kdt,c("td",null,[c("div",Ldt,[G(c("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[158]||(e[158]=_=>r.configFile.internet_vectorization_chunk_size=_),onChange:e[159]||(e[159]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_vectorization_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[160]||(e[160]=_=>r.configFile.internet_vectorization_chunk_size=_),type:"number",onChange:e[161]||(e[161]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_chunk_size]])])])]),c("tr",null,[Pdt,c("td",null,[c("div",Udt,[G(c("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[162]||(e[162]=_=>r.configFile.internet_vectorization_overlap_size=_),onChange:e[163]||(e[163]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_vectorization_overlap_size]]),G(c("input",{"onUpdate:modelValue":e[164]||(e[164]=_=>r.configFile.internet_vectorization_overlap_size=_),type:"number",onChange:e[165]||(e[165]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_overlap_size]])])])]),c("tr",null,[Fdt,c("td",null,[c("div",Bdt,[G(c("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[166]||(e[166]=_=>r.configFile.internet_vectorization_nb_chunks=_),onChange:e[167]||(e[167]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_vectorization_nb_chunks]]),G(c("input",{"onUpdate:modelValue":e[168]||(e[168]=_=>r.configFile.internet_vectorization_nb_chunks=_),type:"number",onChange:e[169]||(e[169]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_nb_chunks]])])])]),c("tr",null,[Gdt,c("td",null,[c("div",Vdt,[G(c("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[170]||(e[170]=_=>r.configFile.internet_nb_search_pages=_),onChange:e[171]||(e[171]=_=>s.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_nb_search_pages]]),G(c("input",{"onUpdate:modelValue":e[172]||(e[172]=_=>r.configFile.internet_nb_search_pages=_),type:"number",onChange:e[173]||(e[173]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),c("div",zdt,[c("div",Hdt,[c("button",{onClick:e[174]||(e[174]=be(_=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Ydt,512),[[Mt,s.servers_conf_collapsed]]),G(c("div",null,Wdt,512),[[Mt,!s.servers_conf_collapsed]]),Kdt])]),c("div",{class:He([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",jdt,[c("tr",null,[Qdt,c("td",Xdt,[G(c("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[175]||(e[175]=_=>r.configFile.active_tts_service=_),onChange:e[176]||(e[176]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},nut,544),[[jt,r.configFile.active_tts_service]])])]),c("tr",null,[iut,c("td",sut,[G(c("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[177]||(e[177]=_=>r.configFile.active_stt_service=_),onChange:e[178]||(e[178]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},lut,544),[[jt,r.configFile.active_stt_service]])])]),cut,c("tr",null,[dut,c("td",uut,[G(c("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[179]||(e[179]=_=>r.configFile.active_tti_service=_),onChange:e[180]||(e[180]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Eut,544),[[jt,r.configFile.active_tti_service]])])]),c("tr",null,[yut,c("td",vut,[G(c("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[181]||(e[181]=_=>r.configFile.active_ttm_service=_),onChange:e[182]||(e[182]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},xut,544),[[jt,r.configFile.active_ttm_service]])])])])]),_:1}),Te(o,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Cut,[c("tr",null,[wut,c("td",null,[c("div",Rut,[G(c("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[183]||(e[183]=_=>r.configFile.use_negative_prompt=_),onChange:e[184]||(e[184]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_negative_prompt]])])])]),c("tr",null,[Aut,c("td",null,[c("div",Nut,[G(c("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[185]||(e[185]=_=>r.configFile.use_ai_generated_negative_prompt=_),onChange:e[186]||(e[186]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_ai_generated_negative_prompt]])])])]),c("tr",null,[Out,c("td",null,[c("div",Iut,[G(c("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[187]||(e[187]=_=>r.configFile.negative_prompt_generation_prompt=_),onChange:e[188]||(e[188]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.negative_prompt_generation_prompt]])])])]),c("tr",null,[Mut,c("td",null,[c("div",Dut,[G(c("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[189]||(e[189]=_=>r.configFile.default_negative_prompt=_),onChange:e[190]||(e[190]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.default_negative_prompt]])])])])])]),_:1}),Te(o,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",kut,[c("tr",null,[Lut,c("td",Put,[G(c("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[191]||(e[191]=_=>r.configFile.stt_listening_threshold=_),onChange:e[192]||(e[192]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_listening_threshold]])])]),c("tr",null,[Uut,c("td",Fut,[G(c("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[193]||(e[193]=_=>r.configFile.stt_silence_duration=_),onChange:e[194]||(e[194]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_silence_duration]])])]),c("tr",null,[But,c("td",Gut,[G(c("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[195]||(e[195]=_=>r.configFile.stt_sound_threshold_percentage=_),onChange:e[196]||(e[196]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_sound_threshold_percentage]])])]),c("tr",null,[Vut,c("td",zut,[G(c("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[197]||(e[197]=_=>r.configFile.stt_gain=_),onChange:e[198]||(e[198]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_gain]])])]),c("tr",null,[Hut,c("td",qut,[G(c("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[199]||(e[199]=_=>r.configFile.stt_rate=_),onChange:e[200]||(e[200]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_rate]])])]),c("tr",null,[Yut,c("td",$ut,[G(c("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[201]||(e[201]=_=>r.configFile.stt_channels=_),onChange:e[202]||(e[202]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_channels]])])]),c("tr",null,[Wut,c("td",Kut,[G(c("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[203]||(e[203]=_=>r.configFile.stt_buffer_size=_),onChange:e[204]||(e[204]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_buffer_size]])])]),c("tr",null,[jut,c("td",null,[c("div",Qut,[G(c("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[205]||(e[205]=_=>r.configFile.stt_activate_word_detection=_),onChange:e[206]||(e[206]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.stt_activate_word_detection]])])])]),c("tr",null,[Xut,c("td",null,[c("div",Zut,[G(c("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[207]||(e[207]=_=>r.configFile.stt_word_detection_file=_),onChange:e[208]||(e[208]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.stt_word_detection_file]])])])])])]),_:1}),Te(o,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Jut,[c("tr",null,[ept,c("td",tpt,[G(c("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[209]||(e[209]=_=>r.configFile.stt_input_device=_),onChange:e[210]||(e[210]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.snd_input_devices,(_,m)=>(w(),A("option",{key:_,value:s.snd_input_devices_indexes[m]},he(_),9,npt))),128))],544),[[jt,r.configFile.stt_input_device]])])]),c("tr",null,[ipt,c("td",spt,[G(c("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[211]||(e[211]=_=>r.configFile.tts_output_device=_),onChange:e[212]||(e[212]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.snd_output_devices,(_,m)=>(w(),A("option",{key:_,value:s.snd_output_devices_indexes[m]},he(_),9,rpt))),128))],544),[[jt,r.configFile.tts_output_device]])])])])]),_:1}),Te(o,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",opt,[c("tr",null,[apt,c("td",lpt,[G(c("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[213]||(e[213]=_=>r.configFile.host=_),onChange:e[214]||(e[214]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.host]])])]),c("tr",null,[cpt,c("td",dpt,[G(c("input",{type:"text",id:"lollms_access_keys",required:"","onUpdate:modelValue":e[215]||(e[215]=_=>r.configFile.lollms_access_keys=_),onChange:e[216]||(e[216]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.lollms_access_keys]])])]),c("tr",null,[upt,c("td",ppt,[G(c("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[217]||(e[217]=_=>r.configFile.port=_),onChange:e[218]||(e[218]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.port]])])]),c("tr",null,[_pt,c("td",hpt,[G(c("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[219]||(e[219]=_=>r.configFile.headless_server_mode=_),onChange:e[220]||(e[220]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.headless_server_mode]])])]),c("tr",null,[fpt,c("td",mpt,[G(c("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[221]||(e[221]=_=>r.configFile.activate_lollms_server=_),onChange:e[222]||(e[222]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_lollms_server]])])]),c("tr",null,[gpt,c("td",bpt,[G(c("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[223]||(e[223]=_=>r.configFile.activate_ollama_emulator=_),onChange:e[224]||(e[224]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_ollama_emulator]])])]),c("tr",null,[Ept,c("td",ypt,[G(c("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[225]||(e[225]=_=>r.configFile.activate_openai_emulator=_),onChange:e[226]||(e[226]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_openai_emulator]])])]),c("tr",null,[vpt,c("td",Spt,[G(c("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[227]||(e[227]=_=>r.configFile.activate_mistralai_emulator=_),onChange:e[228]||(e[228]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),Te(o,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tpt,[c("tr",null,[xpt,c("td",null,[c("div",Cpt,[G(c("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[229]||(e[229]=_=>r.configFile.activate_audio_infos=_),onChange:e[230]||(e[230]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_audio_infos]])])])]),c("tr",null,[wpt,c("td",null,[c("div",Rpt,[G(c("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[231]||(e[231]=_=>r.configFile.audio_auto_send_input=_),onChange:e[232]||(e[232]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.audio_auto_send_input]])])])]),c("tr",null,[Apt,c("td",null,[G(c("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[233]||(e[233]=_=>r.configFile.audio_silenceTimer=_),onChange:e[234]||(e[234]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.audio_silenceTimer]]),G(c("input",{"onUpdate:modelValue":e[235]||(e[235]=_=>r.configFile.audio_silenceTimer=_),onChange:e[236]||(e[236]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.audio_silenceTimer]])])]),c("tr",null,[Npt,c("td",null,[G(c("select",{id:"audio_in_language","onUpdate:modelValue":e[237]||(e[237]=_=>r.configFile.audio_in_language=_),onChange:e[238]||(e[238]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.audioLanguages,_=>(w(),A("option",{key:_.code,value:_.code},he(_.name),9,Opt))),128))],544),[[jt,r.configFile.audio_in_language]])])])])]),_:1}),Te(o,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Ipt,[c("tr",null,[Mpt,c("td",null,[c("div",Dpt,[G(c("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[239]||(e[239]=_=>r.configFile.whisper_activate=_),onChange:e[240]||(e[240]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.whisper_activate]])])])]),c("tr",null,[kpt,c("td",null,[c("div",Lpt,[G(c("select",{id:"whisper_model","onUpdate:modelValue":e[241]||(e[241]=_=>r.configFile.whisper_model=_),onChange:e[242]||(e[242]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.whisperModels,_=>(w(),A("option",{key:_,value:_},he(_),9,Ppt))),128))],544),[[jt,r.configFile.whisper_model]])])])])])]),_:1}),Te(o,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Upt,[c("tr",null,[Fpt,c("td",null,[c("div",Bpt,[G(c("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[243]||(e[243]=_=>r.configFile.openai_whisper_key=_),onChange:e[244]||(e[244]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.openai_whisper_key]])])])]),c("tr",null,[Gpt,c("td",null,[c("div",Vpt,[G(c("select",{id:"openai_whisper_model","onUpdate:modelValue":e[245]||(e[245]=_=>r.configFile.openai_whisper_model=_),onChange:e[246]||(e[246]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.openaiWhisperModels,_=>(w(),A("option",{key:_,value:_},he(_),9,zpt))),128))],544),[[jt,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Hpt,[c("tr",null,[qpt,c("td",null,[c("div",Ypt,[G(c("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[247]||(e[247]=_=>r.configFile.auto_speak=_),onChange:e[248]||(e[248]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_speak]])])])]),c("tr",null,[$pt,c("td",null,[G(c("input",{id:"audio_pitch","onUpdate:modelValue":e[249]||(e[249]=_=>r.configFile.audio_pitch=_),onChange:e[250]||(e[250]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.audio_pitch]]),G(c("input",{"onUpdate:modelValue":e[251]||(e[251]=_=>r.configFile.audio_pitch=_),onChange:e[252]||(e[252]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.audio_pitch]])])]),c("tr",null,[Wpt,c("td",null,[G(c("select",{id:"audio_out_voice","onUpdate:modelValue":e[253]||(e[253]=_=>r.configFile.audio_out_voice=_),onChange:e[254]||(e[254]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.audioVoices,_=>(w(),A("option",{key:_.name,value:_.name},he(_.name),9,Kpt))),128))],544),[[jt,r.configFile.audio_out_voice]])])])])]),_:1}),Te(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",jpt,[c("tr",null,[Qpt,c("td",null,[c("div",Xpt,[G(c("input",{type:"checkbox",id:"xtts_enable",required:"","onUpdate:modelValue":e[255]||(e[255]=_=>r.configFile.xtts_enable=_),onChange:e[256]||(e[256]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.xtts_enable]])])])]),c("tr",null,[Zpt,c("td",null,[c("div",Jpt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[257]||(e[257]=(..._)=>r.reinstallAudioService&&r.reinstallAudioService(..._))},"install xtts service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[258]||(e[258]=(..._)=>r.startAudioService&&r.startAudioService(..._))},"start xtts service"),c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:this.$store.state.config.xtts_base_url+"/docs",target:"_blank"},"show xtts service entries",8,e_t),t_t])])]),c("tr",null,[n_t,c("td",null,[c("div",i_t,[G(c("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[259]||(e[259]=_=>r.configFile.xtts_base_url=_),onChange:e[260]||(e[260]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_base_url]])])])]),c("tr",null,[s_t,c("td",null,[c("div",r_t,[G(c("select",{"onUpdate:modelValue":e[261]||(e[261]=_=>r.xtts_current_language=_),onChange:e[262]||(e[262]=_=>s.settingsChanged=!0),disabled:!r.xtts_enable},[(w(!0),A(Ye,null,lt(s.voice_languages,(_,m)=>(w(),A("option",{key:m,value:_},he(m),9,a_t))),128))],40,o_t),[[jt,r.xtts_current_language]])])])]),c("tr",null,[l_t,c("td",null,[c("div",c_t,[G(c("select",{"onUpdate:modelValue":e[263]||(e[263]=_=>r.xtts_current_voice=_),onChange:e[264]||(e[264]=_=>s.settingsChanged=!0),disabled:!r.xtts_enable},[(w(!0),A(Ye,null,lt(s.voices,_=>(w(),A("option",{key:_,value:_},he(_),9,u_t))),128))],40,d_t),[[jt,r.xtts_current_voice]])])])]),c("tr",null,[p_t,c("td",null,[c("div",__t,[G(c("input",{type:"checkbox",id:"xtts_use_deepspeed",required:"","onUpdate:modelValue":e[265]||(e[265]=_=>r.configFile.xtts_use_deepspeed=_),onChange:e[266]||(e[266]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,h_t),[[Je,r.configFile.xtts_use_deepspeed]])])])]),c("tr",null,[f_t,c("td",null,[c("div",m_t,[G(c("input",{type:"checkbox",id:"xtts_use_streaming_mode",required:"","onUpdate:modelValue":e[267]||(e[267]=_=>r.configFile.xtts_use_streaming_mode=_),onChange:e[268]||(e[268]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,g_t),[[Je,r.configFile.xtts_use_streaming_mode]])])])]),c("tr",null,[b_t,c("td",null,[c("div",E_t,[G(c("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[269]||(e[269]=_=>r.configFile.auto_read=_),onChange:e[270]||(e[270]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,y_t),[[Je,r.configFile.auto_read]])])])]),c("tr",null,[v_t,c("td",null,[c("div",S_t,[G(c("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[271]||(e[271]=_=>r.configFile.xtts_stream_chunk_size=_),onChange:e[272]||(e[272]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_stream_chunk_size]])])])]),c("tr",null,[T_t,c("td",null,[c("div",x_t,[G(c("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[273]||(e[273]=_=>r.configFile.xtts_temperature=_),onChange:e[274]||(e[274]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[we,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),c("tr",null,[C_t,c("td",null,[c("div",w_t,[G(c("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[275]||(e[275]=_=>r.configFile.xtts_length_penalty=_),onChange:e[276]||(e[276]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),c("tr",null,[R_t,c("td",null,[c("div",A_t,[G(c("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[277]||(e[277]=_=>r.configFile.xtts_repetition_penalty=_),onChange:e[278]||(e[278]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),c("tr",null,[N_t,c("td",null,[c("div",O_t,[G(c("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[279]||(e[279]=_=>r.configFile.xtts_top_k=_),onChange:e[280]||(e[280]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),c("tr",null,[I_t,c("td",null,[c("div",M_t,[G(c("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[281]||(e[281]=_=>r.configFile.xtts_top_p=_),onChange:e[282]||(e[282]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),c("tr",null,[D_t,c("td",null,[c("div",k_t,[G(c("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[283]||(e[283]=_=>r.configFile.xtts_speed=_),onChange:e[284]||(e[284]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),c("tr",null,[L_t,c("td",null,[c("div",P_t,[G(c("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[285]||(e[285]=_=>r.configFile.enable_text_splitting=_),onChange:e[286]||(e[286]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_text_splitting]])])])])])]),_:1}),Te(o,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",U_t,[c("tr",null,[F_t,c("td",null,[c("div",B_t,[G(c("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[287]||(e[287]=_=>r.configFile.openai_tts_key=_),onChange:e[288]||(e[288]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.openai_tts_key]])])])]),c("tr",null,[G_t,c("td",null,[c("div",V_t,[G(c("select",{"onUpdate:modelValue":e[289]||(e[289]=_=>r.configFile.openai_tts_model=_),onChange:e[290]||(e[290]=_=>s.settingsChanged=!0)},q_t,544),[[jt,r.configFile.openai_tts_model]])])])]),c("tr",null,[Y_t,c("td",null,[c("div",$_t,[G(c("select",{"onUpdate:modelValue":e[291]||(e[291]=_=>r.configFile.openai_tts_voice=_),onChange:e[292]||(e[292]=_=>s.settingsChanged=!0)},Z_t,544),[[jt,r.configFile.openai_tts_voice]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",J_t,[c("tr",null,[eht,c("td",null,[c("div",tht,[G(c("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[293]||(e[293]=_=>r.configFile.enable_sd_service=_),onChange:e[294]||(e[294]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_sd_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[295]||(e[295]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},iht)])]),c("tr",null,[sht,c("td",null,[c("div",rht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[296]||(e[296]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[297]||(e[297]=(..._)=>r.upgradeSDService&&r.upgradeSDService(..._))},"upgrade sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[298]||(e[298]=(..._)=>r.startSDService&&r.startSDService(..._))},"start sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[299]||(e[299]=(..._)=>r.showSD&&r.showSD(..._))},"show sd ui"),oht])]),c("td",null,[c("div",aht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[300]||(e[300]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service")])])]),c("tr",null,[lht,c("td",null,[c("div",cht,[G(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[301]||(e[301]=_=>r.configFile.sd_base_url=_),onChange:e[302]||(e[302]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.sd_base_url]])])])])])]),_:1}),Te(o,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",dht,[c("tr",null,[uht,c("td",null,[c("div",pht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[303]||(e[303]=(..._)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(..._))},"install diffusers service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[304]||(e[304]=(..._)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(..._))},"upgrade diffusers service"),_ht])])]),c("tr",null,[hht,c("td",null,[c("div",fht,[G(c("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[305]||(e[305]=_=>r.configFile.diffusers_model=_),onChange:e[306]||(e[306]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.diffusers_model]])])]),mht])])]),_:1}),Te(o,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",ght,[c("tr",null,[bht,c("td",null,[c("div",Eht,[G(c("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[307]||(e[307]=_=>r.configFile.midjourney_key=_),onChange:e[308]||(e[308]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.midjourney_key]])])])])])]),_:1}),Te(o,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",yht,[c("tr",null,[vht,c("td",null,[c("div",Sht,[G(c("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[309]||(e[309]=_=>r.configFile.dall_e_key=_),onChange:e[310]||(e[310]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.dall_e_key]])])])]),c("tr",null,[Tht,c("td",null,[c("div",xht,[G(c("select",{"onUpdate:modelValue":e[311]||(e[311]=_=>r.configFile.dall_e_generation_engine=_),onChange:e[312]||(e[312]=_=>s.settingsChanged=!0)},Rht,544),[[jt,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),Te(o,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Aht,[c("tr",null,[Nht,c("td",null,[c("div",Oht,[G(c("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[313]||(e[313]=_=>r.configFile.enable_comfyui_service=_),onChange:e[314]||(e[314]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_comfyui_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[315]||(e[315]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Mht)])]),c("tr",null,[Dht,c("td",null,[c("div",kht,[G(c("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[316]||(e[316]=_=>r.configFile.comfyui_model=_),onChange:e[317]||(e[317]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.comfyui_model]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[318]||(e[318]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Pht)])]),c("tr",null,[Uht,c("td",null,[c("div",Fht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[319]||(e[319]=(..._)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(..._))},"install comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[320]||(e[320]=(..._)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(..._))},"upgrade comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[321]||(e[321]=(..._)=>r.startComfyUIService&&r.startComfyUIService(..._))},"start comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[322]||(e[322]=(..._)=>r.showComfyui&&r.showComfyui(..._))},"show comfyui"),Bht])])]),c("tr",null,[Ght,c("td",null,[c("div",Vht,[G(c("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[323]||(e[323]=_=>r.configFile.comfyui_base_url=_),onChange:e[324]||(e[324]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",zht,[c("tr",null,[Hht,c("td",null,[c("div",qht,[G(c("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[325]||(e[325]=_=>r.configFile.enable_ollama_service=_),onChange:e[326]||(e[326]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_ollama_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[327]||(e[327]=_=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. +You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},P=n=>(yo("data-v-e1d3bae0"),n=n(),vo(),n),$rt={class:"container overflow-y-scroll flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Wrt={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Krt={key:0,class:"flex gap-3 flex-1 items-center duration-75"},jrt=P(()=>c("i",{"data-feather":"x"},null,-1)),Qrt=[jrt],Xrt=P(()=>c("i",{"data-feather":"check"},null,-1)),Zrt=[Xrt],Jrt={key:1,class:"flex gap-3 flex-1 items-center"},eot=P(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),tot=[eot],not=P(()=>c("i",{"data-feather":"list"},null,-1)),iot=[not],sot={class:"flex gap-3 flex-1 items-center justify-end"},rot=P(()=>c("i",{"data-feather":"trash-2"},null,-1)),oot=[rot],aot=P(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),lot=[aot],cot=P(()=>c("i",{"data-feather":"arrow-up-circle"},null,-1)),dot=P(()=>c("i",{"data-feather":"alert-circle"},null,-1)),uot={class:"flex gap-3 items-center"},pot={key:0,class:"flex gap-3 items-center"},_ot=P(()=>c("div",{class:"flex flex-row"},[c("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),c("i",{"data-feather":"check"})],-1)),hot=[_ot],fot=P(()=>c("div",{class:"flex flex-row"},[c("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),c("i",{"data-feather":"x"})],-1)),mot=[fot],got={key:1,role:"status"},bot=P(()=>c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),Eot=P(()=>c("span",{class:"sr-only"},"Loading...",-1)),yot={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},vot={class:"flex flex-row p-3"},Sot=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Tot=[Sot],xot=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Cot=[xot],wot=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Rot=P(()=>c("div",{class:"mr-2"},"|",-1)),Aot={class:"text-base font-semibold cursor-pointer select-none items-center"},Not={class:"flex gap-2 items-center"},Oot={key:0},Iot=["src"],Mot={class:"font-bold font-large text-lg"},Dot={key:1},kot={class:"flex gap-2 items-center"},Lot=["src"],Pot={class:"font-bold font-large text-lg"},Uot=P(()=>c("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Fot={class:"font-bold font-large text-lg"},Bot=P(()=>c("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Got={class:"font-bold font-large text-lg"},Vot={class:"mb-2"},zot=P(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[c("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),et(" CPU Ram usage: ")],-1)),Hot={class:"flex flex-col mx-2"},qot=P(()=>c("b",null,"Avaliable ram: ",-1)),Yot=P(()=>c("b",null,"Ram usage: ",-1)),$ot={class:"p-2"},Wot={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Kot={class:"mb-2"},jot=P(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),et(" Disk usage: ")],-1)),Qot={class:"flex flex-col mx-2"},Xot=P(()=>c("b",null,"Avaliable disk space: ",-1)),Zot=P(()=>c("b",null,"Disk usage: ",-1)),Jot={class:"p-2"},eat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},tat={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},nat=["src"],iat={class:"flex flex-col mx-2"},sat=P(()=>c("b",null,"Model: ",-1)),rat=P(()=>c("b",null,"Avaliable vram: ",-1)),oat=P(()=>c("b",null,"GPU usage: ",-1)),aat={class:"p-2"},lat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},cat={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},dat={class:"flex flex-row p-3"},uat=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),pat=[uat],_at=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),hat=[_at],fat=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),mat={class:"flex flex-col mb-2 px-3 pb-2"},gat={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},bat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),Eat={for:"logo-upload"},yat=["src"],vat={style:{width:"10%"}},Sat=P(()=>c("i",{"data-feather":"x"},null,-1)),Tat=[Sat],xat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),Cat={class:"text-center items-center"},wat={class:"flex flex-row"},Rat=P(()=>c("option",{value:"cpu"},"CPU",-1)),Aat=P(()=>c("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),Nat=P(()=>c("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Oat=P(()=>c("option",{value:"nvidia"},"NVIDIA",-1)),Iat=P(()=>c("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),Mat=P(()=>c("option",{value:"amd"},"AMD",-1)),Dat=P(()=>c("option",{value:"apple-intel"},"Apple Intel",-1)),kat=P(()=>c("option",{value:"apple-silicon"},"Apple Silicon",-1)),Lat=[Rat,Aat,Nat,Oat,Iat,Mat,Dat,kat],Pat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Uat={style:{width:"100%"}},Fat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),Bat={class:"flex flex-row"},Gat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),Vat={class:"flex flex-row"},zat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),Hat={class:"flex flex-row"},qat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),Yat={class:"flex flex-row"},$at=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),Wat={class:"flex flex-row"},Kat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),jat={class:"flex flex-row"},Qat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),Xat={class:"flex flex-row"},Zat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),Jat={class:"flex flex-row"},elt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),tlt={class:"flex flex-row"},nlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),ilt={class:"flex flex-row"},slt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},rlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),olt=P(()=>c("option",{value:"lollms"},"Lollms communication template",-1)),alt=P(()=>c("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1)),llt=P(()=>c("option",{value:"llama3"},"LLama3 communication template",-1)),clt=P(()=>c("option",{value:"mistral"},"Mistral communication template",-1)),dlt=[olt,alt,llt,clt],ult=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),plt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),_lt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),hlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),flt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),mlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),glt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),blt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),Elt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),ylt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),vlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),Slt=["innerHTML"],Tlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),Clt={style:{width:"100%"}},wlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),Rlt={style:{width:"100%"}},Alt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),Nlt={style:{width:"100%"}},Olt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),Ilt={style:{width:"100%"}},Mlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),Dlt={for:"avatar-upload"},klt=["src"],Llt={style:{width:"10%"}},Plt=P(()=>c("i",{"data-feather":"x"},null,-1)),Ult=[Plt],Flt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),Blt={class:"flex flex-row"},Glt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),Vlt={style:{width:"100%"}},zlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),Hlt={style:{width:"100%"}},qlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Ylt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),$lt={style:{width:"100%"}},Wlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),Klt={style:{width:"100%"}},jlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),Qlt={style:{width:"100%"}},Xlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),Zlt={style:{width:"100%"}},Jlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),ect={style:{width:"100%"}},tct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),ict={class:"flex flex-row"},sct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),rct={style:{width:"100%"}},oct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},act=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),lct={class:"flex flex-row"},cct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},dct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),uct={class:"flex flex-row"},pct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),_ct={class:"flex flex-row"},hct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),fct={class:"flex flex-row"},mct={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},gct={class:"flex flex-row p-3"},bct=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Ect=[bct],yct=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),vct=[yct],Sct=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1)),Tct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},xct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),Cct={style:{width:"100%"}},wct=["onUpdate:modelValue"],Rct=["onClick"],Act=["onClick"],Nct=["onClick"],Oct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),Ict=P(()=>c("option",{value:"bert"},"Bert Vectorizer",-1)),Mct=P(()=>c("option",{value:"tfidf"},"TFIDF Vectorizer",-1)),Dct=P(()=>c("option",{value:"word2vec"},"Word2Vec Vectorizer",-1)),kct=[Ict,Mct,Dct],Lct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),Pct=P(()=>c("option",{value:"bert-base-nli-mean-tokens"},"bert-base-nli-mean-tokens",-1)),Uct=[Pct],Fct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),Bct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),Gct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),Vct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),zct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),Hct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),qct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),Yct={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},$ct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),Wct={class:"flex flex-row"},Kct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),jct={class:"flex flex-row"},Qct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),Xct={class:"flex flex-row"},Zct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),Jct={class:"flex flex-row"},edt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),tdt={class:"flex flex-row"},ndt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),idt=P(()=>c("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),sdt=P(()=>c("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1)),rdt=P(()=>c("option",{value:"model_embedding"},"Model Embedding",-1)),odt=P(()=>c("option",{value:"sentense_transformer"},"Sentense Transformer",-1)),adt=[idt,sdt,rdt,odt],ldt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),cdt={style:{width:"100%"}},ddt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),udt=P(()=>c("option",{value:"PCA"},"PCA",-1)),pdt=P(()=>c("option",{value:"TSNE"},"TSNE",-1)),_dt=[udt,pdt],hdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),fdt={class:"flex flex-row"},mdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),gdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),bdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),Edt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ydt={class:"flex flex-row p-3"},vdt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Sdt=[vdt],Tdt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),xdt=[Tdt],Cdt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1)),wdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Rdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet search:")],-1)),Adt={class:"flex flex-row"},Ndt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),Odt={class:"flex flex-row"},Idt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),Mdt={class:"flex flex-row"},Ddt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),kdt={class:"flex flex-row"},Ldt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),Pdt={class:"flex flex-col"},Udt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),Fdt={class:"flex flex-col"},Bdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),Gdt={class:"flex flex-col"},Vdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),zdt={class:"flex flex-col"},Hdt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},qdt={class:"flex flex-row p-3"},Ydt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),$dt=[Ydt],Wdt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Kdt=[Wdt],jdt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1)),Qdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Xdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),Zdt={style:{width:"100%"}},Jdt=P(()=>c("option",{value:"None"},"None",-1)),eut=P(()=>c("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1)),tut=P(()=>c("option",{value:"xtts"},"XTTS",-1)),nut=P(()=>c("option",{value:"openai_tts"},"Open AI TTS",-1)),iut=[Jdt,eut,tut,nut],sut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),rut={style:{width:"100%"}},out=P(()=>c("option",{value:"None"},"None",-1)),aut=P(()=>c("option",{value:"whisper"},"Whisper",-1)),lut=P(()=>c("option",{value:"openai_whisper"},"Open AI Whisper",-1)),cut=[out,aut,lut],dut=P(()=>c("tr",null,null,-1)),uut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),put={style:{width:"100%"}},_ut=P(()=>c("option",{value:"None"},"None",-1)),hut=P(()=>c("option",{value:"diffusers"},"Diffusers",-1)),fut=P(()=>c("option",{value:"autosd"},"AUTO1111's SD",-1)),mut=P(()=>c("option",{value:"dall-e"},"Open AI DALL-E",-1)),gut=P(()=>c("option",{value:"midjourney"},"Midjourney",-1)),but=P(()=>c("option",{value:"comfyui"},"Comfyui",-1)),Eut=P(()=>c("option",{value:"fooocus"},"Fooocus",-1)),yut=[_ut,hut,fut,mut,gut,but,Eut],vut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),Sut={style:{width:"100%"}},Tut=P(()=>c("option",{value:"None"},"None",-1)),xut=P(()=>c("option",{value:"musicgen"},"Music Gen",-1)),Cut=[Tut,xut],wut={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Rut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),Aut={class:"flex flex-row"},Nut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),Out={class:"flex flex-row"},Iut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),Mut={class:"flex flex-row"},Dut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),kut={class:"flex flex-row"},Lut={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Put=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),Uut={style:{width:"100%"}},Fut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),But={style:{width:"100%"}},Gut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),Vut={style:{width:"100%"}},zut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),Hut={style:{width:"100%"}},qut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),Yut={style:{width:"100%"}},$ut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),Wut={style:{width:"100%"}},Kut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),jut={style:{width:"100%"}},Qut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),Xut={class:"flex flex-row"},Zut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),Jut={class:"flex flex-row"},ept={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},tpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),npt={style:{width:"100%"}},ipt=["value"],spt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),rpt={style:{width:"100%"}},opt=["value"],apt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},lpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),cpt={style:{width:"100%"}},dpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys (coma separated, if empty, anyone can use the server without authentication):")],-1)),upt={style:{width:"100%"}},ppt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),_pt={style:{width:"100%"}},hpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode (deactivates all code exectuion to protect the PC from attacks):")],-1)),fpt={style:{width:"100%"}},mpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),gpt={style:{width:"100%"}},bpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),Ept={style:{width:"100%"}},ypt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),vpt={style:{width:"100%"}},Spt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),Tpt={style:{width:"100%"}},xpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Cpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),wpt={class:"flex flex-row"},Rpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),Apt={class:"flex flex-row"},Npt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),Opt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),Ipt=["value"],Mpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Dpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),kpt={class:"flex flex-row"},Lpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Ppt={class:"flex flex-row"},Upt=["value"],Fpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Bpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),Gpt={class:"flex flex-row"},Vpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),zpt={class:"flex flex-row"},Hpt=["value"],qpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Ypt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),$pt={class:"flex flex-row"},Wpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),Kpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),jpt=["value"],Qpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Xpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_enable",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),Zpt={class:"flex flex-row"},Jpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xTTS service:")],-1)),e_t={class:"flex flex-row"},t_t=["href"],n_t=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/xtts-api-server/blob/main/LICENSE",target:"_blank"},"licence",-1)),i_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),s_t={class:"flex flex-row"},r_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),o_t={class:"flex flex-row"},a_t=["disabled"],l_t=["value"],c_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),d_t={class:"flex flex-row"},u_t=["disabled"],p_t=["value"],__t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_use_deepspeed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable deepspeed:")],-1)),h_t={class:"flex flex-row"},f_t=["disabled"],m_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_use_streaming_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable streaming mode:")],-1)),g_t={class:"flex flex-row"},b_t=["disabled"],E_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),y_t={class:"flex flex-row"},v_t=["disabled"],S_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),T_t={class:"flex flex-row"},x_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),C_t={class:"flex flex-row"},w_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),R_t={class:"flex flex-row"},A_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),N_t={class:"flex flex-row"},O_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),I_t={class:"flex flex-row"},M_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),D_t={class:"flex flex-row"},k_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),L_t={class:"flex flex-row"},P_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),U_t={class:"flex flex-row"},F_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},B_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),G_t={class:"flex flex-row"},V_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),z_t={class:"flex flex-row"},H_t=P(()=>c("option",null," tts-1 ",-1)),q_t=P(()=>c("option",null," tts-2 ",-1)),Y_t=[H_t,q_t],$_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),W_t={class:"flex flex-row"},K_t=P(()=>c("option",null," alloy ",-1)),j_t=P(()=>c("option",null," echo ",-1)),Q_t=P(()=>c("option",null," fable ",-1)),X_t=P(()=>c("option",null," nova ",-1)),Z_t=P(()=>c("option",null," shimmer ",-1)),J_t=[K_t,j_t,Q_t,X_t,Z_t],eht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},tht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),nht={class:"flex flex-row"},iht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),sht=[iht],rht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),oht={class:"flex flex-row"},aht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1)),lht={class:"flex flex-row"},cht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),dht={class:"flex flex-row"},uht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},pht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),_ht={class:"flex flex-row"},hht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1)),fht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),mht={class:"flex flex-row"},ght=P(()=>c("td",null,null,-1)),bht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Eht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),yht={class:"flex flex-row"},vht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Sht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),Tht={class:"flex flex-row"},xht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),Cht={class:"flex flex-row"},wht=P(()=>c("option",null," dall-e-2 ",-1)),Rht=P(()=>c("option",null," dall-e-3 ",-1)),Aht=[wht,Rht],Nht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Oht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),Iht={class:"flex flex-row"},Mht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Dht=[Mht],kht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),Lht={class:"flex flex-row"},Pht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Uht=[Pht],Fht=P(()=>c("td",{style:{"min-width":"200px"}},null,-1)),Bht={class:"flex flex-row"},Ght=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1)),Vht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),zht={class:"flex flex-row"},Hht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},qht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),Yht={class:"flex flex-row"},$ht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Wht=[$ht],Kht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),jht={class:"flex flex-row"},Qht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),Xht={class:"flex flex-row"},Zht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Jht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),eft={class:"flex flex-row"},tft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),nft=[tft],ift=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),sft={class:"flex flex-row"},rft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),oft={class:"flex flex-row"},aft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),lft={class:"flex flex-col align-bottom"},cft={class:"relative"},dft=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),uft={class:"absolute right-0"},pft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),_ft={class:"flex flex-row"},hft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),fft={class:"flex flex-row"},mft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),gft={class:"flex flex-row"},bft={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Eft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),yft={class:"flex flex-row"},vft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Sft=[vft],Tft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),xft={class:"flex flex-row"},Cft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),wft={class:"flex flex-row"},Rft={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Aft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Motion Ctrl service:")],-1)),Nft={class:"flex flex-row"},Oft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Ift=[Oft],Mft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Motion Ctrl service:")],-1)),Dft={class:"flex flex-row"},kft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),Lft={class:"flex flex-row"},Pft={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Uft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_enable",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),Fft={class:"flex flex-row"},Bft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),Gft={class:"flex flex-row"},Vft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),zft={class:"flex flex-row"},Hft={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},qft={class:"flex flex-row p-3"},Yft=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),$ft=[Yft],Wft=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Kft=[Wft],jft=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Qft={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Xft=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Zft={key:1,class:"mr-2"},Jft={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},emt={class:"flex gap-1 items-center"},tmt=["src"],nmt={class:"font-bold font-large text-lg line-clamp-1"},imt={key:0,class:"mb-2"},smt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},rmt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),omt=[rmt],amt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),lmt=[amt],cmt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},dmt={class:"flex flex-row p-3"},umt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),pmt=[umt],_mt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),hmt=[_mt],fmt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),mmt={class:"flex flex-row items-center"},gmt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},bmt=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Emt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},ymt=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),vmt={key:2,class:"mr-2"},Smt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Tmt={class:"flex gap-1 items-center"},xmt=["src"],Cmt={class:"font-bold font-large text-lg line-clamp-1"},wmt={class:"mx-2 mb-4"},Rmt={class:"relative"},Amt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Nmt={key:0},Omt=P(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Imt=[Omt],Mmt={key:1},Dmt=P(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),kmt=[Dmt],Lmt=P(()=>c("label",{for:"only_installed"},"Show only installed models",-1)),Pmt=P(()=>c("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),Umt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Fmt=P(()=>c("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),Bmt=P(()=>c("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Gmt=[Fmt,Bmt],Vmt={key:1,class:"mb-2"},zmt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Hmt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),qmt=[Hmt],Ymt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),$mt=[Ymt],Wmt={class:"mb-2"},Kmt={class:"p-2"},jmt={class:"mb-3"},Qmt=P(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),Xmt={key:0},Zmt={class:"mb-3"},Jmt=P(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),egt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},tgt=P(()=>c("div",{role:"status",class:"justify-center"},null,-1)),ngt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},igt={class:"w-full p-2"},sgt={class:"flex justify-between mb-1"},rgt=Vb(' Downloading Loading...',1),ogt={class:"text-sm font-medium text-blue-700 dark:text-white"},agt=["title"],lgt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},cgt={class:"flex justify-between mb-1"},dgt={class:"text-base font-medium text-blue-700 dark:text-white"},ugt={class:"text-sm font-medium text-blue-700 dark:text-white"},pgt={class:"flex flex-grow"},_gt={class:"flex flex-row flex-grow gap-3"},hgt={class:"p-2 text-center grow"},fgt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},mgt={class:"flex flex-row p-3 items-center"},ggt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),bgt=[ggt],Egt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),ygt=[Egt],vgt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),Sgt={key:0,class:"mr-2"},Tgt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},xgt={key:1,class:"mr-2"},Cgt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},wgt={key:0,class:"flex -space-x-4 items-center"},Rgt={class:"group items-center flex flex-row"},Agt=["onClick"],Ngt=["src","title"],Ogt=["onClick"],Igt=P(()=>c("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[c("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),Mgt=[Igt],Dgt=P(()=>c("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),kgt=[Dgt],Lgt={class:"mx-2 mb-4"},Pgt=P(()=>c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Ugt={class:"relative"},Fgt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Bgt={key:0},Ggt=P(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Vgt=[Ggt],zgt={key:1},Hgt=P(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),qgt=[Hgt],Ygt={key:0,class:"mx-2 mb-4"},$gt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Wgt=["selected"],Kgt={key:0,class:"mb-2"},jgt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Qgt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Xgt=[Qgt],Zgt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Jgt=[Zgt],ebt={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},tbt={class:"flex flex-row"},nbt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),ibt=[nbt],sbt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),rbt=[sbt],obt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),abt={class:"m-2"},lbt={class:"flex flex-row gap-2 items-center"},cbt=P(()=>c("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),dbt={class:"m-2"},ubt=P(()=>c("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),pbt={class:"m-2"},_bt={class:"flex flex-col align-bottom"},hbt={class:"relative"},fbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),mbt={class:"absolute right-0"},gbt={class:"m-2"},bbt={class:"flex flex-col align-bottom"},Ebt={class:"relative"},ybt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),vbt={class:"absolute right-0"},Sbt={class:"m-2"},Tbt={class:"flex flex-col align-bottom"},xbt={class:"relative"},Cbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),wbt={class:"absolute right-0"},Rbt={class:"m-2"},Abt={class:"flex flex-col align-bottom"},Nbt={class:"relative"},Obt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),Ibt={class:"absolute right-0"},Mbt={class:"m-2"},Dbt={class:"flex flex-col align-bottom"},kbt={class:"relative"},Lbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Pbt={class:"absolute right-0"},Ubt={class:"m-2"},Fbt={class:"flex flex-col align-bottom"},Bbt={class:"relative"},Gbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Vbt={class:"absolute right-0"};function zbt(n,e,t,i,s,r){const o=mt("Card"),a=mt("BindingEntry"),l=mt("RadioOptions"),u=mt("model-entry"),d=mt("personality-entry"),h=mt("AddModelDialog"),f=mt("ChoiceDialog");return w(),A(Ye,null,[c("div",$rt,[c("div",Wrt,[s.showConfirmation?(w(),A("div",Krt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=be(_=>s.showConfirmation=!1,["stop"]))},Qrt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=be(_=>r.save_configuration(),["stop"]))},Zrt)])):V("",!0),s.showConfirmation?V("",!0):(w(),A("div",Jrt,[c("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=_=>r.reset_configuration())},tot),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=be(_=>s.all_collapsed=!s.all_collapsed,["stop"]))},iot)])),c("div",sot,[c("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=_=>r.api_get_req("clear_uploads").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},oot),c("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=_=>r.api_post_req("restart_program").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},lot),s.has_updates?(w(),A("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=_=>r.api_post_req("update_software").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[cot,dot,et(" = ")])):V("",!0),c("div",uot,[s.settingsChanged?(w(),A("div",pot,[s.isLoading?V("",!0):(w(),A("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=be(_=>r.applyConfiguration(),["stop"]))},hot)),s.isLoading?V("",!0):(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=be(_=>r.cancelConfiguration(),["stop"]))},mot))])):V("",!0),s.isLoading?(w(),A("div",got,[c("p",null,he(s.loading_text),1),bot,Eot])):V("",!0)])])]),c("div",{class:He(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[c("div",yot,[c("div",vot,[c("button",{onClick:e[9]||(e[9]=be(_=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Tot,512),[[Mt,s.sc_collapsed]]),G(c("div",null,Cot,512),[[Mt,!s.sc_collapsed]]),wot,Rot,c("div",Aot,[c("div",Not,[c("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(w(),A("div",Oot,[(w(!0),A(Ye,null,lt(r.vramUsage.gpus,_=>(w(),A("div",{class:"flex gap-2 items-center",key:_},[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Iot),c("h3",Mot,[c("div",null,he(r.computedFileSize(_.used_vram))+" / "+he(r.computedFileSize(_.total_vram))+" ("+he(_.percentage)+"%) ",1)])]))),128))])):V("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(w(),A("div",Dot,[c("div",kot,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Lot),c("h3",Pot,[c("div",null,he(r.vramUsage.gpus.length)+"x ",1)])])])):V("",!0)]),Uot,c("h3",Fot,[c("div",null,he(r.ram_usage)+" / "+he(r.ram_total_space)+" ("+he(r.ram_percent_usage)+"%)",1)]),Bot,c("h3",Got,[c("div",null,he(r.disk_binding_models_usage)+" / "+he(r.disk_total_space)+" ("+he(r.disk_percent_usage)+"%)",1)])])])])]),c("div",{class:He([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Vot,[zot,c("div",Hot,[c("div",null,[qot,et(he(r.ram_available_space),1)]),c("div",null,[Yot,et(" "+he(r.ram_usage)+" / "+he(r.ram_total_space)+" ("+he(r.ram_percent_usage)+")% ",1)])]),c("div",$ot,[c("div",Wot,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+r.ram_percent_usage+"%;")},null,4)])])]),c("div",Kot,[jot,c("div",Qot,[c("div",null,[Xot,et(he(r.disk_available_space),1)]),c("div",null,[Zot,et(" "+he(r.disk_binding_models_usage)+" / "+he(r.disk_total_space)+" ("+he(r.disk_percent_usage)+"%)",1)])]),c("div",Jot,[c("div",eat,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(w(!0),A(Ye,null,lt(r.vramUsage.gpus,_=>(w(),A("div",{class:"mb-2",key:_},[c("label",tat,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,nat),et(" GPU usage: ")]),c("div",iat,[c("div",null,[sat,et(he(_.gpu_model),1)]),c("div",null,[rat,et(he(this.computedFileSize(_.available_space)),1)]),c("div",null,[oat,et(" "+he(this.computedFileSize(_.used_vram))+" / "+he(this.computedFileSize(_.total_vram))+" ("+he(_.percentage)+"%)",1)])]),c("div",aat,[c("div",lat,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+_.percentage+"%;")},null,4)])])]))),128))],2)]),c("div",cat,[c("div",dat,[c("button",{onClick:e[10]||(e[10]=be(_=>s.minconf_collapsed=!s.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,pat,512),[[Mt,s.minconf_collapsed]]),G(c("div",null,hat,512),[[Mt,!s.minconf_collapsed]]),fat])]),c("div",{class:He([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",mat,[Te(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",gat,[c("tr",null,[bat,c("td",null,[c("label",Eat,[c("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,yat)]),c("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[11]||(e[11]=(..._)=>r.uploadLogo&&r.uploadLogo(..._))},null,32)]),c("td",vat,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[12]||(e[12]=be(_=>r.resetLogo(),["stop"]))},Tat)])]),c("tr",null,[xat,c("td",Cat,[c("div",wat,[G(c("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[13]||(e[13]=_=>r.configFile.hardware_mode=_),onChange:e[14]||(e[14]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},Lat,544),[[jt,r.configFile.hardware_mode]])])])]),c("tr",null,[Pat,c("td",Uat,[G(c("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[15]||(e[15]=_=>r.configFile.discussion_db_name=_),onChange:e[16]||(e[16]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.discussion_db_name]])])]),c("tr",null,[Fat,c("td",null,[c("div",Bat,[G(c("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[17]||(e[17]=_=>r.configFile.copy_to_clipboard_add_all_details=_),onChange:e[18]||(e[18]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.copy_to_clipboard_add_all_details]])])])]),c("tr",null,[Gat,c("td",null,[c("div",Vat,[G(c("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[19]||(e[19]=_=>r.configFile.auto_show_browser=_),onChange:e[20]||(e[20]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_show_browser]])])])]),c("tr",null,[zat,c("td",null,[c("div",Hat,[G(c("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[21]||(e[21]=_=>r.configFile.debug=_),onChange:e[22]||(e[22]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.debug]])])])]),c("tr",null,[qat,c("td",null,[c("div",Yat,[G(c("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[23]||(e[23]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[24]||(e[24]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.debug_show_final_full_prompt]])])])]),c("tr",null,[$at,c("td",null,[c("div",Wat,[G(c("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[25]||(e[25]=_=>r.configFile.debug_show_chunks=_),onChange:e[26]||(e[26]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.debug_show_chunks]])])])]),c("tr",null,[Kat,c("td",null,[c("div",jat,[G(c("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[27]||(e[27]=_=>r.configFile.debug_log_file_path=_),onChange:e[28]||(e[28]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.debug_log_file_path]])])])]),c("tr",null,[Qat,c("td",null,[c("div",Xat,[G(c("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[29]||(e[29]=_=>r.configFile.show_news_panel=_),onChange:e[30]||(e[30]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.show_news_panel]])])])]),c("tr",null,[Zat,c("td",null,[c("div",Jat,[G(c("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[31]||(e[31]=_=>r.configFile.auto_save=_),onChange:e[32]||(e[32]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_save]])])])]),c("tr",null,[elt,c("td",null,[c("div",tlt,[G(c("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[33]||(e[33]=_=>r.configFile.auto_update=_),onChange:e[34]||(e[34]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_update]])])])]),c("tr",null,[nlt,c("td",null,[c("div",ilt,[G(c("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[35]||(e[35]=_=>r.configFile.auto_title=_),onChange:e[36]||(e[36]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_title]])])])])])]),_:1}),Te(o,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",slt,[c("tr",null,[rlt,c("td",null,[c("select",{onChange:e[37]||(e[37]=(..._)=>r.handleTemplateSelection&&r.handleTemplateSelection(..._))},dlt,32)])]),c("tr",null,[ult,c("td",null,[G(c("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[38]||(e[38]=_=>r.configFile.start_header_id_template=_),onChange:e[39]||(e[39]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_header_id_template]])])]),c("tr",null,[plt,c("td",null,[G(c("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[40]||(e[40]=_=>r.configFile.end_header_id_template=_),onChange:e[41]||(e[41]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_header_id_template]])])]),c("tr",null,[_lt,c("td",null,[G(c("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[42]||(e[42]=_=>r.configFile.start_user_header_id_template=_),onChange:e[43]||(e[43]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_user_header_id_template]])])]),c("tr",null,[hlt,c("td",null,[G(c("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[44]||(e[44]=_=>r.configFile.end_user_header_id_template=_),onChange:e[45]||(e[45]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_user_header_id_template]])])]),c("tr",null,[flt,c("td",null,[G(c("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[46]||(e[46]=_=>r.configFile.end_user_message_id_template=_),onChange:e[47]||(e[47]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_user_message_id_template]])])]),c("tr",null,[mlt,c("td",null,[G(c("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[48]||(e[48]=_=>r.configFile.start_ai_header_id_template=_),onChange:e[49]||(e[49]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_ai_header_id_template]])])]),c("tr",null,[glt,c("td",null,[G(c("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[50]||(e[50]=_=>r.configFile.end_ai_header_id_template=_),onChange:e[51]||(e[51]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_ai_header_id_template]])])]),c("tr",null,[blt,c("td",null,[G(c("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[52]||(e[52]=_=>r.configFile.end_ai_message_id_template=_),onChange:e[53]||(e[53]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_ai_message_id_template]])])]),c("tr",null,[Elt,c("td",null,[G(c("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[54]||(e[54]=_=>r.configFile.separator_template=_),onChange:e[55]||(e[55]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.separator_template]])])]),c("tr",null,[ylt,c("td",null,[G(c("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[56]||(e[56]=_=>r.configFile.system_message_template=_),onChange:e[57]||(e[57]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.system_message_template]])])]),c("tr",null,[vlt,c("td",null,[c("div",{innerHTML:r.full_template},null,8,Slt)])])])]),_:1}),Te(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tlt,[c("tr",null,[xlt,c("td",Clt,[G(c("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[58]||(e[58]=_=>r.configFile.user_name=_),onChange:e[59]||(e[59]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.user_name]])])]),c("tr",null,[wlt,c("td",Rlt,[G(c("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[60]||(e[60]=_=>r.configFile.user_description=_),onChange:e[61]||(e[61]=_=>s.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.user_description]])])]),c("tr",null,[Alt,c("td",Nlt,[G(c("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[62]||(e[62]=_=>r.configFile.use_user_informations_in_discussion=_),onChange:e[63]||(e[63]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_user_informations_in_discussion]])])]),c("tr",null,[Olt,c("td",Ilt,[G(c("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[64]||(e[64]=_=>r.configFile.use_model_name_in_discussions=_),onChange:e[65]||(e[65]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_model_name_in_discussions]])])]),c("tr",null,[Mlt,c("td",null,[c("label",Dlt,[c("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,klt)]),c("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[66]||(e[66]=(..._)=>r.uploadAvatar&&r.uploadAvatar(..._))},null,32)]),c("td",Llt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[67]||(e[67]=be(_=>r.resetAvatar(),["stop"]))},Ult)])]),c("tr",null,[Flt,c("td",null,[c("div",Blt,[G(c("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[68]||(e[68]=_=>r.configFile.use_user_name_in_discussions=_),onChange:e[69]||(e[69]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_user_name_in_discussions]])])])]),c("tr",null,[Glt,c("td",Vlt,[G(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[70]||(e[70]=_=>r.configFile.max_n_predict=_),onChange:e[71]||(e[71]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.max_n_predict]])])]),c("tr",null,[zlt,c("td",Hlt,[G(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[72]||(e[72]=_=>r.configFile.max_n_predict=_),onChange:e[73]||(e[73]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.max_n_predict]])])])])]),_:1}),Te(o,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",qlt,[c("tr",null,[Ylt,c("td",$lt,[G(c("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[74]||(e[74]=_=>r.configFile.turn_on_code_execution=_),onChange:e[75]||(e[75]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_code_execution]])])]),c("tr",null,[Wlt,c("td",Klt,[G(c("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[76]||(e[76]=_=>r.configFile.turn_on_code_validation=_),onChange:e[77]||(e[77]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_code_validation]])])]),c("tr",null,[jlt,c("td",Qlt,[G(c("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[78]||(e[78]=_=>r.configFile.turn_on_setting_update_validation=_),onChange:e[79]||(e[79]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_setting_update_validation]])])]),c("tr",null,[Xlt,c("td",Zlt,[G(c("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[80]||(e[80]=_=>r.configFile.turn_on_open_file_validation=_),onChange:e[81]||(e[81]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_open_file_validation]])])]),c("tr",null,[Jlt,c("td",ect,[G(c("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[82]||(e[82]=_=>r.configFile.turn_on_send_file_validation=_),onChange:e[83]||(e[83]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),Te(o,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",tct,[c("tr",null,[nct,c("td",null,[c("div",ict,[G(c("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[84]||(e[84]=_=>r.configFile.activate_skills_lib=_),onChange:e[85]||(e[85]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_skills_lib]])])])]),c("tr",null,[sct,c("td",rct,[G(c("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[86]||(e[86]=_=>r.configFile.skills_lib_database_name=_),onChange:e[87]||(e[87]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.skills_lib_database_name]])])])])]),_:1}),Te(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",oct,[c("tr",null,[act,c("td",null,[c("div",lct,[G(c("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[88]||(e[88]=_=>r.configFile.pdf_latex_path=_),onChange:e[89]||(e[89]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.pdf_latex_path]])])])])])]),_:1}),Te(o,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",cct,[c("tr",null,[dct,c("td",null,[c("div",uct,[G(c("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[90]||(e[90]=_=>r.configFile.positive_boost=_),onChange:e[91]||(e[91]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.positive_boost]])])])]),c("tr",null,[pct,c("td",null,[c("div",_ct,[G(c("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[92]||(e[92]=_=>r.configFile.negative_boost=_),onChange:e[93]||(e[93]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.negative_boost]])])])]),c("tr",null,[hct,c("td",null,[c("div",fct,[G(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[94]||(e[94]=_=>r.configFile.fun_mode=_),onChange:e[95]||(e[95]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),c("div",mct,[c("div",gct,[c("button",{onClick:e[96]||(e[96]=be(_=>s.data_conf_collapsed=!s.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Ect,512),[[Mt,s.data_conf_collapsed]]),G(c("div",null,vct,512),[[Mt,!s.data_conf_collapsed]]),Sct])]),c("div",{class:He([{hidden:s.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tct,[c("tr",null,[xct,c("td",Cct,[(w(!0),A(Ye,null,lt(r.configFile.rag_databases,(_,m)=>(w(),A("div",{key:m,class:"flex items-center mb-2"},[G(c("input",{type:"text","onUpdate:modelValue":E=>r.configFile.rag_databases[m]=E,onChange:e[97]||(e[97]=E=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,wct),[[we,r.configFile.rag_databases[m]]]),c("button",{onClick:E=>r.vectorize_folder(m),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,Rct),c("button",{onClick:E=>r.select_folder(m),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,Act),c("button",{onClick:E=>r.removeDataSource(m),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,Nct)]))),128)),c("button",{onClick:e[98]||(e[98]=(..._)=>r.addDataSource&&r.addDataSource(..._)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),c("tr",null,[Oct,c("td",null,[G(c("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[99]||(e[99]=_=>r.configFile.rag_vectorizer=_),onChange:e[100]||(e[100]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},kct,544),[[jt,r.configFile.rag_vectorizer]])])]),c("tr",null,[Lct,c("td",null,[G(c("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[101]||(e[101]=_=>r.configFile.rag_vectorizer_model=_),onChange:e[102]||(e[102]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Uct,544),[[jt,r.configFile.rag_vectorizer_model]])])]),c("tr",null,[Fct,c("td",null,[G(c("input",{id:"rag_chunk_size","onUpdate:modelValue":e[103]||(e[103]=_=>r.configFile.rag_chunk_size=_),onChange:e[104]||(e[104]=_=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.rag_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[105]||(e[105]=_=>r.configFile.rag_chunk_size=_),type:"number",onChange:e[106]||(e[106]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_chunk_size]])])]),c("tr",null,[Bct,c("td",null,[G(c("input",{id:"rag_overlap","onUpdate:modelValue":e[107]||(e[107]=_=>r.configFile.rag_overlap=_),onChange:e[108]||(e[108]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.rag_overlap]]),G(c("input",{"onUpdate:modelValue":e[109]||(e[109]=_=>r.configFile.rag_overlap=_),type:"number",onChange:e[110]||(e[110]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_overlap]])])]),c("tr",null,[Gct,c("td",null,[G(c("input",{id:"rag_n_chunks","onUpdate:modelValue":e[111]||(e[111]=_=>r.configFile.rag_n_chunks=_),onChange:e[112]||(e[112]=_=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.rag_n_chunks]]),G(c("input",{"onUpdate:modelValue":e[113]||(e[113]=_=>r.configFile.rag_n_chunks=_),type:"number",onChange:e[114]||(e[114]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_n_chunks]])])]),c("tr",null,[Vct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[115]||(e[115]=_=>r.configFile.rag_clean_chunks=_),type:"checkbox",onChange:e[116]||(e[116]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_clean_chunks]])])]),c("tr",null,[zct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[117]||(e[117]=_=>r.configFile.rag_follow_subfolders=_),type:"checkbox",onChange:e[118]||(e[118]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_follow_subfolders]])])]),c("tr",null,[Hct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[119]||(e[119]=_=>r.configFile.rag_check_new_files_at_startup=_),type:"checkbox",onChange:e[120]||(e[120]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_check_new_files_at_startup]])])]),c("tr",null,[qct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[121]||(e[121]=_=>r.configFile.rag_preprocess_chunks=_),type:"checkbox",onChange:e[122]||(e[122]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.rag_preprocess_chunks]])])])])]),_:1}),Te(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Yct,[c("tr",null,[$ct,c("td",null,[c("div",Wct,[G(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[123]||(e[123]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[124]||(e[124]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[Kct,c("td",null,[c("div",jct,[G(c("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[125]||(e[125]=_=>r.configFile.data_vectorization_visualize_on_vectorization=_),onChange:e[126]||(e[126]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),c("tr",null,[Qct,c("td",null,[c("div",Xct,[G(c("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[127]||(e[127]=_=>r.configFile.data_vectorization_build_keys_words=_),onChange:e[128]||(e[128]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_build_keys_words]])])])]),c("tr",null,[Zct,c("td",null,[c("div",Jct,[G(c("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[129]||(e[129]=_=>r.configFile.data_vectorization_force_first_chunk=_),onChange:e[130]||(e[130]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_force_first_chunk]])])])]),c("tr",null,[edt,c("td",null,[c("div",tdt,[G(c("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[131]||(e[131]=_=>r.configFile.data_vectorization_put_chunk_informations_into_context=_),onChange:e[132]||(e[132]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),c("tr",null,[ndt,c("td",null,[G(c("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[133]||(e[133]=_=>r.configFile.data_vectorization_method=_),onChange:e[134]||(e[134]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},adt,544),[[jt,r.configFile.data_vectorization_method]])])]),c("tr",null,[ldt,c("td",cdt,[G(c("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[135]||(e[135]=_=>r.configFile.data_vectorization_sentense_transformer_model=_),onChange:e[136]||(e[136]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_sentense_transformer_model]])])]),c("tr",null,[ddt,c("td",null,[G(c("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[137]||(e[137]=_=>r.configFile.data_visualization_method=_),onChange:e[138]||(e[138]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},_dt,544),[[jt,r.configFile.data_visualization_method]])])]),c("tr",null,[hdt,c("td",null,[c("div",fdt,[G(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[139]||(e[139]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[140]||(e[140]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[mdt,c("td",null,[G(c("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[141]||(e[141]=_=>r.configFile.data_vectorization_chunk_size=_),onChange:e[142]||(e[142]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.data_vectorization_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[143]||(e[143]=_=>r.configFile.data_vectorization_chunk_size=_),type:"number",onChange:e[144]||(e[144]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_chunk_size]])])]),c("tr",null,[gdt,c("td",null,[G(c("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[145]||(e[145]=_=>r.configFile.data_vectorization_overlap_size=_),onChange:e[146]||(e[146]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.data_vectorization_overlap_size]]),G(c("input",{"onUpdate:modelValue":e[147]||(e[147]=_=>r.configFile.data_vectorization_overlap_size=_),type:"number",onChange:e[148]||(e[148]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_overlap_size]])])]),c("tr",null,[bdt,c("td",null,[G(c("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[149]||(e[149]=_=>r.configFile.data_vectorization_nb_chunks=_),onChange:e[150]||(e[150]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.data_vectorization_nb_chunks]]),G(c("input",{"onUpdate:modelValue":e[151]||(e[151]=_=>r.configFile.data_vectorization_nb_chunks=_),type:"number",onChange:e[152]||(e[152]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),c("div",Edt,[c("div",ydt,[c("button",{onClick:e[153]||(e[153]=be(_=>s.internet_conf_collapsed=!s.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Sdt,512),[[Mt,s.internet_conf_collapsed]]),G(c("div",null,xdt,512),[[Mt,!s.internet_conf_collapsed]]),Cdt])]),c("div",{class:He([{hidden:s.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",wdt,[c("tr",null,[Rdt,c("td",null,[c("div",Adt,[G(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[154]||(e[154]=_=>r.configFile.activate_internet_search=_),onChange:e[155]||(e[155]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_internet_search]])])])]),c("tr",null,[Ndt,c("td",null,[c("div",Odt,[G(c("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[156]||(e[156]=_=>r.configFile.activate_internet_pages_judgement=_),onChange:e[157]||(e[157]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_internet_pages_judgement]])])])]),c("tr",null,[Idt,c("td",null,[c("div",Mdt,[G(c("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[158]||(e[158]=_=>r.configFile.internet_quick_search=_),onChange:e[159]||(e[159]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.internet_quick_search]])])])]),c("tr",null,[Ddt,c("td",null,[c("div",kdt,[G(c("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[160]||(e[160]=_=>r.configFile.internet_activate_search_decision=_),onChange:e[161]||(e[161]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.internet_activate_search_decision]])])])]),c("tr",null,[Ldt,c("td",null,[c("div",Pdt,[G(c("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=_=>r.configFile.internet_vectorization_chunk_size=_),onChange:e[163]||(e[163]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_vectorization_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[164]||(e[164]=_=>r.configFile.internet_vectorization_chunk_size=_),type:"number",onChange:e[165]||(e[165]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_chunk_size]])])])]),c("tr",null,[Udt,c("td",null,[c("div",Fdt,[G(c("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=_=>r.configFile.internet_vectorization_overlap_size=_),onChange:e[167]||(e[167]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_vectorization_overlap_size]]),G(c("input",{"onUpdate:modelValue":e[168]||(e[168]=_=>r.configFile.internet_vectorization_overlap_size=_),type:"number",onChange:e[169]||(e[169]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_overlap_size]])])])]),c("tr",null,[Bdt,c("td",null,[c("div",Gdt,[G(c("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=_=>r.configFile.internet_vectorization_nb_chunks=_),onChange:e[171]||(e[171]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_vectorization_nb_chunks]]),G(c("input",{"onUpdate:modelValue":e[172]||(e[172]=_=>r.configFile.internet_vectorization_nb_chunks=_),type:"number",onChange:e[173]||(e[173]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_nb_chunks]])])])]),c("tr",null,[Vdt,c("td",null,[c("div",zdt,[G(c("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[174]||(e[174]=_=>r.configFile.internet_nb_search_pages=_),onChange:e[175]||(e[175]=_=>s.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.internet_nb_search_pages]]),G(c("input",{"onUpdate:modelValue":e[176]||(e[176]=_=>r.configFile.internet_nb_search_pages=_),type:"number",onChange:e[177]||(e[177]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),c("div",Hdt,[c("div",qdt,[c("button",{onClick:e[178]||(e[178]=be(_=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,$dt,512),[[Mt,s.servers_conf_collapsed]]),G(c("div",null,Kdt,512),[[Mt,!s.servers_conf_collapsed]]),jdt])]),c("div",{class:He([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Qdt,[c("tr",null,[Xdt,c("td",Zdt,[G(c("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[179]||(e[179]=_=>r.configFile.active_tts_service=_),onChange:e[180]||(e[180]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},iut,544),[[jt,r.configFile.active_tts_service]])])]),c("tr",null,[sut,c("td",rut,[G(c("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[181]||(e[181]=_=>r.configFile.active_stt_service=_),onChange:e[182]||(e[182]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},cut,544),[[jt,r.configFile.active_stt_service]])])]),dut,c("tr",null,[uut,c("td",put,[G(c("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[183]||(e[183]=_=>r.configFile.active_tti_service=_),onChange:e[184]||(e[184]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},yut,544),[[jt,r.configFile.active_tti_service]])])]),c("tr",null,[vut,c("td",Sut,[G(c("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[185]||(e[185]=_=>r.configFile.active_ttm_service=_),onChange:e[186]||(e[186]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Cut,544),[[jt,r.configFile.active_ttm_service]])])])])]),_:1}),Te(o,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",wut,[c("tr",null,[Rut,c("td",null,[c("div",Aut,[G(c("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[187]||(e[187]=_=>r.configFile.use_negative_prompt=_),onChange:e[188]||(e[188]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_negative_prompt]])])])]),c("tr",null,[Nut,c("td",null,[c("div",Out,[G(c("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[189]||(e[189]=_=>r.configFile.use_ai_generated_negative_prompt=_),onChange:e[190]||(e[190]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.use_ai_generated_negative_prompt]])])])]),c("tr",null,[Iut,c("td",null,[c("div",Mut,[G(c("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[191]||(e[191]=_=>r.configFile.negative_prompt_generation_prompt=_),onChange:e[192]||(e[192]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.negative_prompt_generation_prompt]])])])]),c("tr",null,[Dut,c("td",null,[c("div",kut,[G(c("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[193]||(e[193]=_=>r.configFile.default_negative_prompt=_),onChange:e[194]||(e[194]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.default_negative_prompt]])])])])])]),_:1}),Te(o,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Lut,[c("tr",null,[Put,c("td",Uut,[G(c("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[195]||(e[195]=_=>r.configFile.stt_listening_threshold=_),onChange:e[196]||(e[196]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_listening_threshold]])])]),c("tr",null,[Fut,c("td",But,[G(c("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[197]||(e[197]=_=>r.configFile.stt_silence_duration=_),onChange:e[198]||(e[198]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_silence_duration]])])]),c("tr",null,[Gut,c("td",Vut,[G(c("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[199]||(e[199]=_=>r.configFile.stt_sound_threshold_percentage=_),onChange:e[200]||(e[200]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_sound_threshold_percentage]])])]),c("tr",null,[zut,c("td",Hut,[G(c("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[201]||(e[201]=_=>r.configFile.stt_gain=_),onChange:e[202]||(e[202]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_gain]])])]),c("tr",null,[qut,c("td",Yut,[G(c("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[203]||(e[203]=_=>r.configFile.stt_rate=_),onChange:e[204]||(e[204]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_rate]])])]),c("tr",null,[$ut,c("td",Wut,[G(c("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[205]||(e[205]=_=>r.configFile.stt_channels=_),onChange:e[206]||(e[206]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_channels]])])]),c("tr",null,[Kut,c("td",jut,[G(c("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[207]||(e[207]=_=>r.configFile.stt_buffer_size=_),onChange:e[208]||(e[208]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_buffer_size]])])]),c("tr",null,[Qut,c("td",null,[c("div",Xut,[G(c("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[209]||(e[209]=_=>r.configFile.stt_activate_word_detection=_),onChange:e[210]||(e[210]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.stt_activate_word_detection]])])])]),c("tr",null,[Zut,c("td",null,[c("div",Jut,[G(c("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[211]||(e[211]=_=>r.configFile.stt_word_detection_file=_),onChange:e[212]||(e[212]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.stt_word_detection_file]])])])])])]),_:1}),Te(o,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",ept,[c("tr",null,[tpt,c("td",npt,[G(c("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[213]||(e[213]=_=>r.configFile.stt_input_device=_),onChange:e[214]||(e[214]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.snd_input_devices,(_,m)=>(w(),A("option",{key:_,value:s.snd_input_devices_indexes[m]},he(_),9,ipt))),128))],544),[[jt,r.configFile.stt_input_device]])])]),c("tr",null,[spt,c("td",rpt,[G(c("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[215]||(e[215]=_=>r.configFile.tts_output_device=_),onChange:e[216]||(e[216]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.snd_output_devices,(_,m)=>(w(),A("option",{key:_,value:s.snd_output_devices_indexes[m]},he(_),9,opt))),128))],544),[[jt,r.configFile.tts_output_device]])])])])]),_:1}),Te(o,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",apt,[c("tr",null,[lpt,c("td",cpt,[G(c("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[217]||(e[217]=_=>r.configFile.host=_),onChange:e[218]||(e[218]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.host]])])]),c("tr",null,[dpt,c("td",upt,[G(c("input",{type:"text",id:"lollms_access_keys",required:"","onUpdate:modelValue":e[219]||(e[219]=_=>r.configFile.lollms_access_keys=_),onChange:e[220]||(e[220]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.lollms_access_keys]])])]),c("tr",null,[ppt,c("td",_pt,[G(c("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[221]||(e[221]=_=>r.configFile.port=_),onChange:e[222]||(e[222]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.port]])])]),c("tr",null,[hpt,c("td",fpt,[G(c("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[223]||(e[223]=_=>r.configFile.headless_server_mode=_),onChange:e[224]||(e[224]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.headless_server_mode]])])]),c("tr",null,[mpt,c("td",gpt,[G(c("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[225]||(e[225]=_=>r.configFile.activate_lollms_server=_),onChange:e[226]||(e[226]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_lollms_server]])])]),c("tr",null,[bpt,c("td",Ept,[G(c("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[227]||(e[227]=_=>r.configFile.activate_ollama_emulator=_),onChange:e[228]||(e[228]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_ollama_emulator]])])]),c("tr",null,[ypt,c("td",vpt,[G(c("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[229]||(e[229]=_=>r.configFile.activate_openai_emulator=_),onChange:e[230]||(e[230]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_openai_emulator]])])]),c("tr",null,[Spt,c("td",Tpt,[G(c("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[231]||(e[231]=_=>r.configFile.activate_mistralai_emulator=_),onChange:e[232]||(e[232]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),Te(o,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",xpt,[c("tr",null,[Cpt,c("td",null,[c("div",wpt,[G(c("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[233]||(e[233]=_=>r.configFile.activate_audio_infos=_),onChange:e[234]||(e[234]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.activate_audio_infos]])])])]),c("tr",null,[Rpt,c("td",null,[c("div",Apt,[G(c("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[235]||(e[235]=_=>r.configFile.audio_auto_send_input=_),onChange:e[236]||(e[236]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.audio_auto_send_input]])])])]),c("tr",null,[Npt,c("td",null,[G(c("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[237]||(e[237]=_=>r.configFile.audio_silenceTimer=_),onChange:e[238]||(e[238]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.audio_silenceTimer]]),G(c("input",{"onUpdate:modelValue":e[239]||(e[239]=_=>r.configFile.audio_silenceTimer=_),onChange:e[240]||(e[240]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.audio_silenceTimer]])])]),c("tr",null,[Opt,c("td",null,[G(c("select",{id:"audio_in_language","onUpdate:modelValue":e[241]||(e[241]=_=>r.configFile.audio_in_language=_),onChange:e[242]||(e[242]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.audioLanguages,_=>(w(),A("option",{key:_.code,value:_.code},he(_.name),9,Ipt))),128))],544),[[jt,r.configFile.audio_in_language]])])])])]),_:1}),Te(o,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Mpt,[c("tr",null,[Dpt,c("td",null,[c("div",kpt,[G(c("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[243]||(e[243]=_=>r.configFile.whisper_activate=_),onChange:e[244]||(e[244]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.whisper_activate]])])])]),c("tr",null,[Lpt,c("td",null,[c("div",Ppt,[G(c("select",{id:"whisper_model","onUpdate:modelValue":e[245]||(e[245]=_=>r.configFile.whisper_model=_),onChange:e[246]||(e[246]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.whisperModels,_=>(w(),A("option",{key:_,value:_},he(_),9,Upt))),128))],544),[[jt,r.configFile.whisper_model]])])])])])]),_:1}),Te(o,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Fpt,[c("tr",null,[Bpt,c("td",null,[c("div",Gpt,[G(c("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[247]||(e[247]=_=>r.configFile.openai_whisper_key=_),onChange:e[248]||(e[248]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.openai_whisper_key]])])])]),c("tr",null,[Vpt,c("td",null,[c("div",zpt,[G(c("select",{id:"openai_whisper_model","onUpdate:modelValue":e[249]||(e[249]=_=>r.configFile.openai_whisper_model=_),onChange:e[250]||(e[250]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.openaiWhisperModels,_=>(w(),A("option",{key:_,value:_},he(_),9,Hpt))),128))],544),[[jt,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",qpt,[c("tr",null,[Ypt,c("td",null,[c("div",$pt,[G(c("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[251]||(e[251]=_=>r.configFile.auto_speak=_),onChange:e[252]||(e[252]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.auto_speak]])])])]),c("tr",null,[Wpt,c("td",null,[G(c("input",{id:"audio_pitch","onUpdate:modelValue":e[253]||(e[253]=_=>r.configFile.audio_pitch=_),onChange:e[254]||(e[254]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.audio_pitch]]),G(c("input",{"onUpdate:modelValue":e[255]||(e[255]=_=>r.configFile.audio_pitch=_),onChange:e[256]||(e[256]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.audio_pitch]])])]),c("tr",null,[Kpt,c("td",null,[G(c("select",{id:"audio_out_voice","onUpdate:modelValue":e[257]||(e[257]=_=>r.configFile.audio_out_voice=_),onChange:e[258]||(e[258]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.audioVoices,_=>(w(),A("option",{key:_.name,value:_.name},he(_.name),9,jpt))),128))],544),[[jt,r.configFile.audio_out_voice]])])])])]),_:1}),Te(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Qpt,[c("tr",null,[Xpt,c("td",null,[c("div",Zpt,[G(c("input",{type:"checkbox",id:"xtts_enable",required:"","onUpdate:modelValue":e[259]||(e[259]=_=>r.configFile.xtts_enable=_),onChange:e[260]||(e[260]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.xtts_enable]])])])]),c("tr",null,[Jpt,c("td",null,[c("div",e_t,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[261]||(e[261]=(..._)=>r.reinstallAudioService&&r.reinstallAudioService(..._))},"install xtts service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[262]||(e[262]=(..._)=>r.startAudioService&&r.startAudioService(..._))},"start xtts service"),c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:this.$store.state.config.xtts_base_url+"/docs",target:"_blank"},"show xtts service entries",8,t_t),n_t])])]),c("tr",null,[i_t,c("td",null,[c("div",s_t,[G(c("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[263]||(e[263]=_=>r.configFile.xtts_base_url=_),onChange:e[264]||(e[264]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_base_url]])])])]),c("tr",null,[r_t,c("td",null,[c("div",o_t,[G(c("select",{"onUpdate:modelValue":e[265]||(e[265]=_=>r.xtts_current_language=_),onChange:e[266]||(e[266]=_=>s.settingsChanged=!0),disabled:!r.xtts_enable},[(w(!0),A(Ye,null,lt(s.voice_languages,(_,m)=>(w(),A("option",{key:m,value:_},he(m),9,l_t))),128))],40,a_t),[[jt,r.xtts_current_language]])])])]),c("tr",null,[c_t,c("td",null,[c("div",d_t,[G(c("select",{"onUpdate:modelValue":e[267]||(e[267]=_=>r.xtts_current_voice=_),onChange:e[268]||(e[268]=_=>s.settingsChanged=!0),disabled:!r.xtts_enable},[(w(!0),A(Ye,null,lt(s.voices,_=>(w(),A("option",{key:_,value:_},he(_),9,p_t))),128))],40,u_t),[[jt,r.xtts_current_voice]])])])]),c("tr",null,[__t,c("td",null,[c("div",h_t,[G(c("input",{type:"checkbox",id:"xtts_use_deepspeed",required:"","onUpdate:modelValue":e[269]||(e[269]=_=>r.configFile.xtts_use_deepspeed=_),onChange:e[270]||(e[270]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,f_t),[[Je,r.configFile.xtts_use_deepspeed]])])])]),c("tr",null,[m_t,c("td",null,[c("div",g_t,[G(c("input",{type:"checkbox",id:"xtts_use_streaming_mode",required:"","onUpdate:modelValue":e[271]||(e[271]=_=>r.configFile.xtts_use_streaming_mode=_),onChange:e[272]||(e[272]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,b_t),[[Je,r.configFile.xtts_use_streaming_mode]])])])]),c("tr",null,[E_t,c("td",null,[c("div",y_t,[G(c("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[273]||(e[273]=_=>r.configFile.auto_read=_),onChange:e[274]||(e[274]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,v_t),[[Je,r.configFile.auto_read]])])])]),c("tr",null,[S_t,c("td",null,[c("div",T_t,[G(c("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[275]||(e[275]=_=>r.configFile.xtts_stream_chunk_size=_),onChange:e[276]||(e[276]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_stream_chunk_size]])])])]),c("tr",null,[x_t,c("td",null,[c("div",C_t,[G(c("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[277]||(e[277]=_=>r.configFile.xtts_temperature=_),onChange:e[278]||(e[278]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[we,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),c("tr",null,[w_t,c("td",null,[c("div",R_t,[G(c("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[279]||(e[279]=_=>r.configFile.xtts_length_penalty=_),onChange:e[280]||(e[280]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),c("tr",null,[A_t,c("td",null,[c("div",N_t,[G(c("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[281]||(e[281]=_=>r.configFile.xtts_repetition_penalty=_),onChange:e[282]||(e[282]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),c("tr",null,[O_t,c("td",null,[c("div",I_t,[G(c("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[283]||(e[283]=_=>r.configFile.xtts_top_k=_),onChange:e[284]||(e[284]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),c("tr",null,[M_t,c("td",null,[c("div",D_t,[G(c("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[285]||(e[285]=_=>r.configFile.xtts_top_p=_),onChange:e[286]||(e[286]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),c("tr",null,[k_t,c("td",null,[c("div",L_t,[G(c("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[287]||(e[287]=_=>r.configFile.xtts_speed=_),onChange:e[288]||(e[288]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),c("tr",null,[P_t,c("td",null,[c("div",U_t,[G(c("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[289]||(e[289]=_=>r.configFile.enable_text_splitting=_),onChange:e[290]||(e[290]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_text_splitting]])])])])])]),_:1}),Te(o,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",F_t,[c("tr",null,[B_t,c("td",null,[c("div",G_t,[G(c("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[291]||(e[291]=_=>r.configFile.openai_tts_key=_),onChange:e[292]||(e[292]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.openai_tts_key]])])])]),c("tr",null,[V_t,c("td",null,[c("div",z_t,[G(c("select",{"onUpdate:modelValue":e[293]||(e[293]=_=>r.configFile.openai_tts_model=_),onChange:e[294]||(e[294]=_=>s.settingsChanged=!0)},Y_t,544),[[jt,r.configFile.openai_tts_model]])])])]),c("tr",null,[$_t,c("td",null,[c("div",W_t,[G(c("select",{"onUpdate:modelValue":e[295]||(e[295]=_=>r.configFile.openai_tts_voice=_),onChange:e[296]||(e[296]=_=>s.settingsChanged=!0)},J_t,544),[[jt,r.configFile.openai_tts_voice]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",eht,[c("tr",null,[tht,c("td",null,[c("div",nht,[G(c("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[297]||(e[297]=_=>r.configFile.enable_sd_service=_),onChange:e[298]||(e[298]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_sd_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[299]||(e[299]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},sht)])]),c("tr",null,[rht,c("td",null,[c("div",oht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[300]||(e[300]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[301]||(e[301]=(..._)=>r.upgradeSDService&&r.upgradeSDService(..._))},"upgrade sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[302]||(e[302]=(..._)=>r.startSDService&&r.startSDService(..._))},"start sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[303]||(e[303]=(..._)=>r.showSD&&r.showSD(..._))},"show sd ui"),aht])]),c("td",null,[c("div",lht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[304]||(e[304]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service")])])]),c("tr",null,[cht,c("td",null,[c("div",dht,[G(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[305]||(e[305]=_=>r.configFile.sd_base_url=_),onChange:e[306]||(e[306]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.sd_base_url]])])])])])]),_:1}),Te(o,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",uht,[c("tr",null,[pht,c("td",null,[c("div",_ht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[307]||(e[307]=(..._)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(..._))},"install diffusers service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[308]||(e[308]=(..._)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(..._))},"upgrade diffusers service"),hht])])]),c("tr",null,[fht,c("td",null,[c("div",mht,[G(c("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[309]||(e[309]=_=>r.configFile.diffusers_model=_),onChange:e[310]||(e[310]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.diffusers_model]])])]),ght])])]),_:1}),Te(o,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",bht,[c("tr",null,[Eht,c("td",null,[c("div",yht,[G(c("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[311]||(e[311]=_=>r.configFile.midjourney_key=_),onChange:e[312]||(e[312]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.midjourney_key]])])])])])]),_:1}),Te(o,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",vht,[c("tr",null,[Sht,c("td",null,[c("div",Tht,[G(c("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[313]||(e[313]=_=>r.configFile.dall_e_key=_),onChange:e[314]||(e[314]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.dall_e_key]])])])]),c("tr",null,[xht,c("td",null,[c("div",Cht,[G(c("select",{"onUpdate:modelValue":e[315]||(e[315]=_=>r.configFile.dall_e_generation_engine=_),onChange:e[316]||(e[316]=_=>s.settingsChanged=!0)},Aht,544),[[jt,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),Te(o,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Nht,[c("tr",null,[Oht,c("td",null,[c("div",Iht,[G(c("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[317]||(e[317]=_=>r.configFile.enable_comfyui_service=_),onChange:e[318]||(e[318]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_comfyui_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[319]||(e[319]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Dht)])]),c("tr",null,[kht,c("td",null,[c("div",Lht,[G(c("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[320]||(e[320]=_=>r.configFile.comfyui_model=_),onChange:e[321]||(e[321]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.comfyui_model]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[322]||(e[322]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Uht)])]),c("tr",null,[Fht,c("td",null,[c("div",Bht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[323]||(e[323]=(..._)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(..._))},"install comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[324]||(e[324]=(..._)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(..._))},"upgrade comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[325]||(e[325]=(..._)=>r.startComfyUIService&&r.startComfyUIService(..._))},"start comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[326]||(e[326]=(..._)=>r.showComfyui&&r.showComfyui(..._))},"show comfyui"),Ght])])]),c("tr",null,[Vht,c("td",null,[c("div",zht,[G(c("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[327]||(e[327]=_=>r.configFile.comfyui_base_url=_),onChange:e[328]||(e[328]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Hht,[c("tr",null,[qht,c("td",null,[c("div",Yht,[G(c("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[329]||(e[329]=_=>r.configFile.enable_ollama_service=_),onChange:e[330]||(e[330]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_ollama_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[331]||(e[331]=_=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. If you are using windows, this uses wsl which requires you to have it installed or at least activated. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},$ht)])]),c("tr",null,[Wht,c("td",null,[c("div",Kht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[328]||(e[328]=(..._)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(..._))},"install ollama service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[329]||(e[329]=(..._)=>r.startollamaService&&r.startollamaService(..._))},"start ollama service")])])]),c("tr",null,[jht,c("td",null,[c("div",Qht,[G(c("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[330]||(e[330]=_=>r.configFile.ollama_base_url=_),onChange:e[331]||(e[331]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.ollama_base_url]])])])])])]),_:1}),Te(o,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Xht,[c("tr",null,[Zht,c("td",null,[c("div",Jht,[G(c("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[332]||(e[332]=_=>r.configFile.enable_vllm_service=_),onChange:e[333]||(e[333]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_vllm_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[334]||(e[334]=_=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding. +Here is how you can do that`))},Wht)])]),c("tr",null,[Kht,c("td",null,[c("div",jht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[332]||(e[332]=(..._)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(..._))},"install ollama service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[333]||(e[333]=(..._)=>r.startollamaService&&r.startollamaService(..._))},"start ollama service")])])]),c("tr",null,[Qht,c("td",null,[c("div",Xht,[G(c("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[334]||(e[334]=_=>r.configFile.ollama_base_url=_),onChange:e[335]||(e[335]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.ollama_base_url]])])])])])]),_:1}),Te(o,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Zht,[c("tr",null,[Jht,c("td",null,[c("div",eft,[G(c("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[336]||(e[336]=_=>r.configFile.enable_vllm_service=_),onChange:e[337]||(e[337]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_vllm_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[338]||(e[338]=_=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding. If you are using windows, this uses wsl which requires you to have it installed or at least activated. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},tft)])]),c("tr",null,[nft,c("td",null,[c("div",ift,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[335]||(e[335]=(..._)=>r.reinstallvLLMService&&r.reinstallvLLMService(..._))},"install vLLM service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[336]||(e[336]=(..._)=>r.startvLLMService&&r.startvLLMService(..._))},"start vllm service")])])]),c("tr",null,[sft,c("td",null,[c("div",rft,[G(c("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[337]||(e[337]=_=>r.configFile.vllm_url=_),onChange:e[338]||(e[338]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_url]])])])]),c("tr",null,[oft,c("td",null,[c("div",aft,[c("div",lft,[cft,c("p",dft,[G(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[339]||(e[339]=_=>r.configFile.vllm_gpu_memory_utilization=_),onChange:e[340]||(e[340]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.vllm_gpu_memory_utilization]])])]),G(c("input",{id:"vllm_gpu_memory_utilization",onChange:e[341]||(e[341]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[342]||(e[342]=_=>r.configFile.vllm_gpu_memory_utilization=_),min:"0.10",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.vllm_gpu_memory_utilization]])])])]),c("tr",null,[uft,c("td",null,[c("div",pft,[G(c("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[343]||(e[343]=_=>r.configFile.vllm_max_num_seqs=_),onChange:e[344]||(e[344]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_max_num_seqs]])])])]),c("tr",null,[_ft,c("td",null,[c("div",hft,[G(c("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[345]||(e[345]=_=>r.configFile.vllm_max_model_len=_),onChange:e[346]||(e[346]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_max_model_len]])])])]),c("tr",null,[fft,c("td",null,[c("div",mft,[G(c("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[347]||(e[347]=_=>r.configFile.vllm_model_path=_),onChange:e[348]||(e[348]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_model_path]])])])])])]),_:1}),Te(o,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",gft,[c("tr",null,[bft,c("td",null,[c("div",Eft,[G(c("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[349]||(e[349]=_=>r.configFile.enable_petals_service=_),onChange:e[350]||(e[350]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_petals_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[351]||(e[351]=_=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. +Here is how you can do that`))},nft)])]),c("tr",null,[ift,c("td",null,[c("div",sft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[339]||(e[339]=(..._)=>r.reinstallvLLMService&&r.reinstallvLLMService(..._))},"install vLLM service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[340]||(e[340]=(..._)=>r.startvLLMService&&r.startvLLMService(..._))},"start vllm service")])])]),c("tr",null,[rft,c("td",null,[c("div",oft,[G(c("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[341]||(e[341]=_=>r.configFile.vllm_url=_),onChange:e[342]||(e[342]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_url]])])])]),c("tr",null,[aft,c("td",null,[c("div",lft,[c("div",cft,[dft,c("p",uft,[G(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[343]||(e[343]=_=>r.configFile.vllm_gpu_memory_utilization=_),onChange:e[344]||(e[344]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.vllm_gpu_memory_utilization]])])]),G(c("input",{id:"vllm_gpu_memory_utilization",onChange:e[345]||(e[345]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[346]||(e[346]=_=>r.configFile.vllm_gpu_memory_utilization=_),min:"0.10",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.vllm_gpu_memory_utilization]])])])]),c("tr",null,[pft,c("td",null,[c("div",_ft,[G(c("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[347]||(e[347]=_=>r.configFile.vllm_max_num_seqs=_),onChange:e[348]||(e[348]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_max_num_seqs]])])])]),c("tr",null,[hft,c("td",null,[c("div",fft,[G(c("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[349]||(e[349]=_=>r.configFile.vllm_max_model_len=_),onChange:e[350]||(e[350]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_max_model_len]])])])]),c("tr",null,[mft,c("td",null,[c("div",gft,[G(c("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[351]||(e[351]=_=>r.configFile.vllm_model_path=_),onChange:e[352]||(e[352]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_model_path]])])])])])]),_:1}),Te(o,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",bft,[c("tr",null,[Eft,c("td",null,[c("div",yft,[G(c("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[353]||(e[353]=_=>r.configFile.enable_petals_service=_),onChange:e[354]||(e[354]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_petals_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[355]||(e[355]=_=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},vft)])]),c("tr",null,[Sft,c("td",null,[c("div",Tft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[352]||(e[352]=(..._)=>r.reinstallPetalsService&&r.reinstallPetalsService(..._))},"install petals service")])])]),c("tr",null,[xft,c("td",null,[c("div",Cft,[G(c("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[353]||(e[353]=_=>r.configFile.petals_base_url=_),onChange:e[354]||(e[354]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),Te(o,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Motion Ctrl service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",wft,[c("tr",null,[Rft,c("td",null,[c("div",Aft,[G(c("input",{type:"checkbox",id:"enable_motion_ctrl_service",required:"","onUpdate:modelValue":e[355]||(e[355]=_=>r.configFile.enable_motion_ctrl_service=_),onChange:e[356]||(e[356]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_motion_ctrl_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[357]||(e[357]=_=>this.$store.state.messageBox.showMessage("Activates Motion ctrl service. The service will be automatically loaded at startup alowing you to use the motoin control endpoint to generate videos"))},Oft)])]),c("tr",null,[Ift,c("td",null,[c("div",Mft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[358]||(e[358]=(..._)=>r.reinstallMotionCtrlService&&r.reinstallMotionCtrlService(..._))},"install Motion Ctrl service")])])]),c("tr",null,[Dft,c("td",null,[c("div",kft,[G(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[359]||(e[359]=_=>r.configFile.sd_base_url=_),onChange:e[360]||(e[360]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.sd_base_url]])])])])])]),_:1}),Te(o,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Lft,[c("tr",null,[Pft,c("td",null,[c("div",Uft,[G(c("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[361]||(e[361]=_=>r.configFile.elastic_search_service=_),onChange:e[362]||(e[362]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.elastic_search_service]])])])]),c("tr",null,[Fft,c("td",null,[c("div",Bft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[363]||(e[363]=(..._)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(..._))},"install ElasticSearch service")])])]),c("tr",null,[Gft,c("td",null,[c("div",Vft,[G(c("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[364]||(e[364]=_=>r.configFile.elastic_search_url=_),onChange:e[365]||(e[365]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),c("div",zft,[c("div",Hft,[c("button",{onClick:e[366]||(e[366]=be(_=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Yft,512),[[Mt,s.bzc_collapsed]]),G(c("div",null,Wft,512),[[Mt,!s.bzc_collapsed]]),Kft,r.configFile.binding_name?V("",!0):(w(),A("div",jft,[Qft,et(" No binding selected! ")])),r.configFile.binding_name?(w(),A("div",Xft,"|")):V("",!0),r.configFile.binding_name?(w(),A("div",Zft,[c("div",Jft,[c("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,emt),c("h3",tmt,he(r.binding_name),1)])])):V("",!0)])]),c("div",{class:He([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(w(),A("div",nmt,[c("label",imt," Bindings: ("+he(r.bindingsZoo.length)+") ",1),c("div",{class:He(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[Te(os,{name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.bindingsZoo,(_,m)=>(w(),xt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+m+"-"+_.folder,binding:_,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:_.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):V("",!0),s.bzl_collapsed?(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[367]||(e[367]=_=>s.bzl_collapsed=!s.bzl_collapsed)},rmt)):(w(),A("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[368]||(e[368]=_=>s.bzl_collapsed=!s.bzl_collapsed)},amt))],2)]),c("div",lmt,[c("div",cmt,[c("button",{onClick:e[369]||(e[369]=be(_=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[G(c("div",null,umt,512),[[Mt,s.mzc_collapsed]]),G(c("div",null,_mt,512),[[Mt,!s.mzc_collapsed]]),hmt,c("div",fmt,[r.configFile.binding_name?V("",!0):(w(),A("div",mmt,[gmt,et(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(w(),A("div",bmt,[Emt,et(" No model selected! ")])):V("",!0),r.configFile.model_name?(w(),A("div",ymt,"|")):V("",!0),r.configFile.model_name?(w(),A("div",vmt,[c("div",Smt,[c("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Tmt),c("h3",xmt,he(r.configFile.model_name),1)])])):V("",!0)])])]),c("div",{class:He([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Cmt,[c("div",wmt,[c("div",Rmt,[s.searchModelInProgress?(w(),A("div",Amt,Omt)):V("",!0),s.searchModelInProgress?V("",!0):(w(),A("div",Imt,Dmt))]),G(c("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search models...",required:"","onUpdate:modelValue":e[370]||(e[370]=_=>s.searchModel=_),onKeyup:e[371]||(e[371]=Hs((..._)=>r.searchModel_func&&r.searchModel_func(..._),["enter"]))},null,544),[[we,s.searchModel]]),s.searchModel?(w(),A("button",{key:0,onClick:e[372]||(e[372]=be(_=>s.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):V("",!0)])]),c("div",null,[G(c("input",{"onUpdate:modelValue":e[373]||(e[373]=_=>s.show_only_installed_models=_),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Je,s.show_only_installed_models]]),kmt]),c("div",null,[Te(l,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Lmt,s.is_loading_zoo?(w(),A("div",Pmt,Bmt)):V("",!0),s.models_zoo&&s.models_zoo.length>0?(w(),A("div",Gmt,[c("label",Vmt," Models: ("+he(s.models_zoo.length)+") ",1),c("div",{class:He(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",s.mzl_collapsed?"":"max-h-96"])},[Te(os,{name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.rendered_models_zoo,(_,m)=>(w(),xt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+_.name,model:_,"is-installed":_.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:_.name===r.configFile.model_name,model_type:_.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),c("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[374]||(e[374]=(..._)=>r.load_more_models&&r.load_more_models(..._))},"Load more models",512)]),_:1})],2)])):V("",!0),s.mzl_collapsed?(w(),A("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[375]||(e[375]=(..._)=>r.open_mzl&&r.open_mzl(..._))},Hmt)):(w(),A("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[376]||(e[376]=(..._)=>r.open_mzl&&r.open_mzl(..._))},Ymt)),c("div",$mt,[c("div",Wmt,[c("div",null,[c("div",Kmt,[jmt,G(c("input",{type:"text","onUpdate:modelValue":e[377]||(e[377]=_=>s.reference_path=_),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter Path ...",required:""},null,512),[[we,s.reference_path]])]),c("button",{type:"button",onClick:e[378]||(e[378]=be(_=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),s.modelDownlaodInProgress?V("",!0):(w(),A("div",Qmt,[c("div",Xmt,[Zmt,G(c("input",{type:"text","onUpdate:modelValue":e[379]||(e[379]=_=>s.addModel.url=_),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[we,s.addModel.url]])]),c("button",{type:"button",onClick:e[380]||(e[380]=be(_=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),s.modelDownlaodInProgress?(w(),A("div",Jmt,[egt,c("div",tgt,[c("div",ngt,[c("div",igt,[sgt,c("span",rgt,he(Math.floor(s.addModel.progress))+"%",1)]),c("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},he(s.addModel.url),9,ogt),c("div",agt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en({width:s.addModel.progress+"%"})},null,4)]),c("div",lgt,[c("span",cgt,"Download speed: "+he(r.speed_computed)+"/s",1),c("span",dgt,he(r.downloaded_size_computed)+"/"+he(r.total_size_computed),1)])])]),c("div",ugt,[c("div",pgt,[c("div",_gt,[c("button",{onClick:e[381]||(e[381]=be((..._)=>r.onCancelInstall&&r.onCancelInstall(..._),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):V("",!0)])])],2)]),c("div",hgt,[c("div",fgt,[c("button",{onClick:e[384]||(e[384]=be(_=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[G(c("div",null,ggt,512),[[Mt,s.pzc_collapsed]]),G(c("div",null,Egt,512),[[Mt,!s.pzc_collapsed]]),ygt,r.configFile.personalities?(w(),A("div",vgt,"|")):V("",!0),c("div",Sgt,he(r.active_pesonality),1),r.configFile.personalities?(w(),A("div",Tgt,"|")):V("",!0),r.configFile.personalities?(w(),A("div",xgt,[r.mountedPersArr.length>0?(w(),A("div",Cgt,[(w(!0),A(Ye,null,lt(r.mountedPersArr,(_,m)=>(w(),A("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:m+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[c("div",wgt,[c("button",{onClick:be(E=>r.onPersonalitySelected(_),["stop"])},[c("img",{src:s.bUrl+_.avatar,onError:e[382]||(e[382]=(...E)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...E)),class:He(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,Agt)],8,Rgt),c("button",{onClick:be(E=>r.unmountPersonality(_),["stop"])},Igt,8,Ngt)])]))),128))])):V("",!0)])):V("",!0),c("button",{onClick:e[383]||(e[383]=be(_=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},Dgt)])]),c("div",{class:He([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",kgt,[Lgt,c("div",Pgt,[c("div",Ugt,[s.searchPersonalityInProgress?(w(),A("div",Fgt,Ggt)):V("",!0),s.searchPersonalityInProgress?V("",!0):(w(),A("div",Vgt,Hgt))]),G(c("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[385]||(e[385]=_=>s.searchPersonality=_),onKeyup:e[386]||(e[386]=be((..._)=>r.searchPersonality_func&&r.searchPersonality_func(..._),["stop"]))},null,544),[[we,s.searchPersonality]]),s.searchPersonality?(w(),A("button",{key:0,onClick:e[387]||(e[387]=be(_=>s.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):V("",!0)])]),s.searchPersonality?V("",!0):(w(),A("div",qgt,[c("label",Ygt," Personalities Category: ("+he(s.persCatgArr.length)+") ",1),c("select",{id:"persCat",onChange:e[388]||(e[388]=_=>r.update_personality_category(_.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(w(!0),A(Ye,null,lt(s.persCatgArr,(_,m)=>(w(),A("option",{key:m,selected:_==this.configFile.personality_category},he(_),9,$gt))),128))],32)])),c("div",null,[s.personalitiesFiltered.length>0?(w(),A("div",Wgt,[c("label",Kgt,he(s.searchPersonality?"Search results":"Personalities")+": ("+he(s.personalitiesFiltered.length)+") ",1),c("div",{class:He(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[Te(os,{name:"bounce"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.personalitiesFiltered,(_,m)=>(w(),xt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+m+"-"+_.name,personality:_,select_language:!0,full_path:_.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(E=>E===_.full_path||E===_.full_path+":"+_.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})],2)])):V("",!0)]),s.pzl_collapsed?(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[389]||(e[389]=_=>s.pzl_collapsed=!s.pzl_collapsed)},Qgt)):(w(),A("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[390]||(e[390]=_=>s.pzl_collapsed=!s.pzl_collapsed)},Zgt))],2)]),c("div",Jgt,[c("div",ebt,[c("button",{onClick:e[391]||(e[391]=be(_=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[G(c("div",null,nbt,512),[[Mt,s.mc_collapsed]]),G(c("div",null,sbt,512),[[Mt,!s.mc_collapsed]]),rbt])]),c("div",{class:He([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[c("div",obt,[c("div",abt,[G(c("input",{id:"override-model-parameters",type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[392]||(e[392]=be(()=>{},["stop"])),"onUpdate:modelValue":e[393]||(e[393]=_=>r.configFile.override_personality_model_parameters=_),onChange:e[394]||(e[394]=_=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[Je,r.configFile.override_personality_model_parameters]]),lbt])]),c("div",{class:He(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[c("div",cbt,[dbt,G(c("input",{type:"text",id:"seed","onUpdate:modelValue":e[395]||(e[395]=_=>r.configFile.seed=_),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[we,r.configFile.seed]])]),c("div",ubt,[c("div",pbt,[c("div",_bt,[hbt,c("p",fbt,[G(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[396]||(e[396]=_=>r.configFile.temperature=_),onChange:e[397]||(e[397]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.temperature]])])]),G(c("input",{id:"temperature",onChange:e[398]||(e[398]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[399]||(e[399]=_=>r.configFile.temperature=_),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.temperature]])])]),c("div",mbt,[c("div",gbt,[c("div",bbt,[Ebt,c("p",ybt,[G(c("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[400]||(e[400]=_=>r.configFile.n_predict=_),onChange:e[401]||(e[401]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.n_predict]])])]),G(c("input",{id:"predict",type:"range",onChange:e[402]||(e[402]=_=>s.settingsChanged=!0),"onUpdate:modelValue":e[403]||(e[403]=_=>r.configFile.n_predict=_),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.n_predict]])])]),c("div",vbt,[c("div",Sbt,[c("div",Tbt,[xbt,c("p",Cbt,[G(c("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[404]||(e[404]=_=>r.configFile.top_k=_),onChange:e[405]||(e[405]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_k]])])]),G(c("input",{id:"top_k",type:"range",onChange:e[406]||(e[406]=_=>s.settingsChanged=!0),"onUpdate:modelValue":e[407]||(e[407]=_=>r.configFile.top_k=_),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_k]])])]),c("div",wbt,[c("div",Rbt,[c("div",Abt,[Nbt,c("p",Obt,[G(c("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[408]||(e[408]=_=>r.configFile.top_p=_),onChange:e[409]||(e[409]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_p]])])]),G(c("input",{id:"top_p",type:"range","onUpdate:modelValue":e[410]||(e[410]=_=>r.configFile.top_p=_),min:"0",max:"1",step:"0.01",onChange:e[411]||(e[411]=_=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_p]])])]),c("div",Ibt,[c("div",Mbt,[c("div",Dbt,[kbt,c("p",Lbt,[G(c("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[412]||(e[412]=_=>r.configFile.repeat_penalty=_),onChange:e[413]||(e[413]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_penalty]])])]),G(c("input",{id:"repeat_penalty",onChange:e[414]||(e[414]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[415]||(e[415]=_=>r.configFile.repeat_penalty=_),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_penalty]])])]),c("div",Pbt,[c("div",Ubt,[c("div",Fbt,[Bbt,c("p",Gbt,[G(c("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[416]||(e[416]=_=>r.configFile.repeat_last_n=_),onChange:e[417]||(e[417]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_last_n]])])]),G(c("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[418]||(e[418]=_=>r.configFile.repeat_last_n=_),min:"0",max:"100",step:"1",onChange:e[419]||(e[419]=_=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Te(h,{ref:"addmodeldialog"},null,512),Te(f,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const zbt=bt(Yrt,[["render",Vbt],["__scopeId","data-v-53eceb3e"]]),Hbt={components:{ClipBoardTextInput:xE,Card:rp},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};Se.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},qbt={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Ybt={class:"mb-4"},$bt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Wbt=["value"],Kbt={class:"mb-4"},jbt=c("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Qbt={class:"mb-4"},Xbt=c("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),Zbt={class:"mb-4"},Jbt=c("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),eEt={class:"mb-4"},tEt=c("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),nEt={class:"mb-4"},iEt=c("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),sEt={class:"mb-4"},rEt=c("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),oEt=c("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),aEt={key:1};function lEt(n,e,t,i,s,r){const o=mt("Card"),a=mt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(w(),A("div",qbt,[c("form",{onSubmit:e[2]||(e[2]=be((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:""},[Te(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(o,{title:"Model",class:"",isHorizontal:!1},{default:We(()=>[c("div",Ybt,[$bt,G(c("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(w(!0),A(Ye,null,lt(r.models,l=>(w(),A("option",{key:l,value:l},he(l),9,Wbt))),128))],544),[[jt,r.selectedModel]])])]),_:1}),Te(o,{title:"Data",isHorizontal:!1},{default:We(()=>[c("div",Kbt,[jbt,Te(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Te(o,{title:"Training",isHorizontal:!1},{default:We(()=>[c("div",Qbt,[Xbt,Te(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),c("div",Zbt,[Jbt,Te(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),c("div",eEt,[tEt,Te(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),c("div",nEt,[iEt,Te(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),Te(o,{title:"Output",isHorizontal:!1},{default:We(()=>[c("div",sEt,[rEt,Te(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),Te(o,{disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[oEt]),_:1})],32)])):(w(),A("div",aEt,[Te(o,{title:"Info",class:"",isHorizontal:!1},{default:We(()=>[et(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const cEt=bt(Hbt,[["render",lEt]]),dEt={components:{ClipBoardTextInput:xE,Card:rp},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},uEt={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},pEt={class:"mb-4"},_Et=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),hEt={class:"mb-4"},fEt=c("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),mEt=c("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function gEt(n,e,t,i,s,r){const o=mt("ClipBoardTextInput"),a=mt("Card");return w(),A("div",uEt,[c("form",{onSubmit:e[0]||(e[0]=be((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Te(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(a,{title:"Model",class:"",isHorizontal:!1},{default:We(()=>[c("div",pEt,[_Et,Te(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),c("div",hEt,[fEt,Te(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Te(a,{disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[mEt]),_:1})],32)])}const bEt=bt(dEt,[["render",gEt]]),EEt={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(n){this.newTitle=n},checkedChangeEvent(n,e){this.$emit("checked",n,e)}},mounted(){this.newTitle=this.title,Ge(()=>{ze.replace()})},watch:{showConfirmation(){Ge(()=>{ze.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Ge(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Ge(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},yEt=["id"],vEt={class:"flex flex-row items-center gap-2"},SEt={key:0},TEt={class:"flex flex-row items-center w-full"},xEt=["title"],CEt=["value"],wEt={class:"flex items-center flex-1 max-h-6"},REt={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},AEt=c("i",{"data-feather":"x"},null,-1),NEt=[AEt],OEt=c("i",{"data-feather":"check"},null,-1),IEt=[OEt],MEt={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},DEt=c("i",{"data-feather":"folder"},null,-1),kEt=[DEt],LEt=c("i",{"data-feather":"type"},null,-1),PEt=[LEt],UEt=c("i",{"data-feather":"edit-2"},null,-1),FEt=[UEt],BEt=c("i",{"data-feather":"trash"},null,-1),GEt=[BEt];function VEt(n,e,t,i,s,r){return w(),A("div",{class:He([t.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md min-w-[23rem] max-w-[23rem]":" min-w-[23rem] max-w-[23rem]","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=be(o=>r.selectEvent(),["stop"]))},[c("div",vEt,[t.isCheckbox?(w(),A("div",SEt,[G(c("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=be(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[Je,s.checkBoxValue_local]])])):V("",!0),t.selected?(w(),A("div",{key:1,class:He(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):V("",!0),t.selected?V("",!0):(w(),A("div",{key:2,class:He(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),c("div",TEt,[s.editTitle?V("",!0):(w(),A("p",{key:0,title:t.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},he(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,xEt)),s.editTitle?(w(),A("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:t.title,required:"",onKeydown:[e[3]||(e[3]=Hs(be(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Hs(be(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=be(()=>{},["stop"]))},null,40,CEt)):V("",!0),c("div",wEt,[s.showConfirmation?(w(),A("div",REt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=be(o=>r.cancel(),["stop"]))},NEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=be(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},IEt)])):V("",!0),s.showConfirmation?V("",!0):(w(),A("div",MEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=be(o=>r.openFolderEvent(),["stop"]))},kEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=be(o=>s.makeTitleMode=!0,["stop"]))},PEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=be(o=>s.editTitleMode=!0,["stop"]))},FEt),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=be(o=>s.deleteMode=!0,["stop"]))},GEt)]))])])],10,yEt)}const RE=bt(EEt,[["render",VEt]]),zEt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(n){this.prompt=n}}},HEt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},qEt={class:"bg-white p-8 rounded"},YEt={class:"text-xl font-bold mb-4"};function $Et(n,e,t,i,s,r){return w(),A("div",null,[s.show?(w(),A("div",HEt,[c("div",qEt,[c("h2",YEt,he(t.promptText),1),G(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[we,s.inputText]]),c("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),c("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):V("",!0)])}const gO=bt(zEt,[["render",$Et]]),WEt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:RE,MarkdownRenderer:ip},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){Se.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(n=>{this.categories=n.data.categories}).catch(n=>{console.error("Error fetching categories:",n)})},fetchTitles(){console.log("Fetching categories"),Se.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(n=>{this.titles=n.data.titles,console.log("titles recovered")}).catch(n=>{console.error("Error fetching titles:",n)})},fetchContent(n){Se.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:n}).then(e=>{const t=e.data.contents[0];this.id=t.id,this.content=t.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(n){console.log("Delete category")},editCategory(n){console.log("Edit category")},checkUncheckCategory(n){console.log("Unchecked category")},deleteSkill(n){console.log("Delete skill ",n),Se.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:n}).then(()=>{this.fetchTitles()})},editTitle(n){Se.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:n,title:n}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(n){console.log("Make title")},checkUncheckTitle(n){},searchSkills(){}}},KEt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},jEt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},QEt={class:"search p-4"},XEt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},ZEt=c("h2",{class:"text-xl font-bold m-4"},"Titles",-1),JEt={class:"z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},eyt=c("h2",{class:"text-xl font-bold m-4"},"Content",-1);function tyt(n,e,t,i,s,r){const o=mt("Discussion"),a=mt("MarkdownRenderer");return w(),A("div",{class:He([{hidden:!s.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[c("div",KEt,[c("div",jEt,[c("div",QEt,[G(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=l=>s.searchQuery=l),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[we,s.searchQuery]]),c("button",{onClick:e[1]||(e[1]=(...l)=>r.searchSkills&&r.searchSkills(...l)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),c("div",XEt,[ZEt,s.titles.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.titles,l=>(w(),xt(o,{key:l.id,id:l.id,title:l.title,selected:r.fetchContent(l.id),loading:s.loading,isCheckbox:s.isCheckbox,checkBoxValue:!1,onSelect:u=>r.fetchContent(l.id),onDelete:u=>r.deleteSkill(l.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):V("",!0)])]),c("div",JEt,[eyt,Te(a,{host:t.host,"markdown-text":s.content,message_id:s.id,discussion_id:s.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),c("button",{onClick:e[2]||(e[2]=(...l)=>r.closeComponent&&r.closeComponent(...l)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const bO=bt(WEt,[["render",tyt]]),nyt={props:{htmlContent:{type:String,required:!0}}},iyt=["innerHTML"];function syt(n,e,t,i,s,r){return w(),A("div",{class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:t.htmlContent},null,8,iyt)}const ryt=bt(nyt,[["render",syt]]);const oyt={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"
"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"
")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},ayt={key:0},lyt={class:"toggle-icon mr-1"},cyt={key:0,class:"fas fa-plus-circle text-gray-600"},dyt={key:1,class:"fas fa-minus-circle text-gray-600"},uyt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},pyt={key:0,class:"fas fa-plus-circle text-gray-600"},_yt={key:1,class:"fas fa-minus-circle text-gray-600"},hyt=["innerHTML"];function fyt(n,e,t,i,s,r){return r.isContentPresent?(w(),A("div",ayt,[c("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>r.toggleCollapsible&&r.toggleCollapsible(...o))},[c("span",lyt,[s.collapsed?(w(),A("i",cyt)):(w(),A("i",dyt))]),et(" "+he(t.jsonFormText),1)]),G(c("div",null,[c("div",uyt,[r.isObject?(w(),A("span",{key:0,onClick:e[1]||(e[1]=(...o)=>r.toggleCollapsed&&r.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(w(),A("i",pyt)):(w(),A("i",_yt))])):V("",!0),c("pre",{innerHTML:r.formattedJson},null,8,hyt)])],512),[[Mt,!s.collapsed]])])):V("",!0)}const myt=bt(oyt,[["render",fyt]]),gyt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0},step_type:{type:String,required:!1,default:"start_end"}}},byt={class:"flex items-start"},Eyt={class:"step flex items-center mb-4"},yyt={key:0,class:"flex items-center justify-center w-6 h-6 mr-2"},vyt={key:0},Syt=c("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),Tyt=[Syt],xyt={key:1},Cyt=c("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),wyt=[Cyt],Ryt={key:2},Ayt=c("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Nyt=[Ayt],Oyt={key:1,role:"status",class:"m-15"},Iyt=c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),Myt=[Iyt],Dyt={class:"text-sm ml-6"};function kyt(n,e,t,i,s,r){return w(),A("div",byt,[c("div",Eyt,[t.step_type=="start_end"?(w(),A("div",yyt,[t.done?V("",!0):(w(),A("div",vyt,Tyt)),t.done&&t.status?(w(),A("div",xyt,wyt)):V("",!0),t.done&&!t.status?(w(),A("div",Ryt,Nyt)):V("",!0)])):V("",!0),t.done?V("",!0):(w(),A("div",Oyt,Myt)),c("h3",Dyt,he(t.message),1)])])}const Lyt=bt(gyt,[["render",kyt]]),Pyt="/assets/process-61f7a21b.svg",Uyt="/assets/ok-a0b56451.svg",Fyt="/assets/failed-183609e7.svg",EO="/assets/send_globe-305330b9.svg";const Byt="/",Gyt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:ip,Step:Lyt,RenderHTMLJS:ryt,JsonViewer:myt,DynamicUIRenderer:mO},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{isSynthesizingVoice:!1,cpp_block:dO,html5_block:uO,LaTeX_block:pO,json_block:cO,javascript_block:lO,process_svg:Pyt,ok_svg:Uyt,failed_svg:Fyt,loading_svg:hO,sendGlobe:EO,code_block:oO,python_block:aO,bash_block:_O,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Ge(()=>{ze.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let n of this.message.metadata)Object.prototype.hasOwnProperty.call(n,"audio_url")&&n.audio_url!=null&&(this.audio_url=n.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(n,e){let t=e.getTime()-n.getTime();const i=Math.floor(t/(1e3*60*60));t-=i*(1e3*60*60);const s=Math.floor(t/(1e3*60));t-=s*(1e3*60);const r=Math.floor(t/1e3);return t-=r*1e3,[i,s,r]},insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=n.shiftKey;if(t===i)if(s){if(e.value.substring(t-4,t)==" "){const r=e.value.substring(0,t-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(i),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,i).split(` +Here is how you can do that`))},Sft)])]),c("tr",null,[Tft,c("td",null,[c("div",xft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[356]||(e[356]=(..._)=>r.reinstallPetalsService&&r.reinstallPetalsService(..._))},"install petals service")])])]),c("tr",null,[Cft,c("td",null,[c("div",wft,[G(c("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[357]||(e[357]=_=>r.configFile.petals_base_url=_),onChange:e[358]||(e[358]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),Te(o,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Motion Ctrl service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Rft,[c("tr",null,[Aft,c("td",null,[c("div",Nft,[G(c("input",{type:"checkbox",id:"enable_motion_ctrl_service",required:"","onUpdate:modelValue":e[359]||(e[359]=_=>r.configFile.enable_motion_ctrl_service=_),onChange:e[360]||(e[360]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.enable_motion_ctrl_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[361]||(e[361]=_=>this.$store.state.messageBox.showMessage("Activates Motion ctrl service. The service will be automatically loaded at startup alowing you to use the motoin control endpoint to generate videos"))},Ift)])]),c("tr",null,[Mft,c("td",null,[c("div",Dft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[362]||(e[362]=(..._)=>r.reinstallMotionCtrlService&&r.reinstallMotionCtrlService(..._))},"install Motion Ctrl service")])])]),c("tr",null,[kft,c("td",null,[c("div",Lft,[G(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[363]||(e[363]=_=>r.configFile.sd_base_url=_),onChange:e[364]||(e[364]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.sd_base_url]])])])])])]),_:1}),Te(o,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Pft,[c("tr",null,[Uft,c("td",null,[c("div",Fft,[G(c("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[365]||(e[365]=_=>r.configFile.elastic_search_service=_),onChange:e[366]||(e[366]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Je,r.configFile.elastic_search_service]])])])]),c("tr",null,[Bft,c("td",null,[c("div",Gft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[367]||(e[367]=(..._)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(..._))},"install ElasticSearch service")])])]),c("tr",null,[Vft,c("td",null,[c("div",zft,[G(c("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[368]||(e[368]=_=>r.configFile.elastic_search_url=_),onChange:e[369]||(e[369]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),c("div",Hft,[c("div",qft,[c("button",{onClick:e[370]||(e[370]=be(_=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,$ft,512),[[Mt,s.bzc_collapsed]]),G(c("div",null,Kft,512),[[Mt,!s.bzc_collapsed]]),jft,r.configFile.binding_name?V("",!0):(w(),A("div",Qft,[Xft,et(" No binding selected! ")])),r.configFile.binding_name?(w(),A("div",Zft,"|")):V("",!0),r.configFile.binding_name?(w(),A("div",Jft,[c("div",emt,[c("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,tmt),c("h3",nmt,he(r.binding_name),1)])])):V("",!0)])]),c("div",{class:He([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(w(),A("div",imt,[c("label",smt," Bindings: ("+he(r.bindingsZoo.length)+") ",1),c("div",{class:He(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[Te(os,{name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.bindingsZoo,(_,m)=>(w(),xt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+m+"-"+_.folder,binding:_,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:_.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):V("",!0),s.bzl_collapsed?(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[371]||(e[371]=_=>s.bzl_collapsed=!s.bzl_collapsed)},omt)):(w(),A("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[372]||(e[372]=_=>s.bzl_collapsed=!s.bzl_collapsed)},lmt))],2)]),c("div",cmt,[c("div",dmt,[c("button",{onClick:e[373]||(e[373]=be(_=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[G(c("div",null,pmt,512),[[Mt,s.mzc_collapsed]]),G(c("div",null,hmt,512),[[Mt,!s.mzc_collapsed]]),fmt,c("div",mmt,[r.configFile.binding_name?V("",!0):(w(),A("div",gmt,[bmt,et(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(w(),A("div",Emt,[ymt,et(" No model selected! ")])):V("",!0),r.configFile.model_name?(w(),A("div",vmt,"|")):V("",!0),r.configFile.model_name?(w(),A("div",Smt,[c("div",Tmt,[c("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,xmt),c("h3",Cmt,he(r.configFile.model_name),1)])])):V("",!0)])])]),c("div",{class:He([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",wmt,[c("div",Rmt,[c("div",Amt,[s.searchModelInProgress?(w(),A("div",Nmt,Imt)):V("",!0),s.searchModelInProgress?V("",!0):(w(),A("div",Mmt,kmt))]),G(c("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search models...",required:"","onUpdate:modelValue":e[374]||(e[374]=_=>s.searchModel=_),onKeyup:e[375]||(e[375]=Hs((..._)=>r.searchModel_func&&r.searchModel_func(..._),["enter"]))},null,544),[[we,s.searchModel]]),s.searchModel?(w(),A("button",{key:0,onClick:e[376]||(e[376]=be(_=>s.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):V("",!0)])]),c("div",null,[G(c("input",{"onUpdate:modelValue":e[377]||(e[377]=_=>s.show_only_installed_models=_),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Je,s.show_only_installed_models]]),Lmt]),c("div",null,[Te(l,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Pmt,s.is_loading_zoo?(w(),A("div",Umt,Gmt)):V("",!0),s.models_zoo&&s.models_zoo.length>0?(w(),A("div",Vmt,[c("label",zmt," Models: ("+he(s.models_zoo.length)+") ",1),c("div",{class:He(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",s.mzl_collapsed?"":"max-h-96"])},[Te(os,{name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.rendered_models_zoo,(_,m)=>(w(),xt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+_.name,model:_,"is-installed":_.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:_.name===r.configFile.model_name,model_type:_.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),c("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[378]||(e[378]=(..._)=>r.load_more_models&&r.load_more_models(..._))},"Load more models",512)]),_:1})],2)])):V("",!0),s.mzl_collapsed?(w(),A("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[379]||(e[379]=(..._)=>r.open_mzl&&r.open_mzl(..._))},qmt)):(w(),A("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[380]||(e[380]=(..._)=>r.open_mzl&&r.open_mzl(..._))},$mt)),c("div",Wmt,[c("div",Kmt,[c("div",null,[c("div",jmt,[Qmt,G(c("input",{type:"text","onUpdate:modelValue":e[381]||(e[381]=_=>s.reference_path=_),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter Path ...",required:""},null,512),[[we,s.reference_path]])]),c("button",{type:"button",onClick:e[382]||(e[382]=be(_=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),s.modelDownlaodInProgress?V("",!0):(w(),A("div",Xmt,[c("div",Zmt,[Jmt,G(c("input",{type:"text","onUpdate:modelValue":e[383]||(e[383]=_=>s.addModel.url=_),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[we,s.addModel.url]])]),c("button",{type:"button",onClick:e[384]||(e[384]=be(_=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),s.modelDownlaodInProgress?(w(),A("div",egt,[tgt,c("div",ngt,[c("div",igt,[c("div",sgt,[rgt,c("span",ogt,he(Math.floor(s.addModel.progress))+"%",1)]),c("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},he(s.addModel.url),9,agt),c("div",lgt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en({width:s.addModel.progress+"%"})},null,4)]),c("div",cgt,[c("span",dgt,"Download speed: "+he(r.speed_computed)+"/s",1),c("span",ugt,he(r.downloaded_size_computed)+"/"+he(r.total_size_computed),1)])])]),c("div",pgt,[c("div",_gt,[c("div",hgt,[c("button",{onClick:e[385]||(e[385]=be((..._)=>r.onCancelInstall&&r.onCancelInstall(..._),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):V("",!0)])])],2)]),c("div",fgt,[c("div",mgt,[c("button",{onClick:e[388]||(e[388]=be(_=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[G(c("div",null,bgt,512),[[Mt,s.pzc_collapsed]]),G(c("div",null,ygt,512),[[Mt,!s.pzc_collapsed]]),vgt,r.configFile.personalities?(w(),A("div",Sgt,"|")):V("",!0),c("div",Tgt,he(r.active_pesonality),1),r.configFile.personalities?(w(),A("div",xgt,"|")):V("",!0),r.configFile.personalities?(w(),A("div",Cgt,[r.mountedPersArr.length>0?(w(),A("div",wgt,[(w(!0),A(Ye,null,lt(r.mountedPersArr,(_,m)=>(w(),A("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:m+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[c("div",Rgt,[c("button",{onClick:be(E=>r.onPersonalitySelected(_),["stop"])},[c("img",{src:s.bUrl+_.avatar,onError:e[386]||(e[386]=(...E)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...E)),class:He(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,Ngt)],8,Agt),c("button",{onClick:be(E=>r.unmountPersonality(_),["stop"])},Mgt,8,Ogt)])]))),128))])):V("",!0)])):V("",!0),c("button",{onClick:e[387]||(e[387]=be(_=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},kgt)])]),c("div",{class:He([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Lgt,[Pgt,c("div",Ugt,[c("div",Fgt,[s.searchPersonalityInProgress?(w(),A("div",Bgt,Vgt)):V("",!0),s.searchPersonalityInProgress?V("",!0):(w(),A("div",zgt,qgt))]),G(c("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[389]||(e[389]=_=>s.searchPersonality=_),onKeyup:e[390]||(e[390]=be((..._)=>r.searchPersonality_func&&r.searchPersonality_func(..._),["stop"]))},null,544),[[we,s.searchPersonality]]),s.searchPersonality?(w(),A("button",{key:0,onClick:e[391]||(e[391]=be(_=>s.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):V("",!0)])]),s.searchPersonality?V("",!0):(w(),A("div",Ygt,[c("label",$gt," Personalities Category: ("+he(s.persCatgArr.length)+") ",1),c("select",{id:"persCat",onChange:e[392]||(e[392]=_=>r.update_personality_category(_.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(w(!0),A(Ye,null,lt(s.persCatgArr,(_,m)=>(w(),A("option",{key:m,selected:_==this.configFile.personality_category},he(_),9,Wgt))),128))],32)])),c("div",null,[s.personalitiesFiltered.length>0?(w(),A("div",Kgt,[c("label",jgt,he(s.searchPersonality?"Search results":"Personalities")+": ("+he(s.personalitiesFiltered.length)+") ",1),c("div",{class:He(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[Te(os,{name:"bounce"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.personalitiesFiltered,(_,m)=>(w(),xt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+m+"-"+_.name,personality:_,select_language:!0,full_path:_.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(E=>E===_.full_path||E===_.full_path+":"+_.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})],2)])):V("",!0)]),s.pzl_collapsed?(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[393]||(e[393]=_=>s.pzl_collapsed=!s.pzl_collapsed)},Xgt)):(w(),A("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[394]||(e[394]=_=>s.pzl_collapsed=!s.pzl_collapsed)},Jgt))],2)]),c("div",ebt,[c("div",tbt,[c("button",{onClick:e[395]||(e[395]=be(_=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[G(c("div",null,ibt,512),[[Mt,s.mc_collapsed]]),G(c("div",null,rbt,512),[[Mt,!s.mc_collapsed]]),obt])]),c("div",{class:He([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[c("div",abt,[c("div",lbt,[G(c("input",{id:"override-model-parameters",type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[396]||(e[396]=be(()=>{},["stop"])),"onUpdate:modelValue":e[397]||(e[397]=_=>r.configFile.override_personality_model_parameters=_),onChange:e[398]||(e[398]=_=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[Je,r.configFile.override_personality_model_parameters]]),cbt])]),c("div",{class:He(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[c("div",dbt,[ubt,G(c("input",{type:"text",id:"seed","onUpdate:modelValue":e[399]||(e[399]=_=>r.configFile.seed=_),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[we,r.configFile.seed]])]),c("div",pbt,[c("div",_bt,[c("div",hbt,[fbt,c("p",mbt,[G(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[400]||(e[400]=_=>r.configFile.temperature=_),onChange:e[401]||(e[401]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.temperature]])])]),G(c("input",{id:"temperature",onChange:e[402]||(e[402]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[403]||(e[403]=_=>r.configFile.temperature=_),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.temperature]])])]),c("div",gbt,[c("div",bbt,[c("div",Ebt,[ybt,c("p",vbt,[G(c("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[404]||(e[404]=_=>r.configFile.n_predict=_),onChange:e[405]||(e[405]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.n_predict]])])]),G(c("input",{id:"predict",type:"range",onChange:e[406]||(e[406]=_=>s.settingsChanged=!0),"onUpdate:modelValue":e[407]||(e[407]=_=>r.configFile.n_predict=_),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.n_predict]])])]),c("div",Sbt,[c("div",Tbt,[c("div",xbt,[Cbt,c("p",wbt,[G(c("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[408]||(e[408]=_=>r.configFile.top_k=_),onChange:e[409]||(e[409]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_k]])])]),G(c("input",{id:"top_k",type:"range",onChange:e[410]||(e[410]=_=>s.settingsChanged=!0),"onUpdate:modelValue":e[411]||(e[411]=_=>r.configFile.top_k=_),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_k]])])]),c("div",Rbt,[c("div",Abt,[c("div",Nbt,[Obt,c("p",Ibt,[G(c("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[412]||(e[412]=_=>r.configFile.top_p=_),onChange:e[413]||(e[413]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_p]])])]),G(c("input",{id:"top_p",type:"range","onUpdate:modelValue":e[414]||(e[414]=_=>r.configFile.top_p=_),min:"0",max:"1",step:"0.01",onChange:e[415]||(e[415]=_=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.top_p]])])]),c("div",Mbt,[c("div",Dbt,[c("div",kbt,[Lbt,c("p",Pbt,[G(c("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[416]||(e[416]=_=>r.configFile.repeat_penalty=_),onChange:e[417]||(e[417]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_penalty]])])]),G(c("input",{id:"repeat_penalty",onChange:e[418]||(e[418]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[419]||(e[419]=_=>r.configFile.repeat_penalty=_),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_penalty]])])]),c("div",Ubt,[c("div",Fbt,[c("div",Bbt,[Gbt,c("p",Vbt,[G(c("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[420]||(e[420]=_=>r.configFile.repeat_last_n=_),onChange:e[421]||(e[421]=_=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_last_n]])])]),G(c("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[422]||(e[422]=_=>r.configFile.repeat_last_n=_),min:"0",max:"100",step:"1",onChange:e[423]||(e[423]=_=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[we,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Te(h,{ref:"addmodeldialog"},null,512),Te(f,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Hbt=bt(Yrt,[["render",zbt],["__scopeId","data-v-e1d3bae0"]]),qbt={components:{ClipBoardTextInput:xE,Card:rp},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};Se.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},Ybt={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},$bt={class:"mb-4"},Wbt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Kbt=["value"],jbt={class:"mb-4"},Qbt=c("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Xbt={class:"mb-4"},Zbt=c("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),Jbt={class:"mb-4"},eEt=c("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),tEt={class:"mb-4"},nEt=c("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),iEt={class:"mb-4"},sEt=c("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),rEt={class:"mb-4"},oEt=c("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),aEt=c("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),lEt={key:1};function cEt(n,e,t,i,s,r){const o=mt("Card"),a=mt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(w(),A("div",Ybt,[c("form",{onSubmit:e[2]||(e[2]=be((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:""},[Te(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(o,{title:"Model",class:"",isHorizontal:!1},{default:We(()=>[c("div",$bt,[Wbt,G(c("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(w(!0),A(Ye,null,lt(r.models,l=>(w(),A("option",{key:l,value:l},he(l),9,Kbt))),128))],544),[[jt,r.selectedModel]])])]),_:1}),Te(o,{title:"Data",isHorizontal:!1},{default:We(()=>[c("div",jbt,[Qbt,Te(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Te(o,{title:"Training",isHorizontal:!1},{default:We(()=>[c("div",Xbt,[Zbt,Te(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),c("div",Jbt,[eEt,Te(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),c("div",tEt,[nEt,Te(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),c("div",iEt,[sEt,Te(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),Te(o,{title:"Output",isHorizontal:!1},{default:We(()=>[c("div",rEt,[oEt,Te(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),Te(o,{disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[aEt]),_:1})],32)])):(w(),A("div",lEt,[Te(o,{title:"Info",class:"",isHorizontal:!1},{default:We(()=>[et(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const dEt=bt(qbt,[["render",cEt]]),uEt={components:{ClipBoardTextInput:xE,Card:rp},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},pEt={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},_Et={class:"mb-4"},hEt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),fEt={class:"mb-4"},mEt=c("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),gEt=c("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function bEt(n,e,t,i,s,r){const o=mt("ClipBoardTextInput"),a=mt("Card");return w(),A("div",pEt,[c("form",{onSubmit:e[0]||(e[0]=be((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Te(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(a,{title:"Model",class:"",isHorizontal:!1},{default:We(()=>[c("div",_Et,[hEt,Te(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),c("div",fEt,[mEt,Te(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Te(a,{disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[gEt]),_:1})],32)])}const EEt=bt(uEt,[["render",bEt]]),yEt={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(n){this.newTitle=n},checkedChangeEvent(n,e){this.$emit("checked",n,e)}},mounted(){this.newTitle=this.title,Ge(()=>{ze.replace()})},watch:{showConfirmation(){Ge(()=>{ze.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Ge(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Ge(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},vEt=["id"],SEt={class:"flex flex-row items-center gap-2"},TEt={key:0},xEt={class:"flex flex-row items-center w-full"},CEt=["title"],wEt=["value"],REt={class:"flex items-center flex-1 max-h-6"},AEt={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},NEt=c("i",{"data-feather":"x"},null,-1),OEt=[NEt],IEt=c("i",{"data-feather":"check"},null,-1),MEt=[IEt],DEt={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},kEt=c("i",{"data-feather":"folder"},null,-1),LEt=[kEt],PEt=c("i",{"data-feather":"type"},null,-1),UEt=[PEt],FEt=c("i",{"data-feather":"edit-2"},null,-1),BEt=[FEt],GEt=c("i",{"data-feather":"trash"},null,-1),VEt=[GEt];function zEt(n,e,t,i,s,r){return w(),A("div",{class:He([t.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md min-w-[23rem] max-w-[23rem]":" min-w-[23rem] max-w-[23rem]","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=be(o=>r.selectEvent(),["stop"]))},[c("div",SEt,[t.isCheckbox?(w(),A("div",TEt,[G(c("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=be(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[Je,s.checkBoxValue_local]])])):V("",!0),t.selected?(w(),A("div",{key:1,class:He(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):V("",!0),t.selected?V("",!0):(w(),A("div",{key:2,class:He(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),c("div",xEt,[s.editTitle?V("",!0):(w(),A("p",{key:0,title:t.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},he(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,CEt)),s.editTitle?(w(),A("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:t.title,required:"",onKeydown:[e[3]||(e[3]=Hs(be(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Hs(be(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=be(()=>{},["stop"]))},null,40,wEt)):V("",!0),c("div",REt,[s.showConfirmation?(w(),A("div",AEt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=be(o=>r.cancel(),["stop"]))},OEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=be(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},MEt)])):V("",!0),s.showConfirmation?V("",!0):(w(),A("div",DEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=be(o=>r.openFolderEvent(),["stop"]))},LEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=be(o=>s.makeTitleMode=!0,["stop"]))},UEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=be(o=>s.editTitleMode=!0,["stop"]))},BEt),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=be(o=>s.deleteMode=!0,["stop"]))},VEt)]))])])],10,vEt)}const RE=bt(yEt,[["render",zEt]]),HEt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(n){this.prompt=n}}},qEt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},YEt={class:"bg-white p-8 rounded"},$Et={class:"text-xl font-bold mb-4"};function WEt(n,e,t,i,s,r){return w(),A("div",null,[s.show?(w(),A("div",qEt,[c("div",YEt,[c("h2",$Et,he(t.promptText),1),G(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[we,s.inputText]]),c("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),c("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):V("",!0)])}const gO=bt(HEt,[["render",WEt]]),KEt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:RE,MarkdownRenderer:ip},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){Se.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(n=>{this.categories=n.data.categories}).catch(n=>{console.error("Error fetching categories:",n)})},fetchTitles(){console.log("Fetching categories"),Se.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(n=>{this.titles=n.data.titles,console.log("titles recovered")}).catch(n=>{console.error("Error fetching titles:",n)})},fetchContent(n){Se.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:n}).then(e=>{const t=e.data.contents[0];this.id=t.id,this.content=t.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(n){console.log("Delete category")},editCategory(n){console.log("Edit category")},checkUncheckCategory(n){console.log("Unchecked category")},deleteSkill(n){console.log("Delete skill ",n),Se.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:n}).then(()=>{this.fetchTitles()})},editTitle(n){Se.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:n,title:n}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(n){console.log("Make title")},checkUncheckTitle(n){},searchSkills(){}}},jEt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},QEt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},XEt={class:"search p-4"},ZEt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},JEt=c("h2",{class:"text-xl font-bold m-4"},"Titles",-1),eyt={class:"z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},tyt=c("h2",{class:"text-xl font-bold m-4"},"Content",-1);function nyt(n,e,t,i,s,r){const o=mt("Discussion"),a=mt("MarkdownRenderer");return w(),A("div",{class:He([{hidden:!s.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[c("div",jEt,[c("div",QEt,[c("div",XEt,[G(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=l=>s.searchQuery=l),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[we,s.searchQuery]]),c("button",{onClick:e[1]||(e[1]=(...l)=>r.searchSkills&&r.searchSkills(...l)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),c("div",ZEt,[JEt,s.titles.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.titles,l=>(w(),xt(o,{key:l.id,id:l.id,title:l.title,selected:r.fetchContent(l.id),loading:s.loading,isCheckbox:s.isCheckbox,checkBoxValue:!1,onSelect:u=>r.fetchContent(l.id),onDelete:u=>r.deleteSkill(l.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):V("",!0)])]),c("div",eyt,[tyt,Te(a,{host:t.host,"markdown-text":s.content,message_id:s.id,discussion_id:s.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),c("button",{onClick:e[2]||(e[2]=(...l)=>r.closeComponent&&r.closeComponent(...l)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const bO=bt(KEt,[["render",nyt]]),iyt={props:{htmlContent:{type:String,required:!0}}},syt=["innerHTML"];function ryt(n,e,t,i,s,r){return w(),A("div",{class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:t.htmlContent},null,8,syt)}const oyt=bt(iyt,[["render",ryt]]);const ayt={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"
"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"
")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},lyt={key:0},cyt={class:"toggle-icon mr-1"},dyt={key:0,class:"fas fa-plus-circle text-gray-600"},uyt={key:1,class:"fas fa-minus-circle text-gray-600"},pyt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},_yt={key:0,class:"fas fa-plus-circle text-gray-600"},hyt={key:1,class:"fas fa-minus-circle text-gray-600"},fyt=["innerHTML"];function myt(n,e,t,i,s,r){return r.isContentPresent?(w(),A("div",lyt,[c("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>r.toggleCollapsible&&r.toggleCollapsible(...o))},[c("span",cyt,[s.collapsed?(w(),A("i",dyt)):(w(),A("i",uyt))]),et(" "+he(t.jsonFormText),1)]),G(c("div",null,[c("div",pyt,[r.isObject?(w(),A("span",{key:0,onClick:e[1]||(e[1]=(...o)=>r.toggleCollapsed&&r.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(w(),A("i",_yt)):(w(),A("i",hyt))])):V("",!0),c("pre",{innerHTML:r.formattedJson},null,8,fyt)])],512),[[Mt,!s.collapsed]])])):V("",!0)}const gyt=bt(ayt,[["render",myt]]),byt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0},step_type:{type:String,required:!1,default:"start_end"}}},Eyt={class:"flex items-start"},yyt={class:"step flex items-center mb-4"},vyt={key:0,class:"flex items-center justify-center w-6 h-6 mr-2"},Syt={key:0},Tyt=c("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),xyt=[Tyt],Cyt={key:1},wyt=c("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Ryt=[wyt],Ayt={key:2},Nyt=c("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Oyt=[Nyt],Iyt={key:1,role:"status",class:"m-15"},Myt=c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),Dyt=[Myt],kyt={class:"text-sm ml-6"};function Lyt(n,e,t,i,s,r){return w(),A("div",Eyt,[c("div",yyt,[t.step_type=="start_end"?(w(),A("div",vyt,[t.done?V("",!0):(w(),A("div",Syt,xyt)),t.done&&t.status?(w(),A("div",Cyt,Ryt)):V("",!0),t.done&&!t.status?(w(),A("div",Ayt,Oyt)):V("",!0)])):V("",!0),t.done?V("",!0):(w(),A("div",Iyt,Dyt)),c("h3",kyt,he(t.message),1)])])}const Pyt=bt(byt,[["render",Lyt]]),Uyt="/assets/process-61f7a21b.svg",Fyt="/assets/ok-a0b56451.svg",Byt="/assets/failed-183609e7.svg",EO="/assets/send_globe-305330b9.svg";const Gyt="/",Vyt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:ip,Step:Pyt,RenderHTMLJS:oyt,JsonViewer:gyt,DynamicUIRenderer:mO},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{isSynthesizingVoice:!1,cpp_block:dO,html5_block:uO,LaTeX_block:pO,json_block:cO,javascript_block:lO,process_svg:Uyt,ok_svg:Fyt,failed_svg:Byt,loading_svg:hO,sendGlobe:EO,code_block:oO,python_block:aO,bash_block:_O,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Ge(()=>{ze.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let n of this.message.metadata)Object.prototype.hasOwnProperty.call(n,"audio_url")&&n.audio_url!=null&&(this.audio_url=n.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(n,e){let t=e.getTime()-n.getTime();const i=Math.floor(t/(1e3*60*60));t-=i*(1e3*60*60);const s=Math.floor(t/(1e3*60));t-=s*(1e3*60);const r=Math.floor(t/1e3);return t-=r*1e3,[i,s,r]},insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=n.shiftKey;if(t===i)if(s){if(e.value.substring(t-4,t)==" "){const r=e.value.substring(0,t-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(i),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,i).split(` `).map(d=>d.trim()===""?d:s?d.startsWith(" ")?d.substring(4):d:" "+d),a=e.value.substring(0,t),l=e.value.substring(i),u=a+o.join(` `)+l;this.message.content=u,this.$nextTick(()=>{e.selectionStart=t,e.selectionEnd=i+o.length*4})}n.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.isSynthesizingVoice=!1,this.$refs.audio_player.pause()):(this.isSynthesizingVoice=!0,Se.post("./text2wav",{text:this.message.content}).then(n=>{this.isSynthesizingVoice=!1;let e=n.data.url;console.log(e),this.audio_url=e,this.message.metadata||(this.message.metadata=[]);let t=!1;for(let i of this.message.metadata)Object.prototype.hasOwnProperty.call(i,"audio_url")&&(i.audio_url=this.audio_url,t=!0);t||this.message.metadata.push({audio_url:this.audio_url}),this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url)}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSynthesizingVoice=!1}))},speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking=!0,Se.post("./text2Audio",{text:this.message.content}).then(n=>{this.isSpeaking=!1}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSpeaking=!1});else{if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.message.content,this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const t=s=>{let r=this.message.content.substring(s,s+e);const o=[".","!","?",` `];let a=-1;return o.forEach(l=>{const u=r.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{if(this.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const s=t(n),r=this.message.content.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",s))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{i()},1)};console.log("Speaking chunk"),i()}},toggleModel(){this.expanded=!this.expanded},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+3+n.length):speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+` -`+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?Byt+this.avatar:(console.log("No avatar found"),Ti)},defaultImg(n){n.target.src=Ti},parseDate(n){let e=new Date(Date.parse(n)),i=Math.floor((new Date-e)/1e3);return i<=1?"just now":i<20?i+" seconds ago":i<40?"half a minute ago":i<60?"less than a minute ago":i<=90?"one minute ago":i<=3540?Math.round(i/60)+" minutes ago":i<=5400?"1 hour ago":i<=86400?Math.round(i/3600)+" hours ago":i<=129600?"1 day ago":i<604800?Math.round(i/86400)+" days ago":i<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,i=Math.floor(t/86400);if(!(isNaN(i)||i<0||i>=31))return i==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||i==1&&"Yesterday"||i<7&&i+" days ago"||i<31&&Math.ceil(i/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed")},showConfirmation(){Ge(()=>{ze.replace()})},deleteMsgMode(){Ge(()=>{ze.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Ge(()=>{ze.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[i,s,r]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let i,s,r;[i,s,r]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let s=e.getTime()-n.getTime();const r=Math.floor(s/1e3),o=t/r;return Math.round(o)+" t/s"}}},Vyt={class:"relative w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},zyt={class:"flex flex-row gap-2"},Hyt={class:"flex-shrink-0"},qyt={class:"group/avatar"},Yyt=["src","data-popover-target"],$yt={class:"flex flex-col w-full flex-grow-0"},Wyt={class:"flex flex-row flex-grow items-start"},Kyt={class:"flex flex-col mb-2"},jyt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Qyt=["title"],Xyt=c("div",{class:"flex-grow"},null,-1),Zyt={class:"flex-row justify-end mx-2"},Jyt={class:"invisible group-hover:visible flex flex-row"},evt={key:0,class:"flex items-center duration-75"},tvt=c("i",{"data-feather":"x"},null,-1),nvt=[tvt],ivt=c("i",{"data-feather":"check"},null,-1),svt=[ivt],rvt=c("i",{"data-feather":"edit"},null,-1),ovt=[rvt],avt=["src"],lvt=["src"],cvt=["src"],dvt=["src"],uvt=["src"],pvt=["src"],_vt=["src"],hvt=["src"],fvt=c("i",{"data-feather":"copy"},null,-1),mvt=[fvt],gvt=c("i",{"data-feather":"send"},null,-1),bvt=[gvt],Evt=["src"],yvt=c("i",{"data-feather":"send"},null,-1),vvt=[yvt],Svt=c("i",{"data-feather":"fast-forward"},null,-1),Tvt=[Svt],xvt={key:14,class:"flex items-center duration-75"},Cvt=c("i",{"data-feather":"x"},null,-1),wvt=[Cvt],Rvt=c("i",{"data-feather":"check"},null,-1),Avt=[Rvt],Nvt=c("i",{"data-feather":"trash"},null,-1),Ovt=[Nvt],Ivt=c("i",{"data-feather":"thumbs-up"},null,-1),Mvt=[Ivt],Dvt={class:"flex flex-row items-center"},kvt=c("i",{"data-feather":"thumbs-down"},null,-1),Lvt=[kvt],Pvt={class:"flex flex-row items-center"},Uvt=c("i",{"data-feather":"volume-2"},null,-1),Fvt=[Uvt],Bvt={key:16,class:"flex flex-row items-center"},Gvt=c("i",{"data-feather":"voicemail"},null,-1),Vvt=[Gvt],zvt=["src"],Hvt={class:"overflow-x-auto w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},qvt={class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full"},Yvt={class:"grid min-w-72 select-none grid-cols-[40px,1fr] items-center gap-2.5 p-2"},$vt={class:"relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-300 dark:bg-gray-200"},Wvt=["src"],Kvt=["src"],jvt=["src"],Qvt={class:"leading-4"},Xvt=c("dd",{class:"text-sm"},"Processing infos",-1),Zvt={class:"flex items-center gap-1 truncate whitespace-nowrap text-[.82rem] text-gray-400"},Jvt={class:"content px-5 pb-5 pt-4"},eSt={class:"list-none"},tSt=c("div",{class:"flex flex-col items-start w-full"},null,-1),nSt={class:"flex flex-col items-start w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},iSt={key:1},sSt=["src"],rSt={class:"text-sm text-gray-400 mt-2"},oSt={class:"flex flex-row items-center gap-2"},aSt={key:0},lSt={class:"font-thin"},cSt={key:1},dSt={class:"font-thin"},uSt={key:2},pSt={class:"font-thin"},_St={key:3},hSt=["title"],fSt={key:4},mSt=["title"],gSt={key:5},bSt=["title"],ESt={key:6},ySt=["title"];function vSt(n,e,t,i,s,r){var h;const o=mt("Step"),a=mt("RenderHTMLJS"),l=mt("MarkdownRenderer"),u=mt("JsonViewer"),d=mt("DynamicUIRenderer");return w(),A("div",Vyt,[c("div",zyt,[c("div",Hyt,[c("div",qyt,[c("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=f=>r.defaultImg(f)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Yyt)])]),c("div",$yt,[c("div",Wyt,[c("div",Kyt,[c("div",jyt,he(t.message.sender)+" ",1),t.message.created_at?(w(),A("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},he(r.created_at),9,Qyt)):V("",!0)]),Xyt,c("div",Zyt,[c("div",Jyt,[r.editMsgMode?(w(),A("div",evt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=be(f=>r.editMsgMode=!1,["stop"]))},nvt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=be((...f)=>r.updateMessage&&r.updateMessage(...f),["stop"]))},svt)])):V("",!0),r.editMsgMode?V("",!0):(w(),A("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Edit message",onClick:e[3]||(e[3]=be(f=>r.editMsgMode=!0,["stop"]))},ovt)),r.editMsgMode?(w(),A("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[4]||(e[4]=be(f=>r.addBlock(""),["stop"]))},[c("img",{src:s.code_block,width:"25",height:"25"},null,8,avt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[5]||(e[5]=be(f=>r.addBlock("python"),["stop"]))},[c("img",{src:s.python_block,width:"25",height:"25"},null,8,lvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:4,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add javascript block",onClick:e[6]||(e[6]=be(f=>r.addBlock("javascript"),["stop"]))},[c("img",{src:s.javascript_block,width:"25",height:"25"},null,8,cvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:5,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add json block",onClick:e[7]||(e[7]=be(f=>r.addBlock("json"),["stop"]))},[c("img",{src:s.json_block,width:"25",height:"25"},null,8,dvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:6,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add c++ block",onClick:e[8]||(e[8]=be(f=>r.addBlock("c++"),["stop"]))},[c("img",{src:s.cpp_block,width:"25",height:"25"},null,8,uvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:7,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add html block",onClick:e[9]||(e[9]=be(f=>r.addBlock("html"),["stop"]))},[c("img",{src:s.html5_block,width:"25",height:"25"},null,8,pvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:8,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add LaTex block",onClick:e[10]||(e[10]=be(f=>r.addBlock("latex"),["stop"]))},[c("img",{src:s.LaTeX_block,width:"25",height:"25"},null,8,_vt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:9,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add bash block",onClick:e[11]||(e[11]=be(f=>r.addBlock("bash"),["stop"]))},[c("img",{src:s.bash_block,width:"25",height:"25"},null,8,hvt)])):V("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Copy message to clipboard",onClick:e[12]||(e[12]=be(f=>r.copyContentToClipboard(),["stop"]))},mvt),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:10,class:He(["text-lg text-red-500 hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message with full context",onClick:e[13]||(e[13]=be(f=>r.resendMessage("full_context"),["stop"]))},bvt,2)):V("",!0),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:11,class:He(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[14]||(e[14]=be(f=>r.resendMessage("full_context_with_internet"),["stop"]))},[c("img",{src:s.sendGlobe,width:"25",height:"25"},null,8,Evt)],2)):V("",!0),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:12,class:He(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[15]||(e[15]=be(f=>r.resendMessage("simple_question"),["stop"]))},vvt,2)):V("",!0),!r.editMsgMode&&t.message.sender==this.$store.state.mountedPers.name?(w(),A("div",{key:13,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Resend message",onClick:e[16]||(e[16]=be(f=>r.continueMessage(),["stop"]))},Tvt)):V("",!0),s.deleteMsgMode?(w(),A("div",xvt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[17]||(e[17]=be(f=>s.deleteMsgMode=!1,["stop"]))},wvt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[18]||(e[18]=be(f=>r.deleteMsg(),["stop"]))},Avt)])):V("",!0),!r.editMsgMode&&!s.deleteMsgMode?(w(),A("div",{key:15,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[19]||(e[19]=f=>s.deleteMsgMode=!0)},Ovt)):V("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[20]||(e[20]=be(f=>r.rankUp(),["stop"]))},Mvt),c("div",Dvt,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[21]||(e[21]=be(f=>r.rankDown(),["stop"]))},Lvt),t.message.rank!=0?(w(),A("div",{key:0,class:He(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},he(t.message.rank),3)):V("",!0)]),c("div",Pvt,[this.$store.state.config.active_tts_service!="None"?(w(),A("div",{key:0,class:He(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[22]||(e[22]=be(f=>r.speak(),["stop"]))},Fvt,2)):V("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(w(),A("div",Bvt,[s.isSynthesizingVoice?(w(),A("img",{key:1,src:s.loading_svg},null,8,zvt)):(w(),A("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[23]||(e[23]=be(f=>r.read(),["stop"]))},Vvt))])):V("",!0)])])]),c("div",Hvt,[G(c("details",qvt,[c("summary",Yvt,[c("div",$vt,[t.message.status_message!="Done"&t.message.status_message!="Generation canceled"?(w(),A("img",{key:0,src:s.loading_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Wvt)):V("",!0),t.message.status_message=="Generation canceled"?(w(),A("img",{key:1,src:s.failed_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Kvt)):V("",!0),t.message.status_message=="Done"?(w(),A("img",{key:2,src:s.ok_svg,class:"w-50 h-50 absolute m-2 w-6 inset-0 text-geen-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,jvt)):V("",!0)]),c("dl",Qvt,[Xvt,c("dt",Zvt,he(t.message==null?"":t.message.status_message),1)])]),c("div",Jvt,[c("ol",eSt,[(w(!0),A(Ye,null,lt(t.message.steps,(f,_)=>(w(),A("div",{key:"step-"+t.message.id+"-"+_,class:"group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800",style:en({backgroundColor:f.done?"transparent":"inherit"})},[Te(o,{done:f.done,message:f.message,status:f.status,step_type:f.type},null,8,["done","message","status","step_type"])],4))),128))])])],512),[[Mt,t.message!=null&&t.message.steps!=null&&t.message.steps.length>0]]),tSt,c("div",nSt,[(w(!0),A(Ye,null,lt(t.message.html_js_s,(f,_)=>(w(),A("div",{key:"htmljs-"+t.message.id+"-"+_,class:"htmljs font-bold",style:en({backgroundColor:n.step.done?"transparent":"inherit"})},[Te(a,{htmlContent:f},null,8,["htmlContent"])],4))),128))]),r.editMsgMode?V("",!0):(w(),xt(l,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),c("div",null,[t.message.open?G((w(),A("textarea",{key:0,ref:"mdTextarea",onKeydown:e[24]||(e[24]=Hs(be((...f)=>r.insertTab&&r.insertTab(...f),["prevent"]),["tab"])),class:"block min-h-[900px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=f=>t.message.content=f)},`\r - `,544)),[[we,t.message.content]]):V("",!0)]),t.message.metadata!==null?(w(),A("div",iSt,[(w(!0),A(Ye,null,lt(((h=t.message.metadata)==null?void 0:h.filter(f=>f!=null&&f.hasOwnProperty("title")&&f.hasOwnProperty("content")))||[],(f,_)=>(w(),A("div",{key:"json-"+t.message.id+"-"+_,class:"json font-bold"},[Te(u,{jsonFormText:f.title,jsonData:f.content},null,8,["jsonFormText","jsonData"])]))),128))])):V("",!0),Te(d,{class:"w-full",code:t.message.ui},null,8,["code"]),s.audio_url!=null?(w(),A("audio",{controls:"",key:s.audio_url},[c("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,sSt),et(" Your browser does not support the audio element. ")])):V("",!0)]),c("div",rSt,[c("div",oSt,[t.message.binding?(w(),A("p",aSt,[et("Binding: "),c("span",lSt,he(t.message.binding),1)])):V("",!0),t.message.model?(w(),A("p",cSt,[et("Model: "),c("span",dSt,he(t.message.model),1)])):V("",!0),t.message.seed?(w(),A("p",uSt,[et("Seed: "),c("span",pSt,he(t.message.seed),1)])):V("",!0),t.message.nb_tokens?(w(),A("p",_St,[et("Number of tokens: "),c("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},he(t.message.nb_tokens),9,hSt)])):V("",!0),r.warmup_duration?(w(),A("p",fSt,[et("Warmup duration: "),c("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},he(r.warmup_duration),9,mSt)])):V("",!0),r.time_spent?(w(),A("p",gSt,[et("Generation duration: "),c("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},he(r.time_spent),9,bSt)])):V("",!0),r.generation_rate?(w(),A("p",ESt,[et("Rate: "),c("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},he(r.generation_rate),9,ySt)])):V("",!0)])])])])])}const yO=bt(Gyt,[["render",vSt]]),SSt="/";Se.defaults.baseURL="/";const TSt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:hc,UniversalForm:bc},data(){return{bUrl:SSt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await Se.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(s=>s===n.full_path),i={client_id:this.$store.state.client_id,id:t};e=await Se.post("/select_personality",i),console.log("Generating message from ",e.data.status),$e.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await Se.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{Se.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{Se.post("/set_active_personality_settings",t).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. +`+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?Gyt+this.avatar:(console.log("No avatar found"),Ti)},defaultImg(n){n.target.src=Ti},parseDate(n){let e=new Date(Date.parse(n)),i=Math.floor((new Date-e)/1e3);return i<=1?"just now":i<20?i+" seconds ago":i<40?"half a minute ago":i<60?"less than a minute ago":i<=90?"one minute ago":i<=3540?Math.round(i/60)+" minutes ago":i<=5400?"1 hour ago":i<=86400?Math.round(i/3600)+" hours ago":i<=129600?"1 day ago":i<604800?Math.round(i/86400)+" days ago":i<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,i=Math.floor(t/86400);if(!(isNaN(i)||i<0||i>=31))return i==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||i==1&&"Yesterday"||i<7&&i+" days ago"||i<31&&Math.ceil(i/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed")},showConfirmation(){Ge(()=>{ze.replace()})},deleteMsgMode(){Ge(()=>{ze.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Ge(()=>{ze.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[i,s,r]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let i,s,r;[i,s,r]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let s=e.getTime()-n.getTime();const r=Math.floor(s/1e3),o=t/r;return Math.round(o)+" t/s"}}},zyt={class:"relative w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Hyt={class:"flex flex-row gap-2"},qyt={class:"flex-shrink-0"},Yyt={class:"group/avatar"},$yt=["src","data-popover-target"],Wyt={class:"flex flex-col w-full flex-grow-0"},Kyt={class:"flex flex-row flex-grow items-start"},jyt={class:"flex flex-col mb-2"},Qyt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Xyt=["title"],Zyt=c("div",{class:"flex-grow"},null,-1),Jyt={class:"flex-row justify-end mx-2"},evt={class:"invisible group-hover:visible flex flex-row"},tvt={key:0,class:"flex items-center duration-75"},nvt=c("i",{"data-feather":"x"},null,-1),ivt=[nvt],svt=c("i",{"data-feather":"check"},null,-1),rvt=[svt],ovt=c("i",{"data-feather":"edit"},null,-1),avt=[ovt],lvt=["src"],cvt=["src"],dvt=["src"],uvt=["src"],pvt=["src"],_vt=["src"],hvt=["src"],fvt=["src"],mvt=c("i",{"data-feather":"copy"},null,-1),gvt=[mvt],bvt=c("i",{"data-feather":"send"},null,-1),Evt=[bvt],yvt=["src"],vvt=c("i",{"data-feather":"send"},null,-1),Svt=[vvt],Tvt=c("i",{"data-feather":"fast-forward"},null,-1),xvt=[Tvt],Cvt={key:14,class:"flex items-center duration-75"},wvt=c("i",{"data-feather":"x"},null,-1),Rvt=[wvt],Avt=c("i",{"data-feather":"check"},null,-1),Nvt=[Avt],Ovt=c("i",{"data-feather":"trash"},null,-1),Ivt=[Ovt],Mvt=c("i",{"data-feather":"thumbs-up"},null,-1),Dvt=[Mvt],kvt={class:"flex flex-row items-center"},Lvt=c("i",{"data-feather":"thumbs-down"},null,-1),Pvt=[Lvt],Uvt={class:"flex flex-row items-center"},Fvt=c("i",{"data-feather":"volume-2"},null,-1),Bvt=[Fvt],Gvt={key:16,class:"flex flex-row items-center"},Vvt=c("i",{"data-feather":"voicemail"},null,-1),zvt=[Vvt],Hvt=["src"],qvt={class:"overflow-x-auto w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Yvt={class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full"},$vt={class:"grid min-w-72 select-none grid-cols-[40px,1fr] items-center gap-2.5 p-2"},Wvt={class:"relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-300 dark:bg-gray-200"},Kvt=["src"],jvt=["src"],Qvt=["src"],Xvt={class:"leading-4"},Zvt=c("dd",{class:"text-sm"},"Processing infos",-1),Jvt={class:"flex items-center gap-1 truncate whitespace-nowrap text-[.82rem] text-gray-400"},eSt={class:"content px-5 pb-5 pt-4"},tSt={class:"list-none"},nSt=c("div",{class:"flex flex-col items-start w-full"},null,-1),iSt={class:"flex flex-col items-start w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},sSt={key:1},rSt=["src"],oSt={class:"text-sm text-gray-400 mt-2"},aSt={class:"flex flex-row items-center gap-2"},lSt={key:0},cSt={class:"font-thin"},dSt={key:1},uSt={class:"font-thin"},pSt={key:2},_St={class:"font-thin"},hSt={key:3},fSt=["title"],mSt={key:4},gSt=["title"],bSt={key:5},ESt=["title"],ySt={key:6},vSt=["title"];function SSt(n,e,t,i,s,r){var h;const o=mt("Step"),a=mt("RenderHTMLJS"),l=mt("MarkdownRenderer"),u=mt("JsonViewer"),d=mt("DynamicUIRenderer");return w(),A("div",zyt,[c("div",Hyt,[c("div",qyt,[c("div",Yyt,[c("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=f=>r.defaultImg(f)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,$yt)])]),c("div",Wyt,[c("div",Kyt,[c("div",jyt,[c("div",Qyt,he(t.message.sender)+" ",1),t.message.created_at?(w(),A("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},he(r.created_at),9,Xyt)):V("",!0)]),Zyt,c("div",Jyt,[c("div",evt,[r.editMsgMode?(w(),A("div",tvt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=be(f=>r.editMsgMode=!1,["stop"]))},ivt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=be((...f)=>r.updateMessage&&r.updateMessage(...f),["stop"]))},rvt)])):V("",!0),r.editMsgMode?V("",!0):(w(),A("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Edit message",onClick:e[3]||(e[3]=be(f=>r.editMsgMode=!0,["stop"]))},avt)),r.editMsgMode?(w(),A("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[4]||(e[4]=be(f=>r.addBlock(""),["stop"]))},[c("img",{src:s.code_block,width:"25",height:"25"},null,8,lvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[5]||(e[5]=be(f=>r.addBlock("python"),["stop"]))},[c("img",{src:s.python_block,width:"25",height:"25"},null,8,cvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:4,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add javascript block",onClick:e[6]||(e[6]=be(f=>r.addBlock("javascript"),["stop"]))},[c("img",{src:s.javascript_block,width:"25",height:"25"},null,8,dvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:5,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add json block",onClick:e[7]||(e[7]=be(f=>r.addBlock("json"),["stop"]))},[c("img",{src:s.json_block,width:"25",height:"25"},null,8,uvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:6,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add c++ block",onClick:e[8]||(e[8]=be(f=>r.addBlock("c++"),["stop"]))},[c("img",{src:s.cpp_block,width:"25",height:"25"},null,8,pvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:7,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add html block",onClick:e[9]||(e[9]=be(f=>r.addBlock("html"),["stop"]))},[c("img",{src:s.html5_block,width:"25",height:"25"},null,8,_vt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:8,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add LaTex block",onClick:e[10]||(e[10]=be(f=>r.addBlock("latex"),["stop"]))},[c("img",{src:s.LaTeX_block,width:"25",height:"25"},null,8,hvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:9,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add bash block",onClick:e[11]||(e[11]=be(f=>r.addBlock("bash"),["stop"]))},[c("img",{src:s.bash_block,width:"25",height:"25"},null,8,fvt)])):V("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Copy message to clipboard",onClick:e[12]||(e[12]=be(f=>r.copyContentToClipboard(),["stop"]))},gvt),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:10,class:He(["text-lg text-red-500 hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message with full context",onClick:e[13]||(e[13]=be(f=>r.resendMessage("full_context"),["stop"]))},Evt,2)):V("",!0),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:11,class:He(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[14]||(e[14]=be(f=>r.resendMessage("full_context_with_internet"),["stop"]))},[c("img",{src:s.sendGlobe,width:"25",height:"25"},null,8,yvt)],2)):V("",!0),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:12,class:He(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[15]||(e[15]=be(f=>r.resendMessage("simple_question"),["stop"]))},Svt,2)):V("",!0),!r.editMsgMode&&t.message.sender==this.$store.state.mountedPers.name?(w(),A("div",{key:13,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Resend message",onClick:e[16]||(e[16]=be(f=>r.continueMessage(),["stop"]))},xvt)):V("",!0),s.deleteMsgMode?(w(),A("div",Cvt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[17]||(e[17]=be(f=>s.deleteMsgMode=!1,["stop"]))},Rvt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[18]||(e[18]=be(f=>r.deleteMsg(),["stop"]))},Nvt)])):V("",!0),!r.editMsgMode&&!s.deleteMsgMode?(w(),A("div",{key:15,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[19]||(e[19]=f=>s.deleteMsgMode=!0)},Ivt)):V("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[20]||(e[20]=be(f=>r.rankUp(),["stop"]))},Dvt),c("div",kvt,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[21]||(e[21]=be(f=>r.rankDown(),["stop"]))},Pvt),t.message.rank!=0?(w(),A("div",{key:0,class:He(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},he(t.message.rank),3)):V("",!0)]),c("div",Uvt,[this.$store.state.config.active_tts_service!="None"?(w(),A("div",{key:0,class:He(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[22]||(e[22]=be(f=>r.speak(),["stop"]))},Bvt,2)):V("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(w(),A("div",Gvt,[s.isSynthesizingVoice?(w(),A("img",{key:1,src:s.loading_svg},null,8,Hvt)):(w(),A("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[23]||(e[23]=be(f=>r.read(),["stop"]))},zvt))])):V("",!0)])])]),c("div",qvt,[G(c("details",Yvt,[c("summary",$vt,[c("div",Wvt,[t.message.status_message!="Done"&t.message.status_message!="Generation canceled"?(w(),A("img",{key:0,src:s.loading_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Kvt)):V("",!0),t.message.status_message=="Generation canceled"?(w(),A("img",{key:1,src:s.failed_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,jvt)):V("",!0),t.message.status_message=="Done"?(w(),A("img",{key:2,src:s.ok_svg,class:"w-50 h-50 absolute m-2 w-6 inset-0 text-geen-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Qvt)):V("",!0)]),c("dl",Xvt,[Zvt,c("dt",Jvt,he(t.message==null?"":t.message.status_message),1)])]),c("div",eSt,[c("ol",tSt,[(w(!0),A(Ye,null,lt(t.message.steps,(f,_)=>(w(),A("div",{key:"step-"+t.message.id+"-"+_,class:"group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800",style:en({backgroundColor:f.done?"transparent":"inherit"})},[Te(o,{done:f.done,message:f.message,status:f.status,step_type:f.type},null,8,["done","message","status","step_type"])],4))),128))])])],512),[[Mt,t.message!=null&&t.message.steps!=null&&t.message.steps.length>0]]),nSt,c("div",iSt,[(w(!0),A(Ye,null,lt(t.message.html_js_s,(f,_)=>(w(),A("div",{key:"htmljs-"+t.message.id+"-"+_,class:"htmljs font-bold",style:en({backgroundColor:n.step.done?"transparent":"inherit"})},[Te(a,{htmlContent:f},null,8,["htmlContent"])],4))),128))]),r.editMsgMode?V("",!0):(w(),xt(l,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),c("div",null,[t.message.open?G((w(),A("textarea",{key:0,ref:"mdTextarea",onKeydown:e[24]||(e[24]=Hs(be((...f)=>r.insertTab&&r.insertTab(...f),["prevent"]),["tab"])),class:"block min-h-[900px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=f=>t.message.content=f)},`\r + `,544)),[[we,t.message.content]]):V("",!0)]),t.message.metadata!==null?(w(),A("div",sSt,[(w(!0),A(Ye,null,lt(((h=t.message.metadata)==null?void 0:h.filter(f=>f!=null&&f.hasOwnProperty("title")&&f.hasOwnProperty("content")))||[],(f,_)=>(w(),A("div",{key:"json-"+t.message.id+"-"+_,class:"json font-bold"},[Te(u,{jsonFormText:f.title,jsonData:f.content},null,8,["jsonFormText","jsonData"])]))),128))])):V("",!0),Te(d,{class:"w-full",code:t.message.ui},null,8,["code"]),s.audio_url!=null?(w(),A("audio",{controls:"",key:s.audio_url},[c("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,rSt),et(" Your browser does not support the audio element. ")])):V("",!0)]),c("div",oSt,[c("div",aSt,[t.message.binding?(w(),A("p",lSt,[et("Binding: "),c("span",cSt,he(t.message.binding),1)])):V("",!0),t.message.model?(w(),A("p",dSt,[et("Model: "),c("span",uSt,he(t.message.model),1)])):V("",!0),t.message.seed?(w(),A("p",pSt,[et("Seed: "),c("span",_St,he(t.message.seed),1)])):V("",!0),t.message.nb_tokens?(w(),A("p",hSt,[et("Number of tokens: "),c("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},he(t.message.nb_tokens),9,fSt)])):V("",!0),r.warmup_duration?(w(),A("p",mSt,[et("Warmup duration: "),c("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},he(r.warmup_duration),9,gSt)])):V("",!0),r.time_spent?(w(),A("p",bSt,[et("Generation duration: "),c("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},he(r.time_spent),9,ESt)])):V("",!0),r.generation_rate?(w(),A("p",ySt,[et("Rate: "),c("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},he(r.generation_rate),9,vSt)])):V("",!0)])])])])])}const yO=bt(Vyt,[["render",SSt]]),TSt="/";Se.defaults.baseURL="/";const xSt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:hc,UniversalForm:bc},data(){return{bUrl:TSt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await Se.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(s=>s===n.full_path),i={client_id:this.$store.state.client_id,id:t};e=await Se.post("/select_personality",i),console.log("Generating message from ",e.data.status),$e.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await Se.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{Se.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{Se.post("/set_active_personality_settings",t).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. `+i,4,!1)})}catch(i){this.$refs.toast.showToast(`Did not get Personality settings responses. - Endpoint error: `+i.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(Ge(()=>{ze.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await Se.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=op}}},xSt={class:"w-fit flex select-none"},CSt={class:"w-fit flex select-none"},wSt={class:"w-8 h-8 group relative"},RSt=["src","title"],ASt={class:"opacity-0 group-hover:opacity-100"},NSt=c("span",{title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-0 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1),OSt=[NSt],ISt=c("span",{title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1),MSt=[ISt];function DSt(n,e,t,i,s,r){const o=mt("UniversalForm");return w(),A(Ye,null,[c("div",xSt,[c("div",CSt,[c("div",wSt,[c("img",{src:s.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 hover:scale-150 active:scale-90 hover:z-50 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name,onClick:e[1]||(e[1]=a=>r.onSettingsPersonality(r.mountedPers))},null,40,RSt),c("div",ASt,[n.personalityHoveredIndex===n.index?(w(),A("button",{key:0,class:"z-50 -top-1 group-hover:translate-x-5 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[2]||(e[2]=be(a=>r.remount_personality(),["prevent"]))},OSt)):V("",!0),n.personalityHoveredIndex===n.index?(w(),A("button",{key:1,class:"-top-1 group-hover:-translate-x-12 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[3]||(e[3]=be(a=>r.handleOnTalk(),["prevent"]))},MSt)):V("",!0),c("div",{class:"top-0 group-hover:-translate-x-8 group-hover:-translate-y-8 left-0 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-500 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[4]||(e[4]=be((...a)=>r.toggleShowPersList&&r.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+he(r.mountedPersArr.length-1),1)])])])]),Te(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const kSt=bt(TSt,[["render",DSt]]);const LSt="/";Se.defaults.baseURL="/";const PSt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:fO,Toast:hc,UniversalForm:bc},name:"MountedPersonalitiesList",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},bUrl:LSt,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async onCopyToCustom(n){await Se.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:n.personality.category,name:n.personality.name})},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(n){try{const e=await Se.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=op},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,Se.post("/reinstall_personality",{name:n.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality + Endpoint error: `+i.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(Ge(()=>{ze.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await Se.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=op}}},CSt={class:"w-fit flex select-none"},wSt={class:"w-fit flex select-none"},RSt={class:"w-8 h-8 group relative"},ASt=["src","title"],NSt={class:"opacity-0 group-hover:opacity-100"},OSt=c("span",{title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-0 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1),ISt=[OSt],MSt=c("span",{title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1),DSt=[MSt];function kSt(n,e,t,i,s,r){const o=mt("UniversalForm");return w(),A(Ye,null,[c("div",CSt,[c("div",wSt,[c("div",RSt,[c("img",{src:s.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 hover:scale-150 active:scale-90 hover:z-50 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name,onClick:e[1]||(e[1]=a=>r.onSettingsPersonality(r.mountedPers))},null,40,ASt),c("div",NSt,[n.personalityHoveredIndex===n.index?(w(),A("button",{key:0,class:"z-50 -top-1 group-hover:translate-x-5 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[2]||(e[2]=be(a=>r.remount_personality(),["prevent"]))},ISt)):V("",!0),n.personalityHoveredIndex===n.index?(w(),A("button",{key:1,class:"-top-1 group-hover:-translate-x-12 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[3]||(e[3]=be(a=>r.handleOnTalk(),["prevent"]))},DSt)):V("",!0),c("div",{class:"top-0 group-hover:-translate-x-8 group-hover:-translate-y-8 left-0 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-500 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[4]||(e[4]=be((...a)=>r.toggleShowPersList&&r.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+he(r.mountedPersArr.length-1),1)])])])]),Te(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const LSt=bt(xSt,[["render",kSt]]);const PSt="/";Se.defaults.baseURL="/";const USt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:fO,Toast:hc,UniversalForm:bc},name:"MountedPersonalitiesList",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},bUrl:PSt,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async onCopyToCustom(n){await Se.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:n.personality.category,name:n.personality.name})},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(n){try{const e=await Se.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=op},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,Se.post("/reinstall_personality",{name:n.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},editPersonality(n){n=n.personality,Se.post("/get_personality_config",{client_id:this.$store.state.client_id,category:n.category,name:n.folder}).then(e=>{const t=e.data;console.log("Done"),t.status?(this.$store.state.currentPersonConfig=t.config,this.$store.state.showPersonalityEditor=!0,this.$store.state.personality_editor.showPanel(),this.$store.state.selectedPersonality=n):console.error(t.error)}).catch(e=>{console.error(e)})},onPersonalityMounted(n){this.mountPersonality(n)},onPersonalityUnMounted(n){this.unmountPersonality(n)},onPersonalityRemount(n){this.reMountPersonality(n)},async handleOpenFolder(n){const e={client_id:this.$store.state.client_id,personality_folder:n.personality.folder};console.log(e),await Se.post("/open_personality_folder",e)},async handleOnTalk(n){if(ze.replace(),console.log("ppa",n),n){if(n.isMounted){const e=await this.select_personality(n);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+n.name,4,!0))}else this.onPersonalityMounted(n);this.onTalk(n)}},async onPersonalitySelected(n){if(ze.replace(),console.log("Selected personality : ",JSON.stringify(n.personality)),n){if(n.selected){this.$refs.toast.showToast("Personality already selected",4,!0);return}if(n.isMounted){const e=await this.select_personality(n);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+n.name,4,!0))}else this.onPersonalityMounted(n)}},onSettingsPersonality(n){try{Se.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.personality.name,"Save changes","Cancel").then(t=>{try{Se.post("/set_active_personality_settings",t).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. @@ -178,15 +178,15 @@ If You are using windows, this will install wsl so you need to activate it. Error: `+e.error,4,!1))},async reMountPersonality(n){if(console.log("remount pers",n),!n)return;if(!this.configFile.personalities.includes(n.personality.full_path)){this.$refs.toast.showToast("Personality not mounted",4,!1);return}const e=await this.remount_personality(n.personality);console.log("remount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality remounted",4,!0),n.isMounted=!0,this.onMounted(this),(await this.select_personality(n.personality)).status&&this.$refs.toast.showToast(`Selected personality: `+n.personality.name,4,!0),this.getMountedPersonalities()):(n.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality Error: `+e.error,4,!1))},async unmountPersonality(n){if(!n)return;console.log(`Unmounting ${JSON.stringify(n.personality)}`);const e=await this.unmount_personality(n.personality);if(e.status){console.log("unmount response",e),this.configFile.active_personality_id=e.active_personality_id,this.configFile.personalities=e.personalities;const t=this.configFile.personalities[this.configFile.active_personality_id],i=this.personalities.findIndex(a=>a.full_path==t),s=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==n.full_path),r=this.personalities[i];r.isMounted=!1,r.selected=!0,this.$refs.personalitiesZoo[s].isMounted=!1,this.getMountedPersonalities(),(await this.select_personality(r)).status&&ze.replace(),this.$refs.toast.showToast("Personality unmounted",4,!0),this.onUnMounted(this)}else this.$refs.toast.showToast(`Could not unmount personality -Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let n=[];console.log(this.configFile.personalities.length);for(let e=0;er.full_path==t),s=this.personalities[i];if(s)console.log("adding from config"),n.push(s);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),o=this.personalities[r];n.push(o)}}if(this.mountedPersArr=[],this.mountedPersArr=n,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;es.full_path==t);if(console.log("discussionPersonalities -includes",i),console.log("discussionPersonalities -mounted list",this.mountedPersArr),i==-1){const s=this.personalities.findIndex(o=>o.full_path==t),r=this.personalities[s];console.log("adding discucc121",r,t),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},AE=n=>(yo("data-v-de7bc8fe"),n=n(),vo(),n),USt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},FSt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},BSt=AE(()=>c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),GSt=AE(()=>c("span",{class:"sr-only"},"Loading...",-1)),VSt=[BSt,GSt],zSt=AE(()=>c("i",{"data-feather":"chevron-down"},null,-1)),HSt=[zSt],qSt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},YSt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function $St(n,e,t,i,s,r){const o=mt("personality-entry"),a=mt("Toast"),l=mt("UniversalForm");return w(),A("div",USt,[s.isLoading?(w(),A("div",FSt,VSt)):V("",!0),c("div",null,[r.mountedPersArr.length>0?(w(),A("div",{key:0,class:He(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[c("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=be((...u)=>r.toggleShowPersList&&r.toggleShowPersList(...u),["stop"]))},HSt),c("label",qSt," Mounted Personalities: ("+he(r.mountedPersArr.length)+") ",1),c("div",YSt,[Te(os,{name:"bounce"},{default:We(()=>[(w(!0),A(Ye,null,lt(this.$store.state.mountedPersArr,(u,d)=>(w(),xt(o,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+u.name,personality:u,full_path:u.full_path,select_language:!1,selected:r.configFile.personalities[r.configFile.active_personality_id]===u.full_path||r.configFile.personalities[r.configFile.active_personality_id]===u.full_path+":"+u.language,"on-selected":r.onPersonalitySelected,"on-mount":r.onPersonalityMounted,"on-edit":r.editPersonality,"on-un-mount":r.onPersonalityUnMounted,"on-remount":r.onPersonalityRemount,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-edit","on-un-mount","on-remount","on-settings","on-reinstall","on-talk","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})])],2)):V("",!0)]),Te(a,{ref:"toast"},null,512),Te(l,{ref:"universalForm",class:"z-20"},null,512)])}const WSt=bt(PSt,[["render",$St],["__scopeId","data-v-de7bc8fe"]]);const KSt={components:{InteractiveMenu:CE},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),Ge(()=>{ze.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(i=>i.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=i=>{this.selectedFile=i.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};$e.on("file_received",i=>{i.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file -`+i.error,4,!1),this.loading=!1,$e.off("file_received")}),$e.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Ge(()=>{ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},jSt=n=>(yo("data-v-1a32c141"),n=n(),vo(),n),QSt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},XSt=jSt(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),ZSt=[XSt];function JSt(n,e,t,i,s,r){const o=mt("InteractiveMenu");return s.loading?(w(),A("div",QSt,ZSt)):(w(),xt(o,{key:1,commands:t.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const e0t=bt(KSt,[["render",JSt],["__scopeId","data-v-1a32c141"]]),t0t="/assets/loader_v0-16906488.svg";console.log("modelImgPlaceholder:",Pi);const n0t="/",i0t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{UniversalForm:bc,MountedPersonalities:kSt,MountedPersonalitiesList:WSt,PersonalitiesCommands:e0t},setup(){},data(){return{is_rt:!1,personalityHoveredIndex:null,loader_v0:t0t,sendGlobe:EO,modelImgPlaceholder:Pi,bUrl:n0t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const s=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",s),{name:t[0],value:t[0]||"default_value",icon:s,help:"mounts the database"}});return console.log("formatted data sources",n),n},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},installedBindings(){return this.$store.state.installedBindings},installedModels(){return this.$store.state.installedModels},mountedPersonalities(){return this.$store.state.mountedPersArr},binding_name(){return this.$store.state.config.binding_name},model_name(){return this.$store.state.config.model_name},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let n=[];for(let e=0;e0&&this.addFiles(t)},toggleSwitch(){this.$store.state.config.activate_internet_search=!this.$store.state.config.activate_internet_search,this.isLoading=!0,Se.post("/apply_settings",{config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.config.activate_internet_search?this.$store.state.toast.showToast("Websearch activated.",4,!0):this.$store.state.toast.showToast("Websearch deactivated.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{ze.replace()})})},showModelConfig(){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(console.log("binding sett",n),n.data&&Object.keys(n.data).length>0?this.$refs.universalForm.showForm(n.data,"Binding settings ","Save changes","Cancel").then(e=>{try{Se.post("/set_active_binding_settings",e).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. +Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let n=[];console.log(this.configFile.personalities.length);for(let e=0;er.full_path==t),s=this.personalities[i];if(s)console.log("adding from config"),n.push(s);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),o=this.personalities[r];n.push(o)}}if(this.mountedPersArr=[],this.mountedPersArr=n,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;es.full_path==t);if(console.log("discussionPersonalities -includes",i),console.log("discussionPersonalities -mounted list",this.mountedPersArr),i==-1){const s=this.personalities.findIndex(o=>o.full_path==t),r=this.personalities[s];console.log("adding discucc121",r,t),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},AE=n=>(yo("data-v-de7bc8fe"),n=n(),vo(),n),FSt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},BSt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},GSt=AE(()=>c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),VSt=AE(()=>c("span",{class:"sr-only"},"Loading...",-1)),zSt=[GSt,VSt],HSt=AE(()=>c("i",{"data-feather":"chevron-down"},null,-1)),qSt=[HSt],YSt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},$St={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function WSt(n,e,t,i,s,r){const o=mt("personality-entry"),a=mt("Toast"),l=mt("UniversalForm");return w(),A("div",FSt,[s.isLoading?(w(),A("div",BSt,zSt)):V("",!0),c("div",null,[r.mountedPersArr.length>0?(w(),A("div",{key:0,class:He(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[c("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=be((...u)=>r.toggleShowPersList&&r.toggleShowPersList(...u),["stop"]))},qSt),c("label",YSt," Mounted Personalities: ("+he(r.mountedPersArr.length)+") ",1),c("div",$St,[Te(os,{name:"bounce"},{default:We(()=>[(w(!0),A(Ye,null,lt(this.$store.state.mountedPersArr,(u,d)=>(w(),xt(o,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+u.name,personality:u,full_path:u.full_path,select_language:!1,selected:r.configFile.personalities[r.configFile.active_personality_id]===u.full_path||r.configFile.personalities[r.configFile.active_personality_id]===u.full_path+":"+u.language,"on-selected":r.onPersonalitySelected,"on-mount":r.onPersonalityMounted,"on-edit":r.editPersonality,"on-un-mount":r.onPersonalityUnMounted,"on-remount":r.onPersonalityRemount,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-edit","on-un-mount","on-remount","on-settings","on-reinstall","on-talk","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})])],2)):V("",!0)]),Te(a,{ref:"toast"},null,512),Te(l,{ref:"universalForm",class:"z-20"},null,512)])}const KSt=bt(USt,[["render",WSt],["__scopeId","data-v-de7bc8fe"]]);const jSt={components:{InteractiveMenu:CE},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),Ge(()=>{ze.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(i=>i.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=i=>{this.selectedFile=i.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};$e.on("file_received",i=>{i.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file +`+i.error,4,!1),this.loading=!1,$e.off("file_received")}),$e.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Ge(()=>{ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},QSt=n=>(yo("data-v-1a32c141"),n=n(),vo(),n),XSt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},ZSt=QSt(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),JSt=[ZSt];function e0t(n,e,t,i,s,r){const o=mt("InteractiveMenu");return s.loading?(w(),A("div",XSt,JSt)):(w(),xt(o,{key:1,commands:t.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const t0t=bt(jSt,[["render",e0t],["__scopeId","data-v-1a32c141"]]),n0t="/assets/loader_v0-16906488.svg";console.log("modelImgPlaceholder:",Pi);const i0t="/",s0t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{UniversalForm:bc,MountedPersonalities:LSt,MountedPersonalitiesList:KSt,PersonalitiesCommands:t0t},setup(){},data(){return{is_rt:!1,personalityHoveredIndex:null,loader_v0:n0t,sendGlobe:EO,modelImgPlaceholder:Pi,bUrl:i0t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const s=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",s),{name:t[0],value:t[0]||"default_value",icon:s,help:"mounts the database"}});return console.log("formatted data sources",n),n},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},installedBindings(){return this.$store.state.installedBindings},installedModels(){return this.$store.state.installedModels},mountedPersonalities(){return this.$store.state.mountedPersArr},binding_name(){return this.$store.state.config.binding_name},model_name(){return this.$store.state.config.model_name},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let n=[];for(let e=0;e0&&this.addFiles(t)},toggleSwitch(){this.$store.state.config.activate_internet_search=!this.$store.state.config.activate_internet_search,this.isLoading=!0,Se.post("/apply_settings",{config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.config.activate_internet_search?this.$store.state.toast.showToast("Websearch activated.",4,!0):this.$store.state.toast.showToast("Websearch deactivated.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{ze.replace()})})},showModelConfig(){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(console.log("binding sett",n),n.data&&Object.keys(n.data).length>0?this.$refs.universalForm.showForm(n.data,"Binding settings ","Save changes","Cancel").then(e=>{try{Se.post("/set_active_binding_settings",e).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. `+t,4,!1),this.isLoading=!1)})}catch(t){this.$store.state.toast.showToast(`Did not get binding settings responses. Endpoint error: `+t.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(n){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+n.message,4,!1)}},async remount_personality(n){if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await Se.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},async unmountPersonality(n){if(console.log("Unmounting personality:",n),!n)return;const e=await this.unmount_personality(n.personality||n);if(console.log(e),e.status){this.$store.state.config.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0),this.$store.dispatch("refreshMountedPersonalities");const t=this.$store.state.mountedPersArr[this.$store.state.mountedPersArr.length-1];console.log(t,this.$store.state.mountedPersArr.length),(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: `+t.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality Error: `+e.error,4,!1)},async unmount_personality(n){if(!n)return{status:!1,error:"no personality - unmount_personality"};const e={client_id:this.$store.state.client_id,language:n.language,category:n.category,folder:n.folder};try{const t=await Se.post("/unmount_personality",e);if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async showPersonalityHoveredIn(n){this.personalityHoveredIndex=n},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(n){if(n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=n.language===null?n.full_path:n.full_path+":"+n.language;if(console.log("pers_path",e),console.log("this.$store.state.config.personalities",this.$store.state.config.personalities),this.$store.state.config.personalities.includes(e)){const t=await this.select_personality(n);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: -`+n.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Ge(()=>{ze.replace()})}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};const e=n.language===null?n.full_path:n.full_path+":"+n.language;console.log("Selecting personality ",e);const t=this.$store.state.config.personalities.findIndex(s=>s===e),i={client_id:this.$store.state.client_id,id:t};try{const s=await Se.post("/select_personality",i);if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(n){n.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const t=new MouseEvent("click");e.dispatchEvent(t)},setBinding(n){console.log("Setting binding to "+n.name),this.selecting_binding=!0,this.selectedBinding=n,this.$store.state.messageBox.showBlockingMessage("Loading binding"),Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:n.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,this.$store.state.messageBox.showBlockingMessage("Loading model"),Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:n.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},download_files(){Se.get("/download_files")},remove_file(n){Se.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){Se.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,i=24*1024;let s=0,r=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=s+a.byteLength>=n.size;$e.emit("send_file_chunk",{filename:n.name,chunk:a,offset:s,isLastChunk:l,chunkIndex:r}),s+=a.byteLength,r++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(s,s+i);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),$e.emit("start_bidirectional_audio_stream"),Ge(()=>{ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),$e.emit("stop_bidirectional_audio_stream"),Ge(()=>{ze.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(n){this.showPersonalities=!this.showPersonalities},handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onMountFun(n){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(n){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(n){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(n){return Ge(()=>{ze.replace()}),rs(n)},removeItem(n){console.log("Removing ",n.name),Se.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await Se.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){$e.emit("take_picture"),$e.on("picture_taken",()=>{Se.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const i=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[t];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{t++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Ge(()=>{ze.replace()})},loading(n,e){Ge(()=>{ze.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let i=0;i{ze.replace()}),console.log("Chatbar mounted"),$e.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Ge(()=>{ze.replace()})}},Pt=n=>(yo("data-v-011f8851"),n=n(),vo(),n),s0t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},r0t={key:0,class:"items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},o0t={class:"flex"},a0t=["title"],l0t=Pt(()=>c("i",{"data-feather":"list"},null,-1)),c0t=[l0t],d0t={key:0},u0t={class:"flex flex-col max-h-64"},p0t=["title"],_0t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},h0t={key:0,filesList:"",role:"status"},f0t=Pt(()=>c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),m0t=Pt(()=>c("span",{class:"sr-only"},"Loading...",-1)),g0t=[f0t,m0t],b0t=Pt(()=>c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),E0t=Pt(()=>c("div",{class:"grow"},null,-1)),y0t={class:"flex flex-row items-center"},v0t={class:"whitespace-nowrap"},S0t=["onClick"],T0t=Pt(()=>c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),x0t=[T0t],C0t={key:1,class:"flex mx-1 w-500"},w0t={class:"whitespace-nowrap flex flex-row gap-2"},R0t=Pt(()=>c("p",{class:"font-bold"}," Total size: ",-1)),A0t=Pt(()=>c("div",{class:"grow"},null,-1)),N0t=Pt(()=>c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),O0t=[N0t],I0t=Pt(()=>c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)),M0t=[I0t],D0t={key:2,class:"mx-1"},k0t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end bg-primary"},L0t={role:"status"},P0t=["src"],U0t=Pt(()=>c("span",{class:"sr-only"},"Selecting model...",-1)),F0t={class:"flex w-fit relative grow w-full"},B0t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},G0t={key:0,title:"Waiting for reply"},V0t=["src"],z0t=Pt(()=>c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1)),H0t={key:1,class:"w-fit group relative"},q0t={class:"group space-x-1 w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-12 group-hover:translate-x-15 transition-all duration-300"},Y0t={key:0,class:"group items-center flex flex-row"},$0t=["onClick"],W0t=["src","title"],K0t={class:"group items-center flex flex-row"},j0t=["src","title"],Q0t={key:2,class:"w-fit group relative"},X0t={class:"group space-x-1 w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-12 group-hover:translate-x-15 transition-all duration-300"},Z0t={key:0,class:"group items-center flex flex-row"},J0t=["onClick"],eTt=["src","title"],tTt={class:"group items-center flex flex-row"},nTt=["src","title"],iTt={key:3,class:"w-fit group relative"},sTt={class:"hide .group-hover:block fixed w-[1000px] bottom-0 group absolute opacity-0 group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},rTt={class:"w-fit flex-wrap flex"},oTt=["onMouseover"],aTt={class:"relative"},lTt=["onClick"],cTt=["src","title"],dTt=["onClick"],uTt=Pt(()=>c("span",{class:"-top-6 -right-6 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Unmount personality"},[c("svg",{"aria-hidden":"true",class:"top-1 left-1 relative w-5 h-5 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20","stroke-width":"1",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),pTt=[uTt],_Tt=["onClick"],hTt=Pt(()=>c("span",{class:"-top-9 left-2 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1)),fTt=[hTt],mTt=["onClick"],gTt=Pt(()=>c("span",{class:"-top-6 -left-6 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1)),bTt=[gTt],ETt={class:"w-fit"},yTt={class:"w-fit"},vTt={class:"relative grow"},STt={class:"group relative w-max"},TTt=Pt(()=>c("i",{"data-feather":"send"},null,-1)),xTt=[TTt],CTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI.")],-1)),wTt={class:"group relative w-max"},RTt=["src"],ATt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI with internet search.")],-1)),NTt={class:"group relative w-max"},OTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),ITt=[OTt],MTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Press and talk.")],-1)),DTt={key:5,class:"group relative w-max"},kTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),LTt=[kTt],PTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),UTt=[PTt],FTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Real time bidirectional audio mode.")],-1)),BTt={key:6,class:"group relative w-max"},GTt=Pt(()=>c("i",{"data-feather":"file-plus"},null,-1)),VTt=[GTt],zTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Send File to the AI.")],-1)),HTt={class:"group relative w-max"},qTt=Pt(()=>c("i",{"data-feather":"camera"},null,-1)),YTt=[qTt],$Tt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Take a shot from webcam.")],-1)),WTt={class:"group relative w-max"},KTt=Pt(()=>c("i",{"data-feather":"globe"},null,-1)),jTt=[KTt],QTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Add a weblink to the discussion.")],-1)),XTt={class:"group relative w-max"},ZTt=Pt(()=>c("i",{"data-feather":"message-square"},null,-1)),JTt=[ZTt],ext=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty User message.")],-1)),txt={class:"group relative w-max"},nxt=Pt(()=>c("i",{"data-feather":"message-square"},null,-1)),ixt=[nxt],sxt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty ai message.")],-1)),rxt=Pt(()=>c("div",{class:"ml-auto gap-2"},null,-1));function oxt(n,e,t,i,s,r){const o=mt("MountedPersonalitiesList"),a=mt("MountedPersonalities"),l=mt("PersonalitiesCommands"),u=mt("UniversalForm");return w(),A(Ye,null,[c("form",null,[c("div",s0t,[s.filesList.length>0||s.showPersonalities?(w(),A("div",r0t,[c("div",o0t,[c("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=be(d=>s.showfilesList=!s.showfilesList,["stop"]))},c0t,8,a0t)]),s.filesList.length>0&&s.showfilesList==!0?(w(),A("div",d0t,[c("div",u0t,[Te(os,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.filesList,(d,h)=>(w(),A("div",{key:h+"-"+d.name},[c("div",{class:"m-1",title:d.name},[c("div",_0t,[s.isFileSentList[h]?V("",!0):(w(),A("div",h0t,g0t)),b0t,c("div",{class:He(["line-clamp-1 w-3/5",s.isFileSentList[h]?"text-green-500":"text-red-200"])},he(d.name),3),E0t,c("div",y0t,[c("p",v0t,he(r.computedFileSize(d.size)),1),c("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:f=>r.removeItem(d)},x0t,8,S0t)])])],8,p0t)]))),128))]),_:1})])])):V("",!0),s.filesList.length>0?(w(),A("div",C0t,[c("div",w0t,[R0t,et(" "+he(s.totalSize)+" ("+he(s.filesList.length)+") ",1)]),A0t,c("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...d)=>r.clear_files&&r.clear_files(...d))},O0t),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...d)=>r.download_files&&r.download_files(...d))},M0t)])):V("",!0),s.showPersonalities?(w(),A("div",D0t,[Te(o,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mounted":r.onMountFun,"on-un-mounted":r.onUnmountFun,"on-remounted":n.onRemountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):V("",!0)])):V("",!0),s.selecting_model||s.selecting_binding?(w(),A("div",k0t,[c("div",L0t,[c("img",{src:s.loader_v0,class:"w-50 h-50"},null,8,P0t),U0t])])):V("",!0),c("div",F0t,[c("div",B0t,[t.loading?(w(),A("div",G0t,[c("img",{src:s.loader_v0},null,8,V0t),z0t])):V("",!0),t.loading?V("",!0):(w(),A("div",H0t,[c("div",q0t,[(w(!0),A(Ye,null,lt(r.installedBindings,(d,h)=>(w(),A("div",{class:"w-full",key:h+"-"+d.name,ref_for:!0,ref:"installedBindings"},[d.name!=r.binding_name?(w(),A("div",Y0t,[c("button",{onClick:be(f=>r.setBinding(d),["prevent"]),class:"w-8 h-8"},[c("img",{src:d.icon?d.icon:s.modelImgPlaceholder,class:"z-50 w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:d.name},null,8,W0t)],8,$0t)])):V("",!0)]))),128))]),c("div",K0t,[c("button",{onClick:e[3]||(e[3]=be(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentBindingIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:r.currentBinding?r.currentBinding.name:"unknown"},null,8,j0t)])])])),t.loading?V("",!0):(w(),A("div",Q0t,[c("div",X0t,[(w(!0),A(Ye,null,lt(r.installedModels,(d,h)=>(w(),A("div",{class:"w-full",key:h+"-"+d.name,ref_for:!0,ref:"installedModels"},[d.name!=r.model_name?(w(),A("div",Z0t,[c("button",{onClick:be(f=>r.setModel(d),["prevent"]),class:"w-8 h-8"},[c("img",{src:d.icon?d.icon:s.modelImgPlaceholder,class:"z-50 w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:d.name},null,8,eTt)],8,J0t)])):V("",!0)]))),128))]),c("div",tTt,[c("button",{onClick:e[4]||(e[4]=be(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentModelIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:r.currentModel?r.currentModel.name:"unknown"},null,8,nTt)])])])),t.loading?V("",!0):(w(),A("div",iTt,[c("div",sTt,[c("div",rTt,[(w(!0),A(Ye,null,lt(r.mountedPersonalities,(d,h)=>(w(),A("div",{class:"w-fit h-fit",key:h+"-"+d.name,ref_for:!0,ref:"mountedPersonalities",onMouseover:f=>r.showPersonalityHoveredIn(h),onMouseleave:e[6]||(e[6]=f=>r.showPersonalityHoveredOut())},[h!=r.personality_name?(w(),A("div",{key:0,class:He(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",s.personalityHoveredIndex===h?"scale-150":""])},[c("div",aTt,[c("button",{onClick:be(f=>r.onPersonalitySelected(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:s.bUrl+d.avatar,onError:e[5]||(e[5]=(...f)=>n.personalityImgPlacehodler&&n.personalityImgPlacehodler(...f)),class:He(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",s.personalityHoveredIndex===h?"scale-150 ":""+this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(d.full_path)?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,cTt)],8,lTt),s.personalityHoveredIndex===h?(w(),A("button",{key:0,onClick:be(f=>r.unmountPersonality(d),["prevent"])},pTt,8,dTt)):V("",!0),s.personalityHoveredIndex===h?(w(),A("button",{key:1,onClick:be(f=>r.remount_personality(d),["prevent"])},fTt,8,_Tt)):V("",!0),s.personalityHoveredIndex===h?(w(),A("button",{key:2,onClick:be(f=>r.handleOnTalk(d),["prevent"])},bTt,8,mTt)):V("",!0)])],2)):V("",!0)],40,oTt))),128))])]),Te(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])])),c("div",ETt,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(w(),xt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):V("",!0)]),c("div",yTt,[r.isDataSourceNamesValid?(w(),xt(l,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):V("",!0)]),c("div",vTt,[G(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=d=>s.message=d),title:"Hold SHIFT + ENTER to add new line",onPaste:e[8]||(e[8]=(...d)=>r.handlePaste&&r.handlePaste(...d)),class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[9]||(e[9]=Hs(be(d=>r.submitOnEnter(d),["exact"]),["enter"]))},`\r - `,544),[[we,s.message]])]),t.loading?(w(),A("button",{key:4,type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[10]||(e[10]=be((...d)=>r.stopGenerating&&r.stopGenerating(...d),["stop"]))}," Stop generating ")):V("",!0),c("div",STt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[11]||(e[11]=(...d)=>r.submit&&r.submit(...d)),title:"Send",class:"w-6 text-panel hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},xTt)),CTt]),c("div",wTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[12]||(e[12]=(...d)=>r.submitWithInternetSearch&&r.submitWithInternetSearch(...d)),title:"Send With internet",class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},[c("img",{src:s.sendGlobe,width:"50",height:"50",style:{stroke:"currentColor",fill:"currentColor"}},null,8,RTt)])),ATt]),c("div",NTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[13]||(e[13]=(...d)=>r.startSpeechRecognition&&r.startSpeechRecognition(...d)),class:He([{"text-red-500":s.isListeningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"])},ITt,2)),MTt]),n.$store.state.config.active_tts_service!="None"?(w(),A("div",DTt,[s.is_rt?(w(),A("button",{key:0,type:"button",onClick:e[14]||(e[14]=(...d)=>r.stopRTCom&&r.stopRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-red-500 border borderred700 rounded-md"},LTt)):(w(),A("button",{key:1,type:"button",onClick:e[15]||(e[15]=(...d)=>r.startRTCom&&r.startRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-green-500 border border-green-700 rounded-md"},UTt)),FTt])):V("",!0),t.loading?V("",!0):(w(),A("div",BTt,[c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[16]||(e[16]=(...d)=>r.addFiles&&r.addFiles(...d)),multiple:""},null,544),c("button",{type:"button",onClick:e[17]||(e[17]=be((...d)=>r.add_file&&r.add_file(...d),["prevent"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},VTt),zTt])),c("div",HTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[18]||(e[18]=be((...d)=>r.takePicture&&r.takePicture(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},YTt)),$Tt]),c("div",WTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[19]||(e[19]=be((...d)=>r.addWebLink&&r.addWebLink(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},jTt)),QTt]),c("div",XTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[20]||(e[20]=be((...d)=>r.makeAnEmptyUserMessage&&r.makeAnEmptyUserMessage(...d),["stop"])),class:"w-6 text-gray-800 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},JTt)),ext]),c("div",txt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[21]||(e[21]=be((...d)=>r.makeAnEmptyAIMessage&&r.makeAnEmptyAIMessage(...d),["stop"])),class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},ixt)),sxt])]),rxt])])]),Te(u,{ref:"universalForm",class:"z-20"},null,512)],64)}const vO=bt(i0t,[["render",oxt],["__scopeId","data-v-011f8851"]]),axt={name:"WelcomeComponent",computed:{storeLogo(){return this.$store.state.config?Ti:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ti}},data(){},setup(){return{}}},lxt={class:"flex flex-col text-center w-full h-full"},cxt={class:"flex flex-col text-center items-center"},dxt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},uxt=["src"],pxt=c("div",{class:"flex flex-col items-start"},[c("p",{class:"text-2xl"},"LoLLMS"),c("p",{class:"text-gray-400 text-base"},"One tool to rule them all")],-1),_xt=c("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1),hxt=c("p",{class:"text-2xl"},"Welcome",-1),fxt=c("p",{class:"text-lg"},"Please create a new discussion or select existing one to start",-1);function mxt(n,e,t,i,s,r){return w(),A("div",lxt,[c("div",cxt,[c("div",dxt,[c("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:n.$store.state.config==null?r.storeLogo:n.$store.state.config.app_custom_logo!=""?"/user_infos/"+n.$store.state.config.app_custom_logo:r.storeLogo,alt:"Logo"},null,8,uxt),pxt]),_xt,hxt,fxt])])}const SO=bt(axt,[["render",mxt]]);var gxt=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),iu=globalThis&&globalThis.__assign||function(){return iu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t"u")return!1;var e=ai(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Oxt(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},r=e.elements[t];!xi(r)||!us(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Ixt(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(l,u){return l[u]="",l},{});!xi(s)||!us(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Mxt={name:"applyStyles",enabled:!0,phase:"write",fn:Oxt,effect:Ixt,requires:["computeStyles"]};function as(n){return n.split("-")[0]}var ro=Math.max,au=Math.min,ya=Math.round;function eb(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function NO(){return!/^((?!chrome|android).)*safari/i.test(eb())}function va(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),s=1,r=1;e&&xi(n)&&(s=n.offsetWidth>0&&ya(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&ya(i.height)/n.offsetHeight||1);var o=ho(n)?ai(n):window,a=o.visualViewport,l=!NO()&&t,u=(i.left+(l&&a?a.offsetLeft:0))/s,d=(i.top+(l&&a?a.offsetTop:0))/r,h=i.width/s,f=i.height/r;return{width:h,height:f,top:d,right:u+h,bottom:d+f,left:u,x:u,y:d}}function LE(n){var e=va(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function OO(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&kE(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qs(n){return ai(n).getComputedStyle(n)}function Dxt(n){return["table","td","th"].indexOf(us(n))>=0}function Or(n){return((ho(n)?n.ownerDocument:n.document)||window.document).documentElement}function ap(n){return us(n)==="html"?n:n.assignedSlot||n.parentNode||(kE(n)?n.host:null)||Or(n)}function DC(n){return!xi(n)||qs(n).position==="fixed"?null:n.offsetParent}function kxt(n){var e=/firefox/i.test(eb()),t=/Trident/i.test(eb());if(t&&xi(n)){var i=qs(n);if(i.position==="fixed")return null}var s=ap(n);for(kE(s)&&(s=s.host);xi(s)&&["html","body"].indexOf(us(s))<0;){var r=qs(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function yc(n){for(var e=ai(n),t=DC(n);t&&Dxt(t)&&qs(t).position==="static";)t=DC(t);return t&&(us(t)==="html"||us(t)==="body"&&qs(t).position==="static")?e:t||kxt(n)||e}function PE(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function kl(n,e,t){return ro(n,au(e,t))}function Lxt(n,e,t){var i=kl(n,e,t);return i>t?t:i}function IO(){return{top:0,right:0,bottom:0,left:0}}function MO(n){return Object.assign({},IO(),n)}function DO(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var Pxt=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,MO(typeof e!="number"?e:DO(e,Ec))};function Uxt(n){var e,t=n.state,i=n.name,s=n.options,r=t.elements.arrow,o=t.modifiersData.popperOffsets,a=as(t.placement),l=PE(a),u=[Xn,Ai].indexOf(a)>=0,d=u?"height":"width";if(!(!r||!o)){var h=Pxt(s.padding,t),f=LE(r),_=l==="y"?Qn:Xn,m=l==="y"?Ri:Ai,E=t.rects.reference[d]+t.rects.reference[l]-o[l]-t.rects.popper[d],b=o[l]-t.rects.reference[l],g=yc(r),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=E/2-b/2,S=h[_],C=y-f[d]-h[m],T=y/2-f[d]/2+v,O=kl(S,T,C),k=l;t.modifiersData[i]=(e={},e[k]=O,e.centerOffset=O-T,e)}}function Fxt(n){var e=n.state,t=n.options,i=t.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||OO(e.elements.popper,s)&&(e.elements.arrow=s))}const Bxt={name:"arrow",enabled:!0,phase:"main",fn:Uxt,effect:Fxt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sa(n){return n.split("-")[1]}var Gxt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vxt(n,e){var t=n.x,i=n.y,s=e.devicePixelRatio||1;return{x:ya(t*s)/s||0,y:ya(i*s)/s||0}}function kC(n){var e,t=n.popper,i=n.popperRect,s=n.placement,r=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,h=n.isFixed,f=o.x,_=f===void 0?0:f,m=o.y,E=m===void 0?0:m,b=typeof d=="function"?d({x:_,y:E}):{x:_,y:E};_=b.x,E=b.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=Xn,S=Qn,C=window;if(u){var T=yc(t),O="clientHeight",k="clientWidth";if(T===ai(t)&&(T=Or(t),qs(T).position!=="static"&&a==="absolute"&&(O="scrollHeight",k="scrollWidth")),T=T,s===Qn||(s===Xn||s===Ai)&&r===ic){S=Ri;var x=h&&T===C&&C.visualViewport?C.visualViewport.height:T[O];E-=x-i.height,E*=l?1:-1}if(s===Xn||(s===Qn||s===Ri)&&r===ic){v=Ai;var I=h&&T===C&&C.visualViewport?C.visualViewport.width:T[k];_-=I-i.width,_*=l?1:-1}}var F=Object.assign({position:a},u&&Gxt),B=d===!0?Vxt({x:_,y:E},ai(t)):{x:_,y:E};if(_=B.x,E=B.y,l){var ne;return Object.assign({},F,(ne={},ne[S]=y?"0":"",ne[v]=g?"0":"",ne.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",ne))}return Object.assign({},F,(e={},e[S]=y?E+"px":"",e[v]=g?_+"px":"",e.transform="",e))}function zxt(n){var e=n.state,t=n.options,i=t.gpuAcceleration,s=i===void 0?!0:i,r=t.adaptive,o=r===void 0?!0:r,a=t.roundOffsets,l=a===void 0?!0:a,u={placement:as(e.placement),variation:Sa(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kC(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kC(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Hxt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zxt,data:{}};var qc={passive:!0};function qxt(n){var e=n.state,t=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=ai(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(d){d.addEventListener("scroll",t.update,qc)}),a&&l.addEventListener("resize",t.update,qc),function(){r&&u.forEach(function(d){d.removeEventListener("scroll",t.update,qc)}),a&&l.removeEventListener("resize",t.update,qc)}}const Yxt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qxt,data:{}};var $xt={left:"right",right:"left",bottom:"top",top:"bottom"};function Fd(n){return n.replace(/left|right|bottom|top/g,function(e){return $xt[e]})}var Wxt={start:"end",end:"start"};function LC(n){return n.replace(/start|end/g,function(e){return Wxt[e]})}function UE(n){var e=ai(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function FE(n){return va(Or(n)).left+UE(n).scrollLeft}function Kxt(n,e){var t=ai(n),i=Or(n),s=t.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var u=NO();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+FE(n),y:l}}function jxt(n){var e,t=Or(n),i=UE(n),s=(e=n.ownerDocument)==null?void 0:e.body,r=ro(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ro(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+FE(n),l=-i.scrollTop;return qs(s||t).direction==="rtl"&&(a+=ro(t.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function BE(n){var e=qs(n),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function kO(n){return["html","body","#document"].indexOf(us(n))>=0?n.ownerDocument.body:xi(n)&&BE(n)?n:kO(ap(n))}function Ll(n,e){var t;e===void 0&&(e=[]);var i=kO(n),s=i===((t=n.ownerDocument)==null?void 0:t.body),r=ai(i),o=s?[r].concat(r.visualViewport||[],BE(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(Ll(ap(o)))}function tb(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Qxt(n,e){var t=va(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function PC(n,e,t){return e===RO?tb(Kxt(n,t)):ho(e)?Qxt(e,t):tb(jxt(Or(n)))}function Xxt(n){var e=Ll(ap(n)),t=["absolute","fixed"].indexOf(qs(n).position)>=0,i=t&&xi(n)?yc(n):n;return ho(i)?e.filter(function(s){return ho(s)&&OO(s,i)&&us(s)!=="body"}):[]}function Zxt(n,e,t,i){var s=e==="clippingParents"?Xxt(n):[].concat(e),r=[].concat(s,[t]),o=r[0],a=r.reduce(function(l,u){var d=PC(n,u,i);return l.top=ro(d.top,l.top),l.right=au(d.right,l.right),l.bottom=au(d.bottom,l.bottom),l.left=ro(d.left,l.left),l},PC(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function LO(n){var e=n.reference,t=n.element,i=n.placement,s=i?as(i):null,r=i?Sa(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(s){case Qn:l={x:o,y:e.y-t.height};break;case Ri:l={x:o,y:e.y+e.height};break;case Ai:l={x:e.x+e.width,y:a};break;case Xn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var u=s?PE(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(r){case Ea:l[u]=l[u]-(e[d]/2-t[d]/2);break;case ic:l[u]=l[u]+(e[d]/2-t[d]/2);break}}return l}function sc(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?n.placement:i,r=t.strategy,o=r===void 0?n.strategy:r,a=t.boundary,l=a===void 0?bxt:a,u=t.rootBoundary,d=u===void 0?RO:u,h=t.elementContext,f=h===void 0?hl:h,_=t.altBoundary,m=_===void 0?!1:_,E=t.padding,b=E===void 0?0:E,g=MO(typeof b!="number"?b:DO(b,Ec)),y=f===hl?Ext:hl,v=n.rects.popper,S=n.elements[m?y:f],C=Zxt(ho(S)?S:S.contextElement||Or(n.elements.popper),l,d,o),T=va(n.elements.reference),O=LO({reference:T,element:v,strategy:"absolute",placement:s}),k=tb(Object.assign({},v,O)),x=f===hl?k:T,I={top:C.top-x.top+g.top,bottom:x.bottom-C.bottom+g.bottom,left:C.left-x.left+g.left,right:x.right-C.right+g.right},F=n.modifiersData.offset;if(f===hl&&F){var B=F[s];Object.keys(I).forEach(function(ne){var L=[Ai,Ri].indexOf(ne)>=0?1:-1,$=[Qn,Ri].indexOf(ne)>=0?"y":"x";I[ne]+=B[$]*L})}return I}function Jxt(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?AO:l,d=Sa(i),h=d?a?MC:MC.filter(function(m){return Sa(m)===d}):Ec,f=h.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=h);var _=f.reduce(function(m,E){return m[E]=sc(n,{placement:E,boundary:s,rootBoundary:r,padding:o})[as(E)],m},{});return Object.keys(_).sort(function(m,E){return _[m]-_[E]})}function eCt(n){if(as(n)===DE)return[];var e=Fd(n);return[LC(n),e,LC(e)]}function tCt(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,u=t.padding,d=t.boundary,h=t.rootBoundary,f=t.altBoundary,_=t.flipVariations,m=_===void 0?!0:_,E=t.allowedAutoPlacements,b=e.options.placement,g=as(b),y=g===b,v=l||(y||!m?[Fd(b)]:eCt(b)),S=[b].concat(v).reduce(function(Ee,xe){return Ee.concat(as(xe)===DE?Jxt(e,{placement:xe,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:E}):xe)},[]),C=e.rects.reference,T=e.rects.popper,O=new Map,k=!0,x=S[0],I=0;I=0,$=L?"width":"height",H=sc(e,{placement:F,boundary:d,rootBoundary:h,altBoundary:f,padding:u}),U=L?ne?Ai:Xn:ne?Ri:Qn;C[$]>T[$]&&(U=Fd(U));var Q=Fd(U),J=[];if(r&&J.push(H[B]<=0),a&&J.push(H[U]<=0,H[Q]<=0),J.every(function(Ee){return Ee})){x=F,k=!1;break}O.set(F,J)}if(k)for(var j=m?3:1,ae=function(xe){var Me=S.find(function(Z){var ye=O.get(Z);if(ye)return ye.slice(0,xe).every(function(fe){return fe})});if(Me)return x=Me,"break"},ve=j;ve>0;ve--){var ee=ae(ve);if(ee==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const nCt={name:"flip",enabled:!0,phase:"main",fn:tCt,requiresIfExists:["offset"],data:{_skip:!1}};function UC(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function FC(n){return[Qn,Ai,Ri,Xn].some(function(e){return n[e]>=0})}function iCt(n){var e=n.state,t=n.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=sc(e,{elementContext:"reference"}),a=sc(e,{altBoundary:!0}),l=UC(o,i),u=UC(a,s,r),d=FC(l),h=FC(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const sCt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iCt};function rCt(n,e,t){var i=as(n),s=[Xn,Qn].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Xn,Ai].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function oCt(n){var e=n.state,t=n.options,i=n.name,s=t.offset,r=s===void 0?[0,0]:s,o=AO.reduce(function(d,h){return d[h]=rCt(h,e.rects,r),d},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=o}const aCt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oCt};function lCt(n){var e=n.state,t=n.name;e.modifiersData[t]=LO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const cCt={name:"popperOffsets",enabled:!0,phase:"read",fn:lCt,data:{}};function dCt(n){return n==="x"?"y":"x"}function uCt(n){var e=n.state,t=n.options,i=n.name,s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,u=t.rootBoundary,d=t.altBoundary,h=t.padding,f=t.tether,_=f===void 0?!0:f,m=t.tetherOffset,E=m===void 0?0:m,b=sc(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:d}),g=as(e.placement),y=Sa(e.placement),v=!y,S=PE(g),C=dCt(S),T=e.modifiersData.popperOffsets,O=e.rects.reference,k=e.rects.popper,x=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,I=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(T){if(r){var ne,L=S==="y"?Qn:Xn,$=S==="y"?Ri:Ai,H=S==="y"?"height":"width",U=T[S],Q=U+b[L],J=U-b[$],j=_?-k[H]/2:0,ae=y===Ea?O[H]:k[H],ve=y===Ea?-k[H]:-O[H],ee=e.elements.arrow,Ee=_&&ee?LE(ee):{width:0,height:0},xe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:IO(),Me=xe[L],Z=xe[$],ye=kl(0,O[H],Ee[H]),fe=v?O[H]/2-j-ye-Me-I.mainAxis:ae-ye-Me-I.mainAxis,Ne=v?-O[H]/2+j+ye+Z+I.mainAxis:ve+ye+Z+I.mainAxis,Le=e.elements.arrow&&yc(e.elements.arrow),D=Le?S==="y"?Le.clientTop||0:Le.clientLeft||0:0,q=(ne=F==null?void 0:F[S])!=null?ne:0,K=U+fe-q-D,de=U+Ne-q,le=kl(_?au(Q,K):Q,U,_?ro(J,de):J);T[S]=le,B[S]=le-U}if(a){var Re,Ie=S==="x"?Qn:Xn,z=S==="x"?Ri:Ai,pe=T[C],re=C==="y"?"height":"width",ce=pe+b[Ie],M=pe-b[z],N=[Qn,Xn].indexOf(g)!==-1,W=(Re=F==null?void 0:F[C])!=null?Re:0,ue=N?ce:pe-O[re]-k[re]-W+I.altAxis,X=N?pe+O[re]+k[re]-W-I.altAxis:M,ie=_&&N?Lxt(ue,pe,X):kl(_?ue:ce,pe,_?X:M);T[C]=ie,B[C]=ie-pe}e.modifiersData[i]=B}}const pCt={name:"preventOverflow",enabled:!0,phase:"main",fn:uCt,requiresIfExists:["offset"]};function _Ct(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function hCt(n){return n===ai(n)||!xi(n)?UE(n):_Ct(n)}function fCt(n){var e=n.getBoundingClientRect(),t=ya(e.width)/n.offsetWidth||1,i=ya(e.height)/n.offsetHeight||1;return t!==1||i!==1}function mCt(n,e,t){t===void 0&&(t=!1);var i=xi(e),s=xi(e)&&fCt(e),r=Or(e),o=va(n,s,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((us(e)!=="body"||BE(r))&&(a=hCt(e)),xi(e)?(l=va(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=FE(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function gCt(n){var e=new Map,t=new Set,i=[];n.forEach(function(r){e.set(r.name,r)});function s(r){t.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&s(l)}}),i.push(r)}return n.forEach(function(r){t.has(r.name)||s(r)}),i}function bCt(n){var e=gCt(n);return Nxt.reduce(function(t,i){return t.concat(e.filter(function(s){return s.phase===i}))},[])}function ECt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function yCt(n){var e=n.reduce(function(t,i){var s=t[i.name];return t[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var BC={placement:"bottom",modifiers:[],strategy:"absolute"};function GC(){for(var n=arguments.length,e=new Array(n),t=0;t(yo("data-v-b8e854ae"),n=n(),vo(),n),ACt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},NCt={class:"flex flex-col text-center"},OCt={class:"flex flex-col text-center items-center"},ICt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},MCt=Ft(()=>c("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Ti,alt:"Logo"},null,-1)),DCt={class:"flex flex-col items-start"},kCt={class:"text-2xl font-bold text-5xl drop-shadow-md align-middle"},LCt=Ft(()=>c("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),PCt=Ft(()=>c("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),UCt=Ft(()=>c("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),FCt=Ft(()=>c("p",{class:"text-2xl mb-10 font-bold drop-shadow-md"},"Welcome",-1)),BCt={role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},GCt={class:"text-2xl animate-pulse mt-2"},VCt=Ft(()=>c("i",{"data-feather":"chevron-right"},null,-1)),zCt=[VCt],HCt=Ft(()=>c("i",{"data-feather":"chevron-left"},null,-1)),qCt=[HCt],YCt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},$Ct={class:"text-light-text-panel dark:text-dark-text-panel bg-bg-light-panel sticky z-10 top-0 dark:bg-bg-dark-tone shadow-md"},WCt={class:"flex-row p-4 flex items-center gap-3 flex-0"},KCt=Ft(()=>c("i",{"data-feather":"plus"},null,-1)),jCt=[KCt],QCt=Ft(()=>c("i",{"data-feather":"check-square"},null,-1)),XCt=[QCt],ZCt={class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},JCt=Ft(()=>c("i",{"data-feather":"database"},null,-1)),e1t=[JCt],t1t=Ft(()=>c("i",{"data-feather":"log-in"},null,-1)),n1t=[t1t],i1t=Ft(()=>c("i",{"data-feather":"folder"},null,-1)),s1t=[i1t],r1t={key:1,class:"dropdown"},o1t=Ft(()=>c("i",{"data-feather":"search"},null,-1)),a1t=[o1t],l1t={key:2,class:"flex gap-3 flex-1 items-center duration-75"},c1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),d1t=[c1t],u1t=Ft(()=>c("i",{"data-feather":"check"},null,-1)),p1t=[u1t],_1t=Ft(()=>c("i",{"data-feather":"hard-drive"},null,-1)),h1t=[_1t],f1t=Ft(()=>c("i",{"data-feather":"check-circle"},null,-1)),m1t=[f1t],g1t=Ft(()=>c("i",{"data-feather":"x-octagon"},null,-1)),b1t=[g1t],E1t=Ft(()=>c("i",{"data-feather":"book"},null,-1)),y1t=[E1t],v1t={key:7,title:"Loading..",class:"flex flex-row flex-grow justify-end"},S1t=Ft(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),T1t=[S1t],x1t={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},C1t={class:"p-4 pt-2"},w1t={class:"relative"},R1t=Ft(()=>c("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[c("div",{class:"scale-75"},[c("i",{"data-feather":"search"})])],-1)),A1t={class:"absolute inset-y-0 right-0 flex items-center pr-3"},N1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),O1t=[N1t],I1t={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},M1t={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},D1t={class:"flex flex-row flex-grow"},k1t={key:0},L1t={class:"flex flex-row"},P1t={key:0,class:"flex gap-3"},U1t=Ft(()=>c("i",{"data-feather":"trash"},null,-1)),F1t=[U1t],B1t={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},G1t=Ft(()=>c("i",{"data-feather":"check"},null,-1)),V1t=[G1t],z1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),H1t=[z1t],q1t={class:"flex gap-3"},Y1t=Ft(()=>c("i",{"data-feather":"codepen"},null,-1)),$1t=[Y1t],W1t=Ft(()=>c("i",{"data-feather":"folder"},null,-1)),K1t=[W1t],j1t=Ft(()=>c("i",{"data-feather":"bookmark"},null,-1)),Q1t=[j1t],X1t=Ft(()=>c("i",{"data-feather":"list"},null,-1)),Z1t=[X1t],J1t={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},ewt={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},twt=Ft(()=>c("p",{class:"px-3"},"No discussions are found",-1)),nwt=[twt],iwt=Ft(()=>c("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),swt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},rwt={key:1,class:"relative flex flex-col flex-grow w-full"},owt={class:"container pt-4 pb-50 mb-50 w-full"},awt=Ft(()=>c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1)),lwt=Ft(()=>c("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1)),cwt={key:0,class:"flex flex-row items-center justify-center h-10"},dwt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},uwt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},pwt={setup(){},data(){return{memory_icon:xCt,active_skills:CCt,inactive_skills:wCt,skillsRegistry:RCt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1,discussion_id:0}},methods:{add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},addWebpage(){Se.post("/add_webpage",{client_id:this.client_id,url:this.$refs.web_url_input_box.inputText},{headers:this.posts_headers}).then(n=>{n&&n.status&&(console.log("Done"),this.recoverFiles())})},show_progress(n){this.progress_visibility_val=!0},hide_progress(n){this.progress_visibility_val=!1},update_progress(n){console.log("Progress update"),this.progress_value=n.value},onSettingsBinding(){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(n.data&&Object.keys(n.data).length>0?this.$store.state.universalForm.showForm(n.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Se.post("/set_active_binding_settings",e).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. +`+n.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Ge(()=>{ze.replace()})}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};const e=n.language===null?n.full_path:n.full_path+":"+n.language;console.log("Selecting personality ",e);const t=this.$store.state.config.personalities.findIndex(s=>s===e),i={client_id:this.$store.state.client_id,id:t};try{const s=await Se.post("/select_personality",i);if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(n){n.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const t=new MouseEvent("click");e.dispatchEvent(t)},setBinding(n){console.log("Setting binding to "+n.name),this.selecting_binding=!0,this.selectedBinding=n,this.$store.state.messageBox.showBlockingMessage("Loading binding"),Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:n.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,this.$store.state.messageBox.showBlockingMessage("Loading model"),Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:n.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},download_files(){Se.get("/download_files")},remove_file(n){Se.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){Se.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,i=24*1024;let s=0,r=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=s+a.byteLength>=n.size;$e.emit("send_file_chunk",{filename:n.name,chunk:a,offset:s,isLastChunk:l,chunkIndex:r}),s+=a.byteLength,r++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(s,s+i);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),$e.emit("start_bidirectional_audio_stream"),Ge(()=>{ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),$e.emit("stop_bidirectional_audio_stream"),Ge(()=>{ze.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(n){this.showPersonalities=!this.showPersonalities},handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onMountFun(n){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(n){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(n){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(n){return Ge(()=>{ze.replace()}),rs(n)},removeItem(n){console.log("Removing ",n.name),Se.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await Se.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){$e.emit("take_picture"),$e.on("picture_taken",()=>{Se.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const i=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[t];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{t++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Ge(()=>{ze.replace()})},loading(n,e){Ge(()=>{ze.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let i=0;i{ze.replace()}),console.log("Chatbar mounted"),$e.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Ge(()=>{ze.replace()})}},Pt=n=>(yo("data-v-011f8851"),n=n(),vo(),n),r0t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},o0t={key:0,class:"items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},a0t={class:"flex"},l0t=["title"],c0t=Pt(()=>c("i",{"data-feather":"list"},null,-1)),d0t=[c0t],u0t={key:0},p0t={class:"flex flex-col max-h-64"},_0t=["title"],h0t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},f0t={key:0,filesList:"",role:"status"},m0t=Pt(()=>c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),g0t=Pt(()=>c("span",{class:"sr-only"},"Loading...",-1)),b0t=[m0t,g0t],E0t=Pt(()=>c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),y0t=Pt(()=>c("div",{class:"grow"},null,-1)),v0t={class:"flex flex-row items-center"},S0t={class:"whitespace-nowrap"},T0t=["onClick"],x0t=Pt(()=>c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),C0t=[x0t],w0t={key:1,class:"flex mx-1 w-500"},R0t={class:"whitespace-nowrap flex flex-row gap-2"},A0t=Pt(()=>c("p",{class:"font-bold"}," Total size: ",-1)),N0t=Pt(()=>c("div",{class:"grow"},null,-1)),O0t=Pt(()=>c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),I0t=[O0t],M0t=Pt(()=>c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)),D0t=[M0t],k0t={key:2,class:"mx-1"},L0t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end bg-primary"},P0t={role:"status"},U0t=["src"],F0t=Pt(()=>c("span",{class:"sr-only"},"Selecting model...",-1)),B0t={class:"flex w-fit relative grow w-full"},G0t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},V0t={key:0,title:"Waiting for reply"},z0t=["src"],H0t=Pt(()=>c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1)),q0t={key:1,class:"w-fit group relative"},Y0t={class:"group space-x-1 w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-12 group-hover:translate-x-15 transition-all duration-300"},$0t={key:0,class:"group items-center flex flex-row"},W0t=["onClick"],K0t=["src","title"],j0t={class:"group items-center flex flex-row"},Q0t=["src","title"],X0t={key:2,class:"w-fit group relative"},Z0t={class:"group space-x-1 w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-12 group-hover:translate-x-15 transition-all duration-300"},J0t={key:0,class:"group items-center flex flex-row"},eTt=["onClick"],tTt=["src","title"],nTt={class:"group items-center flex flex-row"},iTt=["src","title"],sTt={key:3,class:"w-fit group relative"},rTt={class:"hide .group-hover:block fixed w-[1000px] bottom-0 group absolute opacity-0 group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},oTt={class:"w-fit flex-wrap flex"},aTt=["onMouseover"],lTt={class:"relative"},cTt=["onClick"],dTt=["src","title"],uTt=["onClick"],pTt=Pt(()=>c("span",{class:"-top-6 -right-6 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Unmount personality"},[c("svg",{"aria-hidden":"true",class:"top-1 left-1 relative w-5 h-5 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20","stroke-width":"1",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),_Tt=[pTt],hTt=["onClick"],fTt=Pt(()=>c("span",{class:"-top-9 left-2 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1)),mTt=[fTt],gTt=["onClick"],bTt=Pt(()=>c("span",{class:"-top-6 -left-6 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1)),ETt=[bTt],yTt={class:"w-fit"},vTt={class:"w-fit"},STt={class:"relative grow"},TTt={class:"group relative w-max"},xTt=Pt(()=>c("i",{"data-feather":"send"},null,-1)),CTt=[xTt],wTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI.")],-1)),RTt={class:"group relative w-max"},ATt=["src"],NTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI with internet search.")],-1)),OTt={class:"group relative w-max"},ITt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),MTt=[ITt],DTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Press and talk.")],-1)),kTt={key:5,class:"group relative w-max"},LTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),PTt=[LTt],UTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),FTt=[UTt],BTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Real time bidirectional audio mode.")],-1)),GTt={key:6,class:"group relative w-max"},VTt=Pt(()=>c("i",{"data-feather":"file-plus"},null,-1)),zTt=[VTt],HTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Send File to the AI.")],-1)),qTt={class:"group relative w-max"},YTt=Pt(()=>c("i",{"data-feather":"camera"},null,-1)),$Tt=[YTt],WTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Take a shot from webcam.")],-1)),KTt={class:"group relative w-max"},jTt=Pt(()=>c("i",{"data-feather":"globe"},null,-1)),QTt=[jTt],XTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Add a weblink to the discussion.")],-1)),ZTt={class:"group relative w-max"},JTt=Pt(()=>c("i",{"data-feather":"message-square"},null,-1)),ext=[JTt],txt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty User message.")],-1)),nxt={class:"group relative w-max"},ixt=Pt(()=>c("i",{"data-feather":"message-square"},null,-1)),sxt=[ixt],rxt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty ai message.")],-1)),oxt=Pt(()=>c("div",{class:"ml-auto gap-2"},null,-1));function axt(n,e,t,i,s,r){const o=mt("MountedPersonalitiesList"),a=mt("MountedPersonalities"),l=mt("PersonalitiesCommands"),u=mt("UniversalForm");return w(),A(Ye,null,[c("form",null,[c("div",r0t,[s.filesList.length>0||s.showPersonalities?(w(),A("div",o0t,[c("div",a0t,[c("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=be(d=>s.showfilesList=!s.showfilesList,["stop"]))},d0t,8,l0t)]),s.filesList.length>0&&s.showfilesList==!0?(w(),A("div",u0t,[c("div",p0t,[Te(os,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.filesList,(d,h)=>(w(),A("div",{key:h+"-"+d.name},[c("div",{class:"m-1",title:d.name},[c("div",h0t,[s.isFileSentList[h]?V("",!0):(w(),A("div",f0t,b0t)),E0t,c("div",{class:He(["line-clamp-1 w-3/5",s.isFileSentList[h]?"text-green-500":"text-red-200"])},he(d.name),3),y0t,c("div",v0t,[c("p",S0t,he(r.computedFileSize(d.size)),1),c("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:f=>r.removeItem(d)},C0t,8,T0t)])])],8,_0t)]))),128))]),_:1})])])):V("",!0),s.filesList.length>0?(w(),A("div",w0t,[c("div",R0t,[A0t,et(" "+he(s.totalSize)+" ("+he(s.filesList.length)+") ",1)]),N0t,c("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...d)=>r.clear_files&&r.clear_files(...d))},I0t),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...d)=>r.download_files&&r.download_files(...d))},D0t)])):V("",!0),s.showPersonalities?(w(),A("div",k0t,[Te(o,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mounted":r.onMountFun,"on-un-mounted":r.onUnmountFun,"on-remounted":n.onRemountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):V("",!0)])):V("",!0),s.selecting_model||s.selecting_binding?(w(),A("div",L0t,[c("div",P0t,[c("img",{src:s.loader_v0,class:"w-50 h-50"},null,8,U0t),F0t])])):V("",!0),c("div",B0t,[c("div",G0t,[t.loading?(w(),A("div",V0t,[c("img",{src:s.loader_v0},null,8,z0t),H0t])):V("",!0),t.loading?V("",!0):(w(),A("div",q0t,[c("div",Y0t,[(w(!0),A(Ye,null,lt(r.installedBindings,(d,h)=>(w(),A("div",{class:"w-full",key:h+"-"+d.name,ref_for:!0,ref:"installedBindings"},[d.name!=r.binding_name?(w(),A("div",$0t,[c("button",{onClick:be(f=>r.setBinding(d),["prevent"]),class:"w-8 h-8"},[c("img",{src:d.icon?d.icon:s.modelImgPlaceholder,class:"z-50 w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:d.name},null,8,K0t)],8,W0t)])):V("",!0)]))),128))]),c("div",j0t,[c("button",{onClick:e[3]||(e[3]=be(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentBindingIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:r.currentBinding?r.currentBinding.name:"unknown"},null,8,Q0t)])])])),t.loading?V("",!0):(w(),A("div",X0t,[c("div",Z0t,[(w(!0),A(Ye,null,lt(r.installedModels,(d,h)=>(w(),A("div",{class:"w-full",key:h+"-"+d.name,ref_for:!0,ref:"installedModels"},[d.name!=r.model_name?(w(),A("div",J0t,[c("button",{onClick:be(f=>r.setModel(d),["prevent"]),class:"w-8 h-8"},[c("img",{src:d.icon?d.icon:s.modelImgPlaceholder,class:"z-50 w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:d.name},null,8,tTt)],8,eTt)])):V("",!0)]))),128))]),c("div",nTt,[c("button",{onClick:e[4]||(e[4]=be(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentModelIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:r.currentModel?r.currentModel.name:"unknown"},null,8,iTt)])])])),t.loading?V("",!0):(w(),A("div",sTt,[c("div",rTt,[c("div",oTt,[(w(!0),A(Ye,null,lt(r.mountedPersonalities,(d,h)=>(w(),A("div",{class:"w-fit h-fit",key:h+"-"+d.name,ref_for:!0,ref:"mountedPersonalities",onMouseover:f=>r.showPersonalityHoveredIn(h),onMouseleave:e[6]||(e[6]=f=>r.showPersonalityHoveredOut())},[h!=r.personality_name?(w(),A("div",{key:0,class:He(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",s.personalityHoveredIndex===h?"scale-150":""])},[c("div",lTt,[c("button",{onClick:be(f=>r.onPersonalitySelected(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:s.bUrl+d.avatar,onError:e[5]||(e[5]=(...f)=>n.personalityImgPlacehodler&&n.personalityImgPlacehodler(...f)),class:He(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",s.personalityHoveredIndex===h?"scale-150 ":""+this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(d.full_path)?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,dTt)],8,cTt),s.personalityHoveredIndex===h?(w(),A("button",{key:0,onClick:be(f=>r.unmountPersonality(d),["prevent"])},_Tt,8,uTt)):V("",!0),s.personalityHoveredIndex===h?(w(),A("button",{key:1,onClick:be(f=>r.remount_personality(d),["prevent"])},mTt,8,hTt)):V("",!0),s.personalityHoveredIndex===h?(w(),A("button",{key:2,onClick:be(f=>r.handleOnTalk(d),["prevent"])},ETt,8,gTt)):V("",!0)])],2)):V("",!0)],40,aTt))),128))])]),Te(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])])),c("div",yTt,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(w(),xt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):V("",!0)]),c("div",vTt,[r.isDataSourceNamesValid?(w(),xt(l,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):V("",!0)]),c("div",STt,[G(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=d=>s.message=d),title:"Hold SHIFT + ENTER to add new line",onPaste:e[8]||(e[8]=(...d)=>r.handlePaste&&r.handlePaste(...d)),class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[9]||(e[9]=Hs(be(d=>r.submitOnEnter(d),["exact"]),["enter"]))},`\r + `,544),[[we,s.message]])]),t.loading?(w(),A("button",{key:4,type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[10]||(e[10]=be((...d)=>r.stopGenerating&&r.stopGenerating(...d),["stop"]))}," Stop generating ")):V("",!0),c("div",TTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[11]||(e[11]=(...d)=>r.submit&&r.submit(...d)),title:"Send",class:"w-6 text-panel hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},CTt)),wTt]),c("div",RTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[12]||(e[12]=(...d)=>r.submitWithInternetSearch&&r.submitWithInternetSearch(...d)),title:"Send With internet",class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},[c("img",{src:s.sendGlobe,width:"50",height:"50",style:{stroke:"currentColor",fill:"currentColor"}},null,8,ATt)])),NTt]),c("div",OTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[13]||(e[13]=(...d)=>r.startSpeechRecognition&&r.startSpeechRecognition(...d)),class:He([{"text-red-500":s.isListeningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"])},MTt,2)),DTt]),n.$store.state.config.active_tts_service!="None"?(w(),A("div",kTt,[s.is_rt?(w(),A("button",{key:0,type:"button",onClick:e[14]||(e[14]=(...d)=>r.stopRTCom&&r.stopRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-red-500 border borderred700 rounded-md"},PTt)):(w(),A("button",{key:1,type:"button",onClick:e[15]||(e[15]=(...d)=>r.startRTCom&&r.startRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-green-500 border border-green-700 rounded-md"},FTt)),BTt])):V("",!0),t.loading?V("",!0):(w(),A("div",GTt,[c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[16]||(e[16]=(...d)=>r.addFiles&&r.addFiles(...d)),multiple:""},null,544),c("button",{type:"button",onClick:e[17]||(e[17]=be((...d)=>r.add_file&&r.add_file(...d),["prevent"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},zTt),HTt])),c("div",qTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[18]||(e[18]=be((...d)=>r.takePicture&&r.takePicture(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},$Tt)),WTt]),c("div",KTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[19]||(e[19]=be((...d)=>r.addWebLink&&r.addWebLink(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},QTt)),XTt]),c("div",ZTt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[20]||(e[20]=be((...d)=>r.makeAnEmptyUserMessage&&r.makeAnEmptyUserMessage(...d),["stop"])),class:"w-6 text-gray-800 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},ext)),txt]),c("div",nxt,[t.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[21]||(e[21]=be((...d)=>r.makeAnEmptyAIMessage&&r.makeAnEmptyAIMessage(...d),["stop"])),class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},sxt)),rxt])]),oxt])])]),Te(u,{ref:"universalForm",class:"z-20"},null,512)],64)}const vO=bt(s0t,[["render",axt],["__scopeId","data-v-011f8851"]]),lxt={name:"WelcomeComponent",computed:{storeLogo(){return this.$store.state.config?Ti:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ti}},data(){},setup(){return{}}},cxt={class:"flex flex-col text-center w-full h-full"},dxt={class:"flex flex-col text-center items-center"},uxt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},pxt=["src"],_xt=c("div",{class:"flex flex-col items-start"},[c("p",{class:"text-2xl"},"LoLLMS"),c("p",{class:"text-gray-400 text-base"},"One tool to rule them all")],-1),hxt=c("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1),fxt=c("p",{class:"text-2xl"},"Welcome",-1),mxt=c("p",{class:"text-lg"},"Please create a new discussion or select existing one to start",-1);function gxt(n,e,t,i,s,r){return w(),A("div",cxt,[c("div",dxt,[c("div",uxt,[c("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:n.$store.state.config==null?r.storeLogo:n.$store.state.config.app_custom_logo!=""?"/user_infos/"+n.$store.state.config.app_custom_logo:r.storeLogo,alt:"Logo"},null,8,pxt),_xt]),hxt,fxt,mxt])])}const SO=bt(lxt,[["render",gxt]]);var bxt=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),iu=globalThis&&globalThis.__assign||function(){return iu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t"u")return!1;var e=ai(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Ixt(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},r=e.elements[t];!xi(r)||!us(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Mxt(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(l,u){return l[u]="",l},{});!xi(s)||!us(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Dxt={name:"applyStyles",enabled:!0,phase:"write",fn:Ixt,effect:Mxt,requires:["computeStyles"]};function as(n){return n.split("-")[0]}var ro=Math.max,au=Math.min,ya=Math.round;function eb(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function NO(){return!/^((?!chrome|android).)*safari/i.test(eb())}function va(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),s=1,r=1;e&&xi(n)&&(s=n.offsetWidth>0&&ya(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&ya(i.height)/n.offsetHeight||1);var o=ho(n)?ai(n):window,a=o.visualViewport,l=!NO()&&t,u=(i.left+(l&&a?a.offsetLeft:0))/s,d=(i.top+(l&&a?a.offsetTop:0))/r,h=i.width/s,f=i.height/r;return{width:h,height:f,top:d,right:u+h,bottom:d+f,left:u,x:u,y:d}}function LE(n){var e=va(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function OO(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&kE(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qs(n){return ai(n).getComputedStyle(n)}function kxt(n){return["table","td","th"].indexOf(us(n))>=0}function Or(n){return((ho(n)?n.ownerDocument:n.document)||window.document).documentElement}function ap(n){return us(n)==="html"?n:n.assignedSlot||n.parentNode||(kE(n)?n.host:null)||Or(n)}function DC(n){return!xi(n)||qs(n).position==="fixed"?null:n.offsetParent}function Lxt(n){var e=/firefox/i.test(eb()),t=/Trident/i.test(eb());if(t&&xi(n)){var i=qs(n);if(i.position==="fixed")return null}var s=ap(n);for(kE(s)&&(s=s.host);xi(s)&&["html","body"].indexOf(us(s))<0;){var r=qs(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function yc(n){for(var e=ai(n),t=DC(n);t&&kxt(t)&&qs(t).position==="static";)t=DC(t);return t&&(us(t)==="html"||us(t)==="body"&&qs(t).position==="static")?e:t||Lxt(n)||e}function PE(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function kl(n,e,t){return ro(n,au(e,t))}function Pxt(n,e,t){var i=kl(n,e,t);return i>t?t:i}function IO(){return{top:0,right:0,bottom:0,left:0}}function MO(n){return Object.assign({},IO(),n)}function DO(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var Uxt=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,MO(typeof e!="number"?e:DO(e,Ec))};function Fxt(n){var e,t=n.state,i=n.name,s=n.options,r=t.elements.arrow,o=t.modifiersData.popperOffsets,a=as(t.placement),l=PE(a),u=[Xn,Ai].indexOf(a)>=0,d=u?"height":"width";if(!(!r||!o)){var h=Uxt(s.padding,t),f=LE(r),_=l==="y"?Qn:Xn,m=l==="y"?Ri:Ai,E=t.rects.reference[d]+t.rects.reference[l]-o[l]-t.rects.popper[d],b=o[l]-t.rects.reference[l],g=yc(r),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=E/2-b/2,S=h[_],C=y-f[d]-h[m],T=y/2-f[d]/2+v,O=kl(S,T,C),k=l;t.modifiersData[i]=(e={},e[k]=O,e.centerOffset=O-T,e)}}function Bxt(n){var e=n.state,t=n.options,i=t.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||OO(e.elements.popper,s)&&(e.elements.arrow=s))}const Gxt={name:"arrow",enabled:!0,phase:"main",fn:Fxt,effect:Bxt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sa(n){return n.split("-")[1]}var Vxt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zxt(n,e){var t=n.x,i=n.y,s=e.devicePixelRatio||1;return{x:ya(t*s)/s||0,y:ya(i*s)/s||0}}function kC(n){var e,t=n.popper,i=n.popperRect,s=n.placement,r=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,h=n.isFixed,f=o.x,_=f===void 0?0:f,m=o.y,E=m===void 0?0:m,b=typeof d=="function"?d({x:_,y:E}):{x:_,y:E};_=b.x,E=b.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=Xn,S=Qn,C=window;if(u){var T=yc(t),O="clientHeight",k="clientWidth";if(T===ai(t)&&(T=Or(t),qs(T).position!=="static"&&a==="absolute"&&(O="scrollHeight",k="scrollWidth")),T=T,s===Qn||(s===Xn||s===Ai)&&r===ic){S=Ri;var x=h&&T===C&&C.visualViewport?C.visualViewport.height:T[O];E-=x-i.height,E*=l?1:-1}if(s===Xn||(s===Qn||s===Ri)&&r===ic){v=Ai;var I=h&&T===C&&C.visualViewport?C.visualViewport.width:T[k];_-=I-i.width,_*=l?1:-1}}var F=Object.assign({position:a},u&&Vxt),B=d===!0?zxt({x:_,y:E},ai(t)):{x:_,y:E};if(_=B.x,E=B.y,l){var ne;return Object.assign({},F,(ne={},ne[S]=y?"0":"",ne[v]=g?"0":"",ne.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",ne))}return Object.assign({},F,(e={},e[S]=y?E+"px":"",e[v]=g?_+"px":"",e.transform="",e))}function Hxt(n){var e=n.state,t=n.options,i=t.gpuAcceleration,s=i===void 0?!0:i,r=t.adaptive,o=r===void 0?!0:r,a=t.roundOffsets,l=a===void 0?!0:a,u={placement:as(e.placement),variation:Sa(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kC(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kC(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const qxt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hxt,data:{}};var qc={passive:!0};function Yxt(n){var e=n.state,t=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=ai(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(d){d.addEventListener("scroll",t.update,qc)}),a&&l.addEventListener("resize",t.update,qc),function(){r&&u.forEach(function(d){d.removeEventListener("scroll",t.update,qc)}),a&&l.removeEventListener("resize",t.update,qc)}}const $xt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yxt,data:{}};var Wxt={left:"right",right:"left",bottom:"top",top:"bottom"};function Fd(n){return n.replace(/left|right|bottom|top/g,function(e){return Wxt[e]})}var Kxt={start:"end",end:"start"};function LC(n){return n.replace(/start|end/g,function(e){return Kxt[e]})}function UE(n){var e=ai(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function FE(n){return va(Or(n)).left+UE(n).scrollLeft}function jxt(n,e){var t=ai(n),i=Or(n),s=t.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var u=NO();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+FE(n),y:l}}function Qxt(n){var e,t=Or(n),i=UE(n),s=(e=n.ownerDocument)==null?void 0:e.body,r=ro(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ro(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+FE(n),l=-i.scrollTop;return qs(s||t).direction==="rtl"&&(a+=ro(t.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function BE(n){var e=qs(n),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function kO(n){return["html","body","#document"].indexOf(us(n))>=0?n.ownerDocument.body:xi(n)&&BE(n)?n:kO(ap(n))}function Ll(n,e){var t;e===void 0&&(e=[]);var i=kO(n),s=i===((t=n.ownerDocument)==null?void 0:t.body),r=ai(i),o=s?[r].concat(r.visualViewport||[],BE(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(Ll(ap(o)))}function tb(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Xxt(n,e){var t=va(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function PC(n,e,t){return e===RO?tb(jxt(n,t)):ho(e)?Xxt(e,t):tb(Qxt(Or(n)))}function Zxt(n){var e=Ll(ap(n)),t=["absolute","fixed"].indexOf(qs(n).position)>=0,i=t&&xi(n)?yc(n):n;return ho(i)?e.filter(function(s){return ho(s)&&OO(s,i)&&us(s)!=="body"}):[]}function Jxt(n,e,t,i){var s=e==="clippingParents"?Zxt(n):[].concat(e),r=[].concat(s,[t]),o=r[0],a=r.reduce(function(l,u){var d=PC(n,u,i);return l.top=ro(d.top,l.top),l.right=au(d.right,l.right),l.bottom=au(d.bottom,l.bottom),l.left=ro(d.left,l.left),l},PC(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function LO(n){var e=n.reference,t=n.element,i=n.placement,s=i?as(i):null,r=i?Sa(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(s){case Qn:l={x:o,y:e.y-t.height};break;case Ri:l={x:o,y:e.y+e.height};break;case Ai:l={x:e.x+e.width,y:a};break;case Xn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var u=s?PE(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(r){case Ea:l[u]=l[u]-(e[d]/2-t[d]/2);break;case ic:l[u]=l[u]+(e[d]/2-t[d]/2);break}}return l}function sc(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?n.placement:i,r=t.strategy,o=r===void 0?n.strategy:r,a=t.boundary,l=a===void 0?Ext:a,u=t.rootBoundary,d=u===void 0?RO:u,h=t.elementContext,f=h===void 0?hl:h,_=t.altBoundary,m=_===void 0?!1:_,E=t.padding,b=E===void 0?0:E,g=MO(typeof b!="number"?b:DO(b,Ec)),y=f===hl?yxt:hl,v=n.rects.popper,S=n.elements[m?y:f],C=Jxt(ho(S)?S:S.contextElement||Or(n.elements.popper),l,d,o),T=va(n.elements.reference),O=LO({reference:T,element:v,strategy:"absolute",placement:s}),k=tb(Object.assign({},v,O)),x=f===hl?k:T,I={top:C.top-x.top+g.top,bottom:x.bottom-C.bottom+g.bottom,left:C.left-x.left+g.left,right:x.right-C.right+g.right},F=n.modifiersData.offset;if(f===hl&&F){var B=F[s];Object.keys(I).forEach(function(ne){var L=[Ai,Ri].indexOf(ne)>=0?1:-1,$=[Qn,Ri].indexOf(ne)>=0?"y":"x";I[ne]+=B[$]*L})}return I}function eCt(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?AO:l,d=Sa(i),h=d?a?MC:MC.filter(function(m){return Sa(m)===d}):Ec,f=h.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=h);var _=f.reduce(function(m,E){return m[E]=sc(n,{placement:E,boundary:s,rootBoundary:r,padding:o})[as(E)],m},{});return Object.keys(_).sort(function(m,E){return _[m]-_[E]})}function tCt(n){if(as(n)===DE)return[];var e=Fd(n);return[LC(n),e,LC(e)]}function nCt(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,u=t.padding,d=t.boundary,h=t.rootBoundary,f=t.altBoundary,_=t.flipVariations,m=_===void 0?!0:_,E=t.allowedAutoPlacements,b=e.options.placement,g=as(b),y=g===b,v=l||(y||!m?[Fd(b)]:tCt(b)),S=[b].concat(v).reduce(function(Ee,xe){return Ee.concat(as(xe)===DE?eCt(e,{placement:xe,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:E}):xe)},[]),C=e.rects.reference,T=e.rects.popper,O=new Map,k=!0,x=S[0],I=0;I=0,$=L?"width":"height",H=sc(e,{placement:F,boundary:d,rootBoundary:h,altBoundary:f,padding:u}),U=L?ne?Ai:Xn:ne?Ri:Qn;C[$]>T[$]&&(U=Fd(U));var Q=Fd(U),J=[];if(r&&J.push(H[B]<=0),a&&J.push(H[U]<=0,H[Q]<=0),J.every(function(Ee){return Ee})){x=F,k=!1;break}O.set(F,J)}if(k)for(var j=m?3:1,ae=function(xe){var Me=S.find(function(Z){var ye=O.get(Z);if(ye)return ye.slice(0,xe).every(function(fe){return fe})});if(Me)return x=Me,"break"},ve=j;ve>0;ve--){var ee=ae(ve);if(ee==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const iCt={name:"flip",enabled:!0,phase:"main",fn:nCt,requiresIfExists:["offset"],data:{_skip:!1}};function UC(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function FC(n){return[Qn,Ai,Ri,Xn].some(function(e){return n[e]>=0})}function sCt(n){var e=n.state,t=n.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=sc(e,{elementContext:"reference"}),a=sc(e,{altBoundary:!0}),l=UC(o,i),u=UC(a,s,r),d=FC(l),h=FC(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const rCt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sCt};function oCt(n,e,t){var i=as(n),s=[Xn,Qn].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Xn,Ai].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function aCt(n){var e=n.state,t=n.options,i=n.name,s=t.offset,r=s===void 0?[0,0]:s,o=AO.reduce(function(d,h){return d[h]=oCt(h,e.rects,r),d},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=o}const lCt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aCt};function cCt(n){var e=n.state,t=n.name;e.modifiersData[t]=LO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const dCt={name:"popperOffsets",enabled:!0,phase:"read",fn:cCt,data:{}};function uCt(n){return n==="x"?"y":"x"}function pCt(n){var e=n.state,t=n.options,i=n.name,s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,u=t.rootBoundary,d=t.altBoundary,h=t.padding,f=t.tether,_=f===void 0?!0:f,m=t.tetherOffset,E=m===void 0?0:m,b=sc(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:d}),g=as(e.placement),y=Sa(e.placement),v=!y,S=PE(g),C=uCt(S),T=e.modifiersData.popperOffsets,O=e.rects.reference,k=e.rects.popper,x=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,I=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(T){if(r){var ne,L=S==="y"?Qn:Xn,$=S==="y"?Ri:Ai,H=S==="y"?"height":"width",U=T[S],Q=U+b[L],J=U-b[$],j=_?-k[H]/2:0,ae=y===Ea?O[H]:k[H],ve=y===Ea?-k[H]:-O[H],ee=e.elements.arrow,Ee=_&&ee?LE(ee):{width:0,height:0},xe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:IO(),Me=xe[L],Z=xe[$],ye=kl(0,O[H],Ee[H]),fe=v?O[H]/2-j-ye-Me-I.mainAxis:ae-ye-Me-I.mainAxis,Ne=v?-O[H]/2+j+ye+Z+I.mainAxis:ve+ye+Z+I.mainAxis,Le=e.elements.arrow&&yc(e.elements.arrow),D=Le?S==="y"?Le.clientTop||0:Le.clientLeft||0:0,q=(ne=F==null?void 0:F[S])!=null?ne:0,K=U+fe-q-D,de=U+Ne-q,le=kl(_?au(Q,K):Q,U,_?ro(J,de):J);T[S]=le,B[S]=le-U}if(a){var Re,Ie=S==="x"?Qn:Xn,z=S==="x"?Ri:Ai,pe=T[C],re=C==="y"?"height":"width",ce=pe+b[Ie],M=pe-b[z],N=[Qn,Xn].indexOf(g)!==-1,W=(Re=F==null?void 0:F[C])!=null?Re:0,ue=N?ce:pe-O[re]-k[re]-W+I.altAxis,X=N?pe+O[re]+k[re]-W-I.altAxis:M,ie=_&&N?Pxt(ue,pe,X):kl(_?ue:ce,pe,_?X:M);T[C]=ie,B[C]=ie-pe}e.modifiersData[i]=B}}const _Ct={name:"preventOverflow",enabled:!0,phase:"main",fn:pCt,requiresIfExists:["offset"]};function hCt(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function fCt(n){return n===ai(n)||!xi(n)?UE(n):hCt(n)}function mCt(n){var e=n.getBoundingClientRect(),t=ya(e.width)/n.offsetWidth||1,i=ya(e.height)/n.offsetHeight||1;return t!==1||i!==1}function gCt(n,e,t){t===void 0&&(t=!1);var i=xi(e),s=xi(e)&&mCt(e),r=Or(e),o=va(n,s,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((us(e)!=="body"||BE(r))&&(a=fCt(e)),xi(e)?(l=va(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=FE(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function bCt(n){var e=new Map,t=new Set,i=[];n.forEach(function(r){e.set(r.name,r)});function s(r){t.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&s(l)}}),i.push(r)}return n.forEach(function(r){t.has(r.name)||s(r)}),i}function ECt(n){var e=bCt(n);return Oxt.reduce(function(t,i){return t.concat(e.filter(function(s){return s.phase===i}))},[])}function yCt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function vCt(n){var e=n.reduce(function(t,i){var s=t[i.name];return t[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var BC={placement:"bottom",modifiers:[],strategy:"absolute"};function GC(){for(var n=arguments.length,e=new Array(n),t=0;t(yo("data-v-b8e854ae"),n=n(),vo(),n),NCt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},OCt={class:"flex flex-col text-center"},ICt={class:"flex flex-col text-center items-center"},MCt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},DCt=Ft(()=>c("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Ti,alt:"Logo"},null,-1)),kCt={class:"flex flex-col items-start"},LCt={class:"text-2xl font-bold text-5xl drop-shadow-md align-middle"},PCt=Ft(()=>c("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),UCt=Ft(()=>c("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),FCt=Ft(()=>c("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),BCt=Ft(()=>c("p",{class:"text-2xl mb-10 font-bold drop-shadow-md"},"Welcome",-1)),GCt={role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},VCt={class:"text-2xl animate-pulse mt-2"},zCt=Ft(()=>c("i",{"data-feather":"chevron-right"},null,-1)),HCt=[zCt],qCt=Ft(()=>c("i",{"data-feather":"chevron-left"},null,-1)),YCt=[qCt],$Ct={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},WCt={class:"text-light-text-panel dark:text-dark-text-panel bg-bg-light-panel sticky z-10 top-0 dark:bg-bg-dark-tone shadow-md"},KCt={class:"flex-row p-4 flex items-center gap-3 flex-0"},jCt=Ft(()=>c("i",{"data-feather":"plus"},null,-1)),QCt=[jCt],XCt=Ft(()=>c("i",{"data-feather":"check-square"},null,-1)),ZCt=[XCt],JCt={class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},e1t=Ft(()=>c("i",{"data-feather":"database"},null,-1)),t1t=[e1t],n1t=Ft(()=>c("i",{"data-feather":"log-in"},null,-1)),i1t=[n1t],s1t=Ft(()=>c("i",{"data-feather":"folder"},null,-1)),r1t=[s1t],o1t={key:1,class:"dropdown"},a1t=Ft(()=>c("i",{"data-feather":"search"},null,-1)),l1t=[a1t],c1t={key:2,class:"flex gap-3 flex-1 items-center duration-75"},d1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),u1t=[d1t],p1t=Ft(()=>c("i",{"data-feather":"check"},null,-1)),_1t=[p1t],h1t=Ft(()=>c("i",{"data-feather":"hard-drive"},null,-1)),f1t=[h1t],m1t=Ft(()=>c("i",{"data-feather":"check-circle"},null,-1)),g1t=[m1t],b1t=Ft(()=>c("i",{"data-feather":"x-octagon"},null,-1)),E1t=[b1t],y1t=Ft(()=>c("i",{"data-feather":"book"},null,-1)),v1t=[y1t],S1t={key:7,title:"Loading..",class:"flex flex-row flex-grow justify-end"},T1t=Ft(()=>c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),x1t=[T1t],C1t={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},w1t={class:"p-4 pt-2"},R1t={class:"relative"},A1t=Ft(()=>c("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[c("div",{class:"scale-75"},[c("i",{"data-feather":"search"})])],-1)),N1t={class:"absolute inset-y-0 right-0 flex items-center pr-3"},O1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),I1t=[O1t],M1t={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},D1t={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},k1t={class:"flex flex-row flex-grow"},L1t={key:0},P1t={class:"flex flex-row"},U1t={key:0,class:"flex gap-3"},F1t=Ft(()=>c("i",{"data-feather":"trash"},null,-1)),B1t=[F1t],G1t={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},V1t=Ft(()=>c("i",{"data-feather":"check"},null,-1)),z1t=[V1t],H1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),q1t=[H1t],Y1t={class:"flex gap-3"},$1t=Ft(()=>c("i",{"data-feather":"codepen"},null,-1)),W1t=[$1t],K1t=Ft(()=>c("i",{"data-feather":"folder"},null,-1)),j1t=[K1t],Q1t=Ft(()=>c("i",{"data-feather":"bookmark"},null,-1)),X1t=[Q1t],Z1t=Ft(()=>c("i",{"data-feather":"list"},null,-1)),J1t=[Z1t],ewt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},twt={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},nwt=Ft(()=>c("p",{class:"px-3"},"No discussions are found",-1)),iwt=[nwt],swt=Ft(()=>c("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),rwt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},owt={key:1,class:"relative flex flex-col flex-grow w-full"},awt={class:"container pt-4 pb-50 mb-50 w-full"},lwt=Ft(()=>c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1)),cwt=Ft(()=>c("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1)),dwt={key:0,class:"flex flex-row items-center justify-center h-10"},uwt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},pwt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},_wt={setup(){},data(){return{memory_icon:CCt,active_skills:wCt,inactive_skills:RCt,skillsRegistry:ACt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1,discussion_id:0}},methods:{add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},addWebpage(){Se.post("/add_webpage",{client_id:this.client_id,url:this.$refs.web_url_input_box.inputText},{headers:this.posts_headers}).then(n=>{n&&n.status&&(console.log("Done"),this.recoverFiles())})},show_progress(n){this.progress_visibility_val=!0},hide_progress(n){this.progress_visibility_val=!1},update_progress(n){console.log("Progress update"),this.progress_value=n.value},onSettingsBinding(){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(n.data&&Object.keys(n.data).length>0?this.$store.state.universalForm.showForm(n.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Se.post("/set_active_binding_settings",e).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. `+t,4,!1),this.isLoading=!1)})}catch(t){this.$store.state.toast.showToast(`Did not get binding settings responses. Endpoint error: `+t.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(n){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+n.message,4,!1)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(n){console.log("Selected:",n)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(n){if(this.database_selectorDialogVisible=!1,(await Se.post("/select_database",{client_id:this.client_id,name:n},{headers:this.posts_headers})).status){console.log("Selected database"),this.$store.state.config=await Se.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let t=await Se.get("/list_databases").data;console.log("New list of database: ",t),this.$store.state.databases=t,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async addDiscussion2SkillsLibrary(){(await Se.post("/add_discussion_to_skills_library",{client_id:this.client_id},{headers:this.posts_headers})).status&&console.log("done")},async toggleSkillsLib(){this.$store.state.config.activate_skills_lib=!this.$store.state.config.activate_skills_lib,await this.applyConfiguration()},async showSkillsLib(){this.$refs.skills_lib.showSkillsLibrary()},async applyConfiguration(){this.loading=!0;const n=await Se.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config});this.loading=!1,n.data.status?this.$store.state.toast.showToast("Configuration changed successfully.",4,!0):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{ze.replace()})},save_configuration(){this.showConfirmation=!1,Se.post("/save_settings",{}).then(n=>{if(n)return n.status?this.$store.state.toast.showToast("Settings saved!",4,!0):this.$store.state.messageBox.showMessage("Error: Couldn't save settings!"),n.data}).catch(n=>(console.log(n.message,"save_configuration"),this.$store.state.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},showToastMessage(n,e,t){console.log("sending",n),this.$store.state.toast.showToast(n,e,t)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(n){try{const e=await Se.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const n=await Se.get("/list_discussions");if(n)return this.createDiscussionList(n.data),n.data}catch(n){return console.log("Error: Could not list discussions",n.message),[]}},load_discussion(n,e){n&&(console.log("Loading discussion",n),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(n,this.loading),$e.on("discussion",t=>{console.log("Discussion recovered"),this.loading=!1,this.setDiscussionLoading(n,this.loading),t&&(this.discussionArr=t.filter(i=>i.message_type==this.msgTypes.MSG_TYPE_CHUNK||i.message_type==this.msgTypes.MSG_TYPE_FULL||i.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||i.message_type==this.msgTypes.MSG_TYPE_CODE||i.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||i.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),$e.off("discussion")}),$e.emit("load_discussion",{id:n}),console.log("here"))},recoverFiles(){console.log("Recovering files"),Se.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.$refs.chatBox.filesList=n.data.files,this.$refs.chatBox.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.$refs.chatBox.filesList}`)})},new_discussion(n){try{this.loading=!0,$e.on("discussion_created",e=>{$e.off("discussion_created"),this.list_discussions().then(()=>{const t=this.list.findIndex(s=>s.id==e.id),i=this.list[t];this.selectDiscussion(i),this.load_discussion(e.id,()=>{this.loading=!1,this.recoverFiles(),Ge(()=>{const s=document.getElementById("dis-"+e.id);this.scrollToElement(s),console.log("Scrolling tp "+s)})})})}),console.log("new_discussion ",n),$e.emit("new_discussion",{title:n})}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(n){try{n&&(this.loading=!0,this.setDiscussionLoading(n,this.loading),await Se.post("/delete_discussion",{client_id:this.client_id,id:n},{headers:this.posts_headers}),this.loading=!1,this.setDiscussionLoading(n,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async edit_title(n,e){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const t=await Se.post("/edit_title",{client_id:this.client_id,id:n,title:e},{headers:this.posts_headers});if(this.loading=!1,this.setDiscussionLoading(n,this.loading),t.status==200){const i=this.list.findIndex(r=>r.id==n),s=this.list[i];s.title=e,this.tempList=this.list}}}catch(t){console.log("Error: Could not edit title",t.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async make_title(n){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const e=await Se.post("/make_title",{client_id:this.client_id,id:n},{headers:this.posts_headers});if(console.log("Making title:",e),this.loading=!1,this.setDiscussionLoading(n,this.loading),e.status==200){const t=this.list.findIndex(s=>s.id==n),i=this.list[t];i.title=e.data.title,this.tempList=this.list}}}catch(e){console.log("Error: Could not edit title",e.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async delete_message(n){try{console.log(typeof n),console.log(typeof this.client_id),console.log(n),console.log(this.client_id);const e=await Se.post("/delete_message",{client_id:this.client_id,id:n},{headers:this.posts_headers});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(this.discussionArr.length>0){const n=this.discussionArr[this.discussionArr.length-1];n.status_message="Generation canceled"}if($e.emit("cancel_generation"),res)return res.data}catch(n){return console.log("Error: Could not stop generating",n.message),{}}},async message_rank_up(n){try{const e=await Se.post("/message_rank_up",{client_id:this.client_id,id:n},{headers:this.posts_headers});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(n){try{const e=await Se.post("/message_rank_down",{client_id:this.client_id,id:n},{headers:this.posts_headers});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async edit_message(n,e,t){try{console.log(typeof this.client_id),console.log(typeof n),console.log(typeof e),console.log(typeof{audio_url:t});const i=await Se.post("/edit_message",{client_id:this.client_id,id:n,message:e,metadata:[{audio_url:t}]},{headers:this.posts_headers});if(i)return i.data}catch(i){return console.log("Error: Could not update message",i.message),{}}},async export_multiple_discussions(n,e){try{if(n.length>0){const t=await Se.post("/export_multiple_discussions",{client_id:this.$store.state.client_id,discussion_ids:n,export_format:e},{headers:this.posts_headers});if(t)return t.data}}catch(t){return console.log("Error: Could not export multiple discussions",t.message),{}}},async import_multiple_discussions(n){try{if(n.length>0){console.log("sending import",n);const e=await Se.post("/import_multiple_discussions",{client_id:this.$store.state.client_id,jArray:n},{headers:this.posts_headers});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(n=>n.title&&n.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(n){if(this.isGenerating){this.$store.state.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}n&&(this.currentDiscussion===void 0?(this.currentDiscussion=n,this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&((this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content),this.recoverFiles())})):this.currentDiscussion.id!=n.id&&(console.log("item",n),console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion=n,console.log("this.currentDiscussion",this.currentDiscussion),this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content),this.recoverFiles()})),Ge(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const t=document.getElementById("messages-list");this.scrollBottom(t)}))},scrollToElement(n){n?n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(n,e){try{const t=n.offsetTop;document.getElementById(e).scrollTo({top:t,behavior:"smooth"})}catch{console.log("error")}},scrollBottom(n){n?n.scrollTo({top:n.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(n){n?n.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(n){let e={content:n.message,id:n.id,rank:0,sender:n.user,created_at:n.created_at,steps:[],html_js_s:[],status_message:"Warming up"};this.discussionArr.push(e),Ge(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},updateLastUserMsg(n){const e=this.discussionArr.indexOf(i=>i.id=n.user_id),t={binding:n.binding,content:n.message,created_at:n.created_at,type:n.type,finished_generating_at:n.finished_generating_at,id:n.user_id,model:n.model,personality:n.personality,sender:n.user,steps:[]};e!==-1&&(this.discussionArr[e]=t)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.state.isConnected=!0,this.$store.state.client_id=$e.id,!0},socketIODisconnected(){return console.log("socketIOConnected"),this.currentDiscussion=null,this.$store.dispatch("refreshModels"),this.$store.state.isConnected=!1,!0},new_message(n){n.sender_type==this.SENDER_TYPES_AI&&(this.isGenerating=!0),console.log("Making a new message"),console.log("New message",n);let e={sender:n.sender,message_type:n.message_type,sender_type:n.sender_type,content:n.content,id:n.id,discussion_id:n.discussion_id,parent_id:n.parent_id,binding:n.binding,model:n.model,personality:n.personality,created_at:n.created_at,finished_generating_at:n.finished_generating_at,rank:0,ui:n.ui,steps:[],parameters:n.parameters,metadata:n.metadata,open:n.open};e.status_message="Warming up",console.log(e),this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,n.message),console.log("infos",n)},async talk(n){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await Se.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(s=>s===n.full_path),i={client_id:this.$store.state.client_id,id:t};e=await Se.post("/select_personality",i),console.log("Generating message from ",e.data.status),$e.emit("generate_msg_from",{id:-1})}},createEmptyUserMessage(n){$e.emit("create_empty_message",{type:0,message:n})},createEmptyAIMessage(){$e.emit("create_empty_message",{type:1})},sendMsg(n,e){if(!n){this.$store.state.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(t=>{if(t)if(t.data.status)console.log("Already generating");else{e=="internet"?$e.emit("generate_msg_with_internet",{prompt:n}):$e.emit("generate_msg",{prompt:n});let i=0;this.discussionArr.length>0&&(i=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let s={message:n,id:i,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.msgTypes.MSG_TYPE_FULL,sender_type:this.senderTypes.SENDER_TYPES_USER,content:n,id:i,discussion_id:this.discussion_id,parent_id:i,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(s)}}).catch(t=>{console.log("Error: Could not get generation status",t)})},sendCmd(n){this.isGenerating=!0,$e.emit("execute_command",{command:n,parameters:[]})},notify(n){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Ge(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),n.display_type==0?this.$store.state.toast.showToast(n.content,n.duration,n.notification_type):n.display_type==1?this.$store.state.messageBox.showMessage(n.content):n.display_type==2?(this.$store.state.messageBox.hideMessage(),this.$store.state.yesNoDialog.askQuestion(n.content,"Yes","No").then(e=>{$e.emit("yesNoRes",{yesRes:e})})):n.display_type==3?this.$store.state.messageBox.showBlockingMessage(n.content):n.display_type==4&&this.$store.state.messageBox.hideMessage(),this.chime.play()},streamMessageContent(n){if(this.discussion_id=n.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(i=>i.id==n.id),t=this.discussionArr[e];if(t&&(n.message_type==this.msgTypes.MSG_TYPE_FULL||n.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))this.isGenerating=!0,t.content=n.content,t.created_at=n.created_at,t.started_generating_at=n.started_generating_at,t.nb_tokens=n.nb_tokens,t.finished_generating_at=n.finished_generating_at;else if(t&&n.message_type==this.msgTypes.MSG_TYPE_CHUNK)this.isGenerating=!0,t.content+=n.content,t.created_at=n.created_at,t.started_generating_at=n.started_generating_at,t.nb_tokens=n.nb_tokens,t.finished_generating_at=n.finished_generating_at;else if(n.message_type==this.msgTypes.MSG_TYPE_STEP)t.status_message=n.content,t.steps.push({message:n.content,done:!0,status:!0,type:"instantanious"});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_START)t.status_message=n.content,t.steps.push({message:n.content,done:!1,status:!0,type:"start_end"});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_END){console.log("received step end",n);try{t.steps.forEach(i=>{if(i.message===n.content){i.done=!0;try{console.log(n.parameters);const s=n.parameters;s!==void 0&&(i.status=s.status,console.log(s))}catch(s){console.error("Error parsing JSON:",s.message)}}})}catch{console.log("error")}}else n.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(n.metadata),t.metadata=n.metadata):n.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),t.ui=n.ui,console.log(t.ui)):n.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$store.state.toast.showToast(n.content,5,!1)}this.$nextTick(()=>{ze.replace()})},async changeTitleUsingUserMSG(n,e){const t=this.list.findIndex(s=>s.id==n),i=this.list[t];e&&(i.title=e,this.tempList=this.list,await this.edit_title(n,e))},async createNewDiscussion(){this.new_discussion(null)},loadLastUsedDiscussion(){console.log("Loading last discussion");const n=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",n),n){const e=this.list.findIndex(i=>i.id==n),t=this.list[e];t&&this.selectDiscussion(t)}},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},async deleteDiscussion(n){await this.delete_discussion(n),this.currentDiscussion.id==n&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==n),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const n=this.selectedDiscussions;for(let e=0;ei.id==t.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$store.state.toast.showToast("Removed ("+n.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(n){await this.delete_message(n).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==n),1)}).catch(()=>{this.$store.state.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async openFolder(n){const e=JSON.stringify({client_id:this.$store.state.client_id,discussion_id:n.id});console.log(e),await Se.post("/open_discussion_folder",e,{method:"POST",headers:{"Content-Type":"application/json"}})},async editTitle(n){const e=this.list.findIndex(i=>i.id==n.id),t=this.list[e];t.title=n.title,t.loading=!0,await this.edit_title(n.id,n.title),t.loading=!1},async makeTitle(n){this.list.findIndex(e=>e.id==n.id),await this.make_title(n.id)},checkUncheckDiscussion(n,e){const t=this.list.findIndex(s=>s.id==e),i=this.list[t];i.checkBoxValue=n.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(n=>n.checkBoxValue==!1).length>0;for(let n=0;n({id:t.id,title:t.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(t,i){return i.id-t.id});this.list=e,this.tempList=e}},setDiscussionLoading(n,e){try{const t=this.list.findIndex(s=>s.id==n),i=this.list[t];i.loading=e}catch{console.log("Error setting discussion loading")}},setPageTitle(n){if(n)if(n.id){const e=n.title?n.title==="untitled"?"New discussion":n.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(n){await this.message_rank_up(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(n){await this.message_rank_down(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];t.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(n,e,t){await this.edit_message(n,e,t).then(()=>{const i=this.discussionArr[this.discussionArr.findIndex(s=>s.id==n)];i.content=e}).catch(()=>{this.$store.state.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(n,e,t){Ge(()=>{ze.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(i=>{i&&(i.data.status?(this.$store.state.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):$e.emit("generate_msg_from",{prompt:e,id:n,msg_type:t}))}).catch(i=>{console.log("Error: Could not get generation status",i)})},continueMessage(n,e){Ge(()=>{ze.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(t=>{t&&(t.data.status?console.log("Already generating"):$e.emit("continue_generate_msg_from",{prompt:e,id:n}))}).catch(t=>{console.log("Error: Could not get generation status",t)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),Ge(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},finalMsgEvent(n){let e=0;this.discussion_id=n.discussion_id,this.currentDiscussion.id==this.discussion_id&&(e=this.discussionArr.findIndex(i=>i.id==n.id),this.discussionArr[e].content=n.content,this.discussionArr[e].finished_generating_at=n.finished_generating_at),Ge(()=>{const i=document.getElementById("messages-list");this.scrollBottom(i),this.recoverFiles()}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play(),e=this.discussionArr.findIndex(i=>i.id==n.id);const t=this.discussionArr[e];if(t.status_message="Done",console.log("final",n),this.$store.state.config.auto_speak&&this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode){e=this.discussionArr.findIndex(s=>s.id==n.id);let i=this.$refs["msg-"+n.id][0];console.log(i),i.speak()}},copyToClipBoard(n){let e="";if(n.message.content&&(e=n.message.content),this.$store.state.config.copy_to_clipboard_add_all_details){let t="";n.message.binding&&(t=`Binding: ${n.message.binding}`);let i="";n.message.personality&&(i=` Personality: ${n.message.personality}`);let s="";n.created_at_parsed&&(s=` @@ -197,15 +197,15 @@ ${e} ${l}`;navigator.clipboard.writeText(u)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Ge(()=>{ze.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(n,e){e=e||"data.json";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},saveMarkdowntoFile(n,e){e=e||"data.md";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([n],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},parseJsonObj(n){try{return JSON.parse(n)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(n){return new Promise((e,t)=>{const i=new FileReader;i.onload=s=>e(this.parseJsonObj(s.target.result)),i.onerror=s=>t(s),i.readAsText(n)})},async exportDiscussionsAsMarkdown(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(t+"."+i+"."+s+"."+r+o+a)+".md";this.loading=!0;const d=await this.export_multiple_discussions(n,"markdown");d?(this.saveMarkdowntoFile(d,u),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(t+"."+i+"."+s+"."+r+o+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(n,"json");d?(this.saveJSONtoFile(d,u),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(i=>i.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){const e=(await Se.get("/get_versionID")).data.versionId;for(this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{ze.replace()}),$e.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const i=this.list.findIndex(r=>r.id==t.discussion_id),s=this.list[i];s.title=t.title}),$e.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},$e.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),$e.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),$e.disconnect()},$e.on("connected",this.socketIOConnected),$e.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),$e.on("show_progress",this.show_progress),$e.on("hide_progress",this.hide_progress),$e.on("update_progress",this.update_progress),$e.on("notification",this.notify),$e.on("new_message",this.new_message),$e.on("update_message",this.streamMessageContent),$e.on("close_message",this.finalMsgEvent),$e.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.isCreated=!0},async mounted(){$e.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{ze.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ge(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:RE,Message:yO,ChatBox:vO,WelcomeComponent:SO,ChoiceDialog:wE,ProgressBar:nc,InputBox:gO,SkillsLibraryViewer:bO},watch:{progress_visibility_val(n){console.log("progress_visibility changed")},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Ge(()=>{ze.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ge(()=>{ze.replace()})},isSearch(){Ge(()=>{ze.replace()})}},computed:{...Sk({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+this.$store.state.version:""}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return $e.id},isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Ge(()=>{ze.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},_wt=Object.assign(pwt,{__name:"DiscussionsView",setup(n){return Ws(()=>{zO()}),Se.defaults.baseURL="/",(e,t)=>(w(),A(Ye,null,[Te(cs,{name:"fade-and-fly"},{default:We(()=>[e.isReady?V("",!0):(w(),A("div",ACt,[c("div",NCt,[c("div",OCt,[c("div",ICt,[MCt,c("div",DCt,[c("p",kCt,"LoLLMS "+he(e.version_info),1),LCt,PCt])]),UCt,FCt,c("div",BCt,[Te(nc,{ref:"loading_progress",progress:e.loading_progress},null,8,["progress"]),c("p",GCt,he(e.loading_infos)+" ...",1)])])])]))]),_:1}),e.isReady?(w(),A("button",{key:0,onClick:t[0]||(t[0]=(...i)=>e.togglePanel&&e.togglePanel(...i)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[G(c("div",null,zCt,512),[[Mt,e.panelCollapsed]]),G(c("div",null,qCt,512),[[Mt,!e.panelCollapsed]])])):V("",!0),Te(cs,{name:"slide-right"},{default:We(()=>[e.showPanel?(w(),A("div",YCt,[c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:t[28]||(t[28]=be(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",$Ct,[c("div",WCt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:t[1]||(t[1]=i=>e.createNewDiscussion())},jCt),c("button",{class:He(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=i=>e.isCheckbox=!e.isCheckbox)},XCt,2),c("button",ZCt,[c("i",{"data-feather":"trash-2",onClick:t[3]||(t[3]=be(()=>{},["stop"]))})]),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:t[4]||(t[4]=be(i=>e.database_selectorDialogVisible=!0,["stop"]))},e1t),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:t[5]||(t[5]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=be(i=>e.$refs.fileDialog.click(),["stop"]))},n1t),c("input",{type:"file",ref:"bundleLoadingDialog",style:{display:"none"},onChange:t[7]||(t[7]=(...i)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...i))},null,544),e.showSaveConfirmation?V("",!0):(w(),A("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=be(i=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-2xl hover:text-secondary duration-75 active:scale-90"},s1t)),e.isOpen?(w(),A("div",r1t,[c("button",{onClick:t[9]||(t[9]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},"LOLLMS"),c("button",{onClick:t[10]||(t[10]=(...i)=>e.importChatGPT&&e.importChatGPT(...i))},"ChatGPT")])):V("",!0),c("button",{class:He(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:t[11]||(t[11]=i=>e.isSearch=!e.isSearch)},a1t,2),e.showSaveConfirmation?(w(),A("div",l1t,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:t[12]||(t[12]=be(i=>e.showSaveConfirmation=!1,["stop"]))},d1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:t[13]||(t[13]=be(i=>e.save_configuration(),["stop"]))},p1t)])):V("",!0),e.loading?V("",!0):(w(),A("button",{key:3,type:"button",onClick:t[14]||(t[14]=be((...i)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...i),["stop"])),title:"Add this discussion content to skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},h1t)),!e.loading&&e.$store.state.config.activate_skills_lib?(w(),A("button",{key:4,type:"button",onClick:t[15]||(t[15]=be((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is activated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},m1t)):V("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(w(),A("button",{key:5,type:"button",onClick:t[16]||(t[16]=be((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is deactivated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},b1t)):V("",!0),e.loading?V("",!0):(w(),A("button",{key:6,type:"button",onClick:t[17]||(t[17]=be((...i)=>e.showSkillsLib&&e.showSkillsLib(...i),["stop"])),title:"Show Skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},y1t)),e.loading?(w(),A("div",v1t,T1t)):V("",!0)]),e.isSearch?(w(),A("div",x1t,[c("div",C1t,[c("div",w1t,[R1t,c("div",A1t,[c("div",{class:He(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:t[18]||(t[18]=i=>e.filterTitle="")},O1t,2)]),G(c("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":t[19]||(t[19]=i=>e.filterTitle=i),onInput:t[20]||(t[20]=i=>e.filterDiscussions())},null,544),[[we,e.filterTitle]])])])])):V("",!0),e.isCheckbox?(w(),A("hr",I1t)):V("",!0),e.isCheckbox?(w(),A("div",M1t,[c("div",D1t,[e.selectedDiscussions.length>0?(w(),A("p",k1t,"Selected: "+he(e.selectedDiscussions.length),1)):V("",!0)]),c("div",L1t,[e.selectedDiscussions.length>0?(w(),A("div",P1t,[e.showConfirmation?V("",!0):(w(),A("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[21]||(t[21]=be(i=>e.showConfirmation=!0,["stop"]))},F1t)),e.showConfirmation?(w(),A("div",B1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[22]||(t[22]=be((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},V1t),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[23]||(t[23]=be(i=>e.showConfirmation=!1,["stop"]))},H1t)])):V("",!0)])):V("",!0),c("div",q1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[24]||(t[24]=be((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},$1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[25]||(t[25]=be((...i)=>e.exportDiscussions&&e.exportDiscussions(...i),["stop"]))},K1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[26]||(t[26]=be((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},Q1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[27]||(t[27]=be((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},Z1t)])])])):V("",!0)]),c("div",J1t,[c("div",{class:He(["mx-4 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:He([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full"])},[e.list.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(e.list,(i,s)=>(w(),xt(RE,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:r=>e.selectDiscussion(i),onDelete:r=>e.deleteDiscussion(i.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):V("",!0),e.list.length<1?(w(),A("div",ewt,nwt)):V("",!0),iwt],2)],2)])],32),c("div",{class:"absolute h-15 bottom-0 left-0 w-full bg-bg-light-panel dark:bg-bg-dark-tone light-text-panel py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[29]||(t[29]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[c("p",swt,he(e.formatted_database_name.replace("_"," ")),1)])])):V("",!0)]),_:1}),e.isReady?(w(),A("div",rwt,[c("div",{id:"messages-list",class:He(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[c("div",owt,[e.discussionArr.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(e.discussionArr,(i,s)=>(w(),xt(yO,{key:i.id,message:i,id:"msg-"+i.id,ref_for:!0,ref:"msg-"+i.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):V("",!0),e.currentDiscussion.id?V("",!0):(w(),xt(SO,{key:1})),awt]),lwt],2),e.currentDiscussion.id?(w(),A("div",cwt,[Te(vO,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):V("",!0)])):V("",!0),Te(wE,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"]),G(c("div",dwt,[Te(nc,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",uwt,he(e.loading_infos)+" ...",1)],512),[[Mt,e.progress_visibility]]),Te(gO,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),Te(bO,{ref:"skills_lib"},null,512)],64))}}),hwt=bt(_wt,[["__scopeId","data-v-b8e854ae"]]);/** +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){const e=(await Se.get("/get_versionID")).data.versionId;for(this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{ze.replace()}),$e.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const i=this.list.findIndex(r=>r.id==t.discussion_id),s=this.list[i];s.title=t.title}),$e.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},$e.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),$e.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),$e.disconnect()},$e.on("connected",this.socketIOConnected),$e.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),$e.on("show_progress",this.show_progress),$e.on("hide_progress",this.hide_progress),$e.on("update_progress",this.update_progress),$e.on("notification",this.notify),$e.on("new_message",this.new_message),$e.on("update_message",this.streamMessageContent),$e.on("close_message",this.finalMsgEvent),$e.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.isCreated=!0},async mounted(){$e.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{ze.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ge(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:RE,Message:yO,ChatBox:vO,WelcomeComponent:SO,ChoiceDialog:wE,ProgressBar:nc,InputBox:gO,SkillsLibraryViewer:bO},watch:{progress_visibility_val(n){console.log("progress_visibility changed")},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Ge(()=>{ze.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ge(()=>{ze.replace()})},isSearch(){Ge(()=>{ze.replace()})}},computed:{...Sk({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+this.$store.state.version:""}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return $e.id},isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Ge(()=>{ze.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},hwt=Object.assign(_wt,{__name:"DiscussionsView",setup(n){return Ws(()=>{zO()}),Se.defaults.baseURL="/",(e,t)=>(w(),A(Ye,null,[Te(cs,{name:"fade-and-fly"},{default:We(()=>[e.isReady?V("",!0):(w(),A("div",NCt,[c("div",OCt,[c("div",ICt,[c("div",MCt,[DCt,c("div",kCt,[c("p",LCt,"LoLLMS "+he(e.version_info),1),PCt,UCt])]),FCt,BCt,c("div",GCt,[Te(nc,{ref:"loading_progress",progress:e.loading_progress},null,8,["progress"]),c("p",VCt,he(e.loading_infos)+" ...",1)])])])]))]),_:1}),e.isReady?(w(),A("button",{key:0,onClick:t[0]||(t[0]=(...i)=>e.togglePanel&&e.togglePanel(...i)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[G(c("div",null,HCt,512),[[Mt,e.panelCollapsed]]),G(c("div",null,YCt,512),[[Mt,!e.panelCollapsed]])])):V("",!0),Te(cs,{name:"slide-right"},{default:We(()=>[e.showPanel?(w(),A("div",$Ct,[c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:t[28]||(t[28]=be(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",WCt,[c("div",KCt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:t[1]||(t[1]=i=>e.createNewDiscussion())},QCt),c("button",{class:He(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=i=>e.isCheckbox=!e.isCheckbox)},ZCt,2),c("button",JCt,[c("i",{"data-feather":"trash-2",onClick:t[3]||(t[3]=be(()=>{},["stop"]))})]),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:t[4]||(t[4]=be(i=>e.database_selectorDialogVisible=!0,["stop"]))},t1t),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:t[5]||(t[5]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=be(i=>e.$refs.fileDialog.click(),["stop"]))},i1t),c("input",{type:"file",ref:"bundleLoadingDialog",style:{display:"none"},onChange:t[7]||(t[7]=(...i)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...i))},null,544),e.showSaveConfirmation?V("",!0):(w(),A("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=be(i=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-2xl hover:text-secondary duration-75 active:scale-90"},r1t)),e.isOpen?(w(),A("div",o1t,[c("button",{onClick:t[9]||(t[9]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},"LOLLMS"),c("button",{onClick:t[10]||(t[10]=(...i)=>e.importChatGPT&&e.importChatGPT(...i))},"ChatGPT")])):V("",!0),c("button",{class:He(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:t[11]||(t[11]=i=>e.isSearch=!e.isSearch)},l1t,2),e.showSaveConfirmation?(w(),A("div",c1t,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:t[12]||(t[12]=be(i=>e.showSaveConfirmation=!1,["stop"]))},u1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:t[13]||(t[13]=be(i=>e.save_configuration(),["stop"]))},_1t)])):V("",!0),e.loading?V("",!0):(w(),A("button",{key:3,type:"button",onClick:t[14]||(t[14]=be((...i)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...i),["stop"])),title:"Add this discussion content to skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},f1t)),!e.loading&&e.$store.state.config.activate_skills_lib?(w(),A("button",{key:4,type:"button",onClick:t[15]||(t[15]=be((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is activated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},g1t)):V("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(w(),A("button",{key:5,type:"button",onClick:t[16]||(t[16]=be((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is deactivated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},E1t)):V("",!0),e.loading?V("",!0):(w(),A("button",{key:6,type:"button",onClick:t[17]||(t[17]=be((...i)=>e.showSkillsLib&&e.showSkillsLib(...i),["stop"])),title:"Show Skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},v1t)),e.loading?(w(),A("div",S1t,x1t)):V("",!0)]),e.isSearch?(w(),A("div",C1t,[c("div",w1t,[c("div",R1t,[A1t,c("div",N1t,[c("div",{class:He(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:t[18]||(t[18]=i=>e.filterTitle="")},I1t,2)]),G(c("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":t[19]||(t[19]=i=>e.filterTitle=i),onInput:t[20]||(t[20]=i=>e.filterDiscussions())},null,544),[[we,e.filterTitle]])])])])):V("",!0),e.isCheckbox?(w(),A("hr",M1t)):V("",!0),e.isCheckbox?(w(),A("div",D1t,[c("div",k1t,[e.selectedDiscussions.length>0?(w(),A("p",L1t,"Selected: "+he(e.selectedDiscussions.length),1)):V("",!0)]),c("div",P1t,[e.selectedDiscussions.length>0?(w(),A("div",U1t,[e.showConfirmation?V("",!0):(w(),A("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[21]||(t[21]=be(i=>e.showConfirmation=!0,["stop"]))},B1t)),e.showConfirmation?(w(),A("div",G1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[22]||(t[22]=be((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},z1t),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[23]||(t[23]=be(i=>e.showConfirmation=!1,["stop"]))},q1t)])):V("",!0)])):V("",!0),c("div",Y1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[24]||(t[24]=be((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},W1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[25]||(t[25]=be((...i)=>e.exportDiscussions&&e.exportDiscussions(...i),["stop"]))},j1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[26]||(t[26]=be((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},X1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[27]||(t[27]=be((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},J1t)])])])):V("",!0)]),c("div",ewt,[c("div",{class:He(["mx-4 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:He([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full"])},[e.list.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(e.list,(i,s)=>(w(),xt(RE,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:r=>e.selectDiscussion(i),onDelete:r=>e.deleteDiscussion(i.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):V("",!0),e.list.length<1?(w(),A("div",twt,iwt)):V("",!0),swt],2)],2)])],32),c("div",{class:"absolute h-15 bottom-0 left-0 w-full bg-bg-light-panel dark:bg-bg-dark-tone light-text-panel py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[29]||(t[29]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[c("p",rwt,he(e.formatted_database_name.replace("_"," ")),1)])])):V("",!0)]),_:1}),e.isReady?(w(),A("div",owt,[c("div",{id:"messages-list",class:He(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[c("div",awt,[e.discussionArr.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(e.discussionArr,(i,s)=>(w(),xt(yO,{key:i.id,message:i,id:"msg-"+i.id,ref_for:!0,ref:"msg-"+i.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):V("",!0),e.currentDiscussion.id?V("",!0):(w(),xt(SO,{key:1})),lwt]),cwt],2),e.currentDiscussion.id?(w(),A("div",dwt,[Te(vO,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):V("",!0)])):V("",!0),Te(wE,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"]),G(c("div",uwt,[Te(nc,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",pwt,he(e.loading_infos)+" ...",1)],512),[[Mt,e.progress_visibility]]),Te(gO,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),Te(bO,{ref:"skills_lib"},null,512)],64))}}),fwt=bt(hwt,[["__scopeId","data-v-b8e854ae"]]);/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT - */const KE="159",fwt=0,zC=1,mwt=2,HO=1,gwt=2,Ms=3,Ys=0,Zn=1,es=2,Sr=0,aa=1,HC=2,qC=3,YC=4,bwt=5,Xr=100,Ewt=101,ywt=102,$C=103,WC=104,vwt=200,Swt=201,Twt=202,xwt=203,sb=204,rb=205,Cwt=206,wwt=207,Rwt=208,Awt=209,Nwt=210,Owt=211,Iwt=212,Mwt=213,Dwt=214,kwt=0,Lwt=1,Pwt=2,_u=3,Uwt=4,Fwt=5,Bwt=6,Gwt=7,jE=0,Vwt=1,zwt=2,Tr=0,Hwt=1,qwt=2,Ywt=3,$wt=4,Wwt=5,KC="attached",Kwt="detached",qO=300,Ta=301,xa=302,ob=303,ab=304,lp=306,Ca=1e3,mi=1001,hu=1002,yn=1003,lb=1004,Bd=1005,jn=1006,YO=1007,fo=1008,xr=1009,jwt=1010,Qwt=1011,QE=1012,$O=1013,br=1014,Ps=1015,rc=1016,WO=1017,KO=1018,oo=1020,Xwt=1021,gi=1023,Zwt=1024,Jwt=1025,ao=1026,wa=1027,eRt=1028,jO=1029,tRt=1030,QO=1031,XO=1033,Pm=33776,Um=33777,Fm=33778,Bm=33779,jC=35840,QC=35841,XC=35842,ZC=35843,ZO=36196,JC=37492,e1=37496,t1=37808,n1=37809,i1=37810,s1=37811,r1=37812,o1=37813,a1=37814,l1=37815,c1=37816,d1=37817,u1=37818,p1=37819,_1=37820,h1=37821,Gm=36492,f1=36494,m1=36495,nRt=36283,g1=36284,b1=36285,E1=36286,oc=2300,Ra=2301,Vm=2302,y1=2400,v1=2401,S1=2402,iRt=2500,sRt=0,JO=1,cb=2,eI=3e3,lo=3001,rRt=3200,oRt=3201,XE=0,aRt=1,bi="",on="srgb",On="srgb-linear",ZE="display-p3",cp="display-p3-linear",fu="linear",Zt="srgb",mu="rec709",gu="p3",Oo=7680,T1=519,lRt=512,cRt=513,dRt=514,tI=515,uRt=516,pRt=517,_Rt=518,hRt=519,db=35044,x1="300 es",ub=1035,Us=2e3,bu=2001;class Ka{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(t)===-1&&i[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const s=this._listeners[e];if(s!==void 0){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const s=i.slice(0);for(let r=0,o=s.length;r>8&255]+Mn[n>>16&255]+Mn[n>>24&255]+"-"+Mn[e&255]+Mn[e>>8&255]+"-"+Mn[e>>16&15|64]+Mn[e>>24&255]+"-"+Mn[t&63|128]+Mn[t>>8&255]+"-"+Mn[t>>16&255]+Mn[t>>24&255]+Mn[i&255]+Mn[i>>8&255]+Mn[i>>16&255]+Mn[i>>24&255]).toLowerCase()}function Ln(n,e,t){return Math.max(e,Math.min(t,n))}function JE(n,e){return(n%e+e)%e}function fRt(n,e,t,i,s){return i+(n-e)*(s-i)/(t-e)}function mRt(n,e,t){return n!==e?(t-n)/(e-n):0}function Fl(n,e,t){return(1-t)*n+t*e}function gRt(n,e,t,i){return Fl(n,e,1-Math.exp(-t*i))}function bRt(n,e=1){return e-Math.abs(JE(n,e*2)-e)}function ERt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function yRt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function vRt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function SRt(n,e){return n+Math.random()*(e-n)}function TRt(n){return n*(.5-Math.random())}function xRt(n){n!==void 0&&(C1=n);let e=C1+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function CRt(n){return n*Ul}function wRt(n){return n*Aa}function pb(n){return(n&n-1)===0&&n!==0}function RRt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Eu(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function ARt(n,e,t,i,s){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),u=r((e+i)/2),d=o((e+i)/2),h=r((e-i)/2),f=o((e-i)/2),_=r((i-e)/2),m=o((i-e)/2);switch(s){case"XYX":n.set(a*d,l*h,l*f,a*u);break;case"YZY":n.set(l*f,a*d,l*h,a*u);break;case"ZXZ":n.set(l*h,l*f,a*d,a*u);break;case"XZX":n.set(a*d,l*m,l*_,a*u);break;case"YXY":n.set(l*_,a*d,l*m,a*u);break;case"ZYZ":n.set(l*m,l*_,a*d,a*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function ts(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Ht(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const NRt={DEG2RAD:Ul,RAD2DEG:Aa,generateUUID:zi,clamp:Ln,euclideanModulo:JE,mapLinear:fRt,inverseLerp:mRt,lerp:Fl,damp:gRt,pingpong:bRt,smoothstep:ERt,smootherstep:yRt,randInt:vRt,randFloat:SRt,randFloatSpread:TRt,seededRandom:xRt,degToRad:CRt,radToDeg:wRt,isPowerOfTwo:pb,ceilPowerOfTwo:RRt,floorPowerOfTwo:Eu,setQuaternionFromProperEuler:ARt,normalize:Ht,denormalize:ts};class It{constructor(e=0,t=0){It.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(Ln(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class wt{constructor(e,t,i,s,r,o,a,l,u){wt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,u)}set(e,t,i,s,r,o,a,l,u){const d=this.elements;return d[0]=e,d[1]=s,d[2]=a,d[3]=t,d[4]=r,d[5]=l,d[6]=i,d[7]=o,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[3],l=i[6],u=i[1],d=i[4],h=i[7],f=i[2],_=i[5],m=i[8],E=s[0],b=s[3],g=s[6],y=s[1],v=s[4],S=s[7],C=s[2],T=s[5],O=s[8];return r[0]=o*E+a*y+l*C,r[3]=o*b+a*v+l*T,r[6]=o*g+a*S+l*O,r[1]=u*E+d*y+h*C,r[4]=u*b+d*v+h*T,r[7]=u*g+d*S+h*O,r[2]=f*E+_*y+m*C,r[5]=f*b+_*v+m*T,r[8]=f*g+_*S+m*O,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8];return t*o*d-t*a*u-i*r*d+i*a*l+s*r*u-s*o*l}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=d*o-a*u,f=a*l-d*r,_=u*r-o*l,m=t*h+i*f+s*_;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const E=1/m;return e[0]=h*E,e[1]=(s*u-d*i)*E,e[2]=(a*i-s*o)*E,e[3]=f*E,e[4]=(d*t-s*l)*E,e[5]=(s*r-a*t)*E,e[6]=_*E,e[7]=(i*l-u*t)*E,e[8]=(o*t-i*r)*E,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,r,o,a){const l=Math.cos(r),u=Math.sin(r);return this.set(i*l,i*u,-i*(l*o+u*a)+o+e,-s*u,s*l,-s*(-u*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(zm.makeScale(e,t)),this}rotate(e){return this.premultiply(zm.makeRotation(-e)),this}translate(e,t){return this.premultiply(zm.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const zm=new wt;function nI(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function ac(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function ORt(){const n=ac("canvas");return n.style.display="block",n}const w1={};function Bl(n){n in w1||(w1[n]=!0,console.warn(n))}const R1=new wt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),A1=new wt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Qc={[On]:{transfer:fu,primaries:mu,toReference:n=>n,fromReference:n=>n},[on]:{transfer:Zt,primaries:mu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[cp]:{transfer:fu,primaries:gu,toReference:n=>n.applyMatrix3(A1),fromReference:n=>n.applyMatrix3(R1)},[ZE]:{transfer:Zt,primaries:gu,toReference:n=>n.convertSRGBToLinear().applyMatrix3(A1),fromReference:n=>n.applyMatrix3(R1).convertLinearToSRGB()}},IRt=new Set([On,cp]),Gt={enabled:!0,_workingColorSpace:On,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!IRt.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=Qc[e].toReference,s=Qc[t].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Qc[n].primaries},getTransfer:function(n){return n===bi?fu:Qc[n].transfer}};function la(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Hm(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Io;class iI{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Io===void 0&&(Io=ac("canvas")),Io.width=e.width,Io.height=e.height;const i=Io.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Io}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=ac("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==qO)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ca:e.x=e.x-Math.floor(e.x);break;case mi:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ca:e.y=e.y-Math.floor(e.y);break;case mi:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===on?lo:eI}set encoding(e){Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===lo?on:bi}}Nn.DEFAULT_IMAGE=null;Nn.DEFAULT_MAPPING=qO;Nn.DEFAULT_ANISOTROPY=1;class Wt{constructor(e=0,t=0,i=0,s=1){Wt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*t+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*t+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*t+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,r;const l=e.elements,u=l[0],d=l[4],h=l[8],f=l[1],_=l[5],m=l[9],E=l[2],b=l[6],g=l[10];if(Math.abs(d-f)<.01&&Math.abs(h-E)<.01&&Math.abs(m-b)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+E)<.1&&Math.abs(m+b)<.1&&Math.abs(u+_+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(u+1)/2,S=(_+1)/2,C=(g+1)/2,T=(d+f)/4,O=(h+E)/4,k=(m+b)/4;return v>S&&v>C?v<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(v),s=T/i,r=O/i):S>C?S<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(S),i=T/s,r=k/s):C<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(C),i=O/r,s=k/r),this.set(i,s,r,t),this}let y=Math.sqrt((b-m)*(b-m)+(h-E)*(h-E)+(f-d)*(f-d));return Math.abs(y)<.001&&(y=1),this.x=(b-m)/y,this.y=(h-E)/y,this.z=(f-d)/y,this.w=Math.acos((u+_+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class kRt extends Ka{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Wt(0,0,e,t),this.scissorTest=!1,this.viewport=new Wt(0,0,e,t);const s={width:e,height:t,depth:1};i.encoding!==void 0&&(Bl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===lo?on:bi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:jn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new Nn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new sI(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends kRt{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class rI extends Nn{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=yn,this.minFilter=yn,this.wrapR=mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class LRt extends Nn{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=yn,this.minFilter=yn,this.wrapR=mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ir{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,r,o,a){let l=i[s+0],u=i[s+1],d=i[s+2],h=i[s+3];const f=r[o+0],_=r[o+1],m=r[o+2],E=r[o+3];if(a===0){e[t+0]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h;return}if(a===1){e[t+0]=f,e[t+1]=_,e[t+2]=m,e[t+3]=E;return}if(h!==E||l!==f||u!==_||d!==m){let b=1-a;const g=l*f+u*_+d*m+h*E,y=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const C=Math.sqrt(v),T=Math.atan2(C,g*y);b=Math.sin(b*T)/C,a=Math.sin(a*T)/C}const S=a*y;if(l=l*b+f*S,u=u*b+_*S,d=d*b+m*S,h=h*b+E*S,b===1-a){const C=1/Math.sqrt(l*l+u*u+d*d+h*h);l*=C,u*=C,d*=C,h*=C}}e[t]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h}static multiplyQuaternionsFlat(e,t,i,s,r,o){const a=i[s],l=i[s+1],u=i[s+2],d=i[s+3],h=r[o],f=r[o+1],_=r[o+2],m=r[o+3];return e[t]=a*m+d*h+l*_-u*f,e[t+1]=l*m+d*f+u*h-a*_,e[t+2]=u*m+d*_+a*f-l*h,e[t+3]=d*m-a*h-l*f-u*_,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,u=a(i/2),d=a(s/2),h=a(r/2),f=l(i/2),_=l(s/2),m=l(r/2);switch(o){case"XYZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"YXZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"ZXY":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"ZYX":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"YZX":this._x=f*d*h+u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h-f*_*m;break;case"XZY":this._x=f*d*h-u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h+f*_*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],r=t[8],o=t[1],a=t[5],l=t[9],u=t[2],d=t[6],h=t[10],f=i+a+h;if(f>0){const _=.5/Math.sqrt(f+1);this._w=.25/_,this._x=(d-l)*_,this._y=(r-u)*_,this._z=(o-s)*_}else if(i>a&&i>h){const _=2*Math.sqrt(1+i-a-h);this._w=(d-l)/_,this._x=.25*_,this._y=(s+o)/_,this._z=(r+u)/_}else if(a>h){const _=2*Math.sqrt(1+a-i-h);this._w=(r-u)/_,this._x=(s+o)/_,this._y=.25*_,this._z=(l+d)/_}else{const _=2*Math.sqrt(1+h-i-a);this._w=(o-s)/_,this._x=(r+u)/_,this._y=(l+d)/_,this._z=.25*_}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Ln(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,s=e._y,r=e._z,o=e._w,a=t._x,l=t._y,u=t._z,d=t._w;return this._x=i*d+o*a+s*u-r*l,this._y=s*d+o*l+r*a-i*u,this._z=r*d+o*u+i*l-s*a,this._w=o*d-i*a-s*l-r*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=i,this._y=s,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const _=1-t;return this._w=_*o+t*this._w,this._x=_*i+t*this._x,this._y=_*s+t*this._y,this._z=_*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(l),d=Math.atan2(u,a),h=Math.sin((1-t)*d)/u,f=Math.sin(t*d)/u;return this._w=o*h+this._w*f,this._x=i*h+this._x*f,this._y=s*h+this._y*f,this._z=r*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(s),i*Math.sin(r),i*Math.cos(r),t*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class _e{constructor(e=0,t=0,i=0){_e.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(N1.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(N1.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*s,this.y=r[1]*t+r[4]*i+r[7]*s,this.z=r[2]*t+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*t+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*t+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*t+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,l=e.w,u=2*(o*s-a*i),d=2*(a*t-r*s),h=2*(r*i-o*t);return this.x=t+l*u+o*h-a*d,this.y=i+l*d+a*u-r*h,this.z=s+l*h+r*d-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*s,this.y=r[1]*t+r[5]*i+r[9]*s,this.z=r[2]*t+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=s*l-r*a,this.y=r*o-i*l,this.z=i*a-s*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Ym.copy(this).projectOnVector(e),this.sub(Ym)}reflect(e){return this.sub(Ym.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(Ln(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Ym=new _e,N1=new Ir;class js{constructor(e=new _e(1/0,1/0,1/0),t=new _e(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ii),Ii.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(fl),Zc.subVectors(this.max,fl),Mo.subVectors(e.a,fl),Do.subVectors(e.b,fl),ko.subVectors(e.c,fl),tr.subVectors(Do,Mo),nr.subVectors(ko,Do),Fr.subVectors(Mo,ko);let t=[0,-tr.z,tr.y,0,-nr.z,nr.y,0,-Fr.z,Fr.y,tr.z,0,-tr.x,nr.z,0,-nr.x,Fr.z,0,-Fr.x,-tr.y,tr.x,0,-nr.y,nr.x,0,-Fr.y,Fr.x,0];return!$m(t,Mo,Do,ko,Zc)||(t=[1,0,0,0,1,0,0,0,1],!$m(t,Mo,Do,ko,Zc))?!1:(Jc.crossVectors(tr,nr),t=[Jc.x,Jc.y,Jc.z],$m(t,Mo,Do,ko,Zc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ii).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ii).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Cs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Cs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Cs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Cs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Cs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Cs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Cs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Cs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Cs),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Cs=[new _e,new _e,new _e,new _e,new _e,new _e,new _e,new _e],Ii=new _e,Xc=new js,Mo=new _e,Do=new _e,ko=new _e,tr=new _e,nr=new _e,Fr=new _e,fl=new _e,Zc=new _e,Jc=new _e,Br=new _e;function $m(n,e,t,i,s){for(let r=0,o=n.length-3;r<=o;r+=3){Br.fromArray(n,r);const a=s.x*Math.abs(Br.x)+s.y*Math.abs(Br.y)+s.z*Math.abs(Br.z),l=e.dot(Br),u=t.dot(Br),d=i.dot(Br);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>a)return!1}return!0}const PRt=new js,ml=new _e,Wm=new _e;class fs{constructor(e=new _e,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):PRt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ml.subVectors(e,this.center);const t=ml.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(ml,s/i),this.radius+=s}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Wm.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ml.copy(e.center).add(Wm)),this.expandByPoint(ml.copy(e.center).sub(Wm))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ws=new _e,Km=new _e,ed=new _e,ir=new _e,jm=new _e,td=new _e,Qm=new _e;class dp{constructor(e=new _e,t=new _e(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ws)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ws.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ws.copy(this.origin).addScaledVector(this.direction,t),ws.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){Km.copy(e).add(t).multiplyScalar(.5),ed.copy(t).sub(e).normalize(),ir.copy(this.origin).sub(Km);const r=e.distanceTo(t)*.5,o=-this.direction.dot(ed),a=ir.dot(this.direction),l=-ir.dot(ed),u=ir.lengthSq(),d=Math.abs(1-o*o);let h,f,_,m;if(d>0)if(h=o*l-a,f=o*a-l,m=r*d,h>=0)if(f>=-m)if(f<=m){const E=1/d;h*=E,f*=E,_=h*(h+o*f+2*a)+f*(o*h+f+2*l)+u}else f=r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f=-r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f<=-m?(h=Math.max(0,-(-o*r+a)),f=h>0?-r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u):f<=m?(h=0,f=Math.min(Math.max(-r,-l),r),_=f*(f+2*l)+u):(h=Math.max(0,-(o*r+a)),f=h>0?r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u);else f=o>0?-r:r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,h),s&&s.copy(Km).addScaledVector(ed,f),_}intersectSphere(e,t){ws.subVectors(e.center,this.origin);const i=ws.dot(this.direction),s=ws.dot(ws)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,l=i+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,r,o,a,l;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(i=(e.min.x-f.x)*u,s=(e.max.x-f.x)*u):(i=(e.max.x-f.x)*u,s=(e.min.x-f.x)*u),d>=0?(r=(e.min.y-f.y)*d,o=(e.max.y-f.y)*d):(r=(e.max.y-f.y)*d,o=(e.min.y-f.y)*d),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o=0?(a=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),i>l||a>s)||((a>i||i!==i)&&(i=a),(l=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,ws)!==null}intersectTriangle(e,t,i,s,r){jm.subVectors(t,e),td.subVectors(i,e),Qm.crossVectors(jm,td);let o=this.direction.dot(Qm),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;ir.subVectors(this.origin,e);const l=a*this.direction.dot(td.crossVectors(ir,td));if(l<0)return null;const u=a*this.direction.dot(jm.cross(ir));if(u<0||l+u>o)return null;const d=-a*ir.dot(Qm);return d<0?null:this.at(d/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Rt{constructor(e,t,i,s,r,o,a,l,u,d,h,f,_,m,E,b){Rt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,u,d,h,f,_,m,E,b)}set(e,t,i,s,r,o,a,l,u,d,h,f,_,m,E,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=l,g[2]=u,g[6]=d,g[10]=h,g[14]=f,g[3]=_,g[7]=m,g[11]=E,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rt().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/Lo.setFromMatrixColumn(e,0).length(),r=1/Lo.setFromMatrixColumn(e,1).length(),o=1/Lo.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),l=Math.cos(s),u=Math.sin(s),d=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const f=o*d,_=o*h,m=a*d,E=a*h;t[0]=l*d,t[4]=-l*h,t[8]=u,t[1]=_+m*u,t[5]=f-E*u,t[9]=-a*l,t[2]=E-f*u,t[6]=m+_*u,t[10]=o*l}else if(e.order==="YXZ"){const f=l*d,_=l*h,m=u*d,E=u*h;t[0]=f+E*a,t[4]=m*a-_,t[8]=o*u,t[1]=o*h,t[5]=o*d,t[9]=-a,t[2]=_*a-m,t[6]=E+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*d,_=l*h,m=u*d,E=u*h;t[0]=f-E*a,t[4]=-o*h,t[8]=m+_*a,t[1]=_+m*a,t[5]=o*d,t[9]=E-f*a,t[2]=-o*u,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*d,_=o*h,m=a*d,E=a*h;t[0]=l*d,t[4]=m*u-_,t[8]=f*u+E,t[1]=l*h,t[5]=E*u+f,t[9]=_*u-m,t[2]=-u,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,_=o*u,m=a*l,E=a*u;t[0]=l*d,t[4]=E-f*h,t[8]=m*h+_,t[1]=h,t[5]=o*d,t[9]=-a*d,t[2]=-u*d,t[6]=_*h+m,t[10]=f-E*h}else if(e.order==="XZY"){const f=o*l,_=o*u,m=a*l,E=a*u;t[0]=l*d,t[4]=-h,t[8]=u*d,t[1]=f*h+E,t[5]=o*d,t[9]=_*h-m,t[2]=m*h-_,t[6]=a*d,t[10]=E*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(URt,e,FRt)}lookAt(e,t,i){const s=this.elements;return ii.subVectors(e,t),ii.lengthSq()===0&&(ii.z=1),ii.normalize(),sr.crossVectors(i,ii),sr.lengthSq()===0&&(Math.abs(i.z)===1?ii.x+=1e-4:ii.z+=1e-4,ii.normalize(),sr.crossVectors(i,ii)),sr.normalize(),nd.crossVectors(ii,sr),s[0]=sr.x,s[4]=nd.x,s[8]=ii.x,s[1]=sr.y,s[5]=nd.y,s[9]=ii.y,s[2]=sr.z,s[6]=nd.z,s[10]=ii.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[4],l=i[8],u=i[12],d=i[1],h=i[5],f=i[9],_=i[13],m=i[2],E=i[6],b=i[10],g=i[14],y=i[3],v=i[7],S=i[11],C=i[15],T=s[0],O=s[4],k=s[8],x=s[12],I=s[1],F=s[5],B=s[9],ne=s[13],L=s[2],$=s[6],H=s[10],U=s[14],Q=s[3],J=s[7],j=s[11],ae=s[15];return r[0]=o*T+a*I+l*L+u*Q,r[4]=o*O+a*F+l*$+u*J,r[8]=o*k+a*B+l*H+u*j,r[12]=o*x+a*ne+l*U+u*ae,r[1]=d*T+h*I+f*L+_*Q,r[5]=d*O+h*F+f*$+_*J,r[9]=d*k+h*B+f*H+_*j,r[13]=d*x+h*ne+f*U+_*ae,r[2]=m*T+E*I+b*L+g*Q,r[6]=m*O+E*F+b*$+g*J,r[10]=m*k+E*B+b*H+g*j,r[14]=m*x+E*ne+b*U+g*ae,r[3]=y*T+v*I+S*L+C*Q,r[7]=y*O+v*F+S*$+C*J,r[11]=y*k+v*B+S*H+C*j,r[15]=y*x+v*ne+S*U+C*ae,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],l=e[9],u=e[13],d=e[2],h=e[6],f=e[10],_=e[14],m=e[3],E=e[7],b=e[11],g=e[15];return m*(+r*l*h-s*u*h-r*a*f+i*u*f+s*a*_-i*l*_)+E*(+t*l*_-t*u*f+r*o*f-s*o*_+s*u*d-r*l*d)+b*(+t*u*h-t*a*_-r*o*h+i*o*_+r*a*d-i*u*d)+g*(-s*a*d-t*l*h+t*a*f+s*o*h-i*o*f+i*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=e[9],f=e[10],_=e[11],m=e[12],E=e[13],b=e[14],g=e[15],y=h*b*u-E*f*u+E*l*_-a*b*_-h*l*g+a*f*g,v=m*f*u-d*b*u-m*l*_+o*b*_+d*l*g-o*f*g,S=d*E*u-m*h*u+m*a*_-o*E*_-d*a*g+o*h*g,C=m*h*l-d*E*l-m*a*f+o*E*f+d*a*b-o*h*b,T=t*y+i*v+s*S+r*C;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const O=1/T;return e[0]=y*O,e[1]=(E*f*r-h*b*r-E*s*_+i*b*_+h*s*g-i*f*g)*O,e[2]=(a*b*r-E*l*r+E*s*u-i*b*u-a*s*g+i*l*g)*O,e[3]=(h*l*r-a*f*r-h*s*u+i*f*u+a*s*_-i*l*_)*O,e[4]=v*O,e[5]=(d*b*r-m*f*r+m*s*_-t*b*_-d*s*g+t*f*g)*O,e[6]=(m*l*r-o*b*r-m*s*u+t*b*u+o*s*g-t*l*g)*O,e[7]=(o*f*r-d*l*r+d*s*u-t*f*u-o*s*_+t*l*_)*O,e[8]=S*O,e[9]=(m*h*r-d*E*r-m*i*_+t*E*_+d*i*g-t*h*g)*O,e[10]=(o*E*r-m*a*r+m*i*u-t*E*u-o*i*g+t*a*g)*O,e[11]=(d*a*r-o*h*r-d*i*u+t*h*u+o*i*_-t*a*_)*O,e[12]=C*O,e[13]=(d*E*s-m*h*s+m*i*f-t*E*f-d*i*b+t*h*b)*O,e[14]=(m*a*s-o*E*s-m*i*l+t*E*l+o*i*b-t*a*b)*O,e[15]=(o*h*s-d*a*s+d*i*l-t*h*l-o*i*f+t*a*f)*O,this}scale(e){const t=this.elements,i=e.x,s=e.y,r=e.z;return t[0]*=i,t[4]*=s,t[8]*=r,t[1]*=i,t[5]*=s,t[9]*=r,t[2]*=i,t[6]*=s,t[10]*=r,t[3]*=i,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),r=1-i,o=e.x,a=e.y,l=e.z,u=r*o,d=r*a;return this.set(u*o+i,u*a-s*l,u*l+s*a,0,u*a+s*l,d*a+i,d*l-s*o,0,u*l-s*a,d*l+s*o,r*l*l+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,u=r+r,d=o+o,h=a+a,f=r*u,_=r*d,m=r*h,E=o*d,b=o*h,g=a*h,y=l*u,v=l*d,S=l*h,C=i.x,T=i.y,O=i.z;return s[0]=(1-(E+g))*C,s[1]=(_+S)*C,s[2]=(m-v)*C,s[3]=0,s[4]=(_-S)*T,s[5]=(1-(f+g))*T,s[6]=(b+y)*T,s[7]=0,s[8]=(m+v)*O,s[9]=(b-y)*O,s[10]=(1-(f+E))*O,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let r=Lo.set(s[0],s[1],s[2]).length();const o=Lo.set(s[4],s[5],s[6]).length(),a=Lo.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],Mi.copy(this);const u=1/r,d=1/o,h=1/a;return Mi.elements[0]*=u,Mi.elements[1]*=u,Mi.elements[2]*=u,Mi.elements[4]*=d,Mi.elements[5]*=d,Mi.elements[6]*=d,Mi.elements[8]*=h,Mi.elements[9]*=h,Mi.elements[10]*=h,t.setFromRotationMatrix(Mi),i.x=r,i.y=o,i.z=a,this}makePerspective(e,t,i,s,r,o,a=Us){const l=this.elements,u=2*r/(t-e),d=2*r/(i-s),h=(t+e)/(t-e),f=(i+s)/(i-s);let _,m;if(a===Us)_=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===bu)_=-o/(o-r),m=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=_,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,i,s,r,o,a=Us){const l=this.elements,u=1/(t-e),d=1/(i-s),h=1/(o-r),f=(t+e)*u,_=(i+s)*d;let m,E;if(a===Us)m=(o+r)*h,E=-2*h;else if(a===bu)m=r*h,E=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-_,l[2]=0,l[6]=0,l[10]=E,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const Lo=new _e,Mi=new Rt,URt=new _e(0,0,0),FRt=new _e(1,1,1),sr=new _e,nd=new _e,ii=new _e,O1=new Rt,I1=new Ir;class up{constructor(e=0,t=0,i=0,s=up.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],l=s[1],u=s[5],d=s[9],h=s[2],f=s[6],_=s[10];switch(t){case"XYZ":this._y=Math.asin(Ln(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,_),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Ln(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,_),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Ln(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,_),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Ln(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,_),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Ln(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,_));break;case"XZY":this._z=Math.asin(-Ln(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-d,_),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return O1.makeRotationFromQuaternion(e),this.setFromRotationMatrix(O1,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return I1.setFromEuler(this),this.setFromQuaternion(I1,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}up.DEFAULT_ORDER="XYZ";class oI{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let i=0;i0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u0){s.children=[];for(let a=0;a0){s.animations=[];for(let a=0;a0&&(i.geometries=a),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),f.length>0&&(i.skeletons=f),_.length>0&&(i.animations=_),m.length>0&&(i.nodes=m)}return i.object=s,i;function o(a){const l=[];for(const u in a){const d=a[u];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,i,s,r){Di.subVectors(s,t),As.subVectors(i,t),Xm.subVectors(e,t);const o=Di.dot(Di),a=Di.dot(As),l=Di.dot(Xm),u=As.dot(As),d=As.dot(Xm),h=o*u-a*a;if(h===0)return r.set(-2,-1,-1);const f=1/h,_=(u*l-a*d)*f,m=(o*d-a*l)*f;return r.set(1-_-m,m,_)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,Ns),Ns.x>=0&&Ns.y>=0&&Ns.x+Ns.y<=1}static getUV(e,t,i,s,r,o,a,l){return sd===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),sd=!0),this.getInterpolation(e,t,i,s,r,o,a,l)}static getInterpolation(e,t,i,s,r,o,a,l){return this.getBarycoord(e,t,i,s,Ns),l.setScalar(0),l.addScaledVector(r,Ns.x),l.addScaledVector(o,Ns.y),l.addScaledVector(a,Ns.z),l}static isFrontFacing(e,t,i,s){return Di.subVectors(i,t),As.subVectors(e,t),Di.cross(As).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Di.subVectors(this.c,this.b),As.subVectors(this.a,this.b),Di.cross(As).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Ui.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Ui.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,i,s,r){return sd===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),sd=!0),Ui.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}getInterpolation(e,t,i,s,r){return Ui.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}containsPoint(e){return Ui.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Ui.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,r=this.c;let o,a;Uo.subVectors(s,i),Fo.subVectors(r,i),Zm.subVectors(e,i);const l=Uo.dot(Zm),u=Fo.dot(Zm);if(l<=0&&u<=0)return t.copy(i);Jm.subVectors(e,s);const d=Uo.dot(Jm),h=Fo.dot(Jm);if(d>=0&&h<=d)return t.copy(s);const f=l*h-d*u;if(f<=0&&l>=0&&d<=0)return o=l/(l-d),t.copy(i).addScaledVector(Uo,o);eg.subVectors(e,r);const _=Uo.dot(eg),m=Fo.dot(eg);if(m>=0&&_<=m)return t.copy(r);const E=_*u-l*m;if(E<=0&&u>=0&&m<=0)return a=u/(u-m),t.copy(i).addScaledVector(Fo,a);const b=d*m-_*h;if(b<=0&&h-d>=0&&_-m>=0)return P1.subVectors(r,s),a=(h-d)/(h-d+(_-m)),t.copy(s).addScaledVector(P1,a);const g=1/(b+E+f);return o=E*g,a=f*g,t.copy(i).addScaledVector(Uo,o).addScaledVector(Fo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const aI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},rr={h:0,s:0,l:0},rd={h:0,s:0,l:0};function tg(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class gt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=on){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Gt.toWorkingColorSpace(this,t),this}setRGB(e,t,i,s=Gt.workingColorSpace){return this.r=e,this.g=t,this.b=i,Gt.toWorkingColorSpace(this,s),this}setHSL(e,t,i,s=Gt.workingColorSpace){if(e=JE(e,1),t=Ln(t,0,1),i=Ln(i,0,1),t===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+t):i+t-i*t,o=2*i-r;this.r=tg(o,r,e+1/3),this.g=tg(o,r,e),this.b=tg(o,r,e-1/3)}return Gt.toWorkingColorSpace(this,s),this}setStyle(e,t=on){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=on){const i=aI[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=la(e.r),this.g=la(e.g),this.b=la(e.b),this}copyLinearToSRGB(e){return this.r=Hm(e.r),this.g=Hm(e.g),this.b=Hm(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=on){return Gt.fromWorkingColorSpace(Dn.copy(this),e),Math.round(Ln(Dn.r*255,0,255))*65536+Math.round(Ln(Dn.g*255,0,255))*256+Math.round(Ln(Dn.b*255,0,255))}getHexString(e=on){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Gt.workingColorSpace){Gt.fromWorkingColorSpace(Dn.copy(this),t);const i=Dn.r,s=Dn.g,r=Dn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let l,u;const d=(a+o)/2;if(a===o)l=0,u=0;else{const h=o-a;switch(u=d<=.5?h/(o+a):h/(2-o-a),o){case i:l=(s-r)/h+(s0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==aa&&(i.blending=this.blending),this.side!==Ys&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==sb&&(i.blendSrc=this.blendSrc),this.blendDst!==rb&&(i.blendDst=this.blendDst),this.blendEquation!==Xr&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==_u&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==T1&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Oo&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Oo&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Oo&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=t[r].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class Er extends Hi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new gt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=jE,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const dn=new _e,od=new It;class Yn{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=db,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ps,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,r=this.itemSize;s0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const s={};let r=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let h=0,f=u.length;h0&&(s[l]=d,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const s=e.attributes;for(const u in s){const d=s[u];this.setAttribute(u,d.clone(t))}const r=e.morphAttributes;for(const u in r){const d=[],h=r[u];for(let f=0,_=h.length;f<_;f++)d.push(h[f].clone(t));this.morphAttributes[u]=d}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let u=0,d=o.length;u0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r(e.far-e.near)**2))&&(U1.copy(r).invert(),Gr.copy(e.ray).applyMatrix4(U1),!(i.boundingBox!==null&&Gr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,Gr)))}_computeIntersections(e,t,i){let s;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,u=r.attributes.uv,d=r.attributes.uv1,h=r.attributes.normal,f=r.groups,_=r.drawRange;if(a!==null)if(Array.isArray(o))for(let m=0,E=f.length;mt.far?null:{distance:u,point:_d.clone(),object:n}}function hd(n,e,t,i,s,r,o,a,l,u){n.getVertexPosition(a,Go),n.getVertexPosition(l,Vo),n.getVertexPosition(u,zo);const d=$Rt(n,e,t,i,Go,Vo,zo,pd);if(d){s&&(cd.fromBufferAttribute(s,a),dd.fromBufferAttribute(s,l),ud.fromBufferAttribute(s,u),d.uv=Ui.getInterpolation(pd,Go,Vo,zo,cd,dd,ud,new It)),r&&(cd.fromBufferAttribute(r,a),dd.fromBufferAttribute(r,l),ud.fromBufferAttribute(r,u),d.uv1=Ui.getInterpolation(pd,Go,Vo,zo,cd,dd,ud,new It),d.uv2=d.uv1),o&&(B1.fromBufferAttribute(o,a),G1.fromBufferAttribute(o,l),V1.fromBufferAttribute(o,u),d.normal=Ui.getInterpolation(pd,Go,Vo,zo,B1,G1,V1,new _e),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const h={a,b:l,c:u,normal:new _e,materialIndex:0};Ui.getNormal(Go,Vo,zo,h.normal),d.face=h}return d}class Cr extends ms{constructor(e=1,t=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const l=[],u=[],d=[],h=[];let f=0,_=0;m("z","y","x",-1,-1,i,t,e,o,r,0),m("z","y","x",1,-1,i,t,-e,o,r,1),m("x","z","y",1,1,e,i,t,s,o,2),m("x","z","y",1,-1,e,i,-t,s,o,3),m("x","y","z",1,-1,e,t,i,s,r,4),m("x","y","z",-1,-1,e,t,-i,s,r,5),this.setIndex(l),this.setAttribute("position",new Bs(u,3)),this.setAttribute("normal",new Bs(d,3)),this.setAttribute("uv",new Bs(h,2));function m(E,b,g,y,v,S,C,T,O,k,x){const I=S/O,F=C/k,B=S/2,ne=C/2,L=T/2,$=O+1,H=k+1;let U=0,Q=0;const J=new _e;for(let j=0;j0?1:-1,d.push(J.x,J.y,J.z),h.push(ve/O),h.push(1-j/k),U+=1}}for(let j=0;j>8&255]+Mn[n>>16&255]+Mn[n>>24&255]+"-"+Mn[e&255]+Mn[e>>8&255]+"-"+Mn[e>>16&15|64]+Mn[e>>24&255]+"-"+Mn[t&63|128]+Mn[t>>8&255]+"-"+Mn[t>>16&255]+Mn[t>>24&255]+Mn[i&255]+Mn[i>>8&255]+Mn[i>>16&255]+Mn[i>>24&255]).toLowerCase()}function Ln(n,e,t){return Math.max(e,Math.min(t,n))}function JE(n,e){return(n%e+e)%e}function mRt(n,e,t,i,s){return i+(n-e)*(s-i)/(t-e)}function gRt(n,e,t){return n!==e?(t-n)/(e-n):0}function Fl(n,e,t){return(1-t)*n+t*e}function bRt(n,e,t,i){return Fl(n,e,1-Math.exp(-t*i))}function ERt(n,e=1){return e-Math.abs(JE(n,e*2)-e)}function yRt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function vRt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function SRt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function TRt(n,e){return n+Math.random()*(e-n)}function xRt(n){return n*(.5-Math.random())}function CRt(n){n!==void 0&&(C1=n);let e=C1+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function wRt(n){return n*Ul}function RRt(n){return n*Aa}function pb(n){return(n&n-1)===0&&n!==0}function ARt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Eu(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function NRt(n,e,t,i,s){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),u=r((e+i)/2),d=o((e+i)/2),h=r((e-i)/2),f=o((e-i)/2),_=r((i-e)/2),m=o((i-e)/2);switch(s){case"XYX":n.set(a*d,l*h,l*f,a*u);break;case"YZY":n.set(l*f,a*d,l*h,a*u);break;case"ZXZ":n.set(l*h,l*f,a*d,a*u);break;case"XZX":n.set(a*d,l*m,l*_,a*u);break;case"YXY":n.set(l*_,a*d,l*m,a*u);break;case"ZYZ":n.set(l*m,l*_,a*d,a*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function ts(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Ht(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const ORt={DEG2RAD:Ul,RAD2DEG:Aa,generateUUID:zi,clamp:Ln,euclideanModulo:JE,mapLinear:mRt,inverseLerp:gRt,lerp:Fl,damp:bRt,pingpong:ERt,smoothstep:yRt,smootherstep:vRt,randInt:SRt,randFloat:TRt,randFloatSpread:xRt,seededRandom:CRt,degToRad:wRt,radToDeg:RRt,isPowerOfTwo:pb,ceilPowerOfTwo:ARt,floorPowerOfTwo:Eu,setQuaternionFromProperEuler:NRt,normalize:Ht,denormalize:ts};class It{constructor(e=0,t=0){It.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(Ln(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class wt{constructor(e,t,i,s,r,o,a,l,u){wt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,u)}set(e,t,i,s,r,o,a,l,u){const d=this.elements;return d[0]=e,d[1]=s,d[2]=a,d[3]=t,d[4]=r,d[5]=l,d[6]=i,d[7]=o,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[3],l=i[6],u=i[1],d=i[4],h=i[7],f=i[2],_=i[5],m=i[8],E=s[0],b=s[3],g=s[6],y=s[1],v=s[4],S=s[7],C=s[2],T=s[5],O=s[8];return r[0]=o*E+a*y+l*C,r[3]=o*b+a*v+l*T,r[6]=o*g+a*S+l*O,r[1]=u*E+d*y+h*C,r[4]=u*b+d*v+h*T,r[7]=u*g+d*S+h*O,r[2]=f*E+_*y+m*C,r[5]=f*b+_*v+m*T,r[8]=f*g+_*S+m*O,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8];return t*o*d-t*a*u-i*r*d+i*a*l+s*r*u-s*o*l}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=d*o-a*u,f=a*l-d*r,_=u*r-o*l,m=t*h+i*f+s*_;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const E=1/m;return e[0]=h*E,e[1]=(s*u-d*i)*E,e[2]=(a*i-s*o)*E,e[3]=f*E,e[4]=(d*t-s*l)*E,e[5]=(s*r-a*t)*E,e[6]=_*E,e[7]=(i*l-u*t)*E,e[8]=(o*t-i*r)*E,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,r,o,a){const l=Math.cos(r),u=Math.sin(r);return this.set(i*l,i*u,-i*(l*o+u*a)+o+e,-s*u,s*l,-s*(-u*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(zm.makeScale(e,t)),this}rotate(e){return this.premultiply(zm.makeRotation(-e)),this}translate(e,t){return this.premultiply(zm.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const zm=new wt;function nI(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function ac(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function IRt(){const n=ac("canvas");return n.style.display="block",n}const w1={};function Bl(n){n in w1||(w1[n]=!0,console.warn(n))}const R1=new wt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),A1=new wt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Qc={[On]:{transfer:fu,primaries:mu,toReference:n=>n,fromReference:n=>n},[on]:{transfer:Zt,primaries:mu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[cp]:{transfer:fu,primaries:gu,toReference:n=>n.applyMatrix3(A1),fromReference:n=>n.applyMatrix3(R1)},[ZE]:{transfer:Zt,primaries:gu,toReference:n=>n.convertSRGBToLinear().applyMatrix3(A1),fromReference:n=>n.applyMatrix3(R1).convertLinearToSRGB()}},MRt=new Set([On,cp]),Gt={enabled:!0,_workingColorSpace:On,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!MRt.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=Qc[e].toReference,s=Qc[t].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Qc[n].primaries},getTransfer:function(n){return n===bi?fu:Qc[n].transfer}};function la(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Hm(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Io;class iI{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Io===void 0&&(Io=ac("canvas")),Io.width=e.width,Io.height=e.height;const i=Io.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Io}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=ac("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==qO)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ca:e.x=e.x-Math.floor(e.x);break;case mi:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ca:e.y=e.y-Math.floor(e.y);break;case mi:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===on?lo:eI}set encoding(e){Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===lo?on:bi}}Nn.DEFAULT_IMAGE=null;Nn.DEFAULT_MAPPING=qO;Nn.DEFAULT_ANISOTROPY=1;class Wt{constructor(e=0,t=0,i=0,s=1){Wt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*t+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*t+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*t+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,r;const l=e.elements,u=l[0],d=l[4],h=l[8],f=l[1],_=l[5],m=l[9],E=l[2],b=l[6],g=l[10];if(Math.abs(d-f)<.01&&Math.abs(h-E)<.01&&Math.abs(m-b)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+E)<.1&&Math.abs(m+b)<.1&&Math.abs(u+_+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(u+1)/2,S=(_+1)/2,C=(g+1)/2,T=(d+f)/4,O=(h+E)/4,k=(m+b)/4;return v>S&&v>C?v<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(v),s=T/i,r=O/i):S>C?S<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(S),i=T/s,r=k/s):C<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(C),i=O/r,s=k/r),this.set(i,s,r,t),this}let y=Math.sqrt((b-m)*(b-m)+(h-E)*(h-E)+(f-d)*(f-d));return Math.abs(y)<.001&&(y=1),this.x=(b-m)/y,this.y=(h-E)/y,this.z=(f-d)/y,this.w=Math.acos((u+_+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class LRt extends Ka{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Wt(0,0,e,t),this.scissorTest=!1,this.viewport=new Wt(0,0,e,t);const s={width:e,height:t,depth:1};i.encoding!==void 0&&(Bl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===lo?on:bi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:jn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new Nn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new sI(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends LRt{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class rI extends Nn{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=yn,this.minFilter=yn,this.wrapR=mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class PRt extends Nn{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=yn,this.minFilter=yn,this.wrapR=mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ir{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,r,o,a){let l=i[s+0],u=i[s+1],d=i[s+2],h=i[s+3];const f=r[o+0],_=r[o+1],m=r[o+2],E=r[o+3];if(a===0){e[t+0]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h;return}if(a===1){e[t+0]=f,e[t+1]=_,e[t+2]=m,e[t+3]=E;return}if(h!==E||l!==f||u!==_||d!==m){let b=1-a;const g=l*f+u*_+d*m+h*E,y=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const C=Math.sqrt(v),T=Math.atan2(C,g*y);b=Math.sin(b*T)/C,a=Math.sin(a*T)/C}const S=a*y;if(l=l*b+f*S,u=u*b+_*S,d=d*b+m*S,h=h*b+E*S,b===1-a){const C=1/Math.sqrt(l*l+u*u+d*d+h*h);l*=C,u*=C,d*=C,h*=C}}e[t]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h}static multiplyQuaternionsFlat(e,t,i,s,r,o){const a=i[s],l=i[s+1],u=i[s+2],d=i[s+3],h=r[o],f=r[o+1],_=r[o+2],m=r[o+3];return e[t]=a*m+d*h+l*_-u*f,e[t+1]=l*m+d*f+u*h-a*_,e[t+2]=u*m+d*_+a*f-l*h,e[t+3]=d*m-a*h-l*f-u*_,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,u=a(i/2),d=a(s/2),h=a(r/2),f=l(i/2),_=l(s/2),m=l(r/2);switch(o){case"XYZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"YXZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"ZXY":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"ZYX":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"YZX":this._x=f*d*h+u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h-f*_*m;break;case"XZY":this._x=f*d*h-u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h+f*_*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],r=t[8],o=t[1],a=t[5],l=t[9],u=t[2],d=t[6],h=t[10],f=i+a+h;if(f>0){const _=.5/Math.sqrt(f+1);this._w=.25/_,this._x=(d-l)*_,this._y=(r-u)*_,this._z=(o-s)*_}else if(i>a&&i>h){const _=2*Math.sqrt(1+i-a-h);this._w=(d-l)/_,this._x=.25*_,this._y=(s+o)/_,this._z=(r+u)/_}else if(a>h){const _=2*Math.sqrt(1+a-i-h);this._w=(r-u)/_,this._x=(s+o)/_,this._y=.25*_,this._z=(l+d)/_}else{const _=2*Math.sqrt(1+h-i-a);this._w=(o-s)/_,this._x=(r+u)/_,this._y=(l+d)/_,this._z=.25*_}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Ln(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,s=e._y,r=e._z,o=e._w,a=t._x,l=t._y,u=t._z,d=t._w;return this._x=i*d+o*a+s*u-r*l,this._y=s*d+o*l+r*a-i*u,this._z=r*d+o*u+i*l-s*a,this._w=o*d-i*a-s*l-r*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=i,this._y=s,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const _=1-t;return this._w=_*o+t*this._w,this._x=_*i+t*this._x,this._y=_*s+t*this._y,this._z=_*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(l),d=Math.atan2(u,a),h=Math.sin((1-t)*d)/u,f=Math.sin(t*d)/u;return this._w=o*h+this._w*f,this._x=i*h+this._x*f,this._y=s*h+this._y*f,this._z=r*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(s),i*Math.sin(r),i*Math.cos(r),t*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class _e{constructor(e=0,t=0,i=0){_e.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(N1.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(N1.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*s,this.y=r[1]*t+r[4]*i+r[7]*s,this.z=r[2]*t+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*t+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*t+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*t+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,l=e.w,u=2*(o*s-a*i),d=2*(a*t-r*s),h=2*(r*i-o*t);return this.x=t+l*u+o*h-a*d,this.y=i+l*d+a*u-r*h,this.z=s+l*h+r*d-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*s,this.y=r[1]*t+r[5]*i+r[9]*s,this.z=r[2]*t+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=s*l-r*a,this.y=r*o-i*l,this.z=i*a-s*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Ym.copy(this).projectOnVector(e),this.sub(Ym)}reflect(e){return this.sub(Ym.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(Ln(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Ym=new _e,N1=new Ir;class js{constructor(e=new _e(1/0,1/0,1/0),t=new _e(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ii),Ii.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(fl),Zc.subVectors(this.max,fl),Mo.subVectors(e.a,fl),Do.subVectors(e.b,fl),ko.subVectors(e.c,fl),tr.subVectors(Do,Mo),nr.subVectors(ko,Do),Fr.subVectors(Mo,ko);let t=[0,-tr.z,tr.y,0,-nr.z,nr.y,0,-Fr.z,Fr.y,tr.z,0,-tr.x,nr.z,0,-nr.x,Fr.z,0,-Fr.x,-tr.y,tr.x,0,-nr.y,nr.x,0,-Fr.y,Fr.x,0];return!$m(t,Mo,Do,ko,Zc)||(t=[1,0,0,0,1,0,0,0,1],!$m(t,Mo,Do,ko,Zc))?!1:(Jc.crossVectors(tr,nr),t=[Jc.x,Jc.y,Jc.z],$m(t,Mo,Do,ko,Zc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ii).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ii).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Cs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Cs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Cs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Cs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Cs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Cs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Cs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Cs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Cs),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Cs=[new _e,new _e,new _e,new _e,new _e,new _e,new _e,new _e],Ii=new _e,Xc=new js,Mo=new _e,Do=new _e,ko=new _e,tr=new _e,nr=new _e,Fr=new _e,fl=new _e,Zc=new _e,Jc=new _e,Br=new _e;function $m(n,e,t,i,s){for(let r=0,o=n.length-3;r<=o;r+=3){Br.fromArray(n,r);const a=s.x*Math.abs(Br.x)+s.y*Math.abs(Br.y)+s.z*Math.abs(Br.z),l=e.dot(Br),u=t.dot(Br),d=i.dot(Br);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>a)return!1}return!0}const URt=new js,ml=new _e,Wm=new _e;class fs{constructor(e=new _e,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):URt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ml.subVectors(e,this.center);const t=ml.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(ml,s/i),this.radius+=s}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Wm.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ml.copy(e.center).add(Wm)),this.expandByPoint(ml.copy(e.center).sub(Wm))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ws=new _e,Km=new _e,ed=new _e,ir=new _e,jm=new _e,td=new _e,Qm=new _e;class dp{constructor(e=new _e,t=new _e(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ws)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ws.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ws.copy(this.origin).addScaledVector(this.direction,t),ws.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){Km.copy(e).add(t).multiplyScalar(.5),ed.copy(t).sub(e).normalize(),ir.copy(this.origin).sub(Km);const r=e.distanceTo(t)*.5,o=-this.direction.dot(ed),a=ir.dot(this.direction),l=-ir.dot(ed),u=ir.lengthSq(),d=Math.abs(1-o*o);let h,f,_,m;if(d>0)if(h=o*l-a,f=o*a-l,m=r*d,h>=0)if(f>=-m)if(f<=m){const E=1/d;h*=E,f*=E,_=h*(h+o*f+2*a)+f*(o*h+f+2*l)+u}else f=r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f=-r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f<=-m?(h=Math.max(0,-(-o*r+a)),f=h>0?-r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u):f<=m?(h=0,f=Math.min(Math.max(-r,-l),r),_=f*(f+2*l)+u):(h=Math.max(0,-(o*r+a)),f=h>0?r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u);else f=o>0?-r:r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,h),s&&s.copy(Km).addScaledVector(ed,f),_}intersectSphere(e,t){ws.subVectors(e.center,this.origin);const i=ws.dot(this.direction),s=ws.dot(ws)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,l=i+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,r,o,a,l;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(i=(e.min.x-f.x)*u,s=(e.max.x-f.x)*u):(i=(e.max.x-f.x)*u,s=(e.min.x-f.x)*u),d>=0?(r=(e.min.y-f.y)*d,o=(e.max.y-f.y)*d):(r=(e.max.y-f.y)*d,o=(e.min.y-f.y)*d),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o=0?(a=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),i>l||a>s)||((a>i||i!==i)&&(i=a),(l=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,ws)!==null}intersectTriangle(e,t,i,s,r){jm.subVectors(t,e),td.subVectors(i,e),Qm.crossVectors(jm,td);let o=this.direction.dot(Qm),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;ir.subVectors(this.origin,e);const l=a*this.direction.dot(td.crossVectors(ir,td));if(l<0)return null;const u=a*this.direction.dot(jm.cross(ir));if(u<0||l+u>o)return null;const d=-a*ir.dot(Qm);return d<0?null:this.at(d/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Rt{constructor(e,t,i,s,r,o,a,l,u,d,h,f,_,m,E,b){Rt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,u,d,h,f,_,m,E,b)}set(e,t,i,s,r,o,a,l,u,d,h,f,_,m,E,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=l,g[2]=u,g[6]=d,g[10]=h,g[14]=f,g[3]=_,g[7]=m,g[11]=E,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rt().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/Lo.setFromMatrixColumn(e,0).length(),r=1/Lo.setFromMatrixColumn(e,1).length(),o=1/Lo.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),l=Math.cos(s),u=Math.sin(s),d=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const f=o*d,_=o*h,m=a*d,E=a*h;t[0]=l*d,t[4]=-l*h,t[8]=u,t[1]=_+m*u,t[5]=f-E*u,t[9]=-a*l,t[2]=E-f*u,t[6]=m+_*u,t[10]=o*l}else if(e.order==="YXZ"){const f=l*d,_=l*h,m=u*d,E=u*h;t[0]=f+E*a,t[4]=m*a-_,t[8]=o*u,t[1]=o*h,t[5]=o*d,t[9]=-a,t[2]=_*a-m,t[6]=E+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*d,_=l*h,m=u*d,E=u*h;t[0]=f-E*a,t[4]=-o*h,t[8]=m+_*a,t[1]=_+m*a,t[5]=o*d,t[9]=E-f*a,t[2]=-o*u,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*d,_=o*h,m=a*d,E=a*h;t[0]=l*d,t[4]=m*u-_,t[8]=f*u+E,t[1]=l*h,t[5]=E*u+f,t[9]=_*u-m,t[2]=-u,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,_=o*u,m=a*l,E=a*u;t[0]=l*d,t[4]=E-f*h,t[8]=m*h+_,t[1]=h,t[5]=o*d,t[9]=-a*d,t[2]=-u*d,t[6]=_*h+m,t[10]=f-E*h}else if(e.order==="XZY"){const f=o*l,_=o*u,m=a*l,E=a*u;t[0]=l*d,t[4]=-h,t[8]=u*d,t[1]=f*h+E,t[5]=o*d,t[9]=_*h-m,t[2]=m*h-_,t[6]=a*d,t[10]=E*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(FRt,e,BRt)}lookAt(e,t,i){const s=this.elements;return ii.subVectors(e,t),ii.lengthSq()===0&&(ii.z=1),ii.normalize(),sr.crossVectors(i,ii),sr.lengthSq()===0&&(Math.abs(i.z)===1?ii.x+=1e-4:ii.z+=1e-4,ii.normalize(),sr.crossVectors(i,ii)),sr.normalize(),nd.crossVectors(ii,sr),s[0]=sr.x,s[4]=nd.x,s[8]=ii.x,s[1]=sr.y,s[5]=nd.y,s[9]=ii.y,s[2]=sr.z,s[6]=nd.z,s[10]=ii.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[4],l=i[8],u=i[12],d=i[1],h=i[5],f=i[9],_=i[13],m=i[2],E=i[6],b=i[10],g=i[14],y=i[3],v=i[7],S=i[11],C=i[15],T=s[0],O=s[4],k=s[8],x=s[12],I=s[1],F=s[5],B=s[9],ne=s[13],L=s[2],$=s[6],H=s[10],U=s[14],Q=s[3],J=s[7],j=s[11],ae=s[15];return r[0]=o*T+a*I+l*L+u*Q,r[4]=o*O+a*F+l*$+u*J,r[8]=o*k+a*B+l*H+u*j,r[12]=o*x+a*ne+l*U+u*ae,r[1]=d*T+h*I+f*L+_*Q,r[5]=d*O+h*F+f*$+_*J,r[9]=d*k+h*B+f*H+_*j,r[13]=d*x+h*ne+f*U+_*ae,r[2]=m*T+E*I+b*L+g*Q,r[6]=m*O+E*F+b*$+g*J,r[10]=m*k+E*B+b*H+g*j,r[14]=m*x+E*ne+b*U+g*ae,r[3]=y*T+v*I+S*L+C*Q,r[7]=y*O+v*F+S*$+C*J,r[11]=y*k+v*B+S*H+C*j,r[15]=y*x+v*ne+S*U+C*ae,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],l=e[9],u=e[13],d=e[2],h=e[6],f=e[10],_=e[14],m=e[3],E=e[7],b=e[11],g=e[15];return m*(+r*l*h-s*u*h-r*a*f+i*u*f+s*a*_-i*l*_)+E*(+t*l*_-t*u*f+r*o*f-s*o*_+s*u*d-r*l*d)+b*(+t*u*h-t*a*_-r*o*h+i*o*_+r*a*d-i*u*d)+g*(-s*a*d-t*l*h+t*a*f+s*o*h-i*o*f+i*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=e[9],f=e[10],_=e[11],m=e[12],E=e[13],b=e[14],g=e[15],y=h*b*u-E*f*u+E*l*_-a*b*_-h*l*g+a*f*g,v=m*f*u-d*b*u-m*l*_+o*b*_+d*l*g-o*f*g,S=d*E*u-m*h*u+m*a*_-o*E*_-d*a*g+o*h*g,C=m*h*l-d*E*l-m*a*f+o*E*f+d*a*b-o*h*b,T=t*y+i*v+s*S+r*C;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const O=1/T;return e[0]=y*O,e[1]=(E*f*r-h*b*r-E*s*_+i*b*_+h*s*g-i*f*g)*O,e[2]=(a*b*r-E*l*r+E*s*u-i*b*u-a*s*g+i*l*g)*O,e[3]=(h*l*r-a*f*r-h*s*u+i*f*u+a*s*_-i*l*_)*O,e[4]=v*O,e[5]=(d*b*r-m*f*r+m*s*_-t*b*_-d*s*g+t*f*g)*O,e[6]=(m*l*r-o*b*r-m*s*u+t*b*u+o*s*g-t*l*g)*O,e[7]=(o*f*r-d*l*r+d*s*u-t*f*u-o*s*_+t*l*_)*O,e[8]=S*O,e[9]=(m*h*r-d*E*r-m*i*_+t*E*_+d*i*g-t*h*g)*O,e[10]=(o*E*r-m*a*r+m*i*u-t*E*u-o*i*g+t*a*g)*O,e[11]=(d*a*r-o*h*r-d*i*u+t*h*u+o*i*_-t*a*_)*O,e[12]=C*O,e[13]=(d*E*s-m*h*s+m*i*f-t*E*f-d*i*b+t*h*b)*O,e[14]=(m*a*s-o*E*s-m*i*l+t*E*l+o*i*b-t*a*b)*O,e[15]=(o*h*s-d*a*s+d*i*l-t*h*l-o*i*f+t*a*f)*O,this}scale(e){const t=this.elements,i=e.x,s=e.y,r=e.z;return t[0]*=i,t[4]*=s,t[8]*=r,t[1]*=i,t[5]*=s,t[9]*=r,t[2]*=i,t[6]*=s,t[10]*=r,t[3]*=i,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),r=1-i,o=e.x,a=e.y,l=e.z,u=r*o,d=r*a;return this.set(u*o+i,u*a-s*l,u*l+s*a,0,u*a+s*l,d*a+i,d*l-s*o,0,u*l-s*a,d*l+s*o,r*l*l+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,u=r+r,d=o+o,h=a+a,f=r*u,_=r*d,m=r*h,E=o*d,b=o*h,g=a*h,y=l*u,v=l*d,S=l*h,C=i.x,T=i.y,O=i.z;return s[0]=(1-(E+g))*C,s[1]=(_+S)*C,s[2]=(m-v)*C,s[3]=0,s[4]=(_-S)*T,s[5]=(1-(f+g))*T,s[6]=(b+y)*T,s[7]=0,s[8]=(m+v)*O,s[9]=(b-y)*O,s[10]=(1-(f+E))*O,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let r=Lo.set(s[0],s[1],s[2]).length();const o=Lo.set(s[4],s[5],s[6]).length(),a=Lo.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],Mi.copy(this);const u=1/r,d=1/o,h=1/a;return Mi.elements[0]*=u,Mi.elements[1]*=u,Mi.elements[2]*=u,Mi.elements[4]*=d,Mi.elements[5]*=d,Mi.elements[6]*=d,Mi.elements[8]*=h,Mi.elements[9]*=h,Mi.elements[10]*=h,t.setFromRotationMatrix(Mi),i.x=r,i.y=o,i.z=a,this}makePerspective(e,t,i,s,r,o,a=Us){const l=this.elements,u=2*r/(t-e),d=2*r/(i-s),h=(t+e)/(t-e),f=(i+s)/(i-s);let _,m;if(a===Us)_=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===bu)_=-o/(o-r),m=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=_,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,i,s,r,o,a=Us){const l=this.elements,u=1/(t-e),d=1/(i-s),h=1/(o-r),f=(t+e)*u,_=(i+s)*d;let m,E;if(a===Us)m=(o+r)*h,E=-2*h;else if(a===bu)m=r*h,E=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-_,l[2]=0,l[6]=0,l[10]=E,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const Lo=new _e,Mi=new Rt,FRt=new _e(0,0,0),BRt=new _e(1,1,1),sr=new _e,nd=new _e,ii=new _e,O1=new Rt,I1=new Ir;class up{constructor(e=0,t=0,i=0,s=up.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],l=s[1],u=s[5],d=s[9],h=s[2],f=s[6],_=s[10];switch(t){case"XYZ":this._y=Math.asin(Ln(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,_),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Ln(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,_),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Ln(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,_),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Ln(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,_),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Ln(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,_));break;case"XZY":this._z=Math.asin(-Ln(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-d,_),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return O1.makeRotationFromQuaternion(e),this.setFromRotationMatrix(O1,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return I1.setFromEuler(this),this.setFromQuaternion(I1,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}up.DEFAULT_ORDER="XYZ";class oI{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let i=0;i0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u0){s.children=[];for(let a=0;a0){s.animations=[];for(let a=0;a0&&(i.geometries=a),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),f.length>0&&(i.skeletons=f),_.length>0&&(i.animations=_),m.length>0&&(i.nodes=m)}return i.object=s,i;function o(a){const l=[];for(const u in a){const d=a[u];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,i,s,r){Di.subVectors(s,t),As.subVectors(i,t),Xm.subVectors(e,t);const o=Di.dot(Di),a=Di.dot(As),l=Di.dot(Xm),u=As.dot(As),d=As.dot(Xm),h=o*u-a*a;if(h===0)return r.set(-2,-1,-1);const f=1/h,_=(u*l-a*d)*f,m=(o*d-a*l)*f;return r.set(1-_-m,m,_)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,Ns),Ns.x>=0&&Ns.y>=0&&Ns.x+Ns.y<=1}static getUV(e,t,i,s,r,o,a,l){return sd===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),sd=!0),this.getInterpolation(e,t,i,s,r,o,a,l)}static getInterpolation(e,t,i,s,r,o,a,l){return this.getBarycoord(e,t,i,s,Ns),l.setScalar(0),l.addScaledVector(r,Ns.x),l.addScaledVector(o,Ns.y),l.addScaledVector(a,Ns.z),l}static isFrontFacing(e,t,i,s){return Di.subVectors(i,t),As.subVectors(e,t),Di.cross(As).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Di.subVectors(this.c,this.b),As.subVectors(this.a,this.b),Di.cross(As).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Ui.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Ui.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,i,s,r){return sd===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),sd=!0),Ui.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}getInterpolation(e,t,i,s,r){return Ui.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}containsPoint(e){return Ui.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Ui.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,r=this.c;let o,a;Uo.subVectors(s,i),Fo.subVectors(r,i),Zm.subVectors(e,i);const l=Uo.dot(Zm),u=Fo.dot(Zm);if(l<=0&&u<=0)return t.copy(i);Jm.subVectors(e,s);const d=Uo.dot(Jm),h=Fo.dot(Jm);if(d>=0&&h<=d)return t.copy(s);const f=l*h-d*u;if(f<=0&&l>=0&&d<=0)return o=l/(l-d),t.copy(i).addScaledVector(Uo,o);eg.subVectors(e,r);const _=Uo.dot(eg),m=Fo.dot(eg);if(m>=0&&_<=m)return t.copy(r);const E=_*u-l*m;if(E<=0&&u>=0&&m<=0)return a=u/(u-m),t.copy(i).addScaledVector(Fo,a);const b=d*m-_*h;if(b<=0&&h-d>=0&&_-m>=0)return P1.subVectors(r,s),a=(h-d)/(h-d+(_-m)),t.copy(s).addScaledVector(P1,a);const g=1/(b+E+f);return o=E*g,a=f*g,t.copy(i).addScaledVector(Uo,o).addScaledVector(Fo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const aI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},rr={h:0,s:0,l:0},rd={h:0,s:0,l:0};function tg(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class gt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=on){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Gt.toWorkingColorSpace(this,t),this}setRGB(e,t,i,s=Gt.workingColorSpace){return this.r=e,this.g=t,this.b=i,Gt.toWorkingColorSpace(this,s),this}setHSL(e,t,i,s=Gt.workingColorSpace){if(e=JE(e,1),t=Ln(t,0,1),i=Ln(i,0,1),t===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+t):i+t-i*t,o=2*i-r;this.r=tg(o,r,e+1/3),this.g=tg(o,r,e),this.b=tg(o,r,e-1/3)}return Gt.toWorkingColorSpace(this,s),this}setStyle(e,t=on){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=on){const i=aI[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=la(e.r),this.g=la(e.g),this.b=la(e.b),this}copyLinearToSRGB(e){return this.r=Hm(e.r),this.g=Hm(e.g),this.b=Hm(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=on){return Gt.fromWorkingColorSpace(Dn.copy(this),e),Math.round(Ln(Dn.r*255,0,255))*65536+Math.round(Ln(Dn.g*255,0,255))*256+Math.round(Ln(Dn.b*255,0,255))}getHexString(e=on){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Gt.workingColorSpace){Gt.fromWorkingColorSpace(Dn.copy(this),t);const i=Dn.r,s=Dn.g,r=Dn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let l,u;const d=(a+o)/2;if(a===o)l=0,u=0;else{const h=o-a;switch(u=d<=.5?h/(o+a):h/(2-o-a),o){case i:l=(s-r)/h+(s0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==aa&&(i.blending=this.blending),this.side!==Ys&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==sb&&(i.blendSrc=this.blendSrc),this.blendDst!==rb&&(i.blendDst=this.blendDst),this.blendEquation!==Xr&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==_u&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==T1&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Oo&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Oo&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Oo&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=t[r].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class Er extends Hi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new gt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=jE,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const dn=new _e,od=new It;class Yn{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=db,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ps,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,r=this.itemSize;s0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const s={};let r=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let h=0,f=u.length;h0&&(s[l]=d,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const s=e.attributes;for(const u in s){const d=s[u];this.setAttribute(u,d.clone(t))}const r=e.morphAttributes;for(const u in r){const d=[],h=r[u];for(let f=0,_=h.length;f<_;f++)d.push(h[f].clone(t));this.morphAttributes[u]=d}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let u=0,d=o.length;u0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r(e.far-e.near)**2))&&(U1.copy(r).invert(),Gr.copy(e.ray).applyMatrix4(U1),!(i.boundingBox!==null&&Gr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,Gr)))}_computeIntersections(e,t,i){let s;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,u=r.attributes.uv,d=r.attributes.uv1,h=r.attributes.normal,f=r.groups,_=r.drawRange;if(a!==null)if(Array.isArray(o))for(let m=0,E=f.length;mt.far?null:{distance:u,point:_d.clone(),object:n}}function hd(n,e,t,i,s,r,o,a,l,u){n.getVertexPosition(a,Go),n.getVertexPosition(l,Vo),n.getVertexPosition(u,zo);const d=WRt(n,e,t,i,Go,Vo,zo,pd);if(d){s&&(cd.fromBufferAttribute(s,a),dd.fromBufferAttribute(s,l),ud.fromBufferAttribute(s,u),d.uv=Ui.getInterpolation(pd,Go,Vo,zo,cd,dd,ud,new It)),r&&(cd.fromBufferAttribute(r,a),dd.fromBufferAttribute(r,l),ud.fromBufferAttribute(r,u),d.uv1=Ui.getInterpolation(pd,Go,Vo,zo,cd,dd,ud,new It),d.uv2=d.uv1),o&&(B1.fromBufferAttribute(o,a),G1.fromBufferAttribute(o,l),V1.fromBufferAttribute(o,u),d.normal=Ui.getInterpolation(pd,Go,Vo,zo,B1,G1,V1,new _e),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const h={a,b:l,c:u,normal:new _e,materialIndex:0};Ui.getNormal(Go,Vo,zo,h.normal),d.face=h}return d}class Cr extends ms{constructor(e=1,t=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const l=[],u=[],d=[],h=[];let f=0,_=0;m("z","y","x",-1,-1,i,t,e,o,r,0),m("z","y","x",1,-1,i,t,-e,o,r,1),m("x","z","y",1,1,e,i,t,s,o,2),m("x","z","y",1,-1,e,i,-t,s,o,3),m("x","y","z",1,-1,e,t,i,s,r,4),m("x","y","z",-1,-1,e,t,-i,s,r,5),this.setIndex(l),this.setAttribute("position",new Bs(u,3)),this.setAttribute("normal",new Bs(d,3)),this.setAttribute("uv",new Bs(h,2));function m(E,b,g,y,v,S,C,T,O,k,x){const I=S/O,F=C/k,B=S/2,ne=C/2,L=T/2,$=O+1,H=k+1;let U=0,Q=0;const J=new _e;for(let j=0;j0?1:-1,d.push(J.x,J.y,J.z),h.push(ve/O),h.push(1-j/k),U+=1}}for(let j=0;j0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const s in this.extensions)this.extensions[s]===!0&&(i[s]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}class uI extends rn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Rt,this.projectionMatrix=new Rt,this.projectionMatrixInverse=new Rt,this.coordinateSystem=Us}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class zn extends uI{constructor(e=50,t=1,i=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=s,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Aa*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ul*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Aa*2*Math.atan(Math.tan(Ul*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,i,s,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Ul*.5*this.fov)/this.zoom,i=2*t,s=this.aspect*i,r=-.5*s;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,u=o.fullHeight;r+=o.offsetX*s/l,t-=o.offsetY*i/u,s*=o.width/l,i*=o.height/u}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Ho=-90,qo=1;class XRt extends rn{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new zn(Ho,qo,e,t);s.layers=this.layers,this.add(s);const r=new zn(Ho,qo,e,t);r.layers=this.layers,this.add(r);const o=new zn(Ho,qo,e,t);o.layers=this.layers,this.add(o);const a=new zn(Ho,qo,e,t);a.layers=this.layers,this.add(a);const l=new zn(Ho,qo,e,t);l.layers=this.layers,this.add(l);const u=new zn(Ho,qo,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,s,r,o,a,l]=t;for(const u of t)this.remove(u);if(e===Us)i.up.set(0,1,0),i.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===bu)i.up.set(0,-1,0),i.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),_=e.getActiveMipmapLevel(),m=e.xr.enabled;e.xr.enabled=!1;const E=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,s),e.render(t,r),e.setRenderTarget(i,1,s),e.render(t,o),e.setRenderTarget(i,2,s),e.render(t,a),e.setRenderTarget(i,3,s),e.render(t,l),e.setRenderTarget(i,4,s),e.render(t,u),i.texture.generateMipmaps=E,e.setRenderTarget(i,5,s),e.render(t,d),e.setRenderTarget(h,f,_),e.xr.enabled=m,i.texture.needsPMREMUpdate=!0}}class pI extends Nn{constructor(e,t,i,s,r,o,a,l,u,d){e=e!==void 0?e:[],t=t!==void 0?t:Ta,super(e,t,i,s,r,o,a,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class ZRt extends mo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},s=[i,i,i,i,i,i];t.encoding!==void 0&&(Bl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===lo?on:bi),this.texture=new pI(s,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:jn}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:` +}`;class go extends Hi{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=QRt,this.fragmentShader=XRt,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Na(e.uniforms),this.uniformsGroups=KRt(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const s in this.uniforms){const o=this.uniforms[s].value;o&&o.isTexture?t.uniforms[s]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[s]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[s]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[s]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[s]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[s]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[s]={type:"m4",value:o.toArray()}:t.uniforms[s]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const s in this.extensions)this.extensions[s]===!0&&(i[s]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}class uI extends rn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Rt,this.projectionMatrix=new Rt,this.projectionMatrixInverse=new Rt,this.coordinateSystem=Us}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class zn extends uI{constructor(e=50,t=1,i=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=s,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Aa*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ul*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Aa*2*Math.atan(Math.tan(Ul*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,i,s,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Ul*.5*this.fov)/this.zoom,i=2*t,s=this.aspect*i,r=-.5*s;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,u=o.fullHeight;r+=o.offsetX*s/l,t-=o.offsetY*i/u,s*=o.width/l,i*=o.height/u}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Ho=-90,qo=1;class ZRt extends rn{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new zn(Ho,qo,e,t);s.layers=this.layers,this.add(s);const r=new zn(Ho,qo,e,t);r.layers=this.layers,this.add(r);const o=new zn(Ho,qo,e,t);o.layers=this.layers,this.add(o);const a=new zn(Ho,qo,e,t);a.layers=this.layers,this.add(a);const l=new zn(Ho,qo,e,t);l.layers=this.layers,this.add(l);const u=new zn(Ho,qo,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,s,r,o,a,l]=t;for(const u of t)this.remove(u);if(e===Us)i.up.set(0,1,0),i.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===bu)i.up.set(0,-1,0),i.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),_=e.getActiveMipmapLevel(),m=e.xr.enabled;e.xr.enabled=!1;const E=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,s),e.render(t,r),e.setRenderTarget(i,1,s),e.render(t,o),e.setRenderTarget(i,2,s),e.render(t,a),e.setRenderTarget(i,3,s),e.render(t,l),e.setRenderTarget(i,4,s),e.render(t,u),i.texture.generateMipmaps=E,e.setRenderTarget(i,5,s),e.render(t,d),e.setRenderTarget(h,f,_),e.xr.enabled=m,i.texture.needsPMREMUpdate=!0}}class pI extends Nn{constructor(e,t,i,s,r,o,a,l,u,d){e=e!==void 0?e:[],t=t!==void 0?t:Ta,super(e,t,i,s,r,o,a,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class JRt extends mo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},s=[i,i,i,i,i,i];t.encoding!==void 0&&(Bl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===lo?on:bi),this.texture=new pI(s,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:jn}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -240,9 +240,9 @@ ${l}`;navigator.clipboard.writeText(u)}else navigator.clipboard.writeText(e);thi gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},s=new Cr(5,5,5),r=new go({name:"CubemapFromEquirect",uniforms:Na(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Zn,blending:Sr});r.uniforms.tEquirect.value=t;const o=new Hn(s,r),a=t.minFilter;return t.minFilter===fo&&(t.minFilter=jn),new XRt(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,i,s){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,i,s);e.setRenderTarget(r)}}const sg=new _e,JRt=new _e,eAt=new wt;class Yr{constructor(e=new _e(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,i,s){return this.normal.set(e,t,i),this.constant=s,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,i){const s=sg.subVectors(i,t).cross(JRt.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(s,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const i=e.delta(sg),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/s;return r<0||r>1?null:t.copy(e.start).addScaledVector(i,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const i=t||eAt.getNormalMatrix(e),s=this.coplanarPoint(sg).applyMatrix4(e),r=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Vr=new fs,fd=new _e;class ey{constructor(e=new Yr,t=new Yr,i=new Yr,s=new Yr,r=new Yr,o=new Yr){this.planes=[e,t,i,s,r,o]}set(e,t,i,s,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(s),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=Us){const i=this.planes,s=e.elements,r=s[0],o=s[1],a=s[2],l=s[3],u=s[4],d=s[5],h=s[6],f=s[7],_=s[8],m=s[9],E=s[10],b=s[11],g=s[12],y=s[13],v=s[14],S=s[15];if(i[0].setComponents(l-r,f-u,b-_,S-g).normalize(),i[1].setComponents(l+r,f+u,b+_,S+g).normalize(),i[2].setComponents(l+o,f+d,b+m,S+y).normalize(),i[3].setComponents(l-o,f-d,b-m,S-y).normalize(),i[4].setComponents(l-a,f-h,b-E,S-v).normalize(),t===Us)i[5].setComponents(l+a,f+h,b+E,S+v).normalize();else if(t===bu)i[5].setComponents(a,h,E,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Vr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Vr.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Vr)}intersectsSprite(e){return Vr.center.set(0,0,0),Vr.radius=.7071067811865476,Vr.applyMatrix4(e.matrixWorld),this.intersectsSphere(Vr)}intersectsSphere(e){const t=this.planes,i=e.center,s=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(i)0?e.max.x:e.min.x,fd.y=s.normal.y>0?e.max.y:e.min.y,fd.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(fd)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function _I(){let n=null,e=!1,t=null,i=null;function s(r,o){t(r,o),i=n.requestAnimationFrame(s)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(s),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){n=r}}}function tAt(n,e){const t=e.isWebGL2,i=new WeakMap;function s(u,d){const h=u.array,f=u.usage,_=h.byteLength,m=n.createBuffer();n.bindBuffer(d,m),n.bufferData(d,h,f),u.onUploadCallback();let E;if(h instanceof Float32Array)E=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)E=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else E=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)E=n.SHORT;else if(h instanceof Uint32Array)E=n.UNSIGNED_INT;else if(h instanceof Int32Array)E=n.INT;else if(h instanceof Int8Array)E=n.BYTE;else if(h instanceof Uint8Array)E=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)E=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:m,type:E,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:_}}function r(u,d,h){const f=d.array,_=d._updateRange,m=d.updateRanges;if(n.bindBuffer(h,u),_.count===-1&&m.length===0&&n.bufferSubData(h,0,f),m.length!==0){for(let E=0,b=m.length;E1?null:t.copy(e.start).addScaledVector(i,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const i=t||tAt.getNormalMatrix(e),s=this.coplanarPoint(sg).applyMatrix4(e),r=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Vr=new fs,fd=new _e;class ey{constructor(e=new Yr,t=new Yr,i=new Yr,s=new Yr,r=new Yr,o=new Yr){this.planes=[e,t,i,s,r,o]}set(e,t,i,s,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(s),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=Us){const i=this.planes,s=e.elements,r=s[0],o=s[1],a=s[2],l=s[3],u=s[4],d=s[5],h=s[6],f=s[7],_=s[8],m=s[9],E=s[10],b=s[11],g=s[12],y=s[13],v=s[14],S=s[15];if(i[0].setComponents(l-r,f-u,b-_,S-g).normalize(),i[1].setComponents(l+r,f+u,b+_,S+g).normalize(),i[2].setComponents(l+o,f+d,b+m,S+y).normalize(),i[3].setComponents(l-o,f-d,b-m,S-y).normalize(),i[4].setComponents(l-a,f-h,b-E,S-v).normalize(),t===Us)i[5].setComponents(l+a,f+h,b+E,S+v).normalize();else if(t===bu)i[5].setComponents(a,h,E,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Vr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Vr.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Vr)}intersectsSprite(e){return Vr.center.set(0,0,0),Vr.radius=.7071067811865476,Vr.applyMatrix4(e.matrixWorld),this.intersectsSphere(Vr)}intersectsSphere(e){const t=this.planes,i=e.center,s=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(i)0?e.max.x:e.min.x,fd.y=s.normal.y>0?e.max.y:e.min.y,fd.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(fd)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function _I(){let n=null,e=!1,t=null,i=null;function s(r,o){t(r,o),i=n.requestAnimationFrame(s)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(s),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){n=r}}}function nAt(n,e){const t=e.isWebGL2,i=new WeakMap;function s(u,d){const h=u.array,f=u.usage,_=h.byteLength,m=n.createBuffer();n.bindBuffer(d,m),n.bufferData(d,h,f),u.onUploadCallback();let E;if(h instanceof Float32Array)E=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)E=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else E=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)E=n.SHORT;else if(h instanceof Uint32Array)E=n.UNSIGNED_INT;else if(h instanceof Int32Array)E=n.INT;else if(h instanceof Int8Array)E=n.BYTE;else if(h instanceof Uint8Array)E=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)E=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:m,type:E,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:_}}function r(u,d,h){const f=d.array,_=d._updateRange,m=d.updateRanges;if(n.bindBuffer(h,u),_.count===-1&&m.length===0&&n.bufferSubData(h,0,f),m.length!==0){for(let E=0,b=m.length;E 0 +#endif`,bAt=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { @@ -439,26 +439,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #pragma unroll_loop_end if ( clipped ) discard; #endif -#endif`,bAt=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; - uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; #endif`,EAt=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; #endif`,yAt=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,vAt=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`,vAt=`#if defined( USE_COLOR_ALPHA ) +#endif`,SAt=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`,SAt=`#if defined( USE_COLOR_ALPHA ) +#endif`,TAt=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`,TAt=`#if defined( USE_COLOR_ALPHA ) +#endif`,xAt=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) varying vec3 vColor; -#endif`,xAt=`#if defined( USE_COLOR_ALPHA ) +#endif`,CAt=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) vColor = vec3( 1.0 ); @@ -468,7 +468,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; -#endif`,CAt=`#define PI 3.141592653589793 +#endif`,wAt=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -546,7 +546,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,wAt=`#ifdef ENVMAP_TYPE_CUBE_UV +} // validated`,RAt=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -644,7 +644,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`,RAt=`vec3 transformedNormal = objectNormal; +#endif`,AAt=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif @@ -673,18 +673,18 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`,AAt=`#ifdef USE_DISPLACEMENTMAP +#endif`,NAt=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`,NAt=`#ifdef USE_DISPLACEMENTMAP +#endif`,OAt=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,OAt=`#ifdef USE_EMISSIVEMAP +#endif`,IAt=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,IAt=`#ifdef USE_EMISSIVEMAP +#endif`,MAt=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`,MAt="gl_FragColor = linearToOutputTexel( gl_FragColor );",DAt=` +#endif`,DAt="gl_FragColor = linearToOutputTexel( gl_FragColor );",kAt=` const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( vec3( 0.8224621, 0.177538, 0.0 ), vec3( 0.0331941, 0.9668058, 0.0 ), @@ -712,7 +712,7 @@ vec4 LinearToLinear( in vec4 value ) { } vec4 LinearTosRGB( in vec4 value ) { return sRGBTransferOETF( value ); -}`,kAt=`#ifdef USE_ENVMAP +}`,LAt=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -741,7 +741,7 @@ vec4 LinearTosRGB( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`,LAt=`#ifdef USE_ENVMAP +#endif`,PAt=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; #ifdef ENVMAP_TYPE_CUBE @@ -750,7 +750,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`,PAt=`#ifdef USE_ENVMAP +#endif`,UAt=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS @@ -761,7 +761,7 @@ vec4 LinearTosRGB( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`,UAt=`#ifdef USE_ENVMAP +#endif`,FAt=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif @@ -772,7 +772,7 @@ vec4 LinearTosRGB( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`,FAt=`#ifdef USE_ENVMAP +#endif`,BAt=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -789,18 +789,18 @@ vec4 LinearTosRGB( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`,BAt=`#ifdef USE_FOG - vFogDepth = - mvPosition.z; #endif`,GAt=`#ifdef USE_FOG - varying float vFogDepth; + vFogDepth = - mvPosition.z; #endif`,VAt=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,zAt=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,zAt=`#ifdef USE_FOG +#endif`,HAt=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -809,7 +809,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`,HAt=`#ifdef USE_GRADIENTMAP +#endif`,qAt=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -821,16 +821,16 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif -}`,qAt=`#ifdef USE_LIGHTMAP +}`,YAt=`#ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; reflectedLight.indirectDiffuse += lightMapIrradiance; -#endif`,YAt=`#ifdef USE_LIGHTMAP +#endif`,$At=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`,$At=`LambertMaterial material; +#endif`,WAt=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,WAt=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,KAt=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; @@ -844,7 +844,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,KAt=`uniform bool receiveShadow; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,jAt=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; @@ -967,7 +967,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`,jAt=`#ifdef USE_ENVMAP +#endif`,QAt=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -1000,8 +1000,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi #endif } #endif -#endif`,QAt=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,XAt=`varying vec3 vViewPosition; +#endif`,XAt=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,ZAt=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -1013,11 +1013,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,ZAt=`BlinnPhongMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,JAt=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`,JAt=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,eNt=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -1034,7 +1034,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,eNt=`PhysicalMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,tNt=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -1117,7 +1117,7 @@ material.roughness = min( material.roughness, 1.0 ); material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,tNt=`struct PhysicalMaterial { +#endif`,nNt=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -1417,7 +1417,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,nNt=` +}`,iNt=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); @@ -1532,7 +1532,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,iNt=`#if defined( RE_IndirectDiffuse ) +#endif`,sNt=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -1551,25 +1551,25 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif -#endif`,sNt=`#if defined( RE_IndirectDiffuse ) +#endif`,rNt=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,rNt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) - gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; #endif`,oNt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) + gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,aNt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`,aNt=`#ifdef USE_LOGDEPTHBUF +#endif`,lNt=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT varying float vFragDepth; varying float vIsPerspective; #else uniform float logDepthBufFC; #endif -#endif`,lNt=`#ifdef USE_LOGDEPTHBUF +#endif`,cNt=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); @@ -1579,16 +1579,16 @@ IncidentLight directLight; gl_Position.z *= gl_Position.w; } #endif -#endif`,cNt=`#ifdef USE_MAP +#endif`,dNt=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); #endif diffuseColor *= sampledDiffuseColor; -#endif`,dNt=`#ifdef USE_MAP +#endif`,uNt=`#ifdef USE_MAP uniform sampler2D map; -#endif`,uNt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`,pNt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else @@ -1600,7 +1600,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,pNt=`#if defined( USE_POINTS_UV ) +#endif`,_Nt=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) @@ -1612,13 +1612,13 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`,_Nt=`float metalnessFactor = metalness; +#endif`,hNt=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; -#endif`,hNt=`#ifdef USE_METALNESSMAP +#endif`,fNt=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`,fNt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) +#endif`,mNt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -1627,7 +1627,7 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`,mNt=`#ifdef USE_MORPHNORMALS +#endif`,gNt=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1639,7 +1639,7 @@ IncidentLight directLight; objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; #endif -#endif`,gNt=`#ifdef USE_MORPHTARGETS +#endif`,bNt=`#ifdef USE_MORPHTARGETS uniform float morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -1659,7 +1659,7 @@ IncidentLight directLight; uniform float morphTargetInfluences[ 4 ]; #endif #endif -#endif`,bNt=`#ifdef USE_MORPHTARGETS +#endif`,ENt=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1677,7 +1677,7 @@ IncidentLight directLight; transformed += morphTarget7 * morphTargetInfluences[ 7 ]; #endif #endif -#endif`,ENt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`,yNt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); @@ -1718,7 +1718,7 @@ IncidentLight directLight; tbn2[1] *= faceDirection; #endif #endif -vec3 nonPerturbedNormal = normal;`,yNt=`#ifdef USE_NORMALMAP_OBJECTSPACE +vec3 nonPerturbedNormal = normal;`,vNt=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -1733,12 +1733,6 @@ vec3 nonPerturbedNormal = normal;`,yNt=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,vNt=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif #endif`,SNt=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT @@ -1746,12 +1740,18 @@ vec3 nonPerturbedNormal = normal;`,yNt=`#ifdef USE_NORMALMAP_OBJECTSPACE varying vec3 vBitangent; #endif #endif`,TNt=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,xNt=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`,xNt=`#ifdef USE_NORMALMAP +#endif`,CNt=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -1773,13 +1773,13 @@ vec3 nonPerturbedNormal = normal;`,yNt=`#ifdef USE_NORMALMAP_OBJECTSPACE float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } -#endif`,CNt=`#ifdef USE_CLEARCOAT +#endif`,wNt=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,wNt=`#ifdef USE_CLEARCOAT_NORMALMAP +#endif`,RNt=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,RNt=`#ifdef USE_CLEARCOATMAP +#endif`,ANt=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP @@ -1788,18 +1788,18 @@ vec3 nonPerturbedNormal = normal;`,yNt=`#ifdef USE_NORMALMAP_OBJECTSPACE #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; -#endif`,ANt=`#ifdef USE_IRIDESCENCEMAP +#endif`,NNt=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`,NNt=`#ifdef OPAQUE +#endif`,ONt=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,ONt=`vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,INt=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -1840,9 +1840,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); -}`,INt=`#ifdef PREMULTIPLIED_ALPHA +}`,MNt=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`,MNt=`vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`,DNt=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif @@ -1850,22 +1850,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`,kNt=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,kNt=`#ifdef DITHERING +#endif`,LNt=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`,LNt=`float roughnessFactor = roughness; +#endif`,PNt=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; -#endif`,PNt=`#ifdef USE_ROUGHNESSMAP +#endif`,UNt=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`,UNt=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,FNt=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 @@ -2042,7 +2042,7 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } -#endif`,FNt=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,BNt=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif @@ -2080,7 +2080,7 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`,BNt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) +#endif`,GNt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif @@ -2112,7 +2112,7 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end -#endif`,GNt=`float getShadowMask() { +#endif`,VNt=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -2144,12 +2144,12 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING #endif #endif return shadow; -}`,VNt=`#ifdef USE_SKINNING +}`,zNt=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,zNt=`#ifdef USE_SKINNING +#endif`,HNt=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -2164,7 +2164,7 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } -#endif`,HNt=`#ifdef USE_SKINNING +#endif`,qNt=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -2172,7 +2172,7 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,qNt=`#ifdef USE_SKINNING +#endif`,YNt=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -2183,17 +2183,17 @@ gl_Position = projectionMatrix * mvPosition;`,DNt=`#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`,YNt=`float specularStrength; +#endif`,$Nt=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`,$Nt=`#ifdef USE_SPECULARMAP +#endif`,WNt=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`,WNt=`#if defined( TONE_MAPPING ) +#endif`,KNt=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,KNt=`#ifndef saturate +#endif`,jNt=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -2229,7 +2229,7 @@ vec3 ACESFilmicToneMapping( vec3 color ) { color = ACESOutputMat * color; return saturate( color ); } -vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`,QNt=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; @@ -2250,7 +2250,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMIS material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,QNt=`#ifdef USE_TRANSMISSION +#endif`,XNt=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -2356,7 +2356,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMIS float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } -#endif`,XNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,ZNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2426,7 +2426,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,ZNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,JNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2520,7 +2520,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,JNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,eOt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP @@ -2591,7 +2591,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMIS #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,eOt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 +#endif`,tOt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; @@ -2600,12 +2600,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,jNt=`#ifdef USE_TRANSMIS worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; -#endif`;const tOt=`varying vec2 vUv; +#endif`;const nOt=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,nOt=`uniform sampler2D t2D; +}`,iOt=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { @@ -2617,14 +2617,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,iOt=`varying vec3 vWorldDirection; +}`,sOt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,sOt=`#ifdef ENVMAP_TYPE_CUBE +}`,rOt=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; @@ -2646,14 +2646,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,rOt=`varying vec3 vWorldDirection; +}`,oOt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,oOt=`uniform samplerCube tCube; +}`,aOt=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; @@ -2663,7 +2663,7 @@ void main() { gl_FragColor.a *= opacity; #include #include -}`,aOt=`#include +}`,lOt=`#include #include #include #include @@ -2689,7 +2689,7 @@ void main() { #include #include vHighPrecisionZW = gl_Position.zw; -}`,lOt=`#if DEPTH_PACKING == 3200 +}`,cOt=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include @@ -2719,7 +2719,7 @@ void main() { #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif -}`,cOt=`#define DISTANCE +}`,dOt=`#define DISTANCE varying vec3 vWorldPosition; #include #include @@ -2745,7 +2745,7 @@ void main() { #include #include vWorldPosition = worldPosition.xyz; -}`,dOt=`#define DISTANCE +}`,uOt=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; @@ -2769,13 +2769,13 @@ void main () { dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); -}`,uOt=`varying vec3 vWorldDirection; +}`,pOt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include -}`,pOt=`uniform sampler2D tEquirect; +}`,_Ot=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { @@ -2784,7 +2784,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include -}`,_Ot=`uniform float scale; +}`,hOt=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include @@ -2805,7 +2805,7 @@ void main() { #include #include #include -}`,hOt=`uniform vec3 diffuse; +}`,fOt=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; @@ -2833,7 +2833,7 @@ void main() { #include #include #include -}`,fOt=`#include +}`,mOt=`#include #include #include #include @@ -2864,7 +2864,7 @@ void main() { #include #include #include -}`,mOt=`uniform vec3 diffuse; +}`,gOt=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; @@ -2912,7 +2912,7 @@ void main() { #include #include #include -}`,gOt=`#define LAMBERT +}`,bOt=`#define LAMBERT varying vec3 vViewPosition; #include #include @@ -2950,7 +2950,7 @@ void main() { #include #include #include -}`,bOt=`#define LAMBERT +}`,EOt=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3007,7 +3007,7 @@ void main() { #include #include #include -}`,EOt=`#define MATCAP +}`,yOt=`#define MATCAP varying vec3 vViewPosition; #include #include @@ -3040,7 +3040,7 @@ void main() { #include #include vViewPosition = - mvPosition.xyz; -}`,yOt=`#define MATCAP +}`,vOt=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; @@ -3086,7 +3086,7 @@ void main() { #include #include #include -}`,vOt=`#define NORMAL +}`,SOt=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif @@ -3118,7 +3118,7 @@ void main() { #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif -}`,SOt=`#define NORMAL +}`,TOt=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; @@ -3139,7 +3139,7 @@ void main() { #ifdef OPAQUE gl_FragColor.a = 1.0; #endif -}`,TOt=`#define PHONG +}`,xOt=`#define PHONG varying vec3 vViewPosition; #include #include @@ -3177,7 +3177,7 @@ void main() { #include #include #include -}`,xOt=`#define PHONG +}`,COt=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; @@ -3236,7 +3236,7 @@ void main() { #include #include #include -}`,COt=`#define STANDARD +}`,wOt=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; @@ -3278,7 +3278,7 @@ void main() { #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif -}`,wOt=`#define STANDARD +}`,ROt=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR @@ -3400,7 +3400,7 @@ void main() { #include #include #include -}`,ROt=`#define TOON +}`,AOt=`#define TOON varying vec3 vViewPosition; #include #include @@ -3436,7 +3436,7 @@ void main() { #include #include #include -}`,AOt=`#define TOON +}`,NOt=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3489,7 +3489,7 @@ void main() { #include #include #include -}`,NOt=`uniform float size; +}`,OOt=`uniform float size; uniform float scale; #include #include @@ -3519,7 +3519,7 @@ void main() { #include #include #include -}`,OOt=`uniform vec3 diffuse; +}`,IOt=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3544,7 +3544,7 @@ void main() { #include #include #include -}`,IOt=`#include +}`,MOt=`#include #include #include #include @@ -3566,7 +3566,7 @@ void main() { #include #include #include -}`,MOt=`uniform vec3 color; +}`,DOt=`uniform vec3 color; uniform float opacity; #include #include @@ -3582,7 +3582,7 @@ void main() { #include #include #include -}`,DOt=`uniform float rotation; +}`,kOt=`uniform float rotation; uniform vec2 center; #include #include @@ -3608,7 +3608,7 @@ void main() { #include #include #include -}`,kOt=`uniform vec3 diffuse; +}`,LOt=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3633,7 +3633,7 @@ void main() { #include #include #include -}`,Tt={alphahash_fragment:nAt,alphahash_pars_fragment:iAt,alphamap_fragment:sAt,alphamap_pars_fragment:rAt,alphatest_fragment:oAt,alphatest_pars_fragment:aAt,aomap_fragment:lAt,aomap_pars_fragment:cAt,batching_pars_vertex:dAt,batching_vertex:uAt,begin_vertex:pAt,beginnormal_vertex:_At,bsdfs:hAt,iridescence_fragment:fAt,bumpmap_pars_fragment:mAt,clipping_planes_fragment:gAt,clipping_planes_pars_fragment:bAt,clipping_planes_pars_vertex:EAt,clipping_planes_vertex:yAt,color_fragment:vAt,color_pars_fragment:SAt,color_pars_vertex:TAt,color_vertex:xAt,common:CAt,cube_uv_reflection_fragment:wAt,defaultnormal_vertex:RAt,displacementmap_pars_vertex:AAt,displacementmap_vertex:NAt,emissivemap_fragment:OAt,emissivemap_pars_fragment:IAt,colorspace_fragment:MAt,colorspace_pars_fragment:DAt,envmap_fragment:kAt,envmap_common_pars_fragment:LAt,envmap_pars_fragment:PAt,envmap_pars_vertex:UAt,envmap_physical_pars_fragment:jAt,envmap_vertex:FAt,fog_vertex:BAt,fog_pars_vertex:GAt,fog_fragment:VAt,fog_pars_fragment:zAt,gradientmap_pars_fragment:HAt,lightmap_fragment:qAt,lightmap_pars_fragment:YAt,lights_lambert_fragment:$At,lights_lambert_pars_fragment:WAt,lights_pars_begin:KAt,lights_toon_fragment:QAt,lights_toon_pars_fragment:XAt,lights_phong_fragment:ZAt,lights_phong_pars_fragment:JAt,lights_physical_fragment:eNt,lights_physical_pars_fragment:tNt,lights_fragment_begin:nNt,lights_fragment_maps:iNt,lights_fragment_end:sNt,logdepthbuf_fragment:rNt,logdepthbuf_pars_fragment:oNt,logdepthbuf_pars_vertex:aNt,logdepthbuf_vertex:lNt,map_fragment:cNt,map_pars_fragment:dNt,map_particle_fragment:uNt,map_particle_pars_fragment:pNt,metalnessmap_fragment:_Nt,metalnessmap_pars_fragment:hNt,morphcolor_vertex:fNt,morphnormal_vertex:mNt,morphtarget_pars_vertex:gNt,morphtarget_vertex:bNt,normal_fragment_begin:ENt,normal_fragment_maps:yNt,normal_pars_fragment:vNt,normal_pars_vertex:SNt,normal_vertex:TNt,normalmap_pars_fragment:xNt,clearcoat_normal_fragment_begin:CNt,clearcoat_normal_fragment_maps:wNt,clearcoat_pars_fragment:RNt,iridescence_pars_fragment:ANt,opaque_fragment:NNt,packing:ONt,premultiplied_alpha_fragment:INt,project_vertex:MNt,dithering_fragment:DNt,dithering_pars_fragment:kNt,roughnessmap_fragment:LNt,roughnessmap_pars_fragment:PNt,shadowmap_pars_fragment:UNt,shadowmap_pars_vertex:FNt,shadowmap_vertex:BNt,shadowmask_pars_fragment:GNt,skinbase_vertex:VNt,skinning_pars_vertex:zNt,skinning_vertex:HNt,skinnormal_vertex:qNt,specularmap_fragment:YNt,specularmap_pars_fragment:$Nt,tonemapping_fragment:WNt,tonemapping_pars_fragment:KNt,transmission_fragment:jNt,transmission_pars_fragment:QNt,uv_pars_fragment:XNt,uv_pars_vertex:ZNt,uv_vertex:JNt,worldpos_vertex:eOt,background_vert:tOt,background_frag:nOt,backgroundCube_vert:iOt,backgroundCube_frag:sOt,cube_vert:rOt,cube_frag:oOt,depth_vert:aOt,depth_frag:lOt,distanceRGBA_vert:cOt,distanceRGBA_frag:dOt,equirect_vert:uOt,equirect_frag:pOt,linedashed_vert:_Ot,linedashed_frag:hOt,meshbasic_vert:fOt,meshbasic_frag:mOt,meshlambert_vert:gOt,meshlambert_frag:bOt,meshmatcap_vert:EOt,meshmatcap_frag:yOt,meshnormal_vert:vOt,meshnormal_frag:SOt,meshphong_vert:TOt,meshphong_frag:xOt,meshphysical_vert:COt,meshphysical_frag:wOt,meshtoon_vert:ROt,meshtoon_frag:AOt,points_vert:NOt,points_frag:OOt,shadow_vert:IOt,shadow_frag:MOt,sprite_vert:DOt,sprite_frag:kOt},je={common:{diffuse:{value:new gt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new wt},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new wt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new wt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new wt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new wt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new wt},normalScale:{value:new It(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new wt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new wt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new wt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new wt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new gt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new gt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0},uvTransform:{value:new wt}},sprite:{diffuse:{value:new gt(16777215)},opacity:{value:1},center:{value:new It(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new wt},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0}}},Zi={basic:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.fog]),vertexShader:Tt.meshbasic_vert,fragmentShader:Tt.meshbasic_frag},lambert:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.fog,je.lights,{emissive:{value:new gt(0)}}]),vertexShader:Tt.meshlambert_vert,fragmentShader:Tt.meshlambert_frag},phong:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.fog,je.lights,{emissive:{value:new gt(0)},specular:{value:new gt(1118481)},shininess:{value:30}}]),vertexShader:Tt.meshphong_vert,fragmentShader:Tt.meshphong_frag},standard:{uniforms:Vn([je.common,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.roughnessmap,je.metalnessmap,je.fog,je.lights,{emissive:{value:new gt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Tt.meshphysical_vert,fragmentShader:Tt.meshphysical_frag},toon:{uniforms:Vn([je.common,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.gradientmap,je.fog,je.lights,{emissive:{value:new gt(0)}}]),vertexShader:Tt.meshtoon_vert,fragmentShader:Tt.meshtoon_frag},matcap:{uniforms:Vn([je.common,je.bumpmap,je.normalmap,je.displacementmap,je.fog,{matcap:{value:null}}]),vertexShader:Tt.meshmatcap_vert,fragmentShader:Tt.meshmatcap_frag},points:{uniforms:Vn([je.points,je.fog]),vertexShader:Tt.points_vert,fragmentShader:Tt.points_frag},dashed:{uniforms:Vn([je.common,je.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Tt.linedashed_vert,fragmentShader:Tt.linedashed_frag},depth:{uniforms:Vn([je.common,je.displacementmap]),vertexShader:Tt.depth_vert,fragmentShader:Tt.depth_frag},normal:{uniforms:Vn([je.common,je.bumpmap,je.normalmap,je.displacementmap,{opacity:{value:1}}]),vertexShader:Tt.meshnormal_vert,fragmentShader:Tt.meshnormal_frag},sprite:{uniforms:Vn([je.sprite,je.fog]),vertexShader:Tt.sprite_vert,fragmentShader:Tt.sprite_frag},background:{uniforms:{uvTransform:{value:new wt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Tt.background_vert,fragmentShader:Tt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Tt.backgroundCube_vert,fragmentShader:Tt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Tt.cube_vert,fragmentShader:Tt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Tt.equirect_vert,fragmentShader:Tt.equirect_frag},distanceRGBA:{uniforms:Vn([je.common,je.displacementmap,{referencePosition:{value:new _e},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Tt.distanceRGBA_vert,fragmentShader:Tt.distanceRGBA_frag},shadow:{uniforms:Vn([je.lights,je.fog,{color:{value:new gt(0)},opacity:{value:1}}]),vertexShader:Tt.shadow_vert,fragmentShader:Tt.shadow_frag}};Zi.physical={uniforms:Vn([Zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new wt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new wt},clearcoatNormalScale:{value:new It(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new wt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new wt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new wt},sheen:{value:0},sheenColor:{value:new gt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new wt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new wt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new wt},transmissionSamplerSize:{value:new It},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new wt},attenuationDistance:{value:0},attenuationColor:{value:new gt(0)},specularColor:{value:new gt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new wt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new wt},anisotropyVector:{value:new It},anisotropyMap:{value:null},anisotropyMapTransform:{value:new wt}}]),vertexShader:Tt.meshphysical_vert,fragmentShader:Tt.meshphysical_frag};const md={r:0,b:0,g:0};function LOt(n,e,t,i,s,r,o){const a=new gt(0);let l=r===!0?0:1,u,d,h=null,f=0,_=null;function m(b,g){let y=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?t:e).get(v)),v===null?E(a,l):v&&v.isColor&&(E(v,1),y=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?i.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(n.autoClear||y)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),v&&(v.isCubeTexture||v.mapping===lp)?(d===void 0&&(d=new Hn(new Cr(1,1,1),new go({name:"BackgroundCubeMaterial",uniforms:Na(Zi.backgroundCube.uniforms),vertexShader:Zi.backgroundCube.vertexShader,fragmentShader:Zi.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(C,T,O){this.matrixWorld.copyPosition(O.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(d)),d.material.uniforms.envMap.value=v,d.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Gt.getTransfer(v.colorSpace)!==Zt,(h!==v||f!==v.version||_!==n.toneMapping)&&(d.material.needsUpdate=!0,h=v,f=v.version,_=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null)):v&&v.isTexture&&(u===void 0&&(u=new Hn(new ty(2,2),new go({name:"BackgroundMaterial",uniforms:Na(Zi.background.uniforms),vertexShader:Zi.background.vertexShader,fragmentShader:Zi.background.fragmentShader,side:Ys,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(u)),u.material.uniforms.t2D.value=v,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Gt.getTransfer(v.colorSpace)!==Zt,v.matrixAutoUpdate===!0&&v.updateMatrix(),u.material.uniforms.uvTransform.value.copy(v.matrix),(h!==v||f!==v.version||_!==n.toneMapping)&&(u.material.needsUpdate=!0,h=v,f=v.version,_=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null))}function E(b,g){b.getRGB(md,dI(n)),i.buffers.color.setClear(md.r,md.g,md.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),l=g,E(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,E(a,l)},render:m}}function POt(n,e,t,i){const s=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},l=b(null);let u=l,d=!1;function h(L,$,H,U,Q){let J=!1;if(o){const j=E(U,H,$);u!==j&&(u=j,_(u.object)),J=g(L,U,H,Q),J&&y(L,U,H,Q)}else{const j=$.wireframe===!0;(u.geometry!==U.id||u.program!==H.id||u.wireframe!==j)&&(u.geometry=U.id,u.program=H.id,u.wireframe=j,J=!0)}Q!==null&&t.update(Q,n.ELEMENT_ARRAY_BUFFER),(J||d)&&(d=!1,k(L,$,H,U),Q!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Q).buffer))}function f(){return i.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function _(L){return i.isWebGL2?n.bindVertexArray(L):r.bindVertexArrayOES(L)}function m(L){return i.isWebGL2?n.deleteVertexArray(L):r.deleteVertexArrayOES(L)}function E(L,$,H){const U=H.wireframe===!0;let Q=a[L.id];Q===void 0&&(Q={},a[L.id]=Q);let J=Q[$.id];J===void 0&&(J={},Q[$.id]=J);let j=J[U];return j===void 0&&(j=b(f()),J[U]=j),j}function b(L){const $=[],H=[],U=[];for(let Q=0;Q=0){const Ee=Q[ve];let xe=J[ve];if(xe===void 0&&(ve==="instanceMatrix"&&L.instanceMatrix&&(xe=L.instanceMatrix),ve==="instanceColor"&&L.instanceColor&&(xe=L.instanceColor)),Ee===void 0||Ee.attribute!==xe||xe&&Ee.data!==xe.data)return!0;j++}return u.attributesNum!==j||u.index!==U}function y(L,$,H,U){const Q={},J=$.attributes;let j=0;const ae=H.getAttributes();for(const ve in ae)if(ae[ve].location>=0){let Ee=J[ve];Ee===void 0&&(ve==="instanceMatrix"&&L.instanceMatrix&&(Ee=L.instanceMatrix),ve==="instanceColor"&&L.instanceColor&&(Ee=L.instanceColor));const xe={};xe.attribute=Ee,Ee&&Ee.data&&(xe.data=Ee.data),Q[ve]=xe,j++}u.attributes=Q,u.attributesNum=j,u.index=U}function v(){const L=u.newAttributes;for(let $=0,H=L.length;$=0){let ee=Q[ae];if(ee===void 0&&(ae==="instanceMatrix"&&L.instanceMatrix&&(ee=L.instanceMatrix),ae==="instanceColor"&&L.instanceColor&&(ee=L.instanceColor)),ee!==void 0){const Ee=ee.normalized,xe=ee.itemSize,Me=t.get(ee);if(Me===void 0)continue;const Z=Me.buffer,ye=Me.type,fe=Me.bytesPerElement,Ne=i.isWebGL2===!0&&(ye===n.INT||ye===n.UNSIGNED_INT||ee.gpuType===$O);if(ee.isInterleavedBufferAttribute){const Le=ee.data,D=Le.stride,q=ee.offset;if(Le.isInstancedInterleavedBuffer){for(let K=0;K0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";O="mediump"}return O==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=r(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const u=o||e.has("WEBGL_draw_buffers"),d=t.logarithmicDepthBuffer===!0,h=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),_=n.getParameter(n.MAX_TEXTURE_SIZE),m=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),E=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),y=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),v=f>0,S=o||e.has("OES_texture_float"),C=v&&S,T=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:d,maxTextures:h,maxVertexTextures:f,maxTextureSize:_,maxCubemapSize:m,maxAttributes:E,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:C,maxSamples:T}}function BOt(n){const e=this;let t=null,i=0,s=!1,r=!1;const o=new Yr,a=new wt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const _=h.length!==0||f||i!==0||s;return s=f,i=h.length,_},this.beginShadows=function(){r=!0,d(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,f){t=d(h,f,0)},this.setState=function(h,f,_){const m=h.clippingPlanes,E=h.clipIntersection,b=h.clipShadows,g=n.get(h);if(!s||m===null||m.length===0||r&&!b)r?d(null):u();else{const y=r?0:i,v=y*4;let S=g.clippingState||null;l.value=S,S=d(m,f,v,_);for(let C=0;C!==v;++C)S[C]=t[C];g.clippingState=S,this.numIntersection=E?this.numPlanes:0,this.numPlanes+=y}};function u(){l.value!==t&&(l.value=t,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function d(h,f,_,m){const E=h!==null?h.length:0;let b=null;if(E!==0){if(b=l.value,m!==!0||b===null){const g=_+E*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length0){const u=new ZRt(l.height/2);return u.fromEquirectangularTexture(n,o),e.set(o,u),o.addEventListener("dispose",s),t(u.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class ny extends uI{constructor(e=-1,t=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,i,s,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+t,l=s-t;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=u*this.view.offsetX,o=r+u*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const Xo=4,z1=[.125,.215,.35,.446,.526,.582],Zr=20,rg=new ny,H1=new gt;let og=null,ag=0,lg=0;const $r=(1+Math.sqrt(5))/2,Yo=1/$r,q1=[new _e(1,1,1),new _e(-1,1,1),new _e(1,1,-1),new _e(-1,1,-1),new _e(0,$r,Yo),new _e(0,$r,-Yo),new _e(Yo,0,$r),new _e(-Yo,0,$r),new _e($r,Yo,0),new _e(-$r,Yo,0)];class Y1{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,s=100){og=this._renderer.getRenderTarget(),ag=this._renderer.getActiveCubeFace(),lg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=K1(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=W1(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?v:0,v,v),d.setRenderTarget(s),E&&d.render(m,a),d.render(e,a)}m.geometry.dispose(),m.material.dispose(),d.toneMapping=f,d.autoClear=h,e.background=b}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===Ta||e.mapping===xa;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=K1()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=W1());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Hn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;gd(t,0,0,3*l,2*l),i.setRenderTarget(t),i.render(o,rg)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;for(let s=1;sZr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Zr}`);const g=[];let y=0;for(let O=0;Ov-Xo?s-v+Xo:0),T=4*(this._cubeSize-S);gd(t,C,T,3*S,2*S),l.setRenderTarget(t),l.render(h,rg)}}function VOt(n){const e=[],t=[],i=[];let s=n;const r=n-Xo+1+z1.length;for(let o=0;on-Xo?l=z1[o-n+Xo-1]:o===0&&(l=0),i.push(l);const u=1/(a-2),d=-u,h=1+u,f=[d,d,h,d,h,h,d,d,h,h,d,h],_=6,m=6,E=3,b=2,g=1,y=new Float32Array(E*m*_),v=new Float32Array(b*m*_),S=new Float32Array(g*m*_);for(let T=0;T<_;T++){const O=T%3*2/3-1,k=T>2?0:-1,x=[O,k,0,O+2/3,k,0,O+2/3,k+1,0,O,k,0,O+2/3,k+1,0,O,k+1,0];y.set(x,E*m*T),v.set(f,b*m*T);const I=[T,T,T,T,T,T];S.set(I,g*m*T)}const C=new ms;C.setAttribute("position",new Yn(y,E)),C.setAttribute("uv",new Yn(v,b)),C.setAttribute("faceIndex",new Yn(S,g)),e.push(C),s>Xo&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function $1(n,e,t){const i=new mo(n,e,t);return i.texture.mapping=lp,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function gd(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function zOt(n,e,t){const i=new Float32Array(Zr),s=new _e(0,1,0);return new go({name:"SphericalGaussianBlur",defines:{n:Zr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:iy(),fragmentShader:` +}`,Tt={alphahash_fragment:iAt,alphahash_pars_fragment:sAt,alphamap_fragment:rAt,alphamap_pars_fragment:oAt,alphatest_fragment:aAt,alphatest_pars_fragment:lAt,aomap_fragment:cAt,aomap_pars_fragment:dAt,batching_pars_vertex:uAt,batching_vertex:pAt,begin_vertex:_At,beginnormal_vertex:hAt,bsdfs:fAt,iridescence_fragment:mAt,bumpmap_pars_fragment:gAt,clipping_planes_fragment:bAt,clipping_planes_pars_fragment:EAt,clipping_planes_pars_vertex:yAt,clipping_planes_vertex:vAt,color_fragment:SAt,color_pars_fragment:TAt,color_pars_vertex:xAt,color_vertex:CAt,common:wAt,cube_uv_reflection_fragment:RAt,defaultnormal_vertex:AAt,displacementmap_pars_vertex:NAt,displacementmap_vertex:OAt,emissivemap_fragment:IAt,emissivemap_pars_fragment:MAt,colorspace_fragment:DAt,colorspace_pars_fragment:kAt,envmap_fragment:LAt,envmap_common_pars_fragment:PAt,envmap_pars_fragment:UAt,envmap_pars_vertex:FAt,envmap_physical_pars_fragment:QAt,envmap_vertex:BAt,fog_vertex:GAt,fog_pars_vertex:VAt,fog_fragment:zAt,fog_pars_fragment:HAt,gradientmap_pars_fragment:qAt,lightmap_fragment:YAt,lightmap_pars_fragment:$At,lights_lambert_fragment:WAt,lights_lambert_pars_fragment:KAt,lights_pars_begin:jAt,lights_toon_fragment:XAt,lights_toon_pars_fragment:ZAt,lights_phong_fragment:JAt,lights_phong_pars_fragment:eNt,lights_physical_fragment:tNt,lights_physical_pars_fragment:nNt,lights_fragment_begin:iNt,lights_fragment_maps:sNt,lights_fragment_end:rNt,logdepthbuf_fragment:oNt,logdepthbuf_pars_fragment:aNt,logdepthbuf_pars_vertex:lNt,logdepthbuf_vertex:cNt,map_fragment:dNt,map_pars_fragment:uNt,map_particle_fragment:pNt,map_particle_pars_fragment:_Nt,metalnessmap_fragment:hNt,metalnessmap_pars_fragment:fNt,morphcolor_vertex:mNt,morphnormal_vertex:gNt,morphtarget_pars_vertex:bNt,morphtarget_vertex:ENt,normal_fragment_begin:yNt,normal_fragment_maps:vNt,normal_pars_fragment:SNt,normal_pars_vertex:TNt,normal_vertex:xNt,normalmap_pars_fragment:CNt,clearcoat_normal_fragment_begin:wNt,clearcoat_normal_fragment_maps:RNt,clearcoat_pars_fragment:ANt,iridescence_pars_fragment:NNt,opaque_fragment:ONt,packing:INt,premultiplied_alpha_fragment:MNt,project_vertex:DNt,dithering_fragment:kNt,dithering_pars_fragment:LNt,roughnessmap_fragment:PNt,roughnessmap_pars_fragment:UNt,shadowmap_pars_fragment:FNt,shadowmap_pars_vertex:BNt,shadowmap_vertex:GNt,shadowmask_pars_fragment:VNt,skinbase_vertex:zNt,skinning_pars_vertex:HNt,skinning_vertex:qNt,skinnormal_vertex:YNt,specularmap_fragment:$Nt,specularmap_pars_fragment:WNt,tonemapping_fragment:KNt,tonemapping_pars_fragment:jNt,transmission_fragment:QNt,transmission_pars_fragment:XNt,uv_pars_fragment:ZNt,uv_pars_vertex:JNt,uv_vertex:eOt,worldpos_vertex:tOt,background_vert:nOt,background_frag:iOt,backgroundCube_vert:sOt,backgroundCube_frag:rOt,cube_vert:oOt,cube_frag:aOt,depth_vert:lOt,depth_frag:cOt,distanceRGBA_vert:dOt,distanceRGBA_frag:uOt,equirect_vert:pOt,equirect_frag:_Ot,linedashed_vert:hOt,linedashed_frag:fOt,meshbasic_vert:mOt,meshbasic_frag:gOt,meshlambert_vert:bOt,meshlambert_frag:EOt,meshmatcap_vert:yOt,meshmatcap_frag:vOt,meshnormal_vert:SOt,meshnormal_frag:TOt,meshphong_vert:xOt,meshphong_frag:COt,meshphysical_vert:wOt,meshphysical_frag:ROt,meshtoon_vert:AOt,meshtoon_frag:NOt,points_vert:OOt,points_frag:IOt,shadow_vert:MOt,shadow_frag:DOt,sprite_vert:kOt,sprite_frag:LOt},je={common:{diffuse:{value:new gt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new wt},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new wt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new wt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new wt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new wt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new wt},normalScale:{value:new It(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new wt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new wt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new wt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new wt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new gt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new gt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0},uvTransform:{value:new wt}},sprite:{diffuse:{value:new gt(16777215)},opacity:{value:1},center:{value:new It(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new wt},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0}}},Zi={basic:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.fog]),vertexShader:Tt.meshbasic_vert,fragmentShader:Tt.meshbasic_frag},lambert:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.fog,je.lights,{emissive:{value:new gt(0)}}]),vertexShader:Tt.meshlambert_vert,fragmentShader:Tt.meshlambert_frag},phong:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.fog,je.lights,{emissive:{value:new gt(0)},specular:{value:new gt(1118481)},shininess:{value:30}}]),vertexShader:Tt.meshphong_vert,fragmentShader:Tt.meshphong_frag},standard:{uniforms:Vn([je.common,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.roughnessmap,je.metalnessmap,je.fog,je.lights,{emissive:{value:new gt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Tt.meshphysical_vert,fragmentShader:Tt.meshphysical_frag},toon:{uniforms:Vn([je.common,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.gradientmap,je.fog,je.lights,{emissive:{value:new gt(0)}}]),vertexShader:Tt.meshtoon_vert,fragmentShader:Tt.meshtoon_frag},matcap:{uniforms:Vn([je.common,je.bumpmap,je.normalmap,je.displacementmap,je.fog,{matcap:{value:null}}]),vertexShader:Tt.meshmatcap_vert,fragmentShader:Tt.meshmatcap_frag},points:{uniforms:Vn([je.points,je.fog]),vertexShader:Tt.points_vert,fragmentShader:Tt.points_frag},dashed:{uniforms:Vn([je.common,je.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Tt.linedashed_vert,fragmentShader:Tt.linedashed_frag},depth:{uniforms:Vn([je.common,je.displacementmap]),vertexShader:Tt.depth_vert,fragmentShader:Tt.depth_frag},normal:{uniforms:Vn([je.common,je.bumpmap,je.normalmap,je.displacementmap,{opacity:{value:1}}]),vertexShader:Tt.meshnormal_vert,fragmentShader:Tt.meshnormal_frag},sprite:{uniforms:Vn([je.sprite,je.fog]),vertexShader:Tt.sprite_vert,fragmentShader:Tt.sprite_frag},background:{uniforms:{uvTransform:{value:new wt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Tt.background_vert,fragmentShader:Tt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Tt.backgroundCube_vert,fragmentShader:Tt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Tt.cube_vert,fragmentShader:Tt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Tt.equirect_vert,fragmentShader:Tt.equirect_frag},distanceRGBA:{uniforms:Vn([je.common,je.displacementmap,{referencePosition:{value:new _e},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Tt.distanceRGBA_vert,fragmentShader:Tt.distanceRGBA_frag},shadow:{uniforms:Vn([je.lights,je.fog,{color:{value:new gt(0)},opacity:{value:1}}]),vertexShader:Tt.shadow_vert,fragmentShader:Tt.shadow_frag}};Zi.physical={uniforms:Vn([Zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new wt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new wt},clearcoatNormalScale:{value:new It(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new wt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new wt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new wt},sheen:{value:0},sheenColor:{value:new gt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new wt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new wt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new wt},transmissionSamplerSize:{value:new It},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new wt},attenuationDistance:{value:0},attenuationColor:{value:new gt(0)},specularColor:{value:new gt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new wt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new wt},anisotropyVector:{value:new It},anisotropyMap:{value:null},anisotropyMapTransform:{value:new wt}}]),vertexShader:Tt.meshphysical_vert,fragmentShader:Tt.meshphysical_frag};const md={r:0,b:0,g:0};function POt(n,e,t,i,s,r,o){const a=new gt(0);let l=r===!0?0:1,u,d,h=null,f=0,_=null;function m(b,g){let y=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?t:e).get(v)),v===null?E(a,l):v&&v.isColor&&(E(v,1),y=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?i.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(n.autoClear||y)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),v&&(v.isCubeTexture||v.mapping===lp)?(d===void 0&&(d=new Hn(new Cr(1,1,1),new go({name:"BackgroundCubeMaterial",uniforms:Na(Zi.backgroundCube.uniforms),vertexShader:Zi.backgroundCube.vertexShader,fragmentShader:Zi.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(C,T,O){this.matrixWorld.copyPosition(O.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(d)),d.material.uniforms.envMap.value=v,d.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Gt.getTransfer(v.colorSpace)!==Zt,(h!==v||f!==v.version||_!==n.toneMapping)&&(d.material.needsUpdate=!0,h=v,f=v.version,_=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null)):v&&v.isTexture&&(u===void 0&&(u=new Hn(new ty(2,2),new go({name:"BackgroundMaterial",uniforms:Na(Zi.background.uniforms),vertexShader:Zi.background.vertexShader,fragmentShader:Zi.background.fragmentShader,side:Ys,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(u)),u.material.uniforms.t2D.value=v,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Gt.getTransfer(v.colorSpace)!==Zt,v.matrixAutoUpdate===!0&&v.updateMatrix(),u.material.uniforms.uvTransform.value.copy(v.matrix),(h!==v||f!==v.version||_!==n.toneMapping)&&(u.material.needsUpdate=!0,h=v,f=v.version,_=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null))}function E(b,g){b.getRGB(md,dI(n)),i.buffers.color.setClear(md.r,md.g,md.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),l=g,E(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,E(a,l)},render:m}}function UOt(n,e,t,i){const s=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},l=b(null);let u=l,d=!1;function h(L,$,H,U,Q){let J=!1;if(o){const j=E(U,H,$);u!==j&&(u=j,_(u.object)),J=g(L,U,H,Q),J&&y(L,U,H,Q)}else{const j=$.wireframe===!0;(u.geometry!==U.id||u.program!==H.id||u.wireframe!==j)&&(u.geometry=U.id,u.program=H.id,u.wireframe=j,J=!0)}Q!==null&&t.update(Q,n.ELEMENT_ARRAY_BUFFER),(J||d)&&(d=!1,k(L,$,H,U),Q!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Q).buffer))}function f(){return i.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function _(L){return i.isWebGL2?n.bindVertexArray(L):r.bindVertexArrayOES(L)}function m(L){return i.isWebGL2?n.deleteVertexArray(L):r.deleteVertexArrayOES(L)}function E(L,$,H){const U=H.wireframe===!0;let Q=a[L.id];Q===void 0&&(Q={},a[L.id]=Q);let J=Q[$.id];J===void 0&&(J={},Q[$.id]=J);let j=J[U];return j===void 0&&(j=b(f()),J[U]=j),j}function b(L){const $=[],H=[],U=[];for(let Q=0;Q=0){const Ee=Q[ve];let xe=J[ve];if(xe===void 0&&(ve==="instanceMatrix"&&L.instanceMatrix&&(xe=L.instanceMatrix),ve==="instanceColor"&&L.instanceColor&&(xe=L.instanceColor)),Ee===void 0||Ee.attribute!==xe||xe&&Ee.data!==xe.data)return!0;j++}return u.attributesNum!==j||u.index!==U}function y(L,$,H,U){const Q={},J=$.attributes;let j=0;const ae=H.getAttributes();for(const ve in ae)if(ae[ve].location>=0){let Ee=J[ve];Ee===void 0&&(ve==="instanceMatrix"&&L.instanceMatrix&&(Ee=L.instanceMatrix),ve==="instanceColor"&&L.instanceColor&&(Ee=L.instanceColor));const xe={};xe.attribute=Ee,Ee&&Ee.data&&(xe.data=Ee.data),Q[ve]=xe,j++}u.attributes=Q,u.attributesNum=j,u.index=U}function v(){const L=u.newAttributes;for(let $=0,H=L.length;$=0){let ee=Q[ae];if(ee===void 0&&(ae==="instanceMatrix"&&L.instanceMatrix&&(ee=L.instanceMatrix),ae==="instanceColor"&&L.instanceColor&&(ee=L.instanceColor)),ee!==void 0){const Ee=ee.normalized,xe=ee.itemSize,Me=t.get(ee);if(Me===void 0)continue;const Z=Me.buffer,ye=Me.type,fe=Me.bytesPerElement,Ne=i.isWebGL2===!0&&(ye===n.INT||ye===n.UNSIGNED_INT||ee.gpuType===$O);if(ee.isInterleavedBufferAttribute){const Le=ee.data,D=Le.stride,q=ee.offset;if(Le.isInstancedInterleavedBuffer){for(let K=0;K0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";O="mediump"}return O==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=r(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const u=o||e.has("WEBGL_draw_buffers"),d=t.logarithmicDepthBuffer===!0,h=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),_=n.getParameter(n.MAX_TEXTURE_SIZE),m=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),E=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),y=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),v=f>0,S=o||e.has("OES_texture_float"),C=v&&S,T=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:d,maxTextures:h,maxVertexTextures:f,maxTextureSize:_,maxCubemapSize:m,maxAttributes:E,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:C,maxSamples:T}}function GOt(n){const e=this;let t=null,i=0,s=!1,r=!1;const o=new Yr,a=new wt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const _=h.length!==0||f||i!==0||s;return s=f,i=h.length,_},this.beginShadows=function(){r=!0,d(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,f){t=d(h,f,0)},this.setState=function(h,f,_){const m=h.clippingPlanes,E=h.clipIntersection,b=h.clipShadows,g=n.get(h);if(!s||m===null||m.length===0||r&&!b)r?d(null):u();else{const y=r?0:i,v=y*4;let S=g.clippingState||null;l.value=S,S=d(m,f,v,_);for(let C=0;C!==v;++C)S[C]=t[C];g.clippingState=S,this.numIntersection=E?this.numPlanes:0,this.numPlanes+=y}};function u(){l.value!==t&&(l.value=t,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function d(h,f,_,m){const E=h!==null?h.length:0;let b=null;if(E!==0){if(b=l.value,m!==!0||b===null){const g=_+E*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length0){const u=new JRt(l.height/2);return u.fromEquirectangularTexture(n,o),e.set(o,u),o.addEventListener("dispose",s),t(u.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class ny extends uI{constructor(e=-1,t=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,i,s,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+t,l=s-t;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=u*this.view.offsetX,o=r+u*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const Xo=4,z1=[.125,.215,.35,.446,.526,.582],Zr=20,rg=new ny,H1=new gt;let og=null,ag=0,lg=0;const $r=(1+Math.sqrt(5))/2,Yo=1/$r,q1=[new _e(1,1,1),new _e(-1,1,1),new _e(1,1,-1),new _e(-1,1,-1),new _e(0,$r,Yo),new _e(0,$r,-Yo),new _e(Yo,0,$r),new _e(-Yo,0,$r),new _e($r,Yo,0),new _e(-$r,Yo,0)];class Y1{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,s=100){og=this._renderer.getRenderTarget(),ag=this._renderer.getActiveCubeFace(),lg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=K1(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=W1(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?v:0,v,v),d.setRenderTarget(s),E&&d.render(m,a),d.render(e,a)}m.geometry.dispose(),m.material.dispose(),d.toneMapping=f,d.autoClear=h,e.background=b}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===Ta||e.mapping===xa;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=K1()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=W1());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Hn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;gd(t,0,0,3*l,2*l),i.setRenderTarget(t),i.render(o,rg)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;for(let s=1;sZr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Zr}`);const g=[];let y=0;for(let O=0;Ov-Xo?s-v+Xo:0),T=4*(this._cubeSize-S);gd(t,C,T,3*S,2*S),l.setRenderTarget(t),l.render(h,rg)}}function zOt(n){const e=[],t=[],i=[];let s=n;const r=n-Xo+1+z1.length;for(let o=0;on-Xo?l=z1[o-n+Xo-1]:o===0&&(l=0),i.push(l);const u=1/(a-2),d=-u,h=1+u,f=[d,d,h,d,h,h,d,d,h,h,d,h],_=6,m=6,E=3,b=2,g=1,y=new Float32Array(E*m*_),v=new Float32Array(b*m*_),S=new Float32Array(g*m*_);for(let T=0;T<_;T++){const O=T%3*2/3-1,k=T>2?0:-1,x=[O,k,0,O+2/3,k,0,O+2/3,k+1,0,O,k,0,O+2/3,k+1,0,O,k+1,0];y.set(x,E*m*T),v.set(f,b*m*T);const I=[T,T,T,T,T,T];S.set(I,g*m*T)}const C=new ms;C.setAttribute("position",new Yn(y,E)),C.setAttribute("uv",new Yn(v,b)),C.setAttribute("faceIndex",new Yn(S,g)),e.push(C),s>Xo&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function $1(n,e,t){const i=new mo(n,e,t);return i.texture.mapping=lp,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function gd(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function HOt(n,e,t){const i=new Float32Array(Zr),s=new _e(0,1,0);return new go({name:"SphericalGaussianBlur",defines:{n:Zr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:iy(),fragmentShader:` precision mediump float; precision mediump int; @@ -3783,26 +3783,26 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function HOt(n){let e=new WeakMap,t=null;function i(a){if(a&&a.isTexture){const l=a.mapping,u=l===ob||l===ab,d=l===Ta||l===xa;if(u||d)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let h=e.get(a);return t===null&&(t=new Y1(n)),h=u?t.fromEquirectangular(a,h):t.fromCubemap(a,h),e.set(a,h),h.texture}else{if(e.has(a))return e.get(a).texture;{const h=a.image;if(u&&h&&h.height>0||d&&h&&s(h)){t===null&&(t=new Y1(n));const f=u?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",r),f.texture}else return null}}}return a}function s(a){let l=0;const u=6;for(let d=0;de.maxTextureSize&&(F=Math.ceil(I/e.maxTextureSize),I=e.maxTextureSize);const B=new Float32Array(I*F*4*E),ne=new rI(B,I,F,E);ne.type=Ps,ne.needsUpdate=!0;const L=x*4;for(let H=0;H0)return n;const s=e*t;let r=j1[s];if(r===void 0&&(r=new Float32Array(s),j1[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function mn(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t0||d&&h&&s(h)){t===null&&(t=new Y1(n));const f=u?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",r),f.texture}else return null}}}return a}function s(a){let l=0;const u=6;for(let d=0;de.maxTextureSize&&(F=Math.ceil(I/e.maxTextureSize),I=e.maxTextureSize);const B=new Float32Array(I*F*4*E),ne=new rI(B,I,F,E);ne.type=Ps,ne.needsUpdate=!0;const L=x*4;for(let H=0;H0)return n;const s=e*t;let r=j1[s];if(r===void 0&&(r=new Float32Array(s),j1[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function mn(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t":" "} ${a}: ${t[o]}`)}return i.join(` -`)}function YIt(n){const e=Gt.getPrimaries(Gt.workingColorSpace),t=Gt.getPrimaries(n);let i;switch(e===t?i="":e===gu&&t===mu?i="LinearDisplayP3ToLinearSRGB":e===mu&&t===gu&&(i="LinearSRGBToLinearDisplayP3"),n){case On:case cp:return[i,"LinearTransferOETF"];case on:case ZE:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[i,"LinearTransferOETF"]}}function nw(n,e,t){const i=n.getShaderParameter(e,n.COMPILE_STATUS),s=n.getShaderInfoLog(e).trim();if(i&&s==="")return"";const r=/ERROR: 0:(\d+)/.exec(s);if(r){const o=parseInt(r[1]);return t.toUpperCase()+` +`)}function $It(n){const e=Gt.getPrimaries(Gt.workingColorSpace),t=Gt.getPrimaries(n);let i;switch(e===t?i="":e===gu&&t===mu?i="LinearDisplayP3ToLinearSRGB":e===mu&&t===gu&&(i="LinearSRGBToLinearDisplayP3"),n){case On:case cp:return[i,"LinearTransferOETF"];case on:case ZE:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[i,"LinearTransferOETF"]}}function nw(n,e,t){const i=n.getShaderParameter(e,n.COMPILE_STATUS),s=n.getShaderInfoLog(e).trim();if(i&&s==="")return"";const r=/ERROR: 0:(\d+)/.exec(s);if(r){const o=parseInt(r[1]);return t.toUpperCase()+` `+s+` -`+qIt(n.getShaderSource(e),o)}else return s}function $It(n,e){const t=YIt(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function WIt(n,e){let t;switch(e){case Hwt:t="Linear";break;case qwt:t="Reinhard";break;case Ywt:t="OptimizedCineon";break;case $wt:t="ACESFilmic";break;case Wwt:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function KIt(n){return[n.extensionDerivatives||n.envMapCubeUVHeight||n.bumpMap||n.normalMapTangentSpace||n.clearcoatNormalMap||n.flatShading||n.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(n.extensionFragDepth||n.logarithmicDepthBuffer)&&n.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",n.extensionDrawBuffers&&n.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(n.extensionShaderTextureLOD||n.envMap||n.transmission)&&n.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Rl).join(` -`)}function jIt(n){const e=[];for(const t in n){const i=n[t];i!==!1&&e.push("#define "+t+" "+i)}return e.join(` -`)}function QIt(n,e){const t={},i=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let s=0;s/gm;function _b(n){return n.replace(XIt,JIt)}const ZIt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function JIt(n,e){let t=Tt[e];if(t===void 0){const i=ZIt.get(e);if(i!==void 0)t=Tt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return _b(t)}const eMt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function rw(n){return n.replace(eMt,tMt)}function tMt(n,e,t,i){let s="";for(let r=parseInt(e);r/gm;function _b(n){return n.replace(ZIt,eMt)}const JIt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function eMt(n,e){let t=Tt[e];if(t===void 0){const i=JIt.get(e);if(i!==void 0)t=Tt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return _b(t)}const tMt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function rw(n){return n.replace(tMt,nMt)}function nMt(n,e,t,i){let s="";for(let r=parseInt(e);r0&&(b+=` `),g=[_,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m].filter(Rl).join(` `),g.length>0&&(g+=` `)):(b=[ow(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m,t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+d:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors&&t.isWebGL2?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` `].filter(Rl).join(` -`),g=[_,ow(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.envMap?"#define "+d:"",t.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Tr?"#define TONE_MAPPING":"",t.toneMapping!==Tr?Tt.tonemapping_pars_fragment:"",t.toneMapping!==Tr?WIt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",Tt.colorspace_pars_fragment,$It("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`),g=[_,ow(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.envMap?"#define "+d:"",t.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Tr?"#define TONE_MAPPING":"",t.toneMapping!==Tr?Tt.tonemapping_pars_fragment:"",t.toneMapping!==Tr?KIt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",Tt.colorspace_pars_fragment,WIt("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` `].filter(Rl).join(` `)),o=_b(o),o=iw(o,t),o=sw(o,t),a=_b(a),a=iw(a,t),a=sw(a,t),o=rw(o),a=rw(a),t.isWebGL2&&t.isRawShaderMaterial!==!0&&(y=`#version 300 es `,b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` @@ -3813,9 +3813,9 @@ precision `+n.precision+" int;";return n.precision==="highp"?e+=` Program Info Log: `+B+` `+U+` -`+Q)}else B!==""?console.warn("THREE.WebGLProgram: Program Info Log:",B):(ne===""||L==="")&&(H=!1);H&&(F.diagnostics={runnable:$,programLog:B,vertexShader:{log:ne,prefix:b},fragmentShader:{log:L,prefix:g}})}s.deleteShader(C),s.deleteShader(T),k=new Gd(s,E),x=QIt(s,E)}let k;this.getUniforms=function(){return k===void 0&&O(this),k};let x;this.getAttributes=function(){return x===void 0&&O(this),x};let I=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return I===!1&&(I=s.getProgramParameter(E,zIt)),I},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(E),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=HIt++,this.cacheKey=e,this.usedTimes=1,this.program=E,this.vertexShader=C,this.fragmentShader=T,this}let lMt=0;class cMt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new dMt(e),t.set(e,i)),i}}class dMt{constructor(e){this.id=lMt++,this.code=e,this.usedTimes=0}}function uMt(n,e,t,i,s,r,o){const a=new oI,l=new cMt,u=[],d=s.isWebGL2,h=s.logarithmicDepthBuffer,f=s.vertexTextures;let _=s.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function E(x){return x===0?"uv":`uv${x}`}function b(x,I,F,B,ne){const L=B.fog,$=ne.geometry,H=x.isMeshStandardMaterial?B.environment:null,U=(x.isMeshStandardMaterial?t:e).get(x.envMap||H),Q=U&&U.mapping===lp?U.image.height:null,J=m[x.type];x.precision!==null&&(_=s.getMaxPrecision(x.precision),_!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",_,"instead."));const j=$.morphAttributes.position||$.morphAttributes.normal||$.morphAttributes.color,ae=j!==void 0?j.length:0;let ve=0;$.morphAttributes.position!==void 0&&(ve=1),$.morphAttributes.normal!==void 0&&(ve=2),$.morphAttributes.color!==void 0&&(ve=3);let ee,Ee,xe,Me;if(J){const cn=Zi[J];ee=cn.vertexShader,Ee=cn.fragmentShader}else ee=x.vertexShader,Ee=x.fragmentShader,l.update(x),xe=l.getVertexShaderID(x),Me=l.getFragmentShaderID(x);const Z=n.getRenderTarget(),ye=ne.isInstancedMesh===!0,fe=ne.isBatchedMesh===!0,Ne=!!x.map,Le=!!x.matcap,D=!!U,q=!!x.aoMap,K=!!x.lightMap,de=!!x.bumpMap,le=!!x.normalMap,Re=!!x.displacementMap,Ie=!!x.emissiveMap,z=!!x.metalnessMap,pe=!!x.roughnessMap,re=x.anisotropy>0,ce=x.clearcoat>0,M=x.iridescence>0,N=x.sheen>0,W=x.transmission>0,ue=re&&!!x.anisotropyMap,X=ce&&!!x.clearcoatMap,ie=ce&&!!x.clearcoatNormalMap,Ae=ce&&!!x.clearcoatRoughnessMap,Ce=M&&!!x.iridescenceMap,ke=M&&!!x.iridescenceThicknessMap,Qe=N&&!!x.sheenColorMap,ct=N&&!!x.sheenRoughnessMap,Pe=!!x.specularMap,ut=!!x.specularColorMap,Ze=!!x.specularIntensityMap,qe=W&&!!x.transmissionMap,tt=W&&!!x.thicknessMap,Fe=!!x.gradientMap,pt=!!x.alphaMap,oe=x.alphaTest>0,Ke=!!x.alphaHash,Ue=!!x.extensions,Oe=!!$.attributes.uv1,Be=!!$.attributes.uv2,dt=!!$.attributes.uv3;let Et=Tr;return x.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(Et=n.toneMapping),{isWebGL2:d,shaderID:J,shaderType:x.type,shaderName:x.name,vertexShader:ee,fragmentShader:Ee,defines:x.defines,customVertexShaderID:xe,customFragmentShaderID:Me,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:_,batching:fe,instancing:ye,instancingColor:ye&&ne.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Z===null?n.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:On,map:Ne,matcap:Le,envMap:D,envMapMode:D&&U.mapping,envMapCubeUVHeight:Q,aoMap:q,lightMap:K,bumpMap:de,normalMap:le,displacementMap:f&&Re,emissiveMap:Ie,normalMapObjectSpace:le&&x.normalMapType===aRt,normalMapTangentSpace:le&&x.normalMapType===XE,metalnessMap:z,roughnessMap:pe,anisotropy:re,anisotropyMap:ue,clearcoat:ce,clearcoatMap:X,clearcoatNormalMap:ie,clearcoatRoughnessMap:Ae,iridescence:M,iridescenceMap:Ce,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:Qe,sheenRoughnessMap:ct,specularMap:Pe,specularColorMap:ut,specularIntensityMap:Ze,transmission:W,transmissionMap:qe,thicknessMap:tt,gradientMap:Fe,opaque:x.transparent===!1&&x.blending===aa,alphaMap:pt,alphaTest:oe,alphaHash:Ke,combine:x.combine,mapUv:Ne&&E(x.map.channel),aoMapUv:q&&E(x.aoMap.channel),lightMapUv:K&&E(x.lightMap.channel),bumpMapUv:de&&E(x.bumpMap.channel),normalMapUv:le&&E(x.normalMap.channel),displacementMapUv:Re&&E(x.displacementMap.channel),emissiveMapUv:Ie&&E(x.emissiveMap.channel),metalnessMapUv:z&&E(x.metalnessMap.channel),roughnessMapUv:pe&&E(x.roughnessMap.channel),anisotropyMapUv:ue&&E(x.anisotropyMap.channel),clearcoatMapUv:X&&E(x.clearcoatMap.channel),clearcoatNormalMapUv:ie&&E(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ae&&E(x.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&E(x.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&E(x.iridescenceThicknessMap.channel),sheenColorMapUv:Qe&&E(x.sheenColorMap.channel),sheenRoughnessMapUv:ct&&E(x.sheenRoughnessMap.channel),specularMapUv:Pe&&E(x.specularMap.channel),specularColorMapUv:ut&&E(x.specularColorMap.channel),specularIntensityMapUv:Ze&&E(x.specularIntensityMap.channel),transmissionMapUv:qe&&E(x.transmissionMap.channel),thicknessMapUv:tt&&E(x.thicknessMap.channel),alphaMapUv:pt&&E(x.alphaMap.channel),vertexTangents:!!$.attributes.tangent&&(le||re),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!$.attributes.color&&$.attributes.color.itemSize===4,vertexUv1s:Oe,vertexUv2s:Be,vertexUv3s:dt,pointsUvs:ne.isPoints===!0&&!!$.attributes.uv&&(Ne||pt),fog:!!L,useFog:x.fog===!0,fogExp2:L&&L.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:ne.isSkinnedMesh===!0,morphTargets:$.morphAttributes.position!==void 0,morphNormals:$.morphAttributes.normal!==void 0,morphColors:$.morphAttributes.color!==void 0,morphTargetsCount:ae,morphTextureStride:ve,numDirLights:I.directional.length,numPointLights:I.point.length,numSpotLights:I.spot.length,numSpotLightMaps:I.spotLightMap.length,numRectAreaLights:I.rectArea.length,numHemiLights:I.hemi.length,numDirLightShadows:I.directionalShadowMap.length,numPointLightShadows:I.pointShadowMap.length,numSpotLightShadows:I.spotShadowMap.length,numSpotLightShadowsWithMaps:I.numSpotLightShadowsWithMaps,numLightProbes:I.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:n.shadowMap.enabled&&F.length>0,shadowMapType:n.shadowMap.type,toneMapping:Et,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ne&&x.map.isVideoTexture===!0&&Gt.getTransfer(x.map.colorSpace)===Zt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===es,flipSided:x.side===Zn,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ue&&x.extensions.derivatives===!0,extensionFragDepth:Ue&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ue&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ue&&x.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:d||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:x.customProgramCacheKey()}}function g(x){const I=[];if(x.shaderID?I.push(x.shaderID):(I.push(x.customVertexShaderID),I.push(x.customFragmentShaderID)),x.defines!==void 0)for(const F in x.defines)I.push(F),I.push(x.defines[F]);return x.isRawShaderMaterial===!1&&(y(I,x),v(I,x),I.push(n.outputColorSpace)),I.push(x.customProgramCacheKey),I.join()}function y(x,I){x.push(I.precision),x.push(I.outputColorSpace),x.push(I.envMapMode),x.push(I.envMapCubeUVHeight),x.push(I.mapUv),x.push(I.alphaMapUv),x.push(I.lightMapUv),x.push(I.aoMapUv),x.push(I.bumpMapUv),x.push(I.normalMapUv),x.push(I.displacementMapUv),x.push(I.emissiveMapUv),x.push(I.metalnessMapUv),x.push(I.roughnessMapUv),x.push(I.anisotropyMapUv),x.push(I.clearcoatMapUv),x.push(I.clearcoatNormalMapUv),x.push(I.clearcoatRoughnessMapUv),x.push(I.iridescenceMapUv),x.push(I.iridescenceThicknessMapUv),x.push(I.sheenColorMapUv),x.push(I.sheenRoughnessMapUv),x.push(I.specularMapUv),x.push(I.specularColorMapUv),x.push(I.specularIntensityMapUv),x.push(I.transmissionMapUv),x.push(I.thicknessMapUv),x.push(I.combine),x.push(I.fogExp2),x.push(I.sizeAttenuation),x.push(I.morphTargetsCount),x.push(I.morphAttributeCount),x.push(I.numDirLights),x.push(I.numPointLights),x.push(I.numSpotLights),x.push(I.numSpotLightMaps),x.push(I.numHemiLights),x.push(I.numRectAreaLights),x.push(I.numDirLightShadows),x.push(I.numPointLightShadows),x.push(I.numSpotLightShadows),x.push(I.numSpotLightShadowsWithMaps),x.push(I.numLightProbes),x.push(I.shadowMapType),x.push(I.toneMapping),x.push(I.numClippingPlanes),x.push(I.numClipIntersection),x.push(I.depthPacking)}function v(x,I){a.disableAll(),I.isWebGL2&&a.enable(0),I.supportsVertexTextures&&a.enable(1),I.instancing&&a.enable(2),I.instancingColor&&a.enable(3),I.matcap&&a.enable(4),I.envMap&&a.enable(5),I.normalMapObjectSpace&&a.enable(6),I.normalMapTangentSpace&&a.enable(7),I.clearcoat&&a.enable(8),I.iridescence&&a.enable(9),I.alphaTest&&a.enable(10),I.vertexColors&&a.enable(11),I.vertexAlphas&&a.enable(12),I.vertexUv1s&&a.enable(13),I.vertexUv2s&&a.enable(14),I.vertexUv3s&&a.enable(15),I.vertexTangents&&a.enable(16),I.anisotropy&&a.enable(17),I.alphaHash&&a.enable(18),I.batching&&a.enable(19),x.push(a.mask),a.disableAll(),I.fog&&a.enable(0),I.useFog&&a.enable(1),I.flatShading&&a.enable(2),I.logarithmicDepthBuffer&&a.enable(3),I.skinning&&a.enable(4),I.morphTargets&&a.enable(5),I.morphNormals&&a.enable(6),I.morphColors&&a.enable(7),I.premultipliedAlpha&&a.enable(8),I.shadowMapEnabled&&a.enable(9),I.useLegacyLights&&a.enable(10),I.doubleSided&&a.enable(11),I.flipSided&&a.enable(12),I.useDepthPacking&&a.enable(13),I.dithering&&a.enable(14),I.transmission&&a.enable(15),I.sheen&&a.enable(16),I.opaque&&a.enable(17),I.pointsUvs&&a.enable(18),I.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const I=m[x.type];let F;if(I){const B=Zi[I];F=KRt.clone(B.uniforms)}else F=x.uniforms;return F}function C(x,I){let F;for(let B=0,ne=u.length;B0?i.push(g):_.transparent===!0?s.push(g):t.push(g)}function l(h,f,_,m,E,b){const g=o(h,f,_,m,E,b);_.transmission>0?i.unshift(g):_.transparent===!0?s.unshift(g):t.unshift(g)}function u(h,f){t.length>1&&t.sort(h||_Mt),i.length>1&&i.sort(f||aw),s.length>1&&s.sort(f||aw)}function d(){for(let h=e,f=n.length;h=r.length?(o=new lw,r.push(o)):o=r[s],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function fMt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new _e,color:new gt};break;case"SpotLight":t={position:new _e,direction:new _e,color:new gt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new _e,color:new gt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new _e,skyColor:new gt,groundColor:new gt};break;case"RectAreaLight":t={color:new gt,position:new _e,halfWidth:new _e,halfHeight:new _e};break}return n[e.id]=t,t}}}function mMt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let gMt=0;function bMt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function EMt(n,e){const t=new fMt,i=mMt(),s={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let d=0;d<9;d++)s.probe.push(new _e);const r=new _e,o=new Rt,a=new Rt;function l(d,h){let f=0,_=0,m=0;for(let B=0;B<9;B++)s.probe[B].set(0,0,0);let E=0,b=0,g=0,y=0,v=0,S=0,C=0,T=0,O=0,k=0,x=0;d.sort(bMt);const I=h===!0?Math.PI:1;for(let B=0,ne=d.length;B0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=je.LTC_FLOAT_1,s.rectAreaLTC2=je.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=je.LTC_HALF_1,s.rectAreaLTC2=je.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=f,s.ambient[1]=_,s.ambient[2]=m;const F=s.hash;(F.directionalLength!==E||F.pointLength!==b||F.spotLength!==g||F.rectAreaLength!==y||F.hemiLength!==v||F.numDirectionalShadows!==S||F.numPointShadows!==C||F.numSpotShadows!==T||F.numSpotMaps!==O||F.numLightProbes!==x)&&(s.directional.length=E,s.spot.length=g,s.rectArea.length=y,s.point.length=b,s.hemi.length=v,s.directionalShadow.length=S,s.directionalShadowMap.length=S,s.pointShadow.length=C,s.pointShadowMap.length=C,s.spotShadow.length=T,s.spotShadowMap.length=T,s.directionalShadowMatrix.length=S,s.pointShadowMatrix.length=C,s.spotLightMatrix.length=T+O-k,s.spotLightMap.length=O,s.numSpotLightShadowsWithMaps=k,s.numLightProbes=x,F.directionalLength=E,F.pointLength=b,F.spotLength=g,F.rectAreaLength=y,F.hemiLength=v,F.numDirectionalShadows=S,F.numPointShadows=C,F.numSpotShadows=T,F.numSpotMaps=O,F.numLightProbes=x,s.version=gMt++)}function u(d,h){let f=0,_=0,m=0,E=0,b=0;const g=h.matrixWorldInverse;for(let y=0,v=d.length;y=a.length?(l=new cw(n,e),a.push(l)):l=a[o],l}function s(){t=new WeakMap}return{get:i,dispose:s}}class vMt extends Hi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=rRt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class SMt extends Hi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const TMt=`void main() { +`+Q)}else B!==""?console.warn("THREE.WebGLProgram: Program Info Log:",B):(ne===""||L==="")&&(H=!1);H&&(F.diagnostics={runnable:$,programLog:B,vertexShader:{log:ne,prefix:b},fragmentShader:{log:L,prefix:g}})}s.deleteShader(C),s.deleteShader(T),k=new Gd(s,E),x=XIt(s,E)}let k;this.getUniforms=function(){return k===void 0&&O(this),k};let x;this.getAttributes=function(){return x===void 0&&O(this),x};let I=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return I===!1&&(I=s.getProgramParameter(E,HIt)),I},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(E),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=qIt++,this.cacheKey=e,this.usedTimes=1,this.program=E,this.vertexShader=C,this.fragmentShader=T,this}let cMt=0;class dMt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new uMt(e),t.set(e,i)),i}}class uMt{constructor(e){this.id=cMt++,this.code=e,this.usedTimes=0}}function pMt(n,e,t,i,s,r,o){const a=new oI,l=new dMt,u=[],d=s.isWebGL2,h=s.logarithmicDepthBuffer,f=s.vertexTextures;let _=s.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function E(x){return x===0?"uv":`uv${x}`}function b(x,I,F,B,ne){const L=B.fog,$=ne.geometry,H=x.isMeshStandardMaterial?B.environment:null,U=(x.isMeshStandardMaterial?t:e).get(x.envMap||H),Q=U&&U.mapping===lp?U.image.height:null,J=m[x.type];x.precision!==null&&(_=s.getMaxPrecision(x.precision),_!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",_,"instead."));const j=$.morphAttributes.position||$.morphAttributes.normal||$.morphAttributes.color,ae=j!==void 0?j.length:0;let ve=0;$.morphAttributes.position!==void 0&&(ve=1),$.morphAttributes.normal!==void 0&&(ve=2),$.morphAttributes.color!==void 0&&(ve=3);let ee,Ee,xe,Me;if(J){const cn=Zi[J];ee=cn.vertexShader,Ee=cn.fragmentShader}else ee=x.vertexShader,Ee=x.fragmentShader,l.update(x),xe=l.getVertexShaderID(x),Me=l.getFragmentShaderID(x);const Z=n.getRenderTarget(),ye=ne.isInstancedMesh===!0,fe=ne.isBatchedMesh===!0,Ne=!!x.map,Le=!!x.matcap,D=!!U,q=!!x.aoMap,K=!!x.lightMap,de=!!x.bumpMap,le=!!x.normalMap,Re=!!x.displacementMap,Ie=!!x.emissiveMap,z=!!x.metalnessMap,pe=!!x.roughnessMap,re=x.anisotropy>0,ce=x.clearcoat>0,M=x.iridescence>0,N=x.sheen>0,W=x.transmission>0,ue=re&&!!x.anisotropyMap,X=ce&&!!x.clearcoatMap,ie=ce&&!!x.clearcoatNormalMap,Ae=ce&&!!x.clearcoatRoughnessMap,Ce=M&&!!x.iridescenceMap,ke=M&&!!x.iridescenceThicknessMap,Qe=N&&!!x.sheenColorMap,ct=N&&!!x.sheenRoughnessMap,Pe=!!x.specularMap,ut=!!x.specularColorMap,Ze=!!x.specularIntensityMap,qe=W&&!!x.transmissionMap,tt=W&&!!x.thicknessMap,Fe=!!x.gradientMap,pt=!!x.alphaMap,oe=x.alphaTest>0,Ke=!!x.alphaHash,Ue=!!x.extensions,Oe=!!$.attributes.uv1,Be=!!$.attributes.uv2,dt=!!$.attributes.uv3;let Et=Tr;return x.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(Et=n.toneMapping),{isWebGL2:d,shaderID:J,shaderType:x.type,shaderName:x.name,vertexShader:ee,fragmentShader:Ee,defines:x.defines,customVertexShaderID:xe,customFragmentShaderID:Me,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:_,batching:fe,instancing:ye,instancingColor:ye&&ne.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Z===null?n.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:On,map:Ne,matcap:Le,envMap:D,envMapMode:D&&U.mapping,envMapCubeUVHeight:Q,aoMap:q,lightMap:K,bumpMap:de,normalMap:le,displacementMap:f&&Re,emissiveMap:Ie,normalMapObjectSpace:le&&x.normalMapType===lRt,normalMapTangentSpace:le&&x.normalMapType===XE,metalnessMap:z,roughnessMap:pe,anisotropy:re,anisotropyMap:ue,clearcoat:ce,clearcoatMap:X,clearcoatNormalMap:ie,clearcoatRoughnessMap:Ae,iridescence:M,iridescenceMap:Ce,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:Qe,sheenRoughnessMap:ct,specularMap:Pe,specularColorMap:ut,specularIntensityMap:Ze,transmission:W,transmissionMap:qe,thicknessMap:tt,gradientMap:Fe,opaque:x.transparent===!1&&x.blending===aa,alphaMap:pt,alphaTest:oe,alphaHash:Ke,combine:x.combine,mapUv:Ne&&E(x.map.channel),aoMapUv:q&&E(x.aoMap.channel),lightMapUv:K&&E(x.lightMap.channel),bumpMapUv:de&&E(x.bumpMap.channel),normalMapUv:le&&E(x.normalMap.channel),displacementMapUv:Re&&E(x.displacementMap.channel),emissiveMapUv:Ie&&E(x.emissiveMap.channel),metalnessMapUv:z&&E(x.metalnessMap.channel),roughnessMapUv:pe&&E(x.roughnessMap.channel),anisotropyMapUv:ue&&E(x.anisotropyMap.channel),clearcoatMapUv:X&&E(x.clearcoatMap.channel),clearcoatNormalMapUv:ie&&E(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ae&&E(x.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&E(x.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&E(x.iridescenceThicknessMap.channel),sheenColorMapUv:Qe&&E(x.sheenColorMap.channel),sheenRoughnessMapUv:ct&&E(x.sheenRoughnessMap.channel),specularMapUv:Pe&&E(x.specularMap.channel),specularColorMapUv:ut&&E(x.specularColorMap.channel),specularIntensityMapUv:Ze&&E(x.specularIntensityMap.channel),transmissionMapUv:qe&&E(x.transmissionMap.channel),thicknessMapUv:tt&&E(x.thicknessMap.channel),alphaMapUv:pt&&E(x.alphaMap.channel),vertexTangents:!!$.attributes.tangent&&(le||re),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!$.attributes.color&&$.attributes.color.itemSize===4,vertexUv1s:Oe,vertexUv2s:Be,vertexUv3s:dt,pointsUvs:ne.isPoints===!0&&!!$.attributes.uv&&(Ne||pt),fog:!!L,useFog:x.fog===!0,fogExp2:L&&L.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:ne.isSkinnedMesh===!0,morphTargets:$.morphAttributes.position!==void 0,morphNormals:$.morphAttributes.normal!==void 0,morphColors:$.morphAttributes.color!==void 0,morphTargetsCount:ae,morphTextureStride:ve,numDirLights:I.directional.length,numPointLights:I.point.length,numSpotLights:I.spot.length,numSpotLightMaps:I.spotLightMap.length,numRectAreaLights:I.rectArea.length,numHemiLights:I.hemi.length,numDirLightShadows:I.directionalShadowMap.length,numPointLightShadows:I.pointShadowMap.length,numSpotLightShadows:I.spotShadowMap.length,numSpotLightShadowsWithMaps:I.numSpotLightShadowsWithMaps,numLightProbes:I.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:n.shadowMap.enabled&&F.length>0,shadowMapType:n.shadowMap.type,toneMapping:Et,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ne&&x.map.isVideoTexture===!0&&Gt.getTransfer(x.map.colorSpace)===Zt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===es,flipSided:x.side===Zn,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ue&&x.extensions.derivatives===!0,extensionFragDepth:Ue&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ue&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ue&&x.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:d||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:x.customProgramCacheKey()}}function g(x){const I=[];if(x.shaderID?I.push(x.shaderID):(I.push(x.customVertexShaderID),I.push(x.customFragmentShaderID)),x.defines!==void 0)for(const F in x.defines)I.push(F),I.push(x.defines[F]);return x.isRawShaderMaterial===!1&&(y(I,x),v(I,x),I.push(n.outputColorSpace)),I.push(x.customProgramCacheKey),I.join()}function y(x,I){x.push(I.precision),x.push(I.outputColorSpace),x.push(I.envMapMode),x.push(I.envMapCubeUVHeight),x.push(I.mapUv),x.push(I.alphaMapUv),x.push(I.lightMapUv),x.push(I.aoMapUv),x.push(I.bumpMapUv),x.push(I.normalMapUv),x.push(I.displacementMapUv),x.push(I.emissiveMapUv),x.push(I.metalnessMapUv),x.push(I.roughnessMapUv),x.push(I.anisotropyMapUv),x.push(I.clearcoatMapUv),x.push(I.clearcoatNormalMapUv),x.push(I.clearcoatRoughnessMapUv),x.push(I.iridescenceMapUv),x.push(I.iridescenceThicknessMapUv),x.push(I.sheenColorMapUv),x.push(I.sheenRoughnessMapUv),x.push(I.specularMapUv),x.push(I.specularColorMapUv),x.push(I.specularIntensityMapUv),x.push(I.transmissionMapUv),x.push(I.thicknessMapUv),x.push(I.combine),x.push(I.fogExp2),x.push(I.sizeAttenuation),x.push(I.morphTargetsCount),x.push(I.morphAttributeCount),x.push(I.numDirLights),x.push(I.numPointLights),x.push(I.numSpotLights),x.push(I.numSpotLightMaps),x.push(I.numHemiLights),x.push(I.numRectAreaLights),x.push(I.numDirLightShadows),x.push(I.numPointLightShadows),x.push(I.numSpotLightShadows),x.push(I.numSpotLightShadowsWithMaps),x.push(I.numLightProbes),x.push(I.shadowMapType),x.push(I.toneMapping),x.push(I.numClippingPlanes),x.push(I.numClipIntersection),x.push(I.depthPacking)}function v(x,I){a.disableAll(),I.isWebGL2&&a.enable(0),I.supportsVertexTextures&&a.enable(1),I.instancing&&a.enable(2),I.instancingColor&&a.enable(3),I.matcap&&a.enable(4),I.envMap&&a.enable(5),I.normalMapObjectSpace&&a.enable(6),I.normalMapTangentSpace&&a.enable(7),I.clearcoat&&a.enable(8),I.iridescence&&a.enable(9),I.alphaTest&&a.enable(10),I.vertexColors&&a.enable(11),I.vertexAlphas&&a.enable(12),I.vertexUv1s&&a.enable(13),I.vertexUv2s&&a.enable(14),I.vertexUv3s&&a.enable(15),I.vertexTangents&&a.enable(16),I.anisotropy&&a.enable(17),I.alphaHash&&a.enable(18),I.batching&&a.enable(19),x.push(a.mask),a.disableAll(),I.fog&&a.enable(0),I.useFog&&a.enable(1),I.flatShading&&a.enable(2),I.logarithmicDepthBuffer&&a.enable(3),I.skinning&&a.enable(4),I.morphTargets&&a.enable(5),I.morphNormals&&a.enable(6),I.morphColors&&a.enable(7),I.premultipliedAlpha&&a.enable(8),I.shadowMapEnabled&&a.enable(9),I.useLegacyLights&&a.enable(10),I.doubleSided&&a.enable(11),I.flipSided&&a.enable(12),I.useDepthPacking&&a.enable(13),I.dithering&&a.enable(14),I.transmission&&a.enable(15),I.sheen&&a.enable(16),I.opaque&&a.enable(17),I.pointsUvs&&a.enable(18),I.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const I=m[x.type];let F;if(I){const B=Zi[I];F=jRt.clone(B.uniforms)}else F=x.uniforms;return F}function C(x,I){let F;for(let B=0,ne=u.length;B0?i.push(g):_.transparent===!0?s.push(g):t.push(g)}function l(h,f,_,m,E,b){const g=o(h,f,_,m,E,b);_.transmission>0?i.unshift(g):_.transparent===!0?s.unshift(g):t.unshift(g)}function u(h,f){t.length>1&&t.sort(h||hMt),i.length>1&&i.sort(f||aw),s.length>1&&s.sort(f||aw)}function d(){for(let h=e,f=n.length;h=r.length?(o=new lw,r.push(o)):o=r[s],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function mMt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new _e,color:new gt};break;case"SpotLight":t={position:new _e,direction:new _e,color:new gt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new _e,color:new gt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new _e,skyColor:new gt,groundColor:new gt};break;case"RectAreaLight":t={color:new gt,position:new _e,halfWidth:new _e,halfHeight:new _e};break}return n[e.id]=t,t}}}function gMt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let bMt=0;function EMt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function yMt(n,e){const t=new mMt,i=gMt(),s={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let d=0;d<9;d++)s.probe.push(new _e);const r=new _e,o=new Rt,a=new Rt;function l(d,h){let f=0,_=0,m=0;for(let B=0;B<9;B++)s.probe[B].set(0,0,0);let E=0,b=0,g=0,y=0,v=0,S=0,C=0,T=0,O=0,k=0,x=0;d.sort(EMt);const I=h===!0?Math.PI:1;for(let B=0,ne=d.length;B0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=je.LTC_FLOAT_1,s.rectAreaLTC2=je.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=je.LTC_HALF_1,s.rectAreaLTC2=je.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=f,s.ambient[1]=_,s.ambient[2]=m;const F=s.hash;(F.directionalLength!==E||F.pointLength!==b||F.spotLength!==g||F.rectAreaLength!==y||F.hemiLength!==v||F.numDirectionalShadows!==S||F.numPointShadows!==C||F.numSpotShadows!==T||F.numSpotMaps!==O||F.numLightProbes!==x)&&(s.directional.length=E,s.spot.length=g,s.rectArea.length=y,s.point.length=b,s.hemi.length=v,s.directionalShadow.length=S,s.directionalShadowMap.length=S,s.pointShadow.length=C,s.pointShadowMap.length=C,s.spotShadow.length=T,s.spotShadowMap.length=T,s.directionalShadowMatrix.length=S,s.pointShadowMatrix.length=C,s.spotLightMatrix.length=T+O-k,s.spotLightMap.length=O,s.numSpotLightShadowsWithMaps=k,s.numLightProbes=x,F.directionalLength=E,F.pointLength=b,F.spotLength=g,F.rectAreaLength=y,F.hemiLength=v,F.numDirectionalShadows=S,F.numPointShadows=C,F.numSpotShadows=T,F.numSpotMaps=O,F.numLightProbes=x,s.version=bMt++)}function u(d,h){let f=0,_=0,m=0,E=0,b=0;const g=h.matrixWorldInverse;for(let y=0,v=d.length;y=a.length?(l=new cw(n,e),a.push(l)):l=a[o],l}function s(){t=new WeakMap}return{get:i,dispose:s}}class SMt extends Hi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=oRt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class TMt extends Hi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const xMt=`void main() { gl_Position = vec4( position, 1.0 ); -}`,xMt=`uniform sampler2D shadow_pass; +}`,CMt=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include @@ -3841,8 +3841,8 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function CMt(n,e,t){let i=new ey;const s=new It,r=new It,o=new Wt,a=new vMt({depthPacking:oRt}),l=new SMt,u={},d=t.maxTextureSize,h={[Ys]:Zn,[Zn]:Ys,[es]:es},f=new go({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new It},radius:{value:4}},vertexShader:TMt,fragmentShader:xMt}),_=f.clone();_.defines.HORIZONTAL_PASS=1;const m=new ms;m.setAttribute("position",new Yn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const E=new Hn(m,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=HO;let g=this.type;this.render=function(C,T,O){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||C.length===0)return;const k=n.getRenderTarget(),x=n.getActiveCubeFace(),I=n.getActiveMipmapLevel(),F=n.state;F.setBlending(Sr),F.buffers.color.setClear(1,1,1,1),F.buffers.depth.setTest(!0),F.setScissorTest(!1);const B=g!==Ms&&this.type===Ms,ne=g===Ms&&this.type!==Ms;for(let L=0,$=C.length;L<$;L++){const H=C[L],U=H.shadow;if(U===void 0){console.warn("THREE.WebGLShadowMap:",H,"has no shadow.");continue}if(U.autoUpdate===!1&&U.needsUpdate===!1)continue;s.copy(U.mapSize);const Q=U.getFrameExtents();if(s.multiply(Q),r.copy(U.mapSize),(s.x>d||s.y>d)&&(s.x>d&&(r.x=Math.floor(d/Q.x),s.x=r.x*Q.x,U.mapSize.x=r.x),s.y>d&&(r.y=Math.floor(d/Q.y),s.y=r.y*Q.y,U.mapSize.y=r.y)),U.map===null||B===!0||ne===!0){const j=this.type!==Ms?{minFilter:yn,magFilter:yn}:{};U.map!==null&&U.map.dispose(),U.map=new mo(s.x,s.y,j),U.map.texture.name=H.name+".shadowMap",U.camera.updateProjectionMatrix()}n.setRenderTarget(U.map),n.clear();const J=U.getViewportCount();for(let j=0;j0||T.map&&T.alphaTest>0){const F=x.uuid,B=T.uuid;let ne=u[F];ne===void 0&&(ne={},u[F]=ne);let L=ne[B];L===void 0&&(L=x.clone(),ne[B]=L),x=L}if(x.visible=T.visible,x.wireframe=T.wireframe,k===Ms?x.side=T.shadowSide!==null?T.shadowSide:T.side:x.side=T.shadowSide!==null?T.shadowSide:h[T.side],x.alphaMap=T.alphaMap,x.alphaTest=T.alphaTest,x.map=T.map,x.clipShadows=T.clipShadows,x.clippingPlanes=T.clippingPlanes,x.clipIntersection=T.clipIntersection,x.displacementMap=T.displacementMap,x.displacementScale=T.displacementScale,x.displacementBias=T.displacementBias,x.wireframeLinewidth=T.wireframeLinewidth,x.linewidth=T.linewidth,O.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const F=n.properties.get(x);F.light=O}return x}function S(C,T,O,k,x){if(C.visible===!1)return;if(C.layers.test(T.layers)&&(C.isMesh||C.isLine||C.isPoints)&&(C.castShadow||C.receiveShadow&&x===Ms)&&(!C.frustumCulled||i.intersectsObject(C))){C.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,C.matrixWorld);const B=e.update(C),ne=C.material;if(Array.isArray(ne)){const L=B.groups;for(let $=0,H=L.length;$=1):j.indexOf("OpenGL ES")!==-1&&(J=parseFloat(/^OpenGL ES (\d)/.exec(j)[1]),Q=J>=2);let ae=null,ve={};const ee=n.getParameter(n.SCISSOR_BOX),Ee=n.getParameter(n.VIEWPORT),xe=new Wt().fromArray(ee),Me=new Wt().fromArray(Ee);function Z(oe,Ke,Ue,Oe){const Be=new Uint8Array(4),dt=n.createTexture();n.bindTexture(oe,dt),n.texParameteri(oe,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(oe,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Et=0;Et"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let E;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(M,N){return g?new OffscreenCanvas(M,N):ac("canvas")}function v(M,N,W,ue){let X=1;if((M.width>ue||M.height>ue)&&(X=ue/Math.max(M.width,M.height)),X<1||N===!0)if(typeof HTMLImageElement<"u"&&M instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&M instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&M instanceof ImageBitmap){const ie=N?Eu:Math.floor,Ae=ie(X*M.width),Ce=ie(X*M.height);E===void 0&&(E=y(Ae,Ce));const ke=W?y(Ae,Ce):E;return ke.width=Ae,ke.height=Ce,ke.getContext("2d").drawImage(M,0,0,Ae,Ce),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+M.width+"x"+M.height+") to ("+Ae+"x"+Ce+")."),ke}else return"data"in M&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+M.width+"x"+M.height+")."),M;return M}function S(M){return pb(M.width)&&pb(M.height)}function C(M){return a?!1:M.wrapS!==mi||M.wrapT!==mi||M.minFilter!==yn&&M.minFilter!==jn}function T(M,N){return M.generateMipmaps&&N&&M.minFilter!==yn&&M.minFilter!==jn}function O(M){n.generateMipmap(M)}function k(M,N,W,ue,X=!1){if(a===!1)return N;if(M!==null){if(n[M]!==void 0)return n[M];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+M+"'")}let ie=N;if(N===n.RED&&(W===n.FLOAT&&(ie=n.R32F),W===n.HALF_FLOAT&&(ie=n.R16F),W===n.UNSIGNED_BYTE&&(ie=n.R8)),N===n.RED_INTEGER&&(W===n.UNSIGNED_BYTE&&(ie=n.R8UI),W===n.UNSIGNED_SHORT&&(ie=n.R16UI),W===n.UNSIGNED_INT&&(ie=n.R32UI),W===n.BYTE&&(ie=n.R8I),W===n.SHORT&&(ie=n.R16I),W===n.INT&&(ie=n.R32I)),N===n.RG&&(W===n.FLOAT&&(ie=n.RG32F),W===n.HALF_FLOAT&&(ie=n.RG16F),W===n.UNSIGNED_BYTE&&(ie=n.RG8)),N===n.RGBA){const Ae=X?fu:Gt.getTransfer(ue);W===n.FLOAT&&(ie=n.RGBA32F),W===n.HALF_FLOAT&&(ie=n.RGBA16F),W===n.UNSIGNED_BYTE&&(ie=Ae===Zt?n.SRGB8_ALPHA8:n.RGBA8),W===n.UNSIGNED_SHORT_4_4_4_4&&(ie=n.RGBA4),W===n.UNSIGNED_SHORT_5_5_5_1&&(ie=n.RGB5_A1)}return(ie===n.R16F||ie===n.R32F||ie===n.RG16F||ie===n.RG32F||ie===n.RGBA16F||ie===n.RGBA32F)&&e.get("EXT_color_buffer_float"),ie}function x(M,N,W){return T(M,W)===!0||M.isFramebufferTexture&&M.minFilter!==yn&&M.minFilter!==jn?Math.log2(Math.max(N.width,N.height))+1:M.mipmaps!==void 0&&M.mipmaps.length>0?M.mipmaps.length:M.isCompressedTexture&&Array.isArray(M.image)?N.mipmaps.length:1}function I(M){return M===yn||M===lb||M===Bd?n.NEAREST:n.LINEAR}function F(M){const N=M.target;N.removeEventListener("dispose",F),ne(N),N.isVideoTexture&&m.delete(N)}function B(M){const N=M.target;N.removeEventListener("dispose",B),$(N)}function ne(M){const N=i.get(M);if(N.__webglInit===void 0)return;const W=M.source,ue=b.get(W);if(ue){const X=ue[N.__cacheKey];X.usedTimes--,X.usedTimes===0&&L(M),Object.keys(ue).length===0&&b.delete(W)}i.remove(M)}function L(M){const N=i.get(M);n.deleteTexture(N.__webglTexture);const W=M.source,ue=b.get(W);delete ue[N.__cacheKey],o.memory.textures--}function $(M){const N=M.texture,W=i.get(M),ue=i.get(N);if(ue.__webglTexture!==void 0&&(n.deleteTexture(ue.__webglTexture),o.memory.textures--),M.depthTexture&&M.depthTexture.dispose(),M.isWebGLCubeRenderTarget)for(let X=0;X<6;X++){if(Array.isArray(W.__webglFramebuffer[X]))for(let ie=0;ie=l&&console.warn("THREE.WebGLTextures: Trying to use "+M+" texture units while this GPU supports only "+l),H+=1,M}function J(M){const N=[];return N.push(M.wrapS),N.push(M.wrapT),N.push(M.wrapR||0),N.push(M.magFilter),N.push(M.minFilter),N.push(M.anisotropy),N.push(M.internalFormat),N.push(M.format),N.push(M.type),N.push(M.generateMipmaps),N.push(M.premultiplyAlpha),N.push(M.flipY),N.push(M.unpackAlignment),N.push(M.colorSpace),N.join()}function j(M,N){const W=i.get(M);if(M.isVideoTexture&&re(M),M.isRenderTargetTexture===!1&&M.version>0&&W.__version!==M.version){const ue=M.image;if(ue===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ue.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{fe(W,M,N);return}}t.bindTexture(n.TEXTURE_2D,W.__webglTexture,n.TEXTURE0+N)}function ae(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){fe(W,M,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,W.__webglTexture,n.TEXTURE0+N)}function ve(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){fe(W,M,N);return}t.bindTexture(n.TEXTURE_3D,W.__webglTexture,n.TEXTURE0+N)}function ee(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){Ne(W,M,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,W.__webglTexture,n.TEXTURE0+N)}const Ee={[Ca]:n.REPEAT,[mi]:n.CLAMP_TO_EDGE,[hu]:n.MIRRORED_REPEAT},xe={[yn]:n.NEAREST,[lb]:n.NEAREST_MIPMAP_NEAREST,[Bd]:n.NEAREST_MIPMAP_LINEAR,[jn]:n.LINEAR,[YO]:n.LINEAR_MIPMAP_NEAREST,[fo]:n.LINEAR_MIPMAP_LINEAR},Me={[lRt]:n.NEVER,[hRt]:n.ALWAYS,[cRt]:n.LESS,[tI]:n.LEQUAL,[dRt]:n.EQUAL,[_Rt]:n.GEQUAL,[uRt]:n.GREATER,[pRt]:n.NOTEQUAL};function Z(M,N,W){if(W?(n.texParameteri(M,n.TEXTURE_WRAP_S,Ee[N.wrapS]),n.texParameteri(M,n.TEXTURE_WRAP_T,Ee[N.wrapT]),(M===n.TEXTURE_3D||M===n.TEXTURE_2D_ARRAY)&&n.texParameteri(M,n.TEXTURE_WRAP_R,Ee[N.wrapR]),n.texParameteri(M,n.TEXTURE_MAG_FILTER,xe[N.magFilter]),n.texParameteri(M,n.TEXTURE_MIN_FILTER,xe[N.minFilter])):(n.texParameteri(M,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(M,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(M===n.TEXTURE_3D||M===n.TEXTURE_2D_ARRAY)&&n.texParameteri(M,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==mi||N.wrapT!==mi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(M,n.TEXTURE_MAG_FILTER,I(N.magFilter)),n.texParameteri(M,n.TEXTURE_MIN_FILTER,I(N.minFilter)),N.minFilter!==yn&&N.minFilter!==jn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(M,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(M,n.TEXTURE_COMPARE_FUNC,Me[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ue=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===yn||N.minFilter!==Bd&&N.minFilter!==fo||N.type===Ps&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===rc&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(n.texParameterf(M,ue.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function ye(M,N){let W=!1;M.__webglInit===void 0&&(M.__webglInit=!0,N.addEventListener("dispose",F));const ue=N.source;let X=b.get(ue);X===void 0&&(X={},b.set(ue,X));const ie=J(N);if(ie!==M.__cacheKey){X[ie]===void 0&&(X[ie]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,W=!0),X[ie].usedTimes++;const Ae=X[M.__cacheKey];Ae!==void 0&&(X[M.__cacheKey].usedTimes--,Ae.usedTimes===0&&L(N)),M.__cacheKey=ie,M.__webglTexture=X[ie].texture}return W}function fe(M,N,W){let ue=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(ue=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(ue=n.TEXTURE_3D);const X=ye(M,N),ie=N.source;t.bindTexture(ue,M.__webglTexture,n.TEXTURE0+W);const Ae=i.get(ie);if(ie.version!==Ae.__version||X===!0){t.activeTexture(n.TEXTURE0+W);const Ce=Gt.getPrimaries(Gt.workingColorSpace),ke=N.colorSpace===bi?null:Gt.getPrimaries(N.colorSpace),Qe=N.colorSpace===bi||Ce===ke?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,Qe);const ct=C(N)&&S(N.image)===!1;let Pe=v(N.image,ct,!1,d);Pe=ce(N,Pe);const ut=S(Pe)||a,Ze=r.convert(N.format,N.colorSpace);let qe=r.convert(N.type),tt=k(N.internalFormat,Ze,qe,N.colorSpace,N.isVideoTexture);Z(ue,N,ut);let Fe;const pt=N.mipmaps,oe=a&&N.isVideoTexture!==!0&&tt!==ZO,Ke=Ae.__version===void 0||X===!0,Ue=x(N,Pe,ut);if(N.isDepthTexture)tt=n.DEPTH_COMPONENT,a?N.type===Ps?tt=n.DEPTH_COMPONENT32F:N.type===br?tt=n.DEPTH_COMPONENT24:N.type===oo?tt=n.DEPTH24_STENCIL8:tt=n.DEPTH_COMPONENT16:N.type===Ps&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===ao&&tt===n.DEPTH_COMPONENT&&N.type!==QE&&N.type!==br&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=br,qe=r.convert(N.type)),N.format===wa&&tt===n.DEPTH_COMPONENT&&(tt=n.DEPTH_STENCIL,N.type!==oo&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=oo,qe=r.convert(N.type))),Ke&&(oe?t.texStorage2D(n.TEXTURE_2D,1,tt,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,tt,Pe.width,Pe.height,0,Ze,qe,null));else if(N.isDataTexture)if(pt.length>0&&ut){oe&&Ke&&t.texStorage2D(n.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe>=1,Be>>=1}}else if(pt.length>0&&ut){oe&&Ke&&t.texStorage2D(n.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe0&&Ke++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Ke,Fe,Pe[0].width,Pe[0].height));for(let Oe=0;Oe<6;Oe++)if(ct){pt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,Pe[Oe].width,Pe[Oe].height,qe,tt,Pe[Oe].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,Fe,Pe[Oe].width,Pe[Oe].height,0,qe,tt,Pe[Oe].data);for(let Be=0;Be>ie),Pe=Math.max(1,N.height>>ie);X===n.TEXTURE_3D||X===n.TEXTURE_2D_ARRAY?t.texImage3D(X,ie,ke,ct,Pe,N.depth,0,Ae,Ce,null):t.texImage2D(X,ie,ke,ct,Pe,0,Ae,Ce,null)}t.bindFramebuffer(n.FRAMEBUFFER,M),pe(N)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,ue,X,i.get(W).__webglTexture,0,z(N)):(X===n.TEXTURE_2D||X>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&X<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,ue,X,i.get(W).__webglTexture,ie),t.bindFramebuffer(n.FRAMEBUFFER,null)}function D(M,N,W){if(n.bindRenderbuffer(n.RENDERBUFFER,M),N.depthBuffer&&!N.stencilBuffer){let ue=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(W||pe(N)){const X=N.depthTexture;X&&X.isDepthTexture&&(X.type===Ps?ue=n.DEPTH_COMPONENT32F:X.type===br&&(ue=n.DEPTH_COMPONENT24));const ie=z(N);pe(N)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,ie,ue,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,ie,ue,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,ue,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,M)}else if(N.depthBuffer&&N.stencilBuffer){const ue=z(N);W&&pe(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,ue,n.DEPTH24_STENCIL8,N.width,N.height):pe(N)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,ue,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,M)}else{const ue=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let X=0;X0){W.__webglFramebuffer[Ce]=[];for(let ke=0;ke0){W.__webglFramebuffer=[];for(let Ce=0;Ce0&&pe(M)===!1){const Ce=ie?N:[N];W.__webglMultisampledFramebuffer=n.createFramebuffer(),W.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,W.__webglMultisampledFramebuffer);for(let ke=0;ke0)for(let ke=0;ke0)for(let ke=0;ke0&&pe(M)===!1){const N=M.isWebGLMultipleRenderTargets?M.texture:[M.texture],W=M.width,ue=M.height;let X=n.COLOR_BUFFER_BIT;const ie=[],Ae=M.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Ce=i.get(M),ke=M.isWebGLMultipleRenderTargets===!0;if(ke)for(let Qe=0;Qe0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function re(M){const N=o.render.frame;m.get(M)!==N&&(m.set(M,N),M.update())}function ce(M,N){const W=M.colorSpace,ue=M.format,X=M.type;return M.isCompressedTexture===!0||M.isVideoTexture===!0||M.format===ub||W!==On&&W!==bi&&(Gt.getTransfer(W)===Zt?a===!1?e.has("EXT_sRGB")===!0&&ue===gi?(M.format=ub,M.minFilter=jn,M.generateMipmaps=!1):N=iI.sRGBToLinear(N):(ue!==gi||X!==xr)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",W)),N}this.allocateTextureUnit=Q,this.resetTextureUnits=U,this.setTexture2D=j,this.setTexture2DArray=ae,this.setTexture3D=ve,this.setTextureCube=ee,this.rebindTextures=de,this.setupRenderTarget=le,this.updateRenderTargetMipmap=Re,this.updateMultisampleRenderTarget=Ie,this.setupDepthRenderbuffer=K,this.setupFrameBufferTexture=Le,this.useMultisampledRTT=pe}function AMt(n,e,t){const i=t.isWebGL2;function s(r,o=bi){let a;const l=Gt.getTransfer(o);if(r===xr)return n.UNSIGNED_BYTE;if(r===WO)return n.UNSIGNED_SHORT_4_4_4_4;if(r===KO)return n.UNSIGNED_SHORT_5_5_5_1;if(r===jwt)return n.BYTE;if(r===Qwt)return n.SHORT;if(r===QE)return n.UNSIGNED_SHORT;if(r===$O)return n.INT;if(r===br)return n.UNSIGNED_INT;if(r===Ps)return n.FLOAT;if(r===rc)return i?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===Xwt)return n.ALPHA;if(r===gi)return n.RGBA;if(r===Zwt)return n.LUMINANCE;if(r===Jwt)return n.LUMINANCE_ALPHA;if(r===ao)return n.DEPTH_COMPONENT;if(r===wa)return n.DEPTH_STENCIL;if(r===ub)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===eRt)return n.RED;if(r===jO)return n.RED_INTEGER;if(r===tRt)return n.RG;if(r===QO)return n.RG_INTEGER;if(r===XO)return n.RGBA_INTEGER;if(r===Pm||r===Um||r===Fm||r===Bm)if(l===Zt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Pm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===Um)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===Fm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Bm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Pm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===Um)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===Fm)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Bm)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===jC||r===QC||r===XC||r===ZC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===jC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===QC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===XC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===ZC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===ZO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===JC||r===e1)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===JC)return l===Zt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===e1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===t1||r===n1||r===i1||r===s1||r===r1||r===o1||r===a1||r===l1||r===c1||r===d1||r===u1||r===p1||r===_1||r===h1)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===t1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===n1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===i1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===s1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===r1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===o1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===a1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===l1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===c1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===d1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===u1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===p1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===_1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===h1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Gm||r===f1||r===m1)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Gm)return l===Zt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===f1)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===m1)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===nRt||r===g1||r===b1||r===E1)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Gm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===g1)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===b1)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===E1)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===oo?i?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:s}}class NMt extends zn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class to extends rn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const OMt={type:"move"};class dg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new to,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new to,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new _e,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new _e),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new to,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new _e,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new _e),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let s=null,r=null,o=null;const a=this._targetRay,l=this._grip,u=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const E of e.hand.values()){const b=t.getJointPose(E,i),g=this._getHandJoint(u,E);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=d.position.distanceTo(h.position),_=.02,m=.005;u.inputState.pinching&&f>_+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=_-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,i),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(OMt)))}return a!==null&&(a.visible=s!==null),l!==null&&(l.visible=r!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new to;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class IMt extends Ka{constructor(e,t){super();const i=this;let s=null,r=1,o=null,a="local-floor",l=1,u=null,d=null,h=null,f=null,_=null,m=null;const E=t.getContextAttributes();let b=null,g=null;const y=[],v=[],S=new It;let C=null;const T=new zn;T.layers.enable(1),T.viewport=new Wt;const O=new zn;O.layers.enable(2),O.viewport=new Wt;const k=[T,O],x=new NMt;x.layers.enable(1),x.layers.enable(2);let I=null,F=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getGripSpace()},this.getHand=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getHandSpace()};function B(ee){const Ee=v.indexOf(ee.inputSource);if(Ee===-1)return;const xe=y[Ee];xe!==void 0&&(xe.update(ee.inputSource,ee.frame,u||o),xe.dispatchEvent({type:ee.type,data:ee.inputSource}))}function ne(){s.removeEventListener("select",B),s.removeEventListener("selectstart",B),s.removeEventListener("selectend",B),s.removeEventListener("squeeze",B),s.removeEventListener("squeezestart",B),s.removeEventListener("squeezeend",B),s.removeEventListener("end",ne),s.removeEventListener("inputsourceschange",L);for(let ee=0;ee=0&&(v[Me]=null,y[Me].disconnect(xe))}for(let Ee=0;Ee=v.length){v.push(xe),Me=ye;break}else if(v[ye]===null){v[ye]=xe,Me=ye;break}if(Me===-1)break}const Z=y[Me];Z&&Z.connect(xe)}}const $=new _e,H=new _e;function U(ee,Ee,xe){$.setFromMatrixPosition(Ee.matrixWorld),H.setFromMatrixPosition(xe.matrixWorld);const Me=$.distanceTo(H),Z=Ee.projectionMatrix.elements,ye=xe.projectionMatrix.elements,fe=Z[14]/(Z[10]-1),Ne=Z[14]/(Z[10]+1),Le=(Z[9]+1)/Z[5],D=(Z[9]-1)/Z[5],q=(Z[8]-1)/Z[0],K=(ye[8]+1)/ye[0],de=fe*q,le=fe*K,Re=Me/(-q+K),Ie=Re*-q;Ee.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(Ie),ee.translateZ(Re),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();const z=fe+Re,pe=Ne+Re,re=de-Ie,ce=le+(Me-Ie),M=Le*Ne/pe*z,N=D*Ne/pe*z;ee.projectionMatrix.makePerspective(re,ce,M,N,z,pe),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function Q(ee,Ee){Ee===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(Ee.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(s===null)return;x.near=O.near=T.near=ee.near,x.far=O.far=T.far=ee.far,(I!==x.near||F!==x.far)&&(s.updateRenderState({depthNear:x.near,depthFar:x.far}),I=x.near,F=x.far);const Ee=ee.parent,xe=x.cameras;Q(x,Ee);for(let Me=0;Me0&&(b.alphaTest.value=g.alphaTest);const y=e.get(g).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const v=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*v,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,y,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*y,b.scale.value=v*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function h(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function f(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function _(b,g,y){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Zn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function m(b,g){g.matcap&&(b.matcap.value=g.matcap)}function E(b,g){const y=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function DMt(n,e,t,i){let s={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,v){const S=v.program;i.uniformBlockBinding(y,S)}function u(y,v){let S=s[y.id];S===void 0&&(m(y),S=d(y),s[y.id]=S,y.addEventListener("dispose",b));const C=v.program;i.updateUBOMapping(y,C);const T=e.render.frame;r[y.id]!==T&&(f(y),r[y.id]=T)}function d(y){const v=h();y.__bindingPointIndex=v;const S=n.createBuffer(),C=y.__size,T=y.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,C,T),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,v,S),S}function h(){for(let y=0;y0){T=S%C;const B=C-T;T!==0&&B-I.boundary<0&&(S+=C-T,x.__offset=S)}S+=I.storage}return T=S%C,T>0&&(S+=C-T),y.__size=S,y.__cache={},this}function E(y){const v={boundary:0,storage:0};return typeof y=="number"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function b(y){const v=y.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(s[v.id]),delete s[v.id],delete r[v.id]}function g(){for(const y in s)n.deleteBuffer(s[y]);o=[],s={},r={}}return{bind:l,update:u,dispose:g}}class yI{constructor(e={}){const{canvas:t=ORt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;i!==null?f=i.getContextAttributes().alpha:f=o;const _=new Uint32Array(4),m=new Int32Array(4);let E=null,b=null;const g=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=on,this._useLegacyLights=!1,this.toneMapping=Tr,this.toneMappingExposure=1;const v=this;let S=!1,C=0,T=0,O=null,k=-1,x=null;const I=new Wt,F=new Wt;let B=null;const ne=new gt(0);let L=0,$=t.width,H=t.height,U=1,Q=null,J=null;const j=new Wt(0,0,$,H),ae=new Wt(0,0,$,H);let ve=!1;const ee=new ey;let Ee=!1,xe=!1,Me=null;const Z=new Rt,ye=new It,fe=new _e,Ne={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Le(){return O===null?U:1}let D=i;function q(R,Y){for(let te=0;te{function Ve(){if(ge.forEach(function(Xe){Ie.get(Xe).currentProgram.isReady()&&ge.delete(Xe)}),ge.size===0){me(R);return}setTimeout(Ve,10)}K.get("KHR_parallel_shader_compile")!==null?Ve():setTimeout(Ve,10)})};let Et=null;function Qt(R){Et&&Et(R)}function cn(){$t.stop()}function Ct(){$t.start()}const $t=new _I;$t.setAnimationLoop(Qt),typeof self<"u"&&$t.setContext(self),this.setAnimationLoop=function(R){Et=R,Fe.setAnimationLoop(R),R===null?$t.stop():$t.start()},Fe.addEventListener("sessionstart",cn),Fe.addEventListener("sessionend",Ct),this.render=function(R,Y){if(Y!==void 0&&Y.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;R.matrixWorldAutoUpdate===!0&&R.updateMatrixWorld(),Y.parent===null&&Y.matrixWorldAutoUpdate===!0&&Y.updateMatrixWorld(),Fe.enabled===!0&&Fe.isPresenting===!0&&(Fe.cameraAutoUpdate===!0&&Fe.updateCamera(Y),Y=Fe.getCamera()),R.isScene===!0&&R.onBeforeRender(v,R,Y,O),b=ie.get(R,y.length),b.init(),y.push(b),Z.multiplyMatrices(Y.projectionMatrix,Y.matrixWorldInverse),ee.setFromProjectionMatrix(Z),xe=this.localClippingEnabled,Ee=Ae.init(this.clippingPlanes,xe),E=X.get(R,g.length),E.init(),g.push(E),Sn(R,Y,0,v.sortObjects),E.finish(),v.sortObjects===!0&&E.sort(Q,J),this.info.render.frame++,Ee===!0&&Ae.beginShadows();const te=b.state.shadowsArray;if(Ce.render(te,R,Y),Ee===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(E,R),b.setupLights(v._useLegacyLights),Y.isArrayCamera){const ge=Y.cameras;for(let me=0,Ve=ge.length;me0?b=y[y.length-1]:b=null,g.pop(),g.length>0?E=g[g.length-1]:E=null};function Sn(R,Y,te,ge){if(R.visible===!1)return;if(R.layers.test(Y.layers)){if(R.isGroup)te=R.renderOrder;else if(R.isLOD)R.autoUpdate===!0&&R.update(Y);else if(R.isLight)b.pushLight(R),R.castShadow&&b.pushShadow(R);else if(R.isSprite){if(!R.frustumCulled||ee.intersectsSprite(R)){ge&&fe.setFromMatrixPosition(R.matrixWorld).applyMatrix4(Z);const Xe=N.update(R),it=R.material;it.visible&&E.push(R,Xe,it,te,fe.z,null)}}else if((R.isMesh||R.isLine||R.isPoints)&&(!R.frustumCulled||ee.intersectsObject(R))){const Xe=N.update(R),it=R.material;if(ge&&(R.boundingSphere!==void 0?(R.boundingSphere===null&&R.computeBoundingSphere(),fe.copy(R.boundingSphere.center)):(Xe.boundingSphere===null&&Xe.computeBoundingSphere(),fe.copy(Xe.boundingSphere.center)),fe.applyMatrix4(R.matrixWorld).applyMatrix4(Z)),Array.isArray(it)){const at=Xe.groups;for(let rt=0,_t=at.length;rt<_t;rt++){const ht=at[rt],Kt=it[ht.materialIndex];Kt&&Kt.visible&&E.push(R,Xe,Kt,te,fe.z,ht)}}else it.visible&&E.push(R,Xe,it,te,fe.z,null)}}const Ve=R.children;for(let Xe=0,it=Ve.length;Xe0&&Mr(me,Ve,Y,te),ge&&le.viewport(I.copy(ge)),me.length>0&&ci(me,Y,te),Ve.length>0&&ci(Ve,Y,te),Xe.length>0&&ci(Xe,Y,te),le.buffers.depth.setTest(!0),le.buffers.depth.setMask(!0),le.buffers.color.setMask(!0),le.setPolygonOffset(!1)}function Mr(R,Y,te,ge){if((te.isScene===!0?te.overrideMaterial:null)!==null)return;const Ve=de.isWebGL2;Me===null&&(Me=new mo(1,1,{generateMipmaps:!0,type:K.has("EXT_color_buffer_half_float")?rc:xr,minFilter:fo,samples:Ve?4:0})),v.getDrawingBufferSize(ye),Ve?Me.setSize(ye.x,ye.y):Me.setSize(Eu(ye.x),Eu(ye.y));const Xe=v.getRenderTarget();v.setRenderTarget(Me),v.getClearColor(ne),L=v.getClearAlpha(),L<1&&v.setClearColor(16777215,.5),v.clear();const it=v.toneMapping;v.toneMapping=Tr,ci(R,te,ge),z.updateMultisampleRenderTarget(Me),z.updateRenderTargetMipmap(Me);let at=!1;for(let rt=0,_t=Y.length;rt<_t;rt++){const ht=Y[rt],Kt=ht.object,xn=ht.geometry,sn=ht.material,In=ht.group;if(sn.side===es&&Kt.layers.test(ge.layers)){const Xt=sn.side;sn.side=Zn,sn.needsUpdate=!0,Tn(Kt,te,ge,xn,sn,In),sn.side=Xt,sn.needsUpdate=!0,at=!0}}at===!0&&(z.updateMultisampleRenderTarget(Me),z.updateRenderTargetMipmap(Me)),v.setRenderTarget(Xe),v.setClearColor(ne,L),v.toneMapping=it}function ci(R,Y,te){const ge=Y.isScene===!0?Y.overrideMaterial:null;for(let me=0,Ve=R.length;me0),ht=!!te.morphAttributes.position,Kt=!!te.morphAttributes.normal,xn=!!te.morphAttributes.color;let sn=Tr;ge.toneMapped&&(O===null||O.isXRRenderTarget===!0)&&(sn=v.toneMapping);const In=te.morphAttributes.position||te.morphAttributes.normal||te.morphAttributes.color,Xt=In!==void 0?In.length:0,St=Ie.get(ge),el=b.state.lights;if(Ee===!0&&(xe===!0||R!==x)){const Wn=R===x&&ge.id===k;Ae.setState(ge,R,Wn)}let tn=!1;ge.version===St.__version?(St.needsLights&&St.lightsStateVersion!==el.state.version||St.outputColorSpace!==it||me.isBatchedMesh&&St.batching===!1||!me.isBatchedMesh&&St.batching===!0||me.isInstancedMesh&&St.instancing===!1||!me.isInstancedMesh&&St.instancing===!0||me.isSkinnedMesh&&St.skinning===!1||!me.isSkinnedMesh&&St.skinning===!0||me.isInstancedMesh&&St.instancingColor===!0&&me.instanceColor===null||me.isInstancedMesh&&St.instancingColor===!1&&me.instanceColor!==null||St.envMap!==at||ge.fog===!0&&St.fog!==Ve||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ae.numPlanes||St.numIntersection!==Ae.numIntersection)||St.vertexAlphas!==rt||St.vertexTangents!==_t||St.morphTargets!==ht||St.morphNormals!==Kt||St.morphColors!==xn||St.toneMapping!==sn||de.isWebGL2===!0&&St.morphTargetsCount!==Xt)&&(tn=!0):(tn=!0,St.__version=ge.version);let Ss=St.currentProgram;tn===!0&&(Ss=di(ge,Y,me));let xc=!1,Dr=!1,tl=!1;const bn=Ss.getUniforms(),Ts=St.uniforms;if(le.useProgram(Ss.program)&&(xc=!0,Dr=!0,tl=!0),ge.id!==k&&(k=ge.id,Dr=!0),xc||x!==R){bn.setValue(D,"projectionMatrix",R.projectionMatrix),bn.setValue(D,"viewMatrix",R.matrixWorldInverse);const Wn=bn.map.cameraPosition;Wn!==void 0&&Wn.setValue(D,fe.setFromMatrixPosition(R.matrixWorld)),de.logarithmicDepthBuffer&&bn.setValue(D,"logDepthBufFC",2/(Math.log(R.far+1)/Math.LN2)),(ge.isMeshPhongMaterial||ge.isMeshToonMaterial||ge.isMeshLambertMaterial||ge.isMeshBasicMaterial||ge.isMeshStandardMaterial||ge.isShaderMaterial)&&bn.setValue(D,"isOrthographic",R.isOrthographicCamera===!0),x!==R&&(x=R,Dr=!0,tl=!0)}if(me.isSkinnedMesh){bn.setOptional(D,me,"bindMatrix"),bn.setOptional(D,me,"bindMatrixInverse");const Wn=me.skeleton;Wn&&(de.floatVertexTextures?(Wn.boneTexture===null&&Wn.computeBoneTexture(),bn.setValue(D,"boneTexture",Wn.boneTexture,z)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}me.isBatchedMesh&&(bn.setOptional(D,me,"batchingTexture"),bn.setValue(D,"batchingTexture",me._matricesTexture,z));const nl=te.morphAttributes;if((nl.position!==void 0||nl.normal!==void 0||nl.color!==void 0&&de.isWebGL2===!0)&&Qe.update(me,te,Ss),(Dr||St.receiveShadow!==me.receiveShadow)&&(St.receiveShadow=me.receiveShadow,bn.setValue(D,"receiveShadow",me.receiveShadow)),ge.isMeshGouraudMaterial&&ge.envMap!==null&&(Ts.envMap.value=at,Ts.flipEnvMap.value=at.isCubeTexture&&at.isRenderTargetTexture===!1?-1:1),Dr&&(bn.setValue(D,"toneMappingExposure",v.toneMappingExposure),St.needsLights&&vs(Ts,tl),Ve&&ge.fog===!0&&ue.refreshFogUniforms(Ts,Ve),ue.refreshMaterialUniforms(Ts,ge,U,H,Me),Gd.upload(D,ji(St),Ts,z)),ge.isShaderMaterial&&ge.uniformsNeedUpdate===!0&&(Gd.upload(D,ji(St),Ts,z),ge.uniformsNeedUpdate=!1),ge.isSpriteMaterial&&bn.setValue(D,"center",me.center),bn.setValue(D,"modelViewMatrix",me.modelViewMatrix),bn.setValue(D,"normalMatrix",me.normalMatrix),bn.setValue(D,"modelMatrix",me.matrixWorld),ge.isShaderMaterial||ge.isRawShaderMaterial){const Wn=ge.uniformsGroups;for(let il=0,mp=Wn.length;il0&&z.useMultisampledRTT(R)===!1?me=Ie.get(R).__webglMultisampledFramebuffer:Array.isArray(_t)?me=_t[te]:me=_t,I.copy(R.viewport),F.copy(R.scissor),B=R.scissorTest}else I.copy(j).multiplyScalar(U).floor(),F.copy(ae).multiplyScalar(U).floor(),B=ve;if(le.bindFramebuffer(D.FRAMEBUFFER,me)&&de.drawBuffers&&ge&&le.drawBuffers(R,me),le.viewport(I),le.scissor(F),le.setScissorTest(B),Ve){const at=Ie.get(R.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+Y,at.__webglTexture,te)}else if(Xe){const at=Ie.get(R.texture),rt=Y||0;D.framebufferTextureLayer(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,at.__webglTexture,te||0,rt)}k=-1},this.readRenderTargetPixels=function(R,Y,te,ge,me,Ve,Xe){if(!(R&&R.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let it=Ie.get(R).__webglFramebuffer;if(R.isWebGLCubeRenderTarget&&Xe!==void 0&&(it=it[Xe]),it){le.bindFramebuffer(D.FRAMEBUFFER,it);try{const at=R.texture,rt=at.format,_t=at.type;if(rt!==gi&&ut.convert(rt)!==D.getParameter(D.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ht=_t===rc&&(K.has("EXT_color_buffer_half_float")||de.isWebGL2&&K.has("EXT_color_buffer_float"));if(_t!==xr&&ut.convert(_t)!==D.getParameter(D.IMPLEMENTATION_COLOR_READ_TYPE)&&!(_t===Ps&&(de.isWebGL2||K.has("OES_texture_float")||K.has("WEBGL_color_buffer_float")))&&!ht){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Y>=0&&Y<=R.width-ge&&te>=0&&te<=R.height-me&&D.readPixels(Y,te,ge,me,ut.convert(rt),ut.convert(_t),Ve)}finally{const at=O!==null?Ie.get(O).__webglFramebuffer:null;le.bindFramebuffer(D.FRAMEBUFFER,at)}}},this.copyFramebufferToTexture=function(R,Y,te=0){const ge=Math.pow(2,-te),me=Math.floor(Y.image.width*ge),Ve=Math.floor(Y.image.height*ge);z.setTexture2D(Y,0),D.copyTexSubImage2D(D.TEXTURE_2D,te,0,0,R.x,R.y,me,Ve),le.unbindTexture()},this.copyTextureToTexture=function(R,Y,te,ge=0){const me=Y.image.width,Ve=Y.image.height,Xe=ut.convert(te.format),it=ut.convert(te.type);z.setTexture2D(te,0),D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,te.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,te.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,te.unpackAlignment),Y.isDataTexture?D.texSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,me,Ve,Xe,it,Y.image.data):Y.isCompressedTexture?D.compressedTexSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,Y.mipmaps[0].width,Y.mipmaps[0].height,Xe,Y.mipmaps[0].data):D.texSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,Xe,it,Y.image),ge===0&&te.generateMipmaps&&D.generateMipmap(D.TEXTURE_2D),le.unbindTexture()},this.copyTextureToTexture3D=function(R,Y,te,ge,me=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Ve=R.max.x-R.min.x+1,Xe=R.max.y-R.min.y+1,it=R.max.z-R.min.z+1,at=ut.convert(ge.format),rt=ut.convert(ge.type);let _t;if(ge.isData3DTexture)z.setTexture3D(ge,0),_t=D.TEXTURE_3D;else if(ge.isDataArrayTexture)z.setTexture2DArray(ge,0),_t=D.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,ge.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ge.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,ge.unpackAlignment);const ht=D.getParameter(D.UNPACK_ROW_LENGTH),Kt=D.getParameter(D.UNPACK_IMAGE_HEIGHT),xn=D.getParameter(D.UNPACK_SKIP_PIXELS),sn=D.getParameter(D.UNPACK_SKIP_ROWS),In=D.getParameter(D.UNPACK_SKIP_IMAGES),Xt=te.isCompressedTexture?te.mipmaps[0]:te.image;D.pixelStorei(D.UNPACK_ROW_LENGTH,Xt.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Xt.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,R.min.x),D.pixelStorei(D.UNPACK_SKIP_ROWS,R.min.y),D.pixelStorei(D.UNPACK_SKIP_IMAGES,R.min.z),te.isDataTexture||te.isData3DTexture?D.texSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,rt,Xt.data):te.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),D.compressedTexSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,Xt.data)):D.texSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,rt,Xt),D.pixelStorei(D.UNPACK_ROW_LENGTH,ht),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Kt),D.pixelStorei(D.UNPACK_SKIP_PIXELS,xn),D.pixelStorei(D.UNPACK_SKIP_ROWS,sn),D.pixelStorei(D.UNPACK_SKIP_IMAGES,In),me===0&&ge.generateMipmaps&&D.generateMipmap(_t),le.unbindTexture()},this.initTexture=function(R){R.isCubeTexture?z.setTextureCube(R,0):R.isData3DTexture?z.setTexture3D(R,0):R.isDataArrayTexture||R.isCompressedArrayTexture?z.setTexture2DArray(R,0):z.setTexture2D(R,0),le.unbindTexture()},this.resetState=function(){C=0,T=0,O=null,le.reset(),Ze.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Us}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===ZE?"display-p3":"srgb",t.unpackColorSpace=Gt.workingColorSpace===cp?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===on?lo:eI}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===lo?on:On}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class kMt extends yI{}kMt.prototype.isWebGL1Renderer=!0;class LMt extends rn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class PMt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=db,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=zi()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let s=0,r=this.stride;sl)continue;f.applyMatrix4(this.matrixWorld);const k=e.ray.origin.distanceTo(f);ke.far||t.push({distance:k,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let v=g,S=y-1;vl)continue;f.applyMatrix4(this.matrixWorld);const T=e.ray.origin.distanceTo(f);Te.far||t.push({distance:T,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;rs.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class ay extends Hi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new gt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new gt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=XE,this.normalScale=new It(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Qs extends ay{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new It(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Ln(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new gt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new gt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new gt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Cw extends Hi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new gt(16777215),this.specular=new gt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new gt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=XE,this.normalScale=new It(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=jE,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function Td(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function $Mt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function WMt(n){function e(s,r){return n[s]-n[r]}const t=n.length,i=new Array(t);for(let s=0;s!==t;++s)i[s]=s;return i.sort(e),i}function ww(n,e,t){const i=n.length,s=new n.constructor(i);for(let r=0,o=0;o!==i;++r){const a=t[r]*e;for(let l=0;l!==e;++l)s[o++]=n[a+l]}return s}function xI(n,e,t,i){let s=1,r=n[0];for(;r!==void 0&&r[i]===void 0;)r=n[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),t.push(o)),r=n[s++];while(r!==void 0)}class vc{constructor(e,t,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new t.constructor(i),this.sampleValues=t,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let i=this._cachedIndex,s=t[i],r=t[i-1];e:{t:{let o;n:{i:if(!(e=r)){const a=t[1];e=r)break t}o=i,i=0;break n}break e}for(;i>>1;et;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=i[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(s!==void 0&&$Mt(s))for(let a=0,l=s.length;a!==l;++a){const u=s[a];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,u),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===Vm,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*i,l=o*i,u=0;u!==i;++u)t[l+u]=t[a+u];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*i)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),i=this.constructor,s=new i(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}gs.prototype.TimeBufferType=Float32Array;gs.prototype.ValueBufferType=Float32Array;gs.prototype.DefaultInterpolation=Ra;class Qa extends gs{}Qa.prototype.ValueTypeName="bool";Qa.prototype.ValueBufferType=Array;Qa.prototype.DefaultInterpolation=oc;Qa.prototype.InterpolantFactoryMethodLinear=void 0;Qa.prototype.InterpolantFactoryMethodSmooth=void 0;class CI extends gs{}CI.prototype.ValueTypeName="color";class Oa extends gs{}Oa.prototype.ValueTypeName="number";class XMt extends vc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(i-t)/(s-t);let u=e*a;for(let d=u+a;u!==d;u+=4)Ir.slerpFlat(r,0,o,u-a,o,u,l);return r}}class bo extends gs{InterpolantFactoryMethodLinear(e){return new XMt(this.times,this.values,this.getValueSize(),e)}}bo.prototype.ValueTypeName="quaternion";bo.prototype.DefaultInterpolation=Ra;bo.prototype.InterpolantFactoryMethodSmooth=void 0;class Xa extends gs{}Xa.prototype.ValueTypeName="string";Xa.prototype.ValueBufferType=Array;Xa.prototype.DefaultInterpolation=oc;Xa.prototype.InterpolantFactoryMethodLinear=void 0;Xa.prototype.InterpolantFactoryMethodSmooth=void 0;class Ia extends gs{}Ia.prototype.ValueTypeName="vector";class ZMt{constructor(e,t=-1,i,s=iRt){this.name=e,this.tracks=i,this.duration=t,this.blendMode=s,this.uuid=zi(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)t.push(e2t(i[o]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)t.push(gs.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,t,i,s){const r=t.length,o=[];for(let a=0;a1){const h=d[1];let f=s[h];f||(s[h]=f=[]),f.push(u)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],t,i));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(h,f,_,m,E){if(_.length!==0){const b=[],g=[];xI(_,b,g,m),b.length!==0&&E.push(new h(f,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let h=0;h{t&&t(r),this.manager.itemEnd(e)},0),r;if(Os[e]!==void 0){Os[e].push({onLoad:t,onProgress:i,onError:s});return}Os[e]=[],Os[e].push({onLoad:t,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(u=>{if(u.status===200||u.status===0){if(u.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||u.body===void 0||u.body.getReader===void 0)return u;const d=Os[e],h=u.body.getReader(),f=u.headers.get("Content-Length")||u.headers.get("X-File-Size"),_=f?parseInt(f):0,m=_!==0;let E=0;const b=new ReadableStream({start(g){y();function y(){h.read().then(({done:v,value:S})=>{if(v)g.close();else{E+=S.byteLength;const C=new ProgressEvent("progress",{lengthComputable:m,loaded:E,total:_});for(let T=0,O=d.length;T{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return u.json();default:if(a===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(a),f=h&&h[1]?h[1].toLowerCase():void 0,_=new TextDecoder(f);return u.arrayBuffer().then(m=>_.decode(m))}}}).then(u=>{Ma.add(e,u);const d=Os[e];delete Os[e];for(let h=0,f=d.length;h{const d=Os[e];if(d===void 0)throw this.manager.itemError(e),u;delete Os[e];for(let h=0,f=d.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class s2t extends Za{constructor(e){super(e)}load(e,t,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=ac("img");function l(){d(),Ma.add(e,this),t&&t(this),r.manager.itemEnd(e)}function u(h){d(),s&&s(h),r.manager.itemError(e),r.manager.itemEnd(e)}function d(){a.removeEventListener("load",l,!1),a.removeEventListener("error",u,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",u,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class RI extends Za{constructor(e){super(e)}load(e,t,i,s){const r=new Nn,o=new s2t(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},i,s),r}}class _p extends rn{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new gt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const hg=new Rt,Rw=new _e,Aw=new _e;class ly{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new It(512,512),this.map=null,this.mapPass=null,this.matrix=new Rt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new ey,this._frameExtents=new It(1,1),this._viewportCount=1,this._viewports=[new Wt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,i=this.matrix;Rw.setFromMatrixPosition(e.matrixWorld),t.position.copy(Rw),Aw.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Aw),t.updateMatrixWorld(),hg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(hg),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(hg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class r2t extends ly{constructor(){super(new zn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,i=Aa*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(i!==t.fov||s!==t.aspect||r!==t.far)&&(t.fov=i,t.aspect=s,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class o2t extends _p{constructor(e,t,i=0,s=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(rn.DEFAULT_UP),this.updateMatrix(),this.target=new rn,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new r2t}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Nw=new Rt,vl=new _e,fg=new _e;class a2t extends ly{constructor(){super(new zn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new It(4,2),this._viewportCount=6,this._viewports=[new Wt(2,1,1,1),new Wt(0,1,1,1),new Wt(3,1,1,1),new Wt(1,1,1,1),new Wt(3,0,1,1),new Wt(1,0,1,1)],this._cubeDirections=[new _e(1,0,0),new _e(-1,0,0),new _e(0,0,1),new _e(0,0,-1),new _e(0,1,0),new _e(0,-1,0)],this._cubeUps=[new _e(0,1,0),new _e(0,1,0),new _e(0,1,0),new _e(0,1,0),new _e(0,0,1),new _e(0,0,-1)]}updateMatrices(e,t=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),vl.setFromMatrixPosition(e.matrixWorld),i.position.copy(vl),fg.copy(i.position),fg.add(this._cubeDirections[t]),i.up.copy(this._cubeUps[t]),i.lookAt(fg),i.updateMatrixWorld(),s.makeTranslation(-vl.x,-vl.y,-vl.z),Nw.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Nw)}}class l2t extends _p{constructor(e,t,i=0,s=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new a2t}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class c2t extends ly{constructor(){super(new ny(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class AI extends _p{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(rn.DEFAULT_UP),this.updateMatrix(),this.target=new rn,this.shadow=new c2t}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class d2t extends _p{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Gl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let i=0,s=e.length;i"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(l){Ma.add(e,l),t&&t(l),r.manager.itemEnd(e)}).catch(function(l){s&&s(l),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const cy="\\[\\]\\.:\\/",p2t=new RegExp("["+cy+"]","g"),dy="[^"+cy+"]",_2t="[^"+cy.replace("\\.","")+"]",h2t=/((?:WC+[\/:])*)/.source.replace("WC",dy),f2t=/(WCOD+)?/.source.replace("WCOD",_2t),m2t=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",dy),g2t=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",dy),b2t=new RegExp("^"+h2t+f2t+m2t+g2t+"$"),E2t=["material","materials","bones","map"];class y2t{constructor(e,t,i){const s=i||zt.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,s)}getValue(e,t){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,t)}setValue(e,t){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class zt{constructor(e,t,i){this.path=t,this.parsedPath=i||zt.parseTrackName(t),this.node=zt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new zt.Composite(e,t,i):new zt(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(p2t,"")}static parseTrackName(e){const t=b2t.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);E2t.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(t);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o=2.0 are supported."));return}const u=new J2t(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let d=0;d=0&&a[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}u.setExtensions(o),u.setPlugins(a),u.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function S2t(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Ot={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class T2t{constructor(e){this.parser=e,this.name=Ot.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class P2t{constructor(e){this.parser=e,this.name=Ot.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class U2t{constructor(e){this.parser=e,this.name=Ot.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class F2t{constructor(e){this.name=Ot.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=s.byteOffset||0,u=s.byteLength||0,d=s.count,h=s.byteStride,f=new Uint8Array(a,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(d,h,f,s.mode,s.filter).then(function(_){return _.buffer}):o.ready.then(function(){const _=new ArrayBuffer(d*h);return o.decodeGltfBuffer(new Uint8Array(_),d,h,f,s.mode,s.filter),_})})}else return null}}class B2t{constructor(e){this.name=Ot.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const u of s.primitives)if(u.mode!==hi.TRIANGLES&&u.mode!==hi.TRIANGLE_STRIP&&u.mode!==hi.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const u in o)a.push(this.parser.getDependency("accessor",o[u]).then(d=>(l[u]=d,l[u])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(u=>{const d=u.pop(),h=d.isGroup?d.children:[d],f=u[0].count,_=[];for(const m of h){const E=new Rt,b=new _e,g=new Ir,y=new _e(1,1,1),v=new zMt(m.geometry,m.material,f);for(let S=0;S0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const Z2t=new Rt;class J2t{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new S2t,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new RI(this.options.manager):this.textureLoader=new u2t(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new wI(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return zr(r,a,s),fr(a,s),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[u,d]of o.children.entries())r(d,a.children[u])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&b.setY(x,T[O*l+1]),l>=3&&b.setZ(x,T[O*l+2]),l>=4&&b.setW(x,T[O*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(t,i).then(function(d){d.flipY=!1,d.name=o.name||a.name||"",d.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(d.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return d.magFilter=Mw[f.magFilter]||jn,d.minFilter=Mw[f.minFilter]||fo,d.wrapS=Dw[f.wrapS]||Ca,d.wrapT=Dw[f.wrapT]||Ca,s.associations.set(d,{textures:e}),d}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=s.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const f=new Blob([h],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const d=Promise.resolve(l).then(function(h){return new Promise(function(f,_){let m=f;t.isImageBitmapLoader===!0&&(m=function(E){const b=new Nn(E);b.needsUpdate=!0,f(b)}),t.load(Gl.resolveURL(h,r.path),m,void 0,_)})}).then(function(h){return u===!0&&a.revokeObjectURL(l),h.userData.mimeType=o.mimeType||X2t(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),h});return this.sourceCache[e]=d,d}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[Ot.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[Ot.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[Ot.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new TI,Hi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new SI,Hi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),s&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return ay}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},u=[];if(l[Ot.KHR_MATERIALS_UNLIT]){const h=s[Ot.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(a,r,t))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new gt(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],On),a.opacity=f[3]}h.baseColorTexture!==void 0&&u.push(t.assignTexture(a,"map",h.baseColorTexture,on)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),u.push(t.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=es);const d=r.alphaMode||gg.OPAQUE;if(d===gg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,d===gg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==Er&&(u.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new It(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==Er&&(u.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==Er){const h=r.emissiveFactor;a.emissive=new gt().setRGB(h[0],h[1],h[2],On)}return r.emissiveTexture!==void 0&&o!==Er&&u.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,on)),Promise.all(u).then(function(){const h=new o(a);return r.name&&(h.name=r.name),fr(h,r),t.associations.set(h,{materials:e}),r.extensions&&zr(s,h,r),h})}createUniqueName(e){const t=zt.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[Ot.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return kw(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&j2t(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),fr(g,r),b.extensions&&zr(s,g,b),t.assignFinalMaterial(g),h.push(g)}for(let _=0,m=h.length;_1?d=new to:u.length===1?d=u[0]:d=new rn,d!==u[0])for(let h=0,f=u.length;h{const h=new Map;for(const[f,_]of s.associations)(f instanceof Hi||f instanceof Nn)&&h.set(f,_);return d.traverse(f=>{const _=s.associations.get(f);_!=null&&h.set(f,_)}),h};return s.associations=u(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,l=[];or[r.path]===or.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let u;switch(or[r.path]){case or.weights:u=Oa;break;case or.rotation:u=bo;break;case or.position:case or.scale:u=Ia;break;default:switch(i.itemSize){case 1:u=Oa;break;case 2:case 3:default:u=Ia;break}break}const d=s.interpolation!==void 0?$2t[s.interpolation]:Ra,h=this._getArrayFromAccessor(i);for(let f=0,_=l.length;f<_;f++){const m=new u(l[f]+"."+or[r.path],t.array,h,d);s.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(m),o.push(m)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const i=gb(t.constructor),s=new Float32Array(t.length);for(let r=0,o=t.length;r{ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,$e.emit("stop_webcam_video_stream"),Ge(()=>{ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),$e.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},nDt=["src"],iDt=["src"],sDt={class:"controls"},rDt=c("i",{"data-feather":"video"},null,-1),oDt=[rDt],aDt=c("i",{"data-feather":"video"},null,-1),lDt=[aDt],cDt={key:2};function dDt(n,e,t,i,s,r){return w(),A("div",{class:"floating-frame bg-white",style:en({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(w(),A("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,nDt)):V("",!0),s.isVideoActive&&s.imageDataUrl==null?(w(),A("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,iDt)):V("",!0),c("div",sDt,[s.isVideoActive?V("",!0):(w(),A("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startVideoStream&&r.startVideoStream(...o))},oDt)),s.isVideoActive?(w(),A("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopVideoStream&&r.stopVideoStream(...o))},lDt)):V("",!0),s.isVideoActive?(w(),A("span",cDt,"FPS: "+he(s.frameRate),1)):V("",!0)])],36)}const uDt=bt(tDt,[["render",dDt]]);const pDt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){$e.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ge(()=>{ze.replace()})},stopAudioStream(){$e.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ge(()=>{ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),$e.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},_Dt=["src"],hDt={class:"controls"},fDt=c("i",{"data-feather":"mic"},null,-1),mDt=[fDt],gDt=c("i",{"data-feather":"mic"},null,-1),bDt=[gDt];function EDt(n,e,t,i,s,r){return w(),A("div",{class:"floating-frame bg-white",style:en({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(w(),A("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,_Dt)):V("",!0),c("div",hDt,[s.isAudioActive?V("",!0):(w(),A("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startAudioStream&&r.startAudioStream(...o))},mDt)),s.isAudioActive?(w(),A("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopAudioStream&&r.stopAudioStream(...o))},bDt)):V("",!0)])],36)}const yDt=bt(pDt,[["render",EDt]]);const vDt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:uDt,AudioFrame:yDt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ge(()=>{ze.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new LMt,this.camera=new zn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new yI,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new Cr,e=new Cw({color:65280});this.cube=new Hn(n,e),this.scene.add(this.cube);const t=new d2t(4210752),i=new AI(16777215,.5);i.position.set(0,1,0),this.scene.add(t),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new v2t().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new Cr,t=new RI().load(n),i=new Er({map:t});this.cube=new Hn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new Cr,e=new Cw({color:65280});this.cube=new Hn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},SDt={ref:"webglContainer"},TDt={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},xDt={key:0,class:"text-center"},CDt={key:1,class:"text-center"},wDt={class:"floating-frame2"},RDt=["innerHTML"];function ADt(n,e,t,i,s,r){const o=mt("VideoFrame"),a=mt("AudioFrame");return w(),A(Ye,null,[c("div",SDt,null,512),c("div",TDt,[!s.activePersonality||!s.activePersonality.scene_path?(w(),A("div",xDt," Personality does not have a 3d avatar. ")):V("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(w(),A("div",CDt," Personality does not have an avatar. ")):V("",!0),c("div",wDt,[c("div",{innerHTML:n.htmlContent},null,8,RDt)])]),Te(o,{ref:"video_frame"},null,512),Te(a,{ref:"audio_frame"},null,512)],64)}const NDt=bt(vDt,[["render",ADt]]);let xd;const ODt=new Uint8Array(16);function IDt(){if(!xd&&(xd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!xd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xd(ODt)}const Cn=[];for(let n=0;n<256;++n)Cn.push((n+256).toString(16).slice(1));function MDt(n,e=0){return Cn[n[e+0]]+Cn[n[e+1]]+Cn[n[e+2]]+Cn[n[e+3]]+"-"+Cn[n[e+4]]+Cn[n[e+5]]+"-"+Cn[n[e+6]]+Cn[n[e+7]]+"-"+Cn[n[e+8]]+Cn[n[e+9]]+"-"+Cn[n[e+10]]+Cn[n[e+11]]+Cn[n[e+12]]+Cn[n[e+13]]+Cn[n[e+14]]+Cn[n[e+15]]}const DDt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Lw={randomUUID:DDt};function Gs(n,e,t){if(Lw.randomUUID&&!e&&!n)return Lw.randomUUID();n=n||{};const i=n.random||(n.rng||IDt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=i[s];return e}return MDt(i)}class co{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +}`;function wMt(n,e,t){let i=new ey;const s=new It,r=new It,o=new Wt,a=new SMt({depthPacking:aRt}),l=new TMt,u={},d=t.maxTextureSize,h={[Ys]:Zn,[Zn]:Ys,[es]:es},f=new go({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new It},radius:{value:4}},vertexShader:xMt,fragmentShader:CMt}),_=f.clone();_.defines.HORIZONTAL_PASS=1;const m=new ms;m.setAttribute("position",new Yn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const E=new Hn(m,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=HO;let g=this.type;this.render=function(C,T,O){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||C.length===0)return;const k=n.getRenderTarget(),x=n.getActiveCubeFace(),I=n.getActiveMipmapLevel(),F=n.state;F.setBlending(Sr),F.buffers.color.setClear(1,1,1,1),F.buffers.depth.setTest(!0),F.setScissorTest(!1);const B=g!==Ms&&this.type===Ms,ne=g===Ms&&this.type!==Ms;for(let L=0,$=C.length;L<$;L++){const H=C[L],U=H.shadow;if(U===void 0){console.warn("THREE.WebGLShadowMap:",H,"has no shadow.");continue}if(U.autoUpdate===!1&&U.needsUpdate===!1)continue;s.copy(U.mapSize);const Q=U.getFrameExtents();if(s.multiply(Q),r.copy(U.mapSize),(s.x>d||s.y>d)&&(s.x>d&&(r.x=Math.floor(d/Q.x),s.x=r.x*Q.x,U.mapSize.x=r.x),s.y>d&&(r.y=Math.floor(d/Q.y),s.y=r.y*Q.y,U.mapSize.y=r.y)),U.map===null||B===!0||ne===!0){const j=this.type!==Ms?{minFilter:yn,magFilter:yn}:{};U.map!==null&&U.map.dispose(),U.map=new mo(s.x,s.y,j),U.map.texture.name=H.name+".shadowMap",U.camera.updateProjectionMatrix()}n.setRenderTarget(U.map),n.clear();const J=U.getViewportCount();for(let j=0;j0||T.map&&T.alphaTest>0){const F=x.uuid,B=T.uuid;let ne=u[F];ne===void 0&&(ne={},u[F]=ne);let L=ne[B];L===void 0&&(L=x.clone(),ne[B]=L),x=L}if(x.visible=T.visible,x.wireframe=T.wireframe,k===Ms?x.side=T.shadowSide!==null?T.shadowSide:T.side:x.side=T.shadowSide!==null?T.shadowSide:h[T.side],x.alphaMap=T.alphaMap,x.alphaTest=T.alphaTest,x.map=T.map,x.clipShadows=T.clipShadows,x.clippingPlanes=T.clippingPlanes,x.clipIntersection=T.clipIntersection,x.displacementMap=T.displacementMap,x.displacementScale=T.displacementScale,x.displacementBias=T.displacementBias,x.wireframeLinewidth=T.wireframeLinewidth,x.linewidth=T.linewidth,O.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const F=n.properties.get(x);F.light=O}return x}function S(C,T,O,k,x){if(C.visible===!1)return;if(C.layers.test(T.layers)&&(C.isMesh||C.isLine||C.isPoints)&&(C.castShadow||C.receiveShadow&&x===Ms)&&(!C.frustumCulled||i.intersectsObject(C))){C.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,C.matrixWorld);const B=e.update(C),ne=C.material;if(Array.isArray(ne)){const L=B.groups;for(let $=0,H=L.length;$=1):j.indexOf("OpenGL ES")!==-1&&(J=parseFloat(/^OpenGL ES (\d)/.exec(j)[1]),Q=J>=2);let ae=null,ve={};const ee=n.getParameter(n.SCISSOR_BOX),Ee=n.getParameter(n.VIEWPORT),xe=new Wt().fromArray(ee),Me=new Wt().fromArray(Ee);function Z(oe,Ke,Ue,Oe){const Be=new Uint8Array(4),dt=n.createTexture();n.bindTexture(oe,dt),n.texParameteri(oe,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(oe,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Et=0;Et"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let E;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(M,N){return g?new OffscreenCanvas(M,N):ac("canvas")}function v(M,N,W,ue){let X=1;if((M.width>ue||M.height>ue)&&(X=ue/Math.max(M.width,M.height)),X<1||N===!0)if(typeof HTMLImageElement<"u"&&M instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&M instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&M instanceof ImageBitmap){const ie=N?Eu:Math.floor,Ae=ie(X*M.width),Ce=ie(X*M.height);E===void 0&&(E=y(Ae,Ce));const ke=W?y(Ae,Ce):E;return ke.width=Ae,ke.height=Ce,ke.getContext("2d").drawImage(M,0,0,Ae,Ce),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+M.width+"x"+M.height+") to ("+Ae+"x"+Ce+")."),ke}else return"data"in M&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+M.width+"x"+M.height+")."),M;return M}function S(M){return pb(M.width)&&pb(M.height)}function C(M){return a?!1:M.wrapS!==mi||M.wrapT!==mi||M.minFilter!==yn&&M.minFilter!==jn}function T(M,N){return M.generateMipmaps&&N&&M.minFilter!==yn&&M.minFilter!==jn}function O(M){n.generateMipmap(M)}function k(M,N,W,ue,X=!1){if(a===!1)return N;if(M!==null){if(n[M]!==void 0)return n[M];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+M+"'")}let ie=N;if(N===n.RED&&(W===n.FLOAT&&(ie=n.R32F),W===n.HALF_FLOAT&&(ie=n.R16F),W===n.UNSIGNED_BYTE&&(ie=n.R8)),N===n.RED_INTEGER&&(W===n.UNSIGNED_BYTE&&(ie=n.R8UI),W===n.UNSIGNED_SHORT&&(ie=n.R16UI),W===n.UNSIGNED_INT&&(ie=n.R32UI),W===n.BYTE&&(ie=n.R8I),W===n.SHORT&&(ie=n.R16I),W===n.INT&&(ie=n.R32I)),N===n.RG&&(W===n.FLOAT&&(ie=n.RG32F),W===n.HALF_FLOAT&&(ie=n.RG16F),W===n.UNSIGNED_BYTE&&(ie=n.RG8)),N===n.RGBA){const Ae=X?fu:Gt.getTransfer(ue);W===n.FLOAT&&(ie=n.RGBA32F),W===n.HALF_FLOAT&&(ie=n.RGBA16F),W===n.UNSIGNED_BYTE&&(ie=Ae===Zt?n.SRGB8_ALPHA8:n.RGBA8),W===n.UNSIGNED_SHORT_4_4_4_4&&(ie=n.RGBA4),W===n.UNSIGNED_SHORT_5_5_5_1&&(ie=n.RGB5_A1)}return(ie===n.R16F||ie===n.R32F||ie===n.RG16F||ie===n.RG32F||ie===n.RGBA16F||ie===n.RGBA32F)&&e.get("EXT_color_buffer_float"),ie}function x(M,N,W){return T(M,W)===!0||M.isFramebufferTexture&&M.minFilter!==yn&&M.minFilter!==jn?Math.log2(Math.max(N.width,N.height))+1:M.mipmaps!==void 0&&M.mipmaps.length>0?M.mipmaps.length:M.isCompressedTexture&&Array.isArray(M.image)?N.mipmaps.length:1}function I(M){return M===yn||M===lb||M===Bd?n.NEAREST:n.LINEAR}function F(M){const N=M.target;N.removeEventListener("dispose",F),ne(N),N.isVideoTexture&&m.delete(N)}function B(M){const N=M.target;N.removeEventListener("dispose",B),$(N)}function ne(M){const N=i.get(M);if(N.__webglInit===void 0)return;const W=M.source,ue=b.get(W);if(ue){const X=ue[N.__cacheKey];X.usedTimes--,X.usedTimes===0&&L(M),Object.keys(ue).length===0&&b.delete(W)}i.remove(M)}function L(M){const N=i.get(M);n.deleteTexture(N.__webglTexture);const W=M.source,ue=b.get(W);delete ue[N.__cacheKey],o.memory.textures--}function $(M){const N=M.texture,W=i.get(M),ue=i.get(N);if(ue.__webglTexture!==void 0&&(n.deleteTexture(ue.__webglTexture),o.memory.textures--),M.depthTexture&&M.depthTexture.dispose(),M.isWebGLCubeRenderTarget)for(let X=0;X<6;X++){if(Array.isArray(W.__webglFramebuffer[X]))for(let ie=0;ie=l&&console.warn("THREE.WebGLTextures: Trying to use "+M+" texture units while this GPU supports only "+l),H+=1,M}function J(M){const N=[];return N.push(M.wrapS),N.push(M.wrapT),N.push(M.wrapR||0),N.push(M.magFilter),N.push(M.minFilter),N.push(M.anisotropy),N.push(M.internalFormat),N.push(M.format),N.push(M.type),N.push(M.generateMipmaps),N.push(M.premultiplyAlpha),N.push(M.flipY),N.push(M.unpackAlignment),N.push(M.colorSpace),N.join()}function j(M,N){const W=i.get(M);if(M.isVideoTexture&&re(M),M.isRenderTargetTexture===!1&&M.version>0&&W.__version!==M.version){const ue=M.image;if(ue===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ue.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{fe(W,M,N);return}}t.bindTexture(n.TEXTURE_2D,W.__webglTexture,n.TEXTURE0+N)}function ae(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){fe(W,M,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,W.__webglTexture,n.TEXTURE0+N)}function ve(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){fe(W,M,N);return}t.bindTexture(n.TEXTURE_3D,W.__webglTexture,n.TEXTURE0+N)}function ee(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){Ne(W,M,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,W.__webglTexture,n.TEXTURE0+N)}const Ee={[Ca]:n.REPEAT,[mi]:n.CLAMP_TO_EDGE,[hu]:n.MIRRORED_REPEAT},xe={[yn]:n.NEAREST,[lb]:n.NEAREST_MIPMAP_NEAREST,[Bd]:n.NEAREST_MIPMAP_LINEAR,[jn]:n.LINEAR,[YO]:n.LINEAR_MIPMAP_NEAREST,[fo]:n.LINEAR_MIPMAP_LINEAR},Me={[cRt]:n.NEVER,[fRt]:n.ALWAYS,[dRt]:n.LESS,[tI]:n.LEQUAL,[uRt]:n.EQUAL,[hRt]:n.GEQUAL,[pRt]:n.GREATER,[_Rt]:n.NOTEQUAL};function Z(M,N,W){if(W?(n.texParameteri(M,n.TEXTURE_WRAP_S,Ee[N.wrapS]),n.texParameteri(M,n.TEXTURE_WRAP_T,Ee[N.wrapT]),(M===n.TEXTURE_3D||M===n.TEXTURE_2D_ARRAY)&&n.texParameteri(M,n.TEXTURE_WRAP_R,Ee[N.wrapR]),n.texParameteri(M,n.TEXTURE_MAG_FILTER,xe[N.magFilter]),n.texParameteri(M,n.TEXTURE_MIN_FILTER,xe[N.minFilter])):(n.texParameteri(M,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(M,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(M===n.TEXTURE_3D||M===n.TEXTURE_2D_ARRAY)&&n.texParameteri(M,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==mi||N.wrapT!==mi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(M,n.TEXTURE_MAG_FILTER,I(N.magFilter)),n.texParameteri(M,n.TEXTURE_MIN_FILTER,I(N.minFilter)),N.minFilter!==yn&&N.minFilter!==jn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(M,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(M,n.TEXTURE_COMPARE_FUNC,Me[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ue=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===yn||N.minFilter!==Bd&&N.minFilter!==fo||N.type===Ps&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===rc&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(n.texParameterf(M,ue.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function ye(M,N){let W=!1;M.__webglInit===void 0&&(M.__webglInit=!0,N.addEventListener("dispose",F));const ue=N.source;let X=b.get(ue);X===void 0&&(X={},b.set(ue,X));const ie=J(N);if(ie!==M.__cacheKey){X[ie]===void 0&&(X[ie]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,W=!0),X[ie].usedTimes++;const Ae=X[M.__cacheKey];Ae!==void 0&&(X[M.__cacheKey].usedTimes--,Ae.usedTimes===0&&L(N)),M.__cacheKey=ie,M.__webglTexture=X[ie].texture}return W}function fe(M,N,W){let ue=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(ue=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(ue=n.TEXTURE_3D);const X=ye(M,N),ie=N.source;t.bindTexture(ue,M.__webglTexture,n.TEXTURE0+W);const Ae=i.get(ie);if(ie.version!==Ae.__version||X===!0){t.activeTexture(n.TEXTURE0+W);const Ce=Gt.getPrimaries(Gt.workingColorSpace),ke=N.colorSpace===bi?null:Gt.getPrimaries(N.colorSpace),Qe=N.colorSpace===bi||Ce===ke?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,Qe);const ct=C(N)&&S(N.image)===!1;let Pe=v(N.image,ct,!1,d);Pe=ce(N,Pe);const ut=S(Pe)||a,Ze=r.convert(N.format,N.colorSpace);let qe=r.convert(N.type),tt=k(N.internalFormat,Ze,qe,N.colorSpace,N.isVideoTexture);Z(ue,N,ut);let Fe;const pt=N.mipmaps,oe=a&&N.isVideoTexture!==!0&&tt!==ZO,Ke=Ae.__version===void 0||X===!0,Ue=x(N,Pe,ut);if(N.isDepthTexture)tt=n.DEPTH_COMPONENT,a?N.type===Ps?tt=n.DEPTH_COMPONENT32F:N.type===br?tt=n.DEPTH_COMPONENT24:N.type===oo?tt=n.DEPTH24_STENCIL8:tt=n.DEPTH_COMPONENT16:N.type===Ps&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===ao&&tt===n.DEPTH_COMPONENT&&N.type!==QE&&N.type!==br&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=br,qe=r.convert(N.type)),N.format===wa&&tt===n.DEPTH_COMPONENT&&(tt=n.DEPTH_STENCIL,N.type!==oo&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=oo,qe=r.convert(N.type))),Ke&&(oe?t.texStorage2D(n.TEXTURE_2D,1,tt,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,tt,Pe.width,Pe.height,0,Ze,qe,null));else if(N.isDataTexture)if(pt.length>0&&ut){oe&&Ke&&t.texStorage2D(n.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe>=1,Be>>=1}}else if(pt.length>0&&ut){oe&&Ke&&t.texStorage2D(n.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe0&&Ke++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Ke,Fe,Pe[0].width,Pe[0].height));for(let Oe=0;Oe<6;Oe++)if(ct){pt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,Pe[Oe].width,Pe[Oe].height,qe,tt,Pe[Oe].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,Fe,Pe[Oe].width,Pe[Oe].height,0,qe,tt,Pe[Oe].data);for(let Be=0;Be>ie),Pe=Math.max(1,N.height>>ie);X===n.TEXTURE_3D||X===n.TEXTURE_2D_ARRAY?t.texImage3D(X,ie,ke,ct,Pe,N.depth,0,Ae,Ce,null):t.texImage2D(X,ie,ke,ct,Pe,0,Ae,Ce,null)}t.bindFramebuffer(n.FRAMEBUFFER,M),pe(N)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,ue,X,i.get(W).__webglTexture,0,z(N)):(X===n.TEXTURE_2D||X>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&X<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,ue,X,i.get(W).__webglTexture,ie),t.bindFramebuffer(n.FRAMEBUFFER,null)}function D(M,N,W){if(n.bindRenderbuffer(n.RENDERBUFFER,M),N.depthBuffer&&!N.stencilBuffer){let ue=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(W||pe(N)){const X=N.depthTexture;X&&X.isDepthTexture&&(X.type===Ps?ue=n.DEPTH_COMPONENT32F:X.type===br&&(ue=n.DEPTH_COMPONENT24));const ie=z(N);pe(N)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,ie,ue,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,ie,ue,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,ue,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,M)}else if(N.depthBuffer&&N.stencilBuffer){const ue=z(N);W&&pe(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,ue,n.DEPTH24_STENCIL8,N.width,N.height):pe(N)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,ue,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,M)}else{const ue=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let X=0;X0){W.__webglFramebuffer[Ce]=[];for(let ke=0;ke0){W.__webglFramebuffer=[];for(let Ce=0;Ce0&&pe(M)===!1){const Ce=ie?N:[N];W.__webglMultisampledFramebuffer=n.createFramebuffer(),W.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,W.__webglMultisampledFramebuffer);for(let ke=0;ke0)for(let ke=0;ke0)for(let ke=0;ke0&&pe(M)===!1){const N=M.isWebGLMultipleRenderTargets?M.texture:[M.texture],W=M.width,ue=M.height;let X=n.COLOR_BUFFER_BIT;const ie=[],Ae=M.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Ce=i.get(M),ke=M.isWebGLMultipleRenderTargets===!0;if(ke)for(let Qe=0;Qe0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function re(M){const N=o.render.frame;m.get(M)!==N&&(m.set(M,N),M.update())}function ce(M,N){const W=M.colorSpace,ue=M.format,X=M.type;return M.isCompressedTexture===!0||M.isVideoTexture===!0||M.format===ub||W!==On&&W!==bi&&(Gt.getTransfer(W)===Zt?a===!1?e.has("EXT_sRGB")===!0&&ue===gi?(M.format=ub,M.minFilter=jn,M.generateMipmaps=!1):N=iI.sRGBToLinear(N):(ue!==gi||X!==xr)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",W)),N}this.allocateTextureUnit=Q,this.resetTextureUnits=U,this.setTexture2D=j,this.setTexture2DArray=ae,this.setTexture3D=ve,this.setTextureCube=ee,this.rebindTextures=de,this.setupRenderTarget=le,this.updateRenderTargetMipmap=Re,this.updateMultisampleRenderTarget=Ie,this.setupDepthRenderbuffer=K,this.setupFrameBufferTexture=Le,this.useMultisampledRTT=pe}function NMt(n,e,t){const i=t.isWebGL2;function s(r,o=bi){let a;const l=Gt.getTransfer(o);if(r===xr)return n.UNSIGNED_BYTE;if(r===WO)return n.UNSIGNED_SHORT_4_4_4_4;if(r===KO)return n.UNSIGNED_SHORT_5_5_5_1;if(r===Qwt)return n.BYTE;if(r===Xwt)return n.SHORT;if(r===QE)return n.UNSIGNED_SHORT;if(r===$O)return n.INT;if(r===br)return n.UNSIGNED_INT;if(r===Ps)return n.FLOAT;if(r===rc)return i?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===Zwt)return n.ALPHA;if(r===gi)return n.RGBA;if(r===Jwt)return n.LUMINANCE;if(r===eRt)return n.LUMINANCE_ALPHA;if(r===ao)return n.DEPTH_COMPONENT;if(r===wa)return n.DEPTH_STENCIL;if(r===ub)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===tRt)return n.RED;if(r===jO)return n.RED_INTEGER;if(r===nRt)return n.RG;if(r===QO)return n.RG_INTEGER;if(r===XO)return n.RGBA_INTEGER;if(r===Pm||r===Um||r===Fm||r===Bm)if(l===Zt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Pm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===Um)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===Fm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Bm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Pm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===Um)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===Fm)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Bm)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===jC||r===QC||r===XC||r===ZC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===jC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===QC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===XC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===ZC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===ZO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===JC||r===e1)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===JC)return l===Zt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===e1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===t1||r===n1||r===i1||r===s1||r===r1||r===o1||r===a1||r===l1||r===c1||r===d1||r===u1||r===p1||r===_1||r===h1)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===t1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===n1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===i1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===s1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===r1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===o1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===a1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===l1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===c1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===d1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===u1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===p1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===_1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===h1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Gm||r===f1||r===m1)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Gm)return l===Zt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===f1)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===m1)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===iRt||r===g1||r===b1||r===E1)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Gm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===g1)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===b1)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===E1)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===oo?i?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:s}}class OMt extends zn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class to extends rn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const IMt={type:"move"};class dg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new to,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new to,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new _e,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new _e),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new to,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new _e,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new _e),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let s=null,r=null,o=null;const a=this._targetRay,l=this._grip,u=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const E of e.hand.values()){const b=t.getJointPose(E,i),g=this._getHandJoint(u,E);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=d.position.distanceTo(h.position),_=.02,m=.005;u.inputState.pinching&&f>_+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=_-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,i),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(IMt)))}return a!==null&&(a.visible=s!==null),l!==null&&(l.visible=r!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new to;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class MMt extends Ka{constructor(e,t){super();const i=this;let s=null,r=1,o=null,a="local-floor",l=1,u=null,d=null,h=null,f=null,_=null,m=null;const E=t.getContextAttributes();let b=null,g=null;const y=[],v=[],S=new It;let C=null;const T=new zn;T.layers.enable(1),T.viewport=new Wt;const O=new zn;O.layers.enable(2),O.viewport=new Wt;const k=[T,O],x=new OMt;x.layers.enable(1),x.layers.enable(2);let I=null,F=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getGripSpace()},this.getHand=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getHandSpace()};function B(ee){const Ee=v.indexOf(ee.inputSource);if(Ee===-1)return;const xe=y[Ee];xe!==void 0&&(xe.update(ee.inputSource,ee.frame,u||o),xe.dispatchEvent({type:ee.type,data:ee.inputSource}))}function ne(){s.removeEventListener("select",B),s.removeEventListener("selectstart",B),s.removeEventListener("selectend",B),s.removeEventListener("squeeze",B),s.removeEventListener("squeezestart",B),s.removeEventListener("squeezeend",B),s.removeEventListener("end",ne),s.removeEventListener("inputsourceschange",L);for(let ee=0;ee=0&&(v[Me]=null,y[Me].disconnect(xe))}for(let Ee=0;Ee=v.length){v.push(xe),Me=ye;break}else if(v[ye]===null){v[ye]=xe,Me=ye;break}if(Me===-1)break}const Z=y[Me];Z&&Z.connect(xe)}}const $=new _e,H=new _e;function U(ee,Ee,xe){$.setFromMatrixPosition(Ee.matrixWorld),H.setFromMatrixPosition(xe.matrixWorld);const Me=$.distanceTo(H),Z=Ee.projectionMatrix.elements,ye=xe.projectionMatrix.elements,fe=Z[14]/(Z[10]-1),Ne=Z[14]/(Z[10]+1),Le=(Z[9]+1)/Z[5],D=(Z[9]-1)/Z[5],q=(Z[8]-1)/Z[0],K=(ye[8]+1)/ye[0],de=fe*q,le=fe*K,Re=Me/(-q+K),Ie=Re*-q;Ee.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(Ie),ee.translateZ(Re),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();const z=fe+Re,pe=Ne+Re,re=de-Ie,ce=le+(Me-Ie),M=Le*Ne/pe*z,N=D*Ne/pe*z;ee.projectionMatrix.makePerspective(re,ce,M,N,z,pe),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function Q(ee,Ee){Ee===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(Ee.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(s===null)return;x.near=O.near=T.near=ee.near,x.far=O.far=T.far=ee.far,(I!==x.near||F!==x.far)&&(s.updateRenderState({depthNear:x.near,depthFar:x.far}),I=x.near,F=x.far);const Ee=ee.parent,xe=x.cameras;Q(x,Ee);for(let Me=0;Me0&&(b.alphaTest.value=g.alphaTest);const y=e.get(g).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const v=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*v,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,y,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*y,b.scale.value=v*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function h(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function f(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function _(b,g,y){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Zn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function m(b,g){g.matcap&&(b.matcap.value=g.matcap)}function E(b,g){const y=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function kMt(n,e,t,i){let s={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,v){const S=v.program;i.uniformBlockBinding(y,S)}function u(y,v){let S=s[y.id];S===void 0&&(m(y),S=d(y),s[y.id]=S,y.addEventListener("dispose",b));const C=v.program;i.updateUBOMapping(y,C);const T=e.render.frame;r[y.id]!==T&&(f(y),r[y.id]=T)}function d(y){const v=h();y.__bindingPointIndex=v;const S=n.createBuffer(),C=y.__size,T=y.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,C,T),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,v,S),S}function h(){for(let y=0;y0){T=S%C;const B=C-T;T!==0&&B-I.boundary<0&&(S+=C-T,x.__offset=S)}S+=I.storage}return T=S%C,T>0&&(S+=C-T),y.__size=S,y.__cache={},this}function E(y){const v={boundary:0,storage:0};return typeof y=="number"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function b(y){const v=y.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(s[v.id]),delete s[v.id],delete r[v.id]}function g(){for(const y in s)n.deleteBuffer(s[y]);o=[],s={},r={}}return{bind:l,update:u,dispose:g}}class yI{constructor(e={}){const{canvas:t=IRt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;i!==null?f=i.getContextAttributes().alpha:f=o;const _=new Uint32Array(4),m=new Int32Array(4);let E=null,b=null;const g=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=on,this._useLegacyLights=!1,this.toneMapping=Tr,this.toneMappingExposure=1;const v=this;let S=!1,C=0,T=0,O=null,k=-1,x=null;const I=new Wt,F=new Wt;let B=null;const ne=new gt(0);let L=0,$=t.width,H=t.height,U=1,Q=null,J=null;const j=new Wt(0,0,$,H),ae=new Wt(0,0,$,H);let ve=!1;const ee=new ey;let Ee=!1,xe=!1,Me=null;const Z=new Rt,ye=new It,fe=new _e,Ne={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Le(){return O===null?U:1}let D=i;function q(R,Y){for(let te=0;te{function Ve(){if(ge.forEach(function(Xe){Ie.get(Xe).currentProgram.isReady()&&ge.delete(Xe)}),ge.size===0){me(R);return}setTimeout(Ve,10)}K.get("KHR_parallel_shader_compile")!==null?Ve():setTimeout(Ve,10)})};let Et=null;function Qt(R){Et&&Et(R)}function cn(){$t.stop()}function Ct(){$t.start()}const $t=new _I;$t.setAnimationLoop(Qt),typeof self<"u"&&$t.setContext(self),this.setAnimationLoop=function(R){Et=R,Fe.setAnimationLoop(R),R===null?$t.stop():$t.start()},Fe.addEventListener("sessionstart",cn),Fe.addEventListener("sessionend",Ct),this.render=function(R,Y){if(Y!==void 0&&Y.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;R.matrixWorldAutoUpdate===!0&&R.updateMatrixWorld(),Y.parent===null&&Y.matrixWorldAutoUpdate===!0&&Y.updateMatrixWorld(),Fe.enabled===!0&&Fe.isPresenting===!0&&(Fe.cameraAutoUpdate===!0&&Fe.updateCamera(Y),Y=Fe.getCamera()),R.isScene===!0&&R.onBeforeRender(v,R,Y,O),b=ie.get(R,y.length),b.init(),y.push(b),Z.multiplyMatrices(Y.projectionMatrix,Y.matrixWorldInverse),ee.setFromProjectionMatrix(Z),xe=this.localClippingEnabled,Ee=Ae.init(this.clippingPlanes,xe),E=X.get(R,g.length),E.init(),g.push(E),Sn(R,Y,0,v.sortObjects),E.finish(),v.sortObjects===!0&&E.sort(Q,J),this.info.render.frame++,Ee===!0&&Ae.beginShadows();const te=b.state.shadowsArray;if(Ce.render(te,R,Y),Ee===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(E,R),b.setupLights(v._useLegacyLights),Y.isArrayCamera){const ge=Y.cameras;for(let me=0,Ve=ge.length;me0?b=y[y.length-1]:b=null,g.pop(),g.length>0?E=g[g.length-1]:E=null};function Sn(R,Y,te,ge){if(R.visible===!1)return;if(R.layers.test(Y.layers)){if(R.isGroup)te=R.renderOrder;else if(R.isLOD)R.autoUpdate===!0&&R.update(Y);else if(R.isLight)b.pushLight(R),R.castShadow&&b.pushShadow(R);else if(R.isSprite){if(!R.frustumCulled||ee.intersectsSprite(R)){ge&&fe.setFromMatrixPosition(R.matrixWorld).applyMatrix4(Z);const Xe=N.update(R),it=R.material;it.visible&&E.push(R,Xe,it,te,fe.z,null)}}else if((R.isMesh||R.isLine||R.isPoints)&&(!R.frustumCulled||ee.intersectsObject(R))){const Xe=N.update(R),it=R.material;if(ge&&(R.boundingSphere!==void 0?(R.boundingSphere===null&&R.computeBoundingSphere(),fe.copy(R.boundingSphere.center)):(Xe.boundingSphere===null&&Xe.computeBoundingSphere(),fe.copy(Xe.boundingSphere.center)),fe.applyMatrix4(R.matrixWorld).applyMatrix4(Z)),Array.isArray(it)){const at=Xe.groups;for(let rt=0,_t=at.length;rt<_t;rt++){const ht=at[rt],Kt=it[ht.materialIndex];Kt&&Kt.visible&&E.push(R,Xe,Kt,te,fe.z,ht)}}else it.visible&&E.push(R,Xe,it,te,fe.z,null)}}const Ve=R.children;for(let Xe=0,it=Ve.length;Xe0&&Mr(me,Ve,Y,te),ge&&le.viewport(I.copy(ge)),me.length>0&&ci(me,Y,te),Ve.length>0&&ci(Ve,Y,te),Xe.length>0&&ci(Xe,Y,te),le.buffers.depth.setTest(!0),le.buffers.depth.setMask(!0),le.buffers.color.setMask(!0),le.setPolygonOffset(!1)}function Mr(R,Y,te,ge){if((te.isScene===!0?te.overrideMaterial:null)!==null)return;const Ve=de.isWebGL2;Me===null&&(Me=new mo(1,1,{generateMipmaps:!0,type:K.has("EXT_color_buffer_half_float")?rc:xr,minFilter:fo,samples:Ve?4:0})),v.getDrawingBufferSize(ye),Ve?Me.setSize(ye.x,ye.y):Me.setSize(Eu(ye.x),Eu(ye.y));const Xe=v.getRenderTarget();v.setRenderTarget(Me),v.getClearColor(ne),L=v.getClearAlpha(),L<1&&v.setClearColor(16777215,.5),v.clear();const it=v.toneMapping;v.toneMapping=Tr,ci(R,te,ge),z.updateMultisampleRenderTarget(Me),z.updateRenderTargetMipmap(Me);let at=!1;for(let rt=0,_t=Y.length;rt<_t;rt++){const ht=Y[rt],Kt=ht.object,xn=ht.geometry,sn=ht.material,In=ht.group;if(sn.side===es&&Kt.layers.test(ge.layers)){const Xt=sn.side;sn.side=Zn,sn.needsUpdate=!0,Tn(Kt,te,ge,xn,sn,In),sn.side=Xt,sn.needsUpdate=!0,at=!0}}at===!0&&(z.updateMultisampleRenderTarget(Me),z.updateRenderTargetMipmap(Me)),v.setRenderTarget(Xe),v.setClearColor(ne,L),v.toneMapping=it}function ci(R,Y,te){const ge=Y.isScene===!0?Y.overrideMaterial:null;for(let me=0,Ve=R.length;me0),ht=!!te.morphAttributes.position,Kt=!!te.morphAttributes.normal,xn=!!te.morphAttributes.color;let sn=Tr;ge.toneMapped&&(O===null||O.isXRRenderTarget===!0)&&(sn=v.toneMapping);const In=te.morphAttributes.position||te.morphAttributes.normal||te.morphAttributes.color,Xt=In!==void 0?In.length:0,St=Ie.get(ge),el=b.state.lights;if(Ee===!0&&(xe===!0||R!==x)){const Wn=R===x&&ge.id===k;Ae.setState(ge,R,Wn)}let tn=!1;ge.version===St.__version?(St.needsLights&&St.lightsStateVersion!==el.state.version||St.outputColorSpace!==it||me.isBatchedMesh&&St.batching===!1||!me.isBatchedMesh&&St.batching===!0||me.isInstancedMesh&&St.instancing===!1||!me.isInstancedMesh&&St.instancing===!0||me.isSkinnedMesh&&St.skinning===!1||!me.isSkinnedMesh&&St.skinning===!0||me.isInstancedMesh&&St.instancingColor===!0&&me.instanceColor===null||me.isInstancedMesh&&St.instancingColor===!1&&me.instanceColor!==null||St.envMap!==at||ge.fog===!0&&St.fog!==Ve||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ae.numPlanes||St.numIntersection!==Ae.numIntersection)||St.vertexAlphas!==rt||St.vertexTangents!==_t||St.morphTargets!==ht||St.morphNormals!==Kt||St.morphColors!==xn||St.toneMapping!==sn||de.isWebGL2===!0&&St.morphTargetsCount!==Xt)&&(tn=!0):(tn=!0,St.__version=ge.version);let Ss=St.currentProgram;tn===!0&&(Ss=di(ge,Y,me));let xc=!1,Dr=!1,tl=!1;const bn=Ss.getUniforms(),Ts=St.uniforms;if(le.useProgram(Ss.program)&&(xc=!0,Dr=!0,tl=!0),ge.id!==k&&(k=ge.id,Dr=!0),xc||x!==R){bn.setValue(D,"projectionMatrix",R.projectionMatrix),bn.setValue(D,"viewMatrix",R.matrixWorldInverse);const Wn=bn.map.cameraPosition;Wn!==void 0&&Wn.setValue(D,fe.setFromMatrixPosition(R.matrixWorld)),de.logarithmicDepthBuffer&&bn.setValue(D,"logDepthBufFC",2/(Math.log(R.far+1)/Math.LN2)),(ge.isMeshPhongMaterial||ge.isMeshToonMaterial||ge.isMeshLambertMaterial||ge.isMeshBasicMaterial||ge.isMeshStandardMaterial||ge.isShaderMaterial)&&bn.setValue(D,"isOrthographic",R.isOrthographicCamera===!0),x!==R&&(x=R,Dr=!0,tl=!0)}if(me.isSkinnedMesh){bn.setOptional(D,me,"bindMatrix"),bn.setOptional(D,me,"bindMatrixInverse");const Wn=me.skeleton;Wn&&(de.floatVertexTextures?(Wn.boneTexture===null&&Wn.computeBoneTexture(),bn.setValue(D,"boneTexture",Wn.boneTexture,z)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}me.isBatchedMesh&&(bn.setOptional(D,me,"batchingTexture"),bn.setValue(D,"batchingTexture",me._matricesTexture,z));const nl=te.morphAttributes;if((nl.position!==void 0||nl.normal!==void 0||nl.color!==void 0&&de.isWebGL2===!0)&&Qe.update(me,te,Ss),(Dr||St.receiveShadow!==me.receiveShadow)&&(St.receiveShadow=me.receiveShadow,bn.setValue(D,"receiveShadow",me.receiveShadow)),ge.isMeshGouraudMaterial&&ge.envMap!==null&&(Ts.envMap.value=at,Ts.flipEnvMap.value=at.isCubeTexture&&at.isRenderTargetTexture===!1?-1:1),Dr&&(bn.setValue(D,"toneMappingExposure",v.toneMappingExposure),St.needsLights&&vs(Ts,tl),Ve&&ge.fog===!0&&ue.refreshFogUniforms(Ts,Ve),ue.refreshMaterialUniforms(Ts,ge,U,H,Me),Gd.upload(D,ji(St),Ts,z)),ge.isShaderMaterial&&ge.uniformsNeedUpdate===!0&&(Gd.upload(D,ji(St),Ts,z),ge.uniformsNeedUpdate=!1),ge.isSpriteMaterial&&bn.setValue(D,"center",me.center),bn.setValue(D,"modelViewMatrix",me.modelViewMatrix),bn.setValue(D,"normalMatrix",me.normalMatrix),bn.setValue(D,"modelMatrix",me.matrixWorld),ge.isShaderMaterial||ge.isRawShaderMaterial){const Wn=ge.uniformsGroups;for(let il=0,mp=Wn.length;il0&&z.useMultisampledRTT(R)===!1?me=Ie.get(R).__webglMultisampledFramebuffer:Array.isArray(_t)?me=_t[te]:me=_t,I.copy(R.viewport),F.copy(R.scissor),B=R.scissorTest}else I.copy(j).multiplyScalar(U).floor(),F.copy(ae).multiplyScalar(U).floor(),B=ve;if(le.bindFramebuffer(D.FRAMEBUFFER,me)&&de.drawBuffers&&ge&&le.drawBuffers(R,me),le.viewport(I),le.scissor(F),le.setScissorTest(B),Ve){const at=Ie.get(R.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+Y,at.__webglTexture,te)}else if(Xe){const at=Ie.get(R.texture),rt=Y||0;D.framebufferTextureLayer(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,at.__webglTexture,te||0,rt)}k=-1},this.readRenderTargetPixels=function(R,Y,te,ge,me,Ve,Xe){if(!(R&&R.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let it=Ie.get(R).__webglFramebuffer;if(R.isWebGLCubeRenderTarget&&Xe!==void 0&&(it=it[Xe]),it){le.bindFramebuffer(D.FRAMEBUFFER,it);try{const at=R.texture,rt=at.format,_t=at.type;if(rt!==gi&&ut.convert(rt)!==D.getParameter(D.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ht=_t===rc&&(K.has("EXT_color_buffer_half_float")||de.isWebGL2&&K.has("EXT_color_buffer_float"));if(_t!==xr&&ut.convert(_t)!==D.getParameter(D.IMPLEMENTATION_COLOR_READ_TYPE)&&!(_t===Ps&&(de.isWebGL2||K.has("OES_texture_float")||K.has("WEBGL_color_buffer_float")))&&!ht){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Y>=0&&Y<=R.width-ge&&te>=0&&te<=R.height-me&&D.readPixels(Y,te,ge,me,ut.convert(rt),ut.convert(_t),Ve)}finally{const at=O!==null?Ie.get(O).__webglFramebuffer:null;le.bindFramebuffer(D.FRAMEBUFFER,at)}}},this.copyFramebufferToTexture=function(R,Y,te=0){const ge=Math.pow(2,-te),me=Math.floor(Y.image.width*ge),Ve=Math.floor(Y.image.height*ge);z.setTexture2D(Y,0),D.copyTexSubImage2D(D.TEXTURE_2D,te,0,0,R.x,R.y,me,Ve),le.unbindTexture()},this.copyTextureToTexture=function(R,Y,te,ge=0){const me=Y.image.width,Ve=Y.image.height,Xe=ut.convert(te.format),it=ut.convert(te.type);z.setTexture2D(te,0),D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,te.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,te.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,te.unpackAlignment),Y.isDataTexture?D.texSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,me,Ve,Xe,it,Y.image.data):Y.isCompressedTexture?D.compressedTexSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,Y.mipmaps[0].width,Y.mipmaps[0].height,Xe,Y.mipmaps[0].data):D.texSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,Xe,it,Y.image),ge===0&&te.generateMipmaps&&D.generateMipmap(D.TEXTURE_2D),le.unbindTexture()},this.copyTextureToTexture3D=function(R,Y,te,ge,me=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Ve=R.max.x-R.min.x+1,Xe=R.max.y-R.min.y+1,it=R.max.z-R.min.z+1,at=ut.convert(ge.format),rt=ut.convert(ge.type);let _t;if(ge.isData3DTexture)z.setTexture3D(ge,0),_t=D.TEXTURE_3D;else if(ge.isDataArrayTexture)z.setTexture2DArray(ge,0),_t=D.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,ge.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ge.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,ge.unpackAlignment);const ht=D.getParameter(D.UNPACK_ROW_LENGTH),Kt=D.getParameter(D.UNPACK_IMAGE_HEIGHT),xn=D.getParameter(D.UNPACK_SKIP_PIXELS),sn=D.getParameter(D.UNPACK_SKIP_ROWS),In=D.getParameter(D.UNPACK_SKIP_IMAGES),Xt=te.isCompressedTexture?te.mipmaps[0]:te.image;D.pixelStorei(D.UNPACK_ROW_LENGTH,Xt.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Xt.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,R.min.x),D.pixelStorei(D.UNPACK_SKIP_ROWS,R.min.y),D.pixelStorei(D.UNPACK_SKIP_IMAGES,R.min.z),te.isDataTexture||te.isData3DTexture?D.texSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,rt,Xt.data):te.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),D.compressedTexSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,Xt.data)):D.texSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,rt,Xt),D.pixelStorei(D.UNPACK_ROW_LENGTH,ht),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Kt),D.pixelStorei(D.UNPACK_SKIP_PIXELS,xn),D.pixelStorei(D.UNPACK_SKIP_ROWS,sn),D.pixelStorei(D.UNPACK_SKIP_IMAGES,In),me===0&&ge.generateMipmaps&&D.generateMipmap(_t),le.unbindTexture()},this.initTexture=function(R){R.isCubeTexture?z.setTextureCube(R,0):R.isData3DTexture?z.setTexture3D(R,0):R.isDataArrayTexture||R.isCompressedArrayTexture?z.setTexture2DArray(R,0):z.setTexture2D(R,0),le.unbindTexture()},this.resetState=function(){C=0,T=0,O=null,le.reset(),Ze.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Us}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===ZE?"display-p3":"srgb",t.unpackColorSpace=Gt.workingColorSpace===cp?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===on?lo:eI}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===lo?on:On}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class LMt extends yI{}LMt.prototype.isWebGL1Renderer=!0;class PMt extends rn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class UMt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=db,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=zi()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let s=0,r=this.stride;sl)continue;f.applyMatrix4(this.matrixWorld);const k=e.ray.origin.distanceTo(f);ke.far||t.push({distance:k,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let v=g,S=y-1;vl)continue;f.applyMatrix4(this.matrixWorld);const T=e.ray.origin.distanceTo(f);Te.far||t.push({distance:T,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;rs.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class ay extends Hi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new gt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new gt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=XE,this.normalScale=new It(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Qs extends ay{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new It(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Ln(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new gt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new gt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new gt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Cw extends Hi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new gt(16777215),this.specular=new gt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new gt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=XE,this.normalScale=new It(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=jE,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function Td(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function WMt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function KMt(n){function e(s,r){return n[s]-n[r]}const t=n.length,i=new Array(t);for(let s=0;s!==t;++s)i[s]=s;return i.sort(e),i}function ww(n,e,t){const i=n.length,s=new n.constructor(i);for(let r=0,o=0;o!==i;++r){const a=t[r]*e;for(let l=0;l!==e;++l)s[o++]=n[a+l]}return s}function xI(n,e,t,i){let s=1,r=n[0];for(;r!==void 0&&r[i]===void 0;)r=n[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),t.push(o)),r=n[s++];while(r!==void 0)}class vc{constructor(e,t,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new t.constructor(i),this.sampleValues=t,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let i=this._cachedIndex,s=t[i],r=t[i-1];e:{t:{let o;n:{i:if(!(e=r)){const a=t[1];e=r)break t}o=i,i=0;break n}break e}for(;i>>1;et;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=i[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(s!==void 0&&WMt(s))for(let a=0,l=s.length;a!==l;++a){const u=s[a];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,u),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===Vm,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*i,l=o*i,u=0;u!==i;++u)t[l+u]=t[a+u];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*i)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),i=this.constructor,s=new i(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}gs.prototype.TimeBufferType=Float32Array;gs.prototype.ValueBufferType=Float32Array;gs.prototype.DefaultInterpolation=Ra;class Qa extends gs{}Qa.prototype.ValueTypeName="bool";Qa.prototype.ValueBufferType=Array;Qa.prototype.DefaultInterpolation=oc;Qa.prototype.InterpolantFactoryMethodLinear=void 0;Qa.prototype.InterpolantFactoryMethodSmooth=void 0;class CI extends gs{}CI.prototype.ValueTypeName="color";class Oa extends gs{}Oa.prototype.ValueTypeName="number";class ZMt extends vc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(i-t)/(s-t);let u=e*a;for(let d=u+a;u!==d;u+=4)Ir.slerpFlat(r,0,o,u-a,o,u,l);return r}}class bo extends gs{InterpolantFactoryMethodLinear(e){return new ZMt(this.times,this.values,this.getValueSize(),e)}}bo.prototype.ValueTypeName="quaternion";bo.prototype.DefaultInterpolation=Ra;bo.prototype.InterpolantFactoryMethodSmooth=void 0;class Xa extends gs{}Xa.prototype.ValueTypeName="string";Xa.prototype.ValueBufferType=Array;Xa.prototype.DefaultInterpolation=oc;Xa.prototype.InterpolantFactoryMethodLinear=void 0;Xa.prototype.InterpolantFactoryMethodSmooth=void 0;class Ia extends gs{}Ia.prototype.ValueTypeName="vector";class JMt{constructor(e,t=-1,i,s=sRt){this.name=e,this.tracks=i,this.duration=t,this.blendMode=s,this.uuid=zi(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)t.push(t2t(i[o]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)t.push(gs.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,t,i,s){const r=t.length,o=[];for(let a=0;a1){const h=d[1];let f=s[h];f||(s[h]=f=[]),f.push(u)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],t,i));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(h,f,_,m,E){if(_.length!==0){const b=[],g=[];xI(_,b,g,m),b.length!==0&&E.push(new h(f,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let h=0;h{t&&t(r),this.manager.itemEnd(e)},0),r;if(Os[e]!==void 0){Os[e].push({onLoad:t,onProgress:i,onError:s});return}Os[e]=[],Os[e].push({onLoad:t,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(u=>{if(u.status===200||u.status===0){if(u.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||u.body===void 0||u.body.getReader===void 0)return u;const d=Os[e],h=u.body.getReader(),f=u.headers.get("Content-Length")||u.headers.get("X-File-Size"),_=f?parseInt(f):0,m=_!==0;let E=0;const b=new ReadableStream({start(g){y();function y(){h.read().then(({done:v,value:S})=>{if(v)g.close();else{E+=S.byteLength;const C=new ProgressEvent("progress",{lengthComputable:m,loaded:E,total:_});for(let T=0,O=d.length;T{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return u.json();default:if(a===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(a),f=h&&h[1]?h[1].toLowerCase():void 0,_=new TextDecoder(f);return u.arrayBuffer().then(m=>_.decode(m))}}}).then(u=>{Ma.add(e,u);const d=Os[e];delete Os[e];for(let h=0,f=d.length;h{const d=Os[e];if(d===void 0)throw this.manager.itemError(e),u;delete Os[e];for(let h=0,f=d.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class r2t extends Za{constructor(e){super(e)}load(e,t,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=ac("img");function l(){d(),Ma.add(e,this),t&&t(this),r.manager.itemEnd(e)}function u(h){d(),s&&s(h),r.manager.itemError(e),r.manager.itemEnd(e)}function d(){a.removeEventListener("load",l,!1),a.removeEventListener("error",u,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",u,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class RI extends Za{constructor(e){super(e)}load(e,t,i,s){const r=new Nn,o=new r2t(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},i,s),r}}class _p extends rn{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new gt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const hg=new Rt,Rw=new _e,Aw=new _e;class ly{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new It(512,512),this.map=null,this.mapPass=null,this.matrix=new Rt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new ey,this._frameExtents=new It(1,1),this._viewportCount=1,this._viewports=[new Wt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,i=this.matrix;Rw.setFromMatrixPosition(e.matrixWorld),t.position.copy(Rw),Aw.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Aw),t.updateMatrixWorld(),hg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(hg),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(hg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class o2t extends ly{constructor(){super(new zn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,i=Aa*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(i!==t.fov||s!==t.aspect||r!==t.far)&&(t.fov=i,t.aspect=s,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class a2t extends _p{constructor(e,t,i=0,s=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(rn.DEFAULT_UP),this.updateMatrix(),this.target=new rn,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new o2t}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Nw=new Rt,vl=new _e,fg=new _e;class l2t extends ly{constructor(){super(new zn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new It(4,2),this._viewportCount=6,this._viewports=[new Wt(2,1,1,1),new Wt(0,1,1,1),new Wt(3,1,1,1),new Wt(1,1,1,1),new Wt(3,0,1,1),new Wt(1,0,1,1)],this._cubeDirections=[new _e(1,0,0),new _e(-1,0,0),new _e(0,0,1),new _e(0,0,-1),new _e(0,1,0),new _e(0,-1,0)],this._cubeUps=[new _e(0,1,0),new _e(0,1,0),new _e(0,1,0),new _e(0,1,0),new _e(0,0,1),new _e(0,0,-1)]}updateMatrices(e,t=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),vl.setFromMatrixPosition(e.matrixWorld),i.position.copy(vl),fg.copy(i.position),fg.add(this._cubeDirections[t]),i.up.copy(this._cubeUps[t]),i.lookAt(fg),i.updateMatrixWorld(),s.makeTranslation(-vl.x,-vl.y,-vl.z),Nw.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Nw)}}class c2t extends _p{constructor(e,t,i=0,s=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new l2t}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class d2t extends ly{constructor(){super(new ny(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class AI extends _p{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(rn.DEFAULT_UP),this.updateMatrix(),this.target=new rn,this.shadow=new d2t}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class u2t extends _p{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Gl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let i=0,s=e.length;i"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(l){Ma.add(e,l),t&&t(l),r.manager.itemEnd(e)}).catch(function(l){s&&s(l),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const cy="\\[\\]\\.:\\/",_2t=new RegExp("["+cy+"]","g"),dy="[^"+cy+"]",h2t="[^"+cy.replace("\\.","")+"]",f2t=/((?:WC+[\/:])*)/.source.replace("WC",dy),m2t=/(WCOD+)?/.source.replace("WCOD",h2t),g2t=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",dy),b2t=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",dy),E2t=new RegExp("^"+f2t+m2t+g2t+b2t+"$"),y2t=["material","materials","bones","map"];class v2t{constructor(e,t,i){const s=i||zt.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,s)}getValue(e,t){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,t)}setValue(e,t){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class zt{constructor(e,t,i){this.path=t,this.parsedPath=i||zt.parseTrackName(t),this.node=zt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new zt.Composite(e,t,i):new zt(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(_2t,"")}static parseTrackName(e){const t=E2t.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);y2t.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(t);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o=2.0 are supported."));return}const u=new eDt(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let d=0;d=0&&a[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}u.setExtensions(o),u.setPlugins(a),u.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function T2t(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Ot={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class x2t{constructor(e){this.parser=e,this.name=Ot.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class U2t{constructor(e){this.parser=e,this.name=Ot.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class F2t{constructor(e){this.parser=e,this.name=Ot.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class B2t{constructor(e){this.name=Ot.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=s.byteOffset||0,u=s.byteLength||0,d=s.count,h=s.byteStride,f=new Uint8Array(a,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(d,h,f,s.mode,s.filter).then(function(_){return _.buffer}):o.ready.then(function(){const _=new ArrayBuffer(d*h);return o.decodeGltfBuffer(new Uint8Array(_),d,h,f,s.mode,s.filter),_})})}else return null}}class G2t{constructor(e){this.name=Ot.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const u of s.primitives)if(u.mode!==hi.TRIANGLES&&u.mode!==hi.TRIANGLE_STRIP&&u.mode!==hi.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const u in o)a.push(this.parser.getDependency("accessor",o[u]).then(d=>(l[u]=d,l[u])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(u=>{const d=u.pop(),h=d.isGroup?d.children:[d],f=u[0].count,_=[];for(const m of h){const E=new Rt,b=new _e,g=new Ir,y=new _e(1,1,1),v=new HMt(m.geometry,m.material,f);for(let S=0;S0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const J2t=new Rt;class eDt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new T2t,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new RI(this.options.manager):this.textureLoader=new p2t(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new wI(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return zr(r,a,s),fr(a,s),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[u,d]of o.children.entries())r(d,a.children[u])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&b.setY(x,T[O*l+1]),l>=3&&b.setZ(x,T[O*l+2]),l>=4&&b.setW(x,T[O*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(t,i).then(function(d){d.flipY=!1,d.name=o.name||a.name||"",d.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(d.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return d.magFilter=Mw[f.magFilter]||jn,d.minFilter=Mw[f.minFilter]||fo,d.wrapS=Dw[f.wrapS]||Ca,d.wrapT=Dw[f.wrapT]||Ca,s.associations.set(d,{textures:e}),d}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=s.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const f=new Blob([h],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const d=Promise.resolve(l).then(function(h){return new Promise(function(f,_){let m=f;t.isImageBitmapLoader===!0&&(m=function(E){const b=new Nn(E);b.needsUpdate=!0,f(b)}),t.load(Gl.resolveURL(h,r.path),m,void 0,_)})}).then(function(h){return u===!0&&a.revokeObjectURL(l),h.userData.mimeType=o.mimeType||Z2t(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),h});return this.sourceCache[e]=d,d}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[Ot.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[Ot.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[Ot.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new TI,Hi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new SI,Hi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),s&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return ay}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},u=[];if(l[Ot.KHR_MATERIALS_UNLIT]){const h=s[Ot.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(a,r,t))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new gt(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],On),a.opacity=f[3]}h.baseColorTexture!==void 0&&u.push(t.assignTexture(a,"map",h.baseColorTexture,on)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),u.push(t.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=es);const d=r.alphaMode||gg.OPAQUE;if(d===gg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,d===gg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==Er&&(u.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new It(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==Er&&(u.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==Er){const h=r.emissiveFactor;a.emissive=new gt().setRGB(h[0],h[1],h[2],On)}return r.emissiveTexture!==void 0&&o!==Er&&u.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,on)),Promise.all(u).then(function(){const h=new o(a);return r.name&&(h.name=r.name),fr(h,r),t.associations.set(h,{materials:e}),r.extensions&&zr(s,h,r),h})}createUniqueName(e){const t=zt.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[Ot.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return kw(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&Q2t(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),fr(g,r),b.extensions&&zr(s,g,b),t.assignFinalMaterial(g),h.push(g)}for(let _=0,m=h.length;_1?d=new to:u.length===1?d=u[0]:d=new rn,d!==u[0])for(let h=0,f=u.length;h{const h=new Map;for(const[f,_]of s.associations)(f instanceof Hi||f instanceof Nn)&&h.set(f,_);return d.traverse(f=>{const _=s.associations.get(f);_!=null&&h.set(f,_)}),h};return s.associations=u(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,l=[];or[r.path]===or.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let u;switch(or[r.path]){case or.weights:u=Oa;break;case or.rotation:u=bo;break;case or.position:case or.scale:u=Ia;break;default:switch(i.itemSize){case 1:u=Oa;break;case 2:case 3:default:u=Ia;break}break}const d=s.interpolation!==void 0?W2t[s.interpolation]:Ra,h=this._getArrayFromAccessor(i);for(let f=0,_=l.length;f<_;f++){const m=new u(l[f]+"."+or[r.path],t.array,h,d);s.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(m),o.push(m)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const i=gb(t.constructor),s=new Float32Array(t.length);for(let r=0,o=t.length;r{ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,$e.emit("stop_webcam_video_stream"),Ge(()=>{ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),$e.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},iDt=["src"],sDt=["src"],rDt={class:"controls"},oDt=c("i",{"data-feather":"video"},null,-1),aDt=[oDt],lDt=c("i",{"data-feather":"video"},null,-1),cDt=[lDt],dDt={key:2};function uDt(n,e,t,i,s,r){return w(),A("div",{class:"floating-frame bg-white",style:en({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(w(),A("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,iDt)):V("",!0),s.isVideoActive&&s.imageDataUrl==null?(w(),A("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,sDt)):V("",!0),c("div",rDt,[s.isVideoActive?V("",!0):(w(),A("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startVideoStream&&r.startVideoStream(...o))},aDt)),s.isVideoActive?(w(),A("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopVideoStream&&r.stopVideoStream(...o))},cDt)):V("",!0),s.isVideoActive?(w(),A("span",dDt,"FPS: "+he(s.frameRate),1)):V("",!0)])],36)}const pDt=bt(nDt,[["render",uDt]]);const _Dt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){$e.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ge(()=>{ze.replace()})},stopAudioStream(){$e.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ge(()=>{ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),$e.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},hDt=["src"],fDt={class:"controls"},mDt=c("i",{"data-feather":"mic"},null,-1),gDt=[mDt],bDt=c("i",{"data-feather":"mic"},null,-1),EDt=[bDt];function yDt(n,e,t,i,s,r){return w(),A("div",{class:"floating-frame bg-white",style:en({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(w(),A("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,hDt)):V("",!0),c("div",fDt,[s.isAudioActive?V("",!0):(w(),A("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startAudioStream&&r.startAudioStream(...o))},gDt)),s.isAudioActive?(w(),A("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopAudioStream&&r.stopAudioStream(...o))},EDt)):V("",!0)])],36)}const vDt=bt(_Dt,[["render",yDt]]);const SDt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:pDt,AudioFrame:vDt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ge(()=>{ze.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new PMt,this.camera=new zn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new yI,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new Cr,e=new Cw({color:65280});this.cube=new Hn(n,e),this.scene.add(this.cube);const t=new u2t(4210752),i=new AI(16777215,.5);i.position.set(0,1,0),this.scene.add(t),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new S2t().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new Cr,t=new RI().load(n),i=new Er({map:t});this.cube=new Hn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new Cr,e=new Cw({color:65280});this.cube=new Hn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},TDt={ref:"webglContainer"},xDt={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},CDt={key:0,class:"text-center"},wDt={key:1,class:"text-center"},RDt={class:"floating-frame2"},ADt=["innerHTML"];function NDt(n,e,t,i,s,r){const o=mt("VideoFrame"),a=mt("AudioFrame");return w(),A(Ye,null,[c("div",TDt,null,512),c("div",xDt,[!s.activePersonality||!s.activePersonality.scene_path?(w(),A("div",CDt," Personality does not have a 3d avatar. ")):V("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(w(),A("div",wDt," Personality does not have an avatar. ")):V("",!0),c("div",RDt,[c("div",{innerHTML:n.htmlContent},null,8,ADt)])]),Te(o,{ref:"video_frame"},null,512),Te(a,{ref:"audio_frame"},null,512)],64)}const ODt=bt(SDt,[["render",NDt]]);let xd;const IDt=new Uint8Array(16);function MDt(){if(!xd&&(xd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!xd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xd(IDt)}const Cn=[];for(let n=0;n<256;++n)Cn.push((n+256).toString(16).slice(1));function DDt(n,e=0){return Cn[n[e+0]]+Cn[n[e+1]]+Cn[n[e+2]]+Cn[n[e+3]]+"-"+Cn[n[e+4]]+Cn[n[e+5]]+"-"+Cn[n[e+6]]+Cn[n[e+7]]+"-"+Cn[n[e+8]]+Cn[n[e+9]]+"-"+Cn[n[e+10]]+Cn[n[e+11]]+Cn[n[e+12]]+Cn[n[e+13]]+Cn[n[e+14]]+Cn[n[e+15]]}const kDt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Lw={randomUUID:kDt};function Gs(n,e,t){if(Lw.randomUUID&&!e&&!n)return Lw.randomUUID();n=n||{};const i=n.random||(n.rng||MDt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=i[s];return e}return DDt(i)}class co{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,t),this._listeners.push(t)}unsubscribe(e){if(this.listenerMap.has(e)){const t=this.listenerMap.get(e);this.listenerMap.delete(e);const i=this._listeners.indexOf(t);i>=0&&this._listeners.splice(i,1)}}registerProxy(e,t){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. -Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const i=this.proxies.indexOf(t);i>=0&&this.proxies.splice(i,1)}}class qt extends co{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class Un extends co{constructor(e){super(),this.entity=e}emit(e){let t=!1;const i=()=>[t=!0];for(const s of Array.from(this.listeners.values()))if(s(e,i,this.entity),t)return{prevented:!0};return{prevented:!1}}}class II extends co{execute(e,t){let i=e;for(const s of this.listeners)i=s(i,t);return i}}class li extends II{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class kDt extends co{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const i of this.listeners)t.push(i(e,this.entity));return t}}function Qi(){const n=Symbol(),e=new Map,t=new Set,i=(l,u)=>{u instanceof co&&u.registerProxy(n,()=>{var d,h;return(h=(d=e.get(l))===null||d===void 0?void 0:d.listeners)!==null&&h!==void 0?h:[]})},s=l=>{const u=new co;e.set(l,u),t.forEach(d=>i(l,d[l]))},r=l=>{t.add(l);for(const u of e.keys())i(u,l[u])},o=l=>{for(const u of e.keys())l[u]instanceof co&&l[u].unregisterProxy(n);t.delete(l)},a=()=>{t.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,u){return u==="addTarget"?r:u==="removeTarget"?o:u==="destroy"?a:typeof u!="string"||u.startsWith("_")?l[u]:(e.has(u)||s(u),e.get(u))}})}class Pw{constructor(e,t){if(this.destructed=!1,this.events={destruct:new qt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Gs(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class MI{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Gs(),this.from=e,this.to=t}}function bb(n,e){return Object.fromEntries(Object.entries(n).map(([t,i])=>[t,e(i)]))}class DI{constructor(){this._title="",this.id=Gs(),this.events={loaded:new qt(this),beforeAddInput:new Un(this),addInput:new qt(this),beforeRemoveInput:new Un(this),removeInput:new qt(this),beforeAddOutput:new Un(this),addOutput:new qt(this),beforeRemoveOutput:new Un(this),removeOutput:new qt(this),beforeTitleChanged:new Un(this),titleChanged:new qt(this),update:new qt(this)},this.hooks={beforeLoad:new li(this),afterSave:new li(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,i])=>{this.inputs[t]&&(this.inputs[t].load(i),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,i])=>{this.outputs[t]&&(this.outputs[t].load(i),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=bb(this.inputs,s=>s.save()),t=bb(this.outputs,s=>s.save()),i={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(i)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,i){i.isInput=e==="input",i.nodeId=this.id,i.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:i}))}addInterface(e,t,i){const s=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return s.emit(i).prevented?!1:(o[t]=i,this.initializeIntf(e,t,i),r.emit(i),!0)}removeInterface(e,t){const i=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,s=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[t]:this.outputs[t];if(!r||i.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],s.emit(r),!0}}let kI=class extends DI{load(e){super.load(e)}save(){return super.save()}};function Ja(n){return class extends kI{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(i,s)=>n.calculate.call(this,i,s):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(i=>{const s=t[i]();e==="input"?this.addInput(i,s):this.addOutput(i,s)})}}}class nn{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Gs(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new qt(this),beforeSetValue:new Un(this),setValue:new qt(this),updated:new qt(this)},this.hooks={load:new li(this),save:new li(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Da="__baklava_SubgraphInputNode",ka="__baklava_SubgraphOutputNode";class LI extends kI{constructor(){super(),this.graphInterfaceId=Gs()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class PI extends LI{constructor(){super(...arguments),this.type=Da,this.inputs={name:new nn("Name","Input")},this.outputs={placeholder:new nn("Value",void 0)}}static isGraphInputNode(e){return e.type===Da}}class UI extends LI{constructor(){super(...arguments),this.type=ka,this.inputs={name:new nn("Name","Output"),placeholder:new nn("Value",void 0)},this.outputs={output:new nn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===ka}}class Sc{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Da).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ka).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Gs(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Un(this),addNode:new qt(this),beforeRemoveNode:new Un(this),removeNode:new qt(this),beforeAddConnection:new Un(this),addConnection:new qt(this),checkConnection:new Un(this),beforeRemoveConnection:new Un(this),removeConnection:new qt(this)},this.hooks={save:new li(this),load:new li(this),checkConnection:new kDt(this)},this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(i=>t.includes(i.from)||t.includes(i.to)).forEach(i=>this.removeConnection(i)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const i=this.checkConnection(e,t);if(!i.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const r of i.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const s=new Pw(i.dummyConnection.from,i.dummyConnection.to);return this.internalAddConnection(s),s}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const i=this.findNodeById(e.nodeId),s=this.findNodeById(t.nodeId);if(i&&s&&i===s)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:t});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new MI(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const i in t.inputs){const s=t.inputs[i];if(s.id===e)return s}for(const i in t.outputs){const s=t.outputs[i];if(s.id===e)return s}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let i=this.connections.length-1;i>=0;i--)this.removeConnection(this.connections[i]);for(let i=this.nodes.length-1;i>=0;i--)this.removeNode(this.nodes[i]);this.id=e.id;for(const i of e.nodes){const s=this.editor.nodeTypes.get(i.type);if(!s){t.push(`Node type ${i.type} is not registered`);continue}const r=new s.type;this.addNode(r),r.load(i)}for(const i of e.connections){const s=this.findNodeInterface(i.from),r=this.findNodeInterface(i.to);if(s)if(r){const o=new Pw(s,r);o.id=i.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${i.to}`);continue}else{t.push(`Could not find interface with id ${i.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const lc="__baklava_GraphNode-";function La(n){return lc+n.id}function LDt(n){return class extends DI{constructor(){super(...arguments),this.type=La(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,i)=>{var s;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!i.engine||typeof i.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const r=i.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)r.set(l.nodeInterfaceId,t[l.id]);const o=await i.engine.runGraph(this.subgraph,r,i.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(s=o.get(l.nodeId))===null||s===void 0?void 0:s.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,new nn(t.name,void 0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(i=>i.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,new nn(t.name,void 0));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(i=>i.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new nn("_calculationResults",void 0).setHidden(!0))}}}class hp{static fromGraph(e,t){return new hp(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(La(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Da).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ka).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Gs(),this._name="Subgraph",this.events={nameChanged:new qt(this),updated:new qt(this)},this.hooks={beforeLoad:new li(this),afterSave:new li(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,i=f=>{const _=Gs();return t.set(f,_),_},s=f=>{const _=t.get(f);if(!_)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return _},r=f=>bb(f,_=>({id:i(_.id),templateId:_.id,value:_.value})),o=this.nodes.map(f=>({...f,id:i(f.id),inputs:r(f.inputs),outputs:r(f.outputs)})),a=this.connections.map(f=>({id:i(f.id),from:s(f.from),to:s(f.to)})),l=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:s(f.nodeId),nodeInterfaceId:s(f.nodeInterfaceId)})),u=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:s(f.nodeId),nodeInterfaceId:s(f.nodeInterfaceId)})),d={id:Gs(),nodes:o,connections:a,inputs:l,outputs:u};return e||(e=new Sc(this.editor)),e.load(d).forEach(f=>console.warn(f)),e.template=this,e}}class PDt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new qt(this),beforeRegisterNodeType:new Un(this),registerNodeType:new qt(this),beforeUnregisterNodeType:new Un(this),unregisterNodeType:new qt(this),beforeAddGraphTemplate:new Un(this),addGraphTemplate:new qt(this),beforeRemoveGraphTemplate:new Un(this),removeGraphTemplate:new qt(this),registerGraph:new qt(this),unregisterGraph:new qt(this)},this.hooks={save:new li(this),load:new li(this)},this.graphTemplateEvents=Qi(),this.graphTemplateHooks=Qi(),this.graphEvents=Qi(),this.graphHooks=Qi(),this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new Sc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(PI),this.registerNodeType(UI)}registerNodeType(e,t){var i,s;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(i=t==null?void 0:t.category)!==null&&i!==void 0?i:"default",title:(s=t==null?void 0:t.title)!==null&&s!==void 0?s:r.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=LDt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=La(e);for(const i of[this.graph,...this.graphs.values()]){const s=i.nodes.filter(r=>r.type===t);for(const r of s)i.removeNode(r)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(i=>{const s=new hp(i,this);this.addGraphTemplate(s)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(i=>console.warn(i)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function UDt(n,e){const t=new Map;e.graphs.forEach(i=>{i.nodes.forEach(s=>t.set(s.id,s))}),n.forEach((i,s)=>{const r=t.get(s);r&&i.forEach((o,a)=>{const l=r.outputs[a];l&&(l.value=o)})})}class FI extends Error{constructor(){super("Cycle detected")}}function FDt(n){return typeof n=="string"}function BI(n,e){const t=new Map,i=new Map,s=new Map;let r,o;if(n instanceof Sc)r=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=n,o=e}r.forEach(u=>{Object.values(u.inputs).forEach(d=>t.set(d.id,u.id)),Object.values(u.outputs).forEach(d=>t.set(d.id,u.id))}),r.forEach(u=>{const d=o.filter(f=>f.from&&t.get(f.from.id)===u.id),h=new Set(d.map(f=>t.get(f.to.id)).filter(FDt));i.set(u.id,h),s.set(u,d)});const a=r.slice();o.forEach(u=>{const d=a.findIndex(h=>t.get(u.to.id)===h.id);d>=0&&a.splice(d,1)});const l=[];for(;a.length>0;){const u=a.pop();l.push(u);const d=i.get(u.id);for(;d.size>0;){const h=d.values().next().value;if(d.delete(h),Array.from(i.values()).every(f=>!f.has(h))){const f=r.find(_=>_.id===h);a.push(f)}}}if(Array.from(i.values()).some(u=>u.size>0))throw new FI;return{calculationOrder:l,connectionsFromNode:s,interfaceIdToNodeId:t}}function BDt(n,e){try{return BI(n,e),!1}catch(t){if(t instanceof FI)return!0;throw t}}var Kn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Kn||(Kn={}));class GDt{get status(){return this.isRunning?Kn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Un(this),afterRun:new qt(this),statusChange:new qt(this),beforeNodeCalculation:new qt(this),afterNodeCalculation:new qt(this)},this.hooks={gatherCalculationData:new li(this),transferData:new II},this.recalculateOrder=!0,this.internalStatus=Kn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,i)=>{i.graph&&!i.graph.loading&&i.graph.activeTransactions===0&&this.internalOnChange(i,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Kn.Stopped&&(this.internalStatus=Kn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Kn.Idle&&(this.internalStatus=Kn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Kn.Paused&&(this.internalStatus=Kn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Kn.Idle||this.internalStatus===Kn.Paused)&&(this.internalStatus=Kn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const i=await this.execute(e,...t);return this.events.afterRun.emit(i),i}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(t.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};t=r}const i=new MI(e,t);let s=this.editor.graph.connections.slice();return t.allowMultipleConnections||(s=s.filter(r=>r.to!==t)),s.push(i),BDt(this.editor.graph.nodes,s)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(i=>{if(!(i in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${i}"`)})}internalOnChange(e,t){this.internalStatus===Kn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const i of e)for(const s of[...Object.values(i.inputs),...Object.values(i.outputs)])if(s.templateId===t)return s;return null}}class VDt extends GDt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,i){this.order.has(e.id)||this.order.set(e.id,BI(e));const{calculationOrder:s,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of s){const l={};Object.entries(a.inputs).forEach(([d,h])=>{l[d]=this.getInterfaceValue(t,h.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let u;if(a.calculate)u=await a.calculate(l,{globalValues:i,engine:this});else{u={};for(const[d,h]of Object.entries(a.outputs))u[d]=this.getInterfaceValue(t,h.id)}this.validateNodeCalculationOutput(a,u),this.events.afterNodeCalculation.emit({outputValues:u,node:a}),o.set(a.id,new Map(Object.entries(u))),r.has(a)&&r.get(a).forEach(d=>{var h;const f=(h=Object.entries(a.outputs).find(([,m])=>m.id===d.from.id))===null||h===void 0?void 0:h[0];if(!f)throw new Error(`Could not find key for interface ${d.from.id} +Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const i=this.proxies.indexOf(t);i>=0&&this.proxies.splice(i,1)}}class qt extends co{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class Un extends co{constructor(e){super(),this.entity=e}emit(e){let t=!1;const i=()=>[t=!0];for(const s of Array.from(this.listeners.values()))if(s(e,i,this.entity),t)return{prevented:!0};return{prevented:!1}}}class II extends co{execute(e,t){let i=e;for(const s of this.listeners)i=s(i,t);return i}}class li extends II{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class LDt extends co{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const i of this.listeners)t.push(i(e,this.entity));return t}}function Qi(){const n=Symbol(),e=new Map,t=new Set,i=(l,u)=>{u instanceof co&&u.registerProxy(n,()=>{var d,h;return(h=(d=e.get(l))===null||d===void 0?void 0:d.listeners)!==null&&h!==void 0?h:[]})},s=l=>{const u=new co;e.set(l,u),t.forEach(d=>i(l,d[l]))},r=l=>{t.add(l);for(const u of e.keys())i(u,l[u])},o=l=>{for(const u of e.keys())l[u]instanceof co&&l[u].unregisterProxy(n);t.delete(l)},a=()=>{t.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,u){return u==="addTarget"?r:u==="removeTarget"?o:u==="destroy"?a:typeof u!="string"||u.startsWith("_")?l[u]:(e.has(u)||s(u),e.get(u))}})}class Pw{constructor(e,t){if(this.destructed=!1,this.events={destruct:new qt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Gs(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class MI{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Gs(),this.from=e,this.to=t}}function bb(n,e){return Object.fromEntries(Object.entries(n).map(([t,i])=>[t,e(i)]))}class DI{constructor(){this._title="",this.id=Gs(),this.events={loaded:new qt(this),beforeAddInput:new Un(this),addInput:new qt(this),beforeRemoveInput:new Un(this),removeInput:new qt(this),beforeAddOutput:new Un(this),addOutput:new qt(this),beforeRemoveOutput:new Un(this),removeOutput:new qt(this),beforeTitleChanged:new Un(this),titleChanged:new qt(this),update:new qt(this)},this.hooks={beforeLoad:new li(this),afterSave:new li(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,i])=>{this.inputs[t]&&(this.inputs[t].load(i),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,i])=>{this.outputs[t]&&(this.outputs[t].load(i),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=bb(this.inputs,s=>s.save()),t=bb(this.outputs,s=>s.save()),i={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(i)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,i){i.isInput=e==="input",i.nodeId=this.id,i.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:i}))}addInterface(e,t,i){const s=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return s.emit(i).prevented?!1:(o[t]=i,this.initializeIntf(e,t,i),r.emit(i),!0)}removeInterface(e,t){const i=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,s=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[t]:this.outputs[t];if(!r||i.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],s.emit(r),!0}}let kI=class extends DI{load(e){super.load(e)}save(){return super.save()}};function Ja(n){return class extends kI{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(i,s)=>n.calculate.call(this,i,s):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(i=>{const s=t[i]();e==="input"?this.addInput(i,s):this.addOutput(i,s)})}}}class nn{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Gs(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new qt(this),beforeSetValue:new Un(this),setValue:new qt(this),updated:new qt(this)},this.hooks={load:new li(this),save:new li(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Da="__baklava_SubgraphInputNode",ka="__baklava_SubgraphOutputNode";class LI extends kI{constructor(){super(),this.graphInterfaceId=Gs()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class PI extends LI{constructor(){super(...arguments),this.type=Da,this.inputs={name:new nn("Name","Input")},this.outputs={placeholder:new nn("Value",void 0)}}static isGraphInputNode(e){return e.type===Da}}class UI extends LI{constructor(){super(...arguments),this.type=ka,this.inputs={name:new nn("Name","Output"),placeholder:new nn("Value",void 0)},this.outputs={output:new nn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===ka}}class Sc{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Da).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ka).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Gs(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Un(this),addNode:new qt(this),beforeRemoveNode:new Un(this),removeNode:new qt(this),beforeAddConnection:new Un(this),addConnection:new qt(this),checkConnection:new Un(this),beforeRemoveConnection:new Un(this),removeConnection:new qt(this)},this.hooks={save:new li(this),load:new li(this),checkConnection:new LDt(this)},this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(i=>t.includes(i.from)||t.includes(i.to)).forEach(i=>this.removeConnection(i)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const i=this.checkConnection(e,t);if(!i.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const r of i.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const s=new Pw(i.dummyConnection.from,i.dummyConnection.to);return this.internalAddConnection(s),s}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const i=this.findNodeById(e.nodeId),s=this.findNodeById(t.nodeId);if(i&&s&&i===s)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:t});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new MI(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const i in t.inputs){const s=t.inputs[i];if(s.id===e)return s}for(const i in t.outputs){const s=t.outputs[i];if(s.id===e)return s}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let i=this.connections.length-1;i>=0;i--)this.removeConnection(this.connections[i]);for(let i=this.nodes.length-1;i>=0;i--)this.removeNode(this.nodes[i]);this.id=e.id;for(const i of e.nodes){const s=this.editor.nodeTypes.get(i.type);if(!s){t.push(`Node type ${i.type} is not registered`);continue}const r=new s.type;this.addNode(r),r.load(i)}for(const i of e.connections){const s=this.findNodeInterface(i.from),r=this.findNodeInterface(i.to);if(s)if(r){const o=new Pw(s,r);o.id=i.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${i.to}`);continue}else{t.push(`Could not find interface with id ${i.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const lc="__baklava_GraphNode-";function La(n){return lc+n.id}function PDt(n){return class extends DI{constructor(){super(...arguments),this.type=La(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,i)=>{var s;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!i.engine||typeof i.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const r=i.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)r.set(l.nodeInterfaceId,t[l.id]);const o=await i.engine.runGraph(this.subgraph,r,i.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(s=o.get(l.nodeId))===null||s===void 0?void 0:s.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,new nn(t.name,void 0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(i=>i.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,new nn(t.name,void 0));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(i=>i.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new nn("_calculationResults",void 0).setHidden(!0))}}}class hp{static fromGraph(e,t){return new hp(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(La(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Da).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ka).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Gs(),this._name="Subgraph",this.events={nameChanged:new qt(this),updated:new qt(this)},this.hooks={beforeLoad:new li(this),afterSave:new li(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,i=f=>{const _=Gs();return t.set(f,_),_},s=f=>{const _=t.get(f);if(!_)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return _},r=f=>bb(f,_=>({id:i(_.id),templateId:_.id,value:_.value})),o=this.nodes.map(f=>({...f,id:i(f.id),inputs:r(f.inputs),outputs:r(f.outputs)})),a=this.connections.map(f=>({id:i(f.id),from:s(f.from),to:s(f.to)})),l=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:s(f.nodeId),nodeInterfaceId:s(f.nodeInterfaceId)})),u=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:s(f.nodeId),nodeInterfaceId:s(f.nodeInterfaceId)})),d={id:Gs(),nodes:o,connections:a,inputs:l,outputs:u};return e||(e=new Sc(this.editor)),e.load(d).forEach(f=>console.warn(f)),e.template=this,e}}class UDt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new qt(this),beforeRegisterNodeType:new Un(this),registerNodeType:new qt(this),beforeUnregisterNodeType:new Un(this),unregisterNodeType:new qt(this),beforeAddGraphTemplate:new Un(this),addGraphTemplate:new qt(this),beforeRemoveGraphTemplate:new Un(this),removeGraphTemplate:new qt(this),registerGraph:new qt(this),unregisterGraph:new qt(this)},this.hooks={save:new li(this),load:new li(this)},this.graphTemplateEvents=Qi(),this.graphTemplateHooks=Qi(),this.graphEvents=Qi(),this.graphHooks=Qi(),this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new Sc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(PI),this.registerNodeType(UI)}registerNodeType(e,t){var i,s;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(i=t==null?void 0:t.category)!==null&&i!==void 0?i:"default",title:(s=t==null?void 0:t.title)!==null&&s!==void 0?s:r.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=PDt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=La(e);for(const i of[this.graph,...this.graphs.values()]){const s=i.nodes.filter(r=>r.type===t);for(const r of s)i.removeNode(r)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(i=>{const s=new hp(i,this);this.addGraphTemplate(s)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(i=>console.warn(i)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function FDt(n,e){const t=new Map;e.graphs.forEach(i=>{i.nodes.forEach(s=>t.set(s.id,s))}),n.forEach((i,s)=>{const r=t.get(s);r&&i.forEach((o,a)=>{const l=r.outputs[a];l&&(l.value=o)})})}class FI extends Error{constructor(){super("Cycle detected")}}function BDt(n){return typeof n=="string"}function BI(n,e){const t=new Map,i=new Map,s=new Map;let r,o;if(n instanceof Sc)r=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=n,o=e}r.forEach(u=>{Object.values(u.inputs).forEach(d=>t.set(d.id,u.id)),Object.values(u.outputs).forEach(d=>t.set(d.id,u.id))}),r.forEach(u=>{const d=o.filter(f=>f.from&&t.get(f.from.id)===u.id),h=new Set(d.map(f=>t.get(f.to.id)).filter(BDt));i.set(u.id,h),s.set(u,d)});const a=r.slice();o.forEach(u=>{const d=a.findIndex(h=>t.get(u.to.id)===h.id);d>=0&&a.splice(d,1)});const l=[];for(;a.length>0;){const u=a.pop();l.push(u);const d=i.get(u.id);for(;d.size>0;){const h=d.values().next().value;if(d.delete(h),Array.from(i.values()).every(f=>!f.has(h))){const f=r.find(_=>_.id===h);a.push(f)}}}if(Array.from(i.values()).some(u=>u.size>0))throw new FI;return{calculationOrder:l,connectionsFromNode:s,interfaceIdToNodeId:t}}function GDt(n,e){try{return BI(n,e),!1}catch(t){if(t instanceof FI)return!0;throw t}}var Kn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Kn||(Kn={}));class VDt{get status(){return this.isRunning?Kn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Un(this),afterRun:new qt(this),statusChange:new qt(this),beforeNodeCalculation:new qt(this),afterNodeCalculation:new qt(this)},this.hooks={gatherCalculationData:new li(this),transferData:new II},this.recalculateOrder=!0,this.internalStatus=Kn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,i)=>{i.graph&&!i.graph.loading&&i.graph.activeTransactions===0&&this.internalOnChange(i,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Kn.Stopped&&(this.internalStatus=Kn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Kn.Idle&&(this.internalStatus=Kn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Kn.Paused&&(this.internalStatus=Kn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Kn.Idle||this.internalStatus===Kn.Paused)&&(this.internalStatus=Kn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const i=await this.execute(e,...t);return this.events.afterRun.emit(i),i}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(t.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};t=r}const i=new MI(e,t);let s=this.editor.graph.connections.slice();return t.allowMultipleConnections||(s=s.filter(r=>r.to!==t)),s.push(i),GDt(this.editor.graph.nodes,s)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(i=>{if(!(i in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${i}"`)})}internalOnChange(e,t){this.internalStatus===Kn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const i of e)for(const s of[...Object.values(i.inputs),...Object.values(i.outputs)])if(s.templateId===t)return s;return null}}class zDt extends VDt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,i){this.order.has(e.id)||this.order.set(e.id,BI(e));const{calculationOrder:s,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of s){const l={};Object.entries(a.inputs).forEach(([d,h])=>{l[d]=this.getInterfaceValue(t,h.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let u;if(a.calculate)u=await a.calculate(l,{globalValues:i,engine:this});else{u={};for(const[d,h]of Object.entries(a.outputs))u[d]=this.getInterfaceValue(t,h.id)}this.validateNodeCalculationOutput(a,u),this.events.afterNodeCalculation.emit({outputValues:u,node:a}),o.set(a.id,new Map(Object.entries(u))),r.has(a)&&r.get(a).forEach(d=>{var h;const f=(h=Object.entries(a.outputs).find(([,m])=>m.id===d.from.id))===null||h===void 0?void 0:h[0];if(!f)throw new Error(`Could not find key for interface ${d.from.id} This is likely a Baklava internal issue. Please report it on GitHub.`);const _=this.hooks.transferData.execute(u[f],d);d.to.allowMultipleConnections?t.has(d.to.id)?t.get(d.to.id).push(_):t.set(d.to.id,[_]):t.set(d.to.id,_)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const i of e.nodes)Object.values(i.inputs).forEach(s=>{s.connectionCount===0&&t.set(s.id,s.value)}),i.calculate||Object.values(i.outputs).forEach(s=>{t.set(s.id,s.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t} -This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}let Eb=null;function zDt(n){Eb=n}function Oi(){if(!Eb)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Eb}}function Ki(){const{viewModel:n}=Oi();return{graph:$d(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function GI(n){const{graph:e}=Ki(),t=ft(null),i=ft(null);return{dragging:st(()=>!!t.value),onPointerDown:l=>{t.value={x:l.pageX,y:l.pageY},i.value={x:n.value.x,y:n.value.y}},onPointerMove:l=>{if(t.value){const u=l.pageX-t.value.x,d=l.pageY-t.value.y;n.value.x=i.value.x+u/e.value.scaling,n.value.y=i.value.y+d/e.value.scaling}},onPointerUp:()=>{t.value=null,i.value=null}}}function VI(n,e,t){if(!e.template)return!1;if(La(e.template)===t)return!0;const i=n.graphTemplates.find(r=>La(r)===t);return i?i.nodes.filter(r=>r.type.startsWith(lc)).some(r=>VI(n,e,r.type)):!1}function zI(n){return st(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,s])=>s.category)),i=[];for(const s of t.values()){let r=e.filter(([,o])=>o.category===s);n.value.displayedGraph.template?r=r.filter(([o])=>!VI(n.value.editor,n.value.displayedGraph,o)):r=r.filter(([o])=>![Da,ka].includes(o)),r.length>0&&i.push({name:s,nodeTypes:Object.fromEntries(r)})}return i.sort((s,r)=>s.name==="default"?-1:r.name==="default"||s.name>r.name?1:-1),i})}function HI(){const{graph:n}=Ki();return{transform:(t,i)=>{const s=t/n.value.scaling-n.value.panning.x,r=i/n.value.scaling-n.value.panning.y;return[s,r]}}}function HDt(){const{graph:n}=Ki();let e=[],t=-1,i={x:0,y:0};const s=st(()=>n.value.panning),r=GI(s),o=st(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(_,m,E)=>{const b=[_/n.value.scaling-n.value.panning.x,m/n.value.scaling-n.value.panning.y],g=[_/E-n.value.panning.x,m/E-n.value.panning.y],y=[g[0]-b[0],g[1]-b[1]];n.value.panning.x+=y[0],n.value.panning.y+=y[1],n.value.scaling=E},l=_=>{_.preventDefault();let m=_.deltaY;_.deltaMode===1&&(m*=32);const E=n.value.scaling*(1-m/3e3);a(_.offsetX,_.offsetY,E)},u=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:_=>{if(e.push(_),r.onPointerDown(_),e.length===2){const{ax:m,ay:E,bx:b,by:g}=u();i={x:m+(b-m)/2,y:E+(g-E)/2}}},onPointerMove:_=>{for(let m=0;m0){const C=n.value.scaling*(1+(S-t)/500);a(i.x,i.y,C)}t=S}else r.onPointerMove(_)},onPointerUp:_=>{e=e.filter(m=>m.pointerId!==_.pointerId),t=-1,r.onPointerUp()},onMouseWheel:l}}var Ei=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(Ei||{});const qI=Symbol();function qDt(){const{graph:n}=Ki(),e=ft(null),t=ft(null),i=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},s=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(l=>l.to===t.value);t.value.isInput&&a?(e.value={status:Ei.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:Ei.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const l=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?Ei.ALLOWED:Ei.FORBIDDEN,l.connectionAllowed){const u=l.connectionsInDanger.map(d=>d.id);n.value.connections.forEach(d=>{u.includes(d.id)&&(d.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=Ei.NONE,n.value.connections.forEach(l=>{l.isInDanger=!1}))};return sa(qI,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:i,onMouseDown:s,onMouseUp:r,hoveredOver:o}}function YDt(n){const e=ft(!1),t=ft(0),i=ft(0),s=zI(n),{transform:r}=HI(),o=st(()=>{let d=[];const h={};for(const _ of s.value){const m=Object.entries(_.nodeTypes).map(([E,b])=>({label:b.title,value:"addNode:"+E}));_.name==="default"?d=m:h[_.name]=m}const f=[...Object.entries(h).map(([_,m])=>({label:_,submenu:m}))];return f.length>0&&d.length>0&&f.push({isDivider:!0}),f.push(...d),f}),a=st(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(d=>"isDivider"in d||"submenu"in d?d:{label:d.label,value:"command:"+d.command,disabled:!n.value.commandHandler.canExecuteCommand(d.command)})]);function l(d){e.value=!0,t.value=d.offsetX,i.value=d.offsetY}function u(d){if(d.startsWith("addNode:")){const h=d.substring(8),f=n.value.editor.nodeTypes.get(h);if(!f)return;const _=ei(new f.type);n.value.displayedGraph.addNode(_);const[m,E]=r(t.value,i.value);_.position.x=m,_.position.y=E}else if(d.startsWith("command:")){const h=d.substring(8);n.value.commandHandler.canExecuteCommand(h)&&n.value.commandHandler.executeCommand(h)}}return{show:e,x:t,y:i,items:a,open:l,onClick:u}}const $Dt=_n({setup(){const{viewModel:n}=Oi(),{graph:e}=Ki();return{styles:st(()=>{const i=n.value.settings.background,s=e.value.panning.x*e.value.scaling,r=e.value.panning.y*e.value.scaling,o=e.value.scaling*i.gridSize,a=o/i.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,u=e.value.scaling>i.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${s}px top ${r}px`,backgroundSize:`${l} ${u}`}})}}}),hn=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t};function WDt(n,e,t,i,s,r){return w(),A("div",{class:"background",style:en(n.styles)},null,4)}const KDt=hn($Dt,[["render",WDt]]);function jDt(n){return tR()?(NM(n),!0):!1}function uy(n){return typeof n=="function"?n():yt(n)}const YI=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const QDt=Object.prototype.toString,XDt=n=>QDt.call(n)==="[object Object]",Vd=()=>{},ZDt=JDt();function JDt(){var n,e;return YI&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ekt(n,e,t=!1){return e.reduce((i,s)=>(s in n&&(!t||n[s]!==void 0)&&(i[s]=n[s]),i),{})}function tkt(n,e={}){if(!fn(n))return d2(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=c2(()=>({get(){return n.value[i]},set(s){var r;if((r=uy(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function Al(n){var e;const t=uy(n);return(e=t==null?void 0:t.$el)!=null?e:t}const py=YI?window:void 0;function Vl(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=py):[e,t,i,s]=n,!e)return Vd;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,f,_)=>(d.addEventListener(h,f,_),()=>d.removeEventListener(h,f,_)),l=qn(()=>[Al(e),uy(s)],([d,h])=>{if(o(),!d)return;const f=XDt(h)?{...h}:h;r.push(...t.flatMap(_=>i.map(m=>a(d,_,m,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return jDt(u),u}let Uw=!1;function $I(n,e,t={}){const{window:i=py,ignore:s=[],capture:r=!0,detectIframe:o=!1}=t;if(!i)return Vd;ZDt&&!Uw&&(Uw=!0,Array.from(i.document.body.children).forEach(f=>f.addEventListener("click",Vd)),i.document.documentElement.addEventListener("click",Vd));let a=!0;const l=f=>s.some(_=>{if(typeof _=="string")return Array.from(i.document.querySelectorAll(_)).some(m=>m===f.target||f.composedPath().includes(m));{const m=Al(_);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[Vl(i,"click",f=>{const _=Al(n);if(!(!_||_===f.target||f.composedPath().includes(_))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),Vl(i,"pointerdown",f=>{const _=Al(n);a=!l(f)&&!!(_&&!f.composedPath().includes(_))},{passive:!0}),o&&Vl(i,"blur",f=>{setTimeout(()=>{var _;const m=Al(n);((_=i.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!(m!=null&&m.contains(i.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>d.forEach(f=>f())}const WI={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},nkt=Object.keys(WI);function ikt(n={}){const{target:e=py}=n,t=ft(!1),i=ft(n.initialValue||{});Object.assign(i.value,WI,i.value);const s=r=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(r.pointerType))&&(i.value=ekt(r,nkt,!1))};if(e){const r={passive:!0};Vl(e,["pointerdown","pointermove","pointerup"],s,r),Vl(e,"pointerleave",()=>t.value=!1,r)}return{...tkt(i),isInside:t}}const skt=["onMouseenter","onMouseleave","onClick"],rkt={class:"flex-fill"},okt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},akt=c("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[c("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),lkt=[akt],_y=_n({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,i=e;let s=null;const r=ft(null),o=ft(-1),a=ft(0),l=ft({x:!1,y:!1}),u=st(()=>t.flippable&&(l.value.x||t.isFlipped.x)),d=st(()=>t.flippable&&(l.value.y||t.isFlipped.y)),h=st(()=>{const y={};return t.isNested||(y.top=(d.value?t.y-a.value:t.y)+"px",y.left=t.x+"px"),y}),f=st(()=>({"--flipped-x":u.value,"--flipped-y":d.value,"--nested":t.isNested})),_=st(()=>t.items.map(y=>({...y,hover:!1})));qn([()=>t.y,()=>t.items],()=>{var y,v,S,C;a.value=t.items.length*30;const T=((v=(y=r.value)==null?void 0:y.parentElement)==null?void 0:v.offsetWidth)??0,O=((C=(S=r.value)==null?void 0:S.parentElement)==null?void 0:C.offsetHeight)??0;l.value.x=!t.isNested&&t.x>T*.75,l.value.y=!t.isNested&&t.y+a.value>O-20}),$I(r,()=>{t.modelValue&&i("update:modelValue",!1)});const m=y=>{!y.submenu&&y.value&&(i("click",y.value),i("update:modelValue",!1))},E=y=>{i("click",y),o.value=-1,t.isNested||i("update:modelValue",!1)},b=(y,v)=>{t.items[v].submenu&&(o.value=v,s!==null&&(clearTimeout(s),s=null))},g=(y,v)=>{t.items[v].submenu&&(s=window.setTimeout(()=>{o.value=-1,s=null},200))};return(y,v)=>{const S=mt("ContextMenu",!0);return w(),xt(cs,{name:"slide-fade"},{default:We(()=>[G(c("div",{ref_key:"el",ref:r,class:He(["baklava-context-menu",f.value]),style:en(h.value)},[(w(!0),A(Ye,null,lt(_.value,(C,T)=>(w(),A(Ye,null,[C.isDivider?(w(),A("div",{key:`d-${T}`,class:"divider"})):(w(),A("div",{key:`i-${T}`,class:He(["item",{submenu:!!C.submenu,"--disabled":!!C.disabled}]),onMouseenter:O=>b(O,T),onMouseleave:O=>g(O,T),onClick:be(O=>m(C),["stop","prevent"])},[c("div",rkt,he(C.label),1),C.submenu?(w(),A("div",okt,lkt)):V("",!0),C.submenu?(w(),xt(S,{key:1,"model-value":o.value===T,items:C.submenu,"is-nested":!0,"is-flipped":{x:u.value,y:d.value},flippable:y.flippable,onClick:E},null,8,["model-value","items","is-flipped","flippable"])):V("",!0)],42,skt))],64))),256))],6),[[Mt,y.modelValue]])]),_:1})}}}),ckt={},dkt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ukt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),pkt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),_kt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),hkt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),fkt=[ukt,pkt,_kt,hkt];function mkt(n,e){return w(),A("svg",dkt,fkt)}const KI=hn(ckt,[["render",mkt]]),gkt=["id"],bkt={key:0,class:"__tooltip"},Ekt={key:2,class:"align-middle"},Fw=_n({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,g=100)=>{const y=b!=null&&b.toString?b.toString():"";return y.length>g?y.slice(0,g)+"...":y},t=n,{viewModel:i}=Oi(),{hoveredOver:s,temporaryConnection:r}=Vi(qI),o=ft(null),a=st(()=>t.intf.connectionCount>0),l=ft(!1),u=st(()=>i.value.settings.displayValueOnHover&&l.value),d=st(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),h=st(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),f=()=>{l.value=!0,s(t.intf)},_=()=>{l.value=!1,s(void 0)},m=()=>{o.value&&i.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},E=()=>{const b=i.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return Ws(m),uc(m),(b,g)=>{var y;return w(),A("div",{id:b.intf.id,ref_key:"el",ref:o,class:He(["baklava-node-interface",d.value])},[b.intf.port?(w(),A("div",{key:0,class:He(["__port",{"--selected":((y=yt(r))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:_},[kn(b.$slots,"portTooltip",{showTooltip:u.value},()=>[u.value===!0?(w(),A("span",bkt,he(e(b.intf.value)),1)):V("",!0)])],34)):V("",!0),h.value?(w(),xt(Lu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":g[0]||(g[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:E},null,40,["modelValue","node","intf"])):(w(),A("span",Ekt,he(b.intf.name),1))],10,gkt)}}}),ykt=["id","data-node-type"],vkt={class:"__title-label"},Skt={class:"__menu"},Tkt={class:"__outputs"},xkt={class:"__inputs"},Ckt=_n({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,i=e,{viewModel:s}=Oi(),{graph:r,switchGraph:o}=Ki(),a=ft(null),l=ft(!1),u=ft(""),d=ft(null),h=ft(!1),f=ft(!1),_=st(()=>{const F=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(lc)&&F.push({value:"editSubgraph",label:"Edit Subgraph"}),F}),m=st(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),E=st(()=>{var F,B;return{top:`${((F=t.node.position)==null?void 0:F.y)??0}px`,left:`${((B=t.node.position)==null?void 0:B.x)??0}px`,"--width":`${t.node.width??s.value.settings.nodes.defaultWidth}px`}}),b=st(()=>Object.values(t.node.inputs).filter(F=>!F.hidden)),g=st(()=>Object.values(t.node.outputs).filter(F=>!F.hidden)),y=()=>{i("select")},v=F=>{t.selected||y(),i("start-drag",F)},S=()=>{f.value=!0},C=async F=>{var B;switch(F){case"delete":r.value.removeNode(t.node);break;case"rename":u.value=t.node.title,l.value=!0,await Ge(),(B=d.value)==null||B.focus();break;case"editSubgraph":o(t.node.template);break}},T=()=>{t.node.title=u.value,l.value=!1},O=()=>{a.value&&s.value.hooks.renderNode.execute({node:t.node,el:a.value})},k=F=>{h.value=!0,F.preventDefault()},x=F=>{if(!h.value)return;const B=t.node.width+F.movementX/r.value.scaling,ne=s.value.settings.nodes.minWidth,L=s.value.settings.nodes.maxWidth;t.node.width=Math.max(ne,Math.min(L,B))},I=()=>{h.value=!1};return Ws(()=>{O(),window.addEventListener("mousemove",x),window.addEventListener("mouseup",I)}),uc(O),Va(()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",I)}),(F,B)=>(w(),A("div",{id:F.node.id,ref_key:"el",ref:a,class:He(["baklava-node",m.value]),style:en(E.value),"data-node-type":F.node.type,onPointerdown:y},[yt(s).settings.nodes.resizable?(w(),A("div",{key:0,class:"__resize-handle",onMousedown:k},null,32)):V("",!0),kn(F.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:be(v,["self","stop"])},[l.value?G((w(),A("input",{key:1,ref_key:"renameInputEl",ref:d,"onUpdate:modelValue":B[1]||(B[1]=ne=>u.value=ne),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:T,onKeydown:Hs(T,["enter"])},null,544)),[[we,u.value]]):(w(),A(Ye,{key:0},[c("div",vkt,he(F.node.title),1),c("div",Skt,[Te(KI,{class:"--clickable",onClick:S}),Te(_y,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=ne=>f.value=ne),x:0,y:0,items:_.value,onClick:C},null,8,["modelValue","items"])])],64))],32)]),kn(F.$slots,"content",{},()=>[c("div",{class:"__content",onKeydown:B[2]||(B[2]=Hs(be(()=>{},["stop"]),["delete"]))},[c("div",Tkt,[(w(!0),A(Ye,null,lt(g.value,ne=>kn(F.$slots,"nodeInterface",{key:ne.id,type:"output",node:F.node,intf:ne},()=>[Te(Fw,{node:F.node,intf:ne},null,8,["node","intf"])])),128))]),c("div",xkt,[(w(!0),A(Ye,null,lt(b.value,ne=>kn(F.$slots,"nodeInterface",{key:ne.id,type:"input",node:F.node,intf:ne},()=>[Te(Fw,{node:F.node,intf:ne},null,8,["node","intf"])])),128))])],32)])],46,ykt))}}),wkt=_n({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:Ei.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=Oi(),{graph:t}=Ki(),i=(o,a)=>{const l=(o+t.value.panning.x)*t.value.scaling,u=(a+t.value.panning.y)*t.value.scaling;return[l,u]},s=st(()=>{const[o,a]=i(n.x1,n.y1),[l,u]=i(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${u}`;{const d=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+d} ${a}, ${l-d} ${u}, ${l} ${u}`}}),r=st(()=>({"--temporary":n.isTemporary,"--allowed":n.state===Ei.ALLOWED,"--forbidden":n.state===Ei.FORBIDDEN}));return{d:s,classes:r}}}),Rkt=["d"];function Akt(n,e,t,i,s,r){return w(),A("path",{class:He(["baklava-connection",n.classes]),d:n.d},null,10,Rkt)}const jI=hn(wkt,[["render",Akt]]);function Nkt(n){return document.getElementById(n.id)}function Pa(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const Okt=_n({components:{"connection-view":jI},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ki();let t;const i=ft({x1:0,y1:0,x2:0,y2:0}),s=st(()=>n.connection.isInDanger?Ei.FORBIDDEN:Ei.NONE),r=st(()=>{var u;return(u=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:u.position}),o=st(()=>{var u;return(u=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:u.position}),a=u=>u.node&&u.interface&&u.port?[u.node.offsetLeft+u.interface.offsetLeft+u.port.offsetLeft+u.port.clientWidth/2,u.node.offsetTop+u.interface.offsetTop+u.port.offsetTop+u.port.clientHeight/2]:[0,0],l=()=>{const u=Pa(n.connection.from),d=Pa(n.connection.to);u.node&&d.node&&(t||(t=new ResizeObserver(()=>{l()}),t.observe(u.node),t.observe(d.node)));const[h,f]=a(u),[_,m]=a(d);i.value={x1:h,y1:f,x2:_,y2:m}};return Ws(async()=>{await Ge(),l()}),Va(()=>{t&&t.disconnect()}),qn([r,o],()=>l(),{deep:!0}),{d:i,state:s}}});function Ikt(n,e,t,i,s,r){const o=mt("connection-view");return w(),xt(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const Mkt=hn(Okt,[["render",Ikt]]);function yu(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const Dkt=_n({components:{"connection-view":jI},props:{connection:{type:Object,required:!0}},setup(n){const e=st(()=>n.connection?n.connection.status:Ei.NONE);return{d:st(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const i=yu(Pa(n.connection.from)),s=n.connection.to?yu(Pa(n.connection.to)):[n.connection.mx||i[0],n.connection.my||i[1]];return n.connection.from.isInput?{input:s,output:i}:{input:i,output:s}}),status:e}}});function kkt(n,e,t,i,s,r){const o=mt("connection-view");return w(),xt(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const Lkt=hn(Dkt,[["render",kkt]]),Pkt=_n({setup(){const{viewModel:n}=Oi(),{graph:e}=Ki(),t=ft(null),i=$d(n.value.settings.sidebar,"width"),s=st(()=>n.value.settings.sidebar.resizable),r=st(()=>{const h=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===h)}),o=st(()=>({width:`${i.value}px`})),a=st(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},u=()=>{window.addEventListener("mousemove",d),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",d)},{once:!0})},d=h=>{var f,_;const m=((_=(f=t.value)==null?void 0:f.parentElement)==null?void 0:_.getBoundingClientRect().width)??500;let E=i.value-h.movementX;E<300?E=300:E>.9*m&&(E=.9*m),i.value=E};return{el:t,graph:e,resizable:s,node:r,styles:o,displayedInterfaces:a,startResize:u,close:l}}}),Ukt={class:"__header"},Fkt={class:"__node-name"};function Bkt(n,e,t,i,s,r){return w(),A("div",{ref:"el",class:He(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:en(n.styles)},[n.resizable?(w(),A("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):V("",!0),c("div",Ukt,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),c("div",Fkt,[c("b",null,he(n.node?n.node.title:""),1)])]),(w(!0),A(Ye,null,lt(n.displayedInterfaces,o=>(w(),A("div",{key:o.id,class:"__interface"},[(w(),xt(Lu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const Gkt=hn(Pkt,[["render",Bkt]]),Vkt=_n({__name:"Minimap",setup(n){const{viewModel:e}=Oi(),{graph:t}=Ki(),i=ft(null),s=ft(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const u=()=>{var T,O;if(!r)return;r.canvas.width=i.value.offsetWidth,r.canvas.height=i.value.offsetHeight;const k=new Map,x=new Map;for(const L of t.value.nodes){const $=Nkt(L),H=($==null?void 0:$.offsetWidth)??0,U=($==null?void 0:$.offsetHeight)??0,Q=((T=L.position)==null?void 0:T.x)??0,J=((O=L.position)==null?void 0:O.y)??0;k.set(L,{x1:Q,y1:J,x2:Q+H,y2:J+U}),x.set(L,$)}const I={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const L of k.values())L.x1I.x2&&(I.x2=L.x2),L.y2>I.y2&&(I.y2=L.y2);const F=50;I.x1-=F,I.y1-=F,I.x2+=F,I.y2+=F,a=I;const B=r.canvas.width/r.canvas.height,ne=(a.x2-a.x1)/(a.y2-a.y1);if(B>ne){const L=(B-ne)*(a.y2-a.y1)*.5;a.x1-=L,a.x2+=L}else{const L=a.x2-a.x1,$=a.y2-a.y1,H=(L-B*$)/B*.5;a.y1-=H,a.y2+=H}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const L of t.value.connections){const[$,H]=yu(Pa(L.from)),[U,Q]=yu(Pa(L.to)),[J,j]=d($,H),[ae,ve]=d(U,Q);if(r.beginPath(),r.moveTo(J,j),e.value.settings.useStraightConnections)r.lineTo(ae,ve);else{const ee=.3*Math.abs(J-ae);r.bezierCurveTo(J+ee,j,ae-ee,ve,ae,ve)}r.stroke()}r.strokeStyle="lightgray";for(const[L,$]of k.entries()){const[H,U]=d($.x1,$.y1),[Q,J]=d($.x2,$.y2);r.fillStyle=f(x.get(L)),r.beginPath(),r.rect(H,U,Q-H,J-U),r.fill(),r.stroke()}if(s.value){const L=m(),[$,H]=d(L.x1,L.y1),[U,Q]=d(L.x2,L.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect($,H,U-$,Q-H)}},d=(T,O)=>[(T-a.x1)/(a.x2-a.x1)*r.canvas.width,(O-a.y1)/(a.y2-a.y1)*r.canvas.height],h=(T,O)=>[T*(a.x2-a.x1)/r.canvas.width+a.x1,O*(a.y2-a.y1)/r.canvas.height+a.y1],f=T=>{if(T){const O=T.querySelector(".__content");if(O){const x=_(O);if(x)return x}const k=_(T);if(k)return k}return"gray"},_=T=>{const O=getComputedStyle(T).backgroundColor;if(O&&O!=="rgba(0, 0, 0, 0)")return O},m=()=>{const T=i.value.parentElement.offsetWidth,O=i.value.parentElement.offsetHeight,k=T/t.value.scaling-t.value.panning.x,x=O/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:k,y2:x}},E=T=>{T.button===0&&(o=!0,b(T))},b=T=>{if(o){const[O,k]=h(T.offsetX,T.offsetY),x=m(),I=(x.x2-x.x1)/2,F=(x.y2-x.y1)/2;t.value.panning.x=-(O-I),t.value.panning.y=-(k-F)}},g=()=>{o=!1},y=()=>{s.value=!0},v=()=>{s.value=!1,g()};qn([s,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{u()});const S=st(()=>t.value.nodes.map(T=>T.position)),C=st(()=>t.value.nodes.map(T=>T.width));return qn([S,C],()=>{u()},{deep:!0}),Ws(()=>{r=i.value.getContext("2d"),r.imageSmoothingQuality="high",u(),l=setInterval(u,500)}),Va(()=>{clearInterval(l)}),(T,O)=>(w(),A("canvas",{ref_key:"canvas",ref:i,class:"baklava-minimap",onMouseenter:y,onMouseleave:v,onMousedown:be(E,["self"]),onMousemove:be(b,["self"]),onMouseup:g},null,544))}}),zkt=_n({components:{ContextMenu:_y,VerticalDots:KI},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=Oi(),{switchGraph:t}=Ki(),i=ft(!1),s=st(()=>n.type.startsWith(lc));return{showContextMenu:i,hasContextMenu:s,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{i.value=!0},onContextMenuClick:l=>{const u=n.type.substring(lc.length),d=e.value.editor.graphTemplates.find(h=>h.id===u);if(d)switch(l){case"editSubgraph":t(d);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(d);break}}}}}),Hkt=["data-node-type"],qkt={class:"__title"},Ykt={class:"__title-label"},$kt={key:0,class:"__menu"};function Wkt(n,e,t,i,s,r){const o=mt("vertical-dots"),a=mt("context-menu");return w(),A("div",{class:"baklava-node --palette","data-node-type":n.type},[c("div",qkt,[c("div",Ykt,he(n.title),1),n.hasContextMenu?(w(),A("div",$kt,[Te(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=be(()=>{},["stop","prevent"])),onClick:be(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),Te(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>n.showContextMenu=l),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=be(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):V("",!0)])],8,Hkt)}const Bw=hn(zkt,[["render",Wkt]]),Kkt={class:"baklava-node-palette"},jkt={key:0},Qkt=_n({__name:"NodePalette",setup(n){const{viewModel:e}=Oi(),{x:t,y:i}=ikt(),{transform:s}=HI(),r=zI(e),o=Vi("editorEl"),a=ft(null),l=st(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:d,top:h}=o.value.getBoundingClientRect();return{top:`${i.value-h}px`,left:`${t.value-d}px`}}),u=(d,h)=>{a.value={type:d,nodeInformation:h};const f=()=>{const _=ei(new h.type);e.value.displayedGraph.addNode(_);const m=o.value.getBoundingClientRect(),[E,b]=s(t.value-m.left,i.value-m.top);_.position.x=E,_.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(d,h)=>(w(),A(Ye,null,[c("div",Kkt,[(w(!0),A(Ye,null,lt(yt(r),f=>(w(),A("section",{key:f.name},[f.name!=="default"?(w(),A("h1",jkt,he(f.name),1)):V("",!0),(w(!0),A(Ye,null,lt(f.nodeTypes,(_,m)=>(w(),xt(Bw,{key:m,type:m,title:_.title,onPointerdown:E=>u(m,_)},null,8,["type","title","onPointerdown"]))),128))]))),128))]),Te(cs,{name:"fade"},{default:We(()=>[a.value?(w(),A("div",{key:0,class:"baklava-dragged-node",style:en(l.value)},[Te(Bw,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):V("",!0)]),_:1})],64))}});let Cd;const Xkt=new Uint8Array(16);function Zkt(){if(!Cd&&(Cd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cd(Xkt)}const wn=[];for(let n=0;n<256;++n)wn.push((n+256).toString(16).slice(1));function Jkt(n,e=0){return wn[n[e+0]]+wn[n[e+1]]+wn[n[e+2]]+wn[n[e+3]]+"-"+wn[n[e+4]]+wn[n[e+5]]+"-"+wn[n[e+6]]+wn[n[e+7]]+"-"+wn[n[e+8]]+wn[n[e+9]]+"-"+wn[n[e+10]]+wn[n[e+11]]+wn[n[e+12]]+wn[n[e+13]]+wn[n[e+14]]+wn[n[e+15]]}const eLt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gw={randomUUID:eLt};function vu(n,e,t){if(Gw.randomUUID&&!e&&!n)return Gw.randomUUID();n=n||{};const i=n.random||(n.rng||Zkt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=i[s];return e}return Jkt(i)}const cc="SAVE_SUBGRAPH";function tLt(n,e){const t=()=>{const i=n.value;if(!i.template)throw new Error("Graph template property not set");i.template.update(i.save()),i.template.panning=i.panning,i.template.scaling=i.scaling};e.registerCommand(cc,{canExecute:()=>{var i;return n.value!==((i=n.value.editor)==null?void 0:i.graph)},execute:t})}const nLt={},iLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},sLt=c("polyline",{points:"6 9 12 15 18 9"},null,-1),rLt=[sLt];function oLt(n,e){return w(),A("svg",iLt,rLt)}const aLt=hn(nLt,[["render",oLt]]),lLt=_n({components:{"i-arrow":aLt},props:{intf:{type:Object,required:!0}},setup(n){const e=ft(null),t=ft(!1),i=st(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),s=st(()=>i.value?typeof i.value=="string"?i.value:i.value.text:""),r=o=>{n.intf.value=typeof o=="string"?o:o.value};return $I(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:i,selectedText:s,setSelected:r}}}),cLt=["title"],dLt={class:"__selected"},uLt={class:"__text"},pLt={class:"__icon"},_Lt={class:"__dropdown"},hLt={class:"item --header"},fLt=["onClick"];function mLt(n,e,t,i,s,r){const o=mt("i-arrow");return w(),A("div",{ref:"el",class:He(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[c("div",dLt,[c("div",uLt,he(n.selectedText),1),c("div",pLt,[Te(o)])]),Te(cs,{name:"slide-fade"},{default:We(()=>[G(c("div",_Lt,[c("div",hLt,he(n.intf.name),1),(w(!0),A(Ye,null,lt(n.intf.items,(a,l)=>(w(),A("div",{key:l,class:He(["item",{"--active":a===n.selectedItem}]),onClick:u=>n.setSelected(a)},he(typeof a=="string"?a:a.text),11,fLt))),128))],512),[[Mt,n.open]])]),_:1})],10,cLt)}const gLt=hn(lLt,[["render",mLt]]);class bLt extends nn{constructor(e,t,i){super(e,t),this.component=dc(gLt),this.items=i}}const ELt=_n({props:{intf:{type:Object,required:!0}}});function yLt(n,e,t,i,s,r){return w(),A("div",null,he(n.intf.value),1)}const vLt=hn(ELt,[["render",yLt]]);class SLt extends nn{constructor(e,t){super(e,t),this.component=dc(vLt),this.setPort(!1)}}const TLt=_n({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:st({get:()=>n.modelValue,set:i=>{e("update:modelValue",i)}})}}}),xLt=["placeholder","title"];function CLt(n,e,t,i,s,r){return w(),A("div",null,[G(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,xLt),[[we,n.v]])])}const wLt=hn(TLt,[["render",CLt]]);class Tc extends nn{constructor(){super(...arguments),this.component=dc(wLt)}}class QI extends PI{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new Tc("Name","Input").setPort(!1)},this.outputs={placeholder:new nn("Connection",void 0)}}}class XI extends UI{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new Tc("Name","Output").setPort(!1),placeholder:new nn("Connection",void 0)},this.outputs={output:new nn("Output",void 0).setHidden(!0)}}}const ZI="CREATE_SUBGRAPH",Vw=[Da,ka];function RLt(n,e,t){const i=()=>n.value.selectedNodes.filter(r=>!Vw.includes(r.type)).length>0,s=()=>{const{viewModel:r}=Oi(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(x=>!Vw.includes(x.type)),u=l.flatMap(x=>Object.values(x.inputs)),d=l.flatMap(x=>Object.values(x.outputs)),h=o.connections.filter(x=>!d.includes(x.from)&&u.includes(x.to)),f=o.connections.filter(x=>d.includes(x.from)&&!u.includes(x.to)),_=o.connections.filter(x=>d.includes(x.from)&&u.includes(x.to)),m=l.map(x=>x.save()),E=_.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:g,xRight:y,yTop:v}=ALt(l);console.log(g,y,v);for(const[x,I]of h.entries()){const F=new QI;F.inputs.name.value=I.to.name,m.push({...F.save(),position:{x:y-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),E.push({id:vu(),from:F.outputs.placeholder.id,to:I.to.id}),b.set(I.to.id,F.graphInterfaceId)}for(const[x,I]of f.entries()){const F=new XI;F.inputs.name.value=I.from.name,m.push({...F.save(),position:{x:g+100,y:v+x*200}}),E.push({id:vu(),from:I.from.id,to:F.inputs.placeholder.id}),b.set(I.from.id,F.graphInterfaceId)}const S=ei(new hp({connections:E,nodes:m,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const C=a.nodeTypes.get(La(S));if(!C)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");const T=ei(new C.type);o.addNode(T);const O=Math.round(l.map(x=>x.position.x).reduce((x,I)=>x+I,0)/l.length),k=Math.round(l.map(x=>x.position.y).reduce((x,I)=>x+I,0)/l.length);T.position.x=O,T.position.y=k,h.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,T.inputs[b.get(x.to.id)])}),f.forEach(x=>{o.removeConnection(x),o.addConnection(T.outputs[b.get(x.from.id)],x.to)}),l.forEach(x=>o.removeNode(x)),e.canExecuteCommand(cc)&&e.executeCommand(cc),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(ZI,{canExecute:i,execute:s})}function ALt(n){const e=n.reduce((s,r)=>{const o=r.position.x;return o{const o=r.position.y;return o{const o=r.position.x+r.width;return o>s?o:s},-1/0),xRight:e,yTop:t}}const zw="DELETE_NODES";function NLt(n,e){e.registerCommand(zw,{canExecute:()=>n.value.selectedNodes.length>0,execute(){n.value.selectedNodes.forEach(t=>n.value.removeNode(t))}}),e.registerHotkey(["Delete"],zw)}const JI="SWITCH_TO_MAIN_GRAPH";function OLt(n,e,t){e.registerCommand(JI,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(cc),t(n.value.editor.graph)}})}function ILt(n,e,t){NLt(n,e),RLt(n,e,t),tLt(n,e),OLt(n,e,t)}class Hw{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const i=new t.type;e.addNode(i),i.load(this.nodeState),this.nodeId=i.id}removeNode(e){const t=e.nodes.find(i=>i.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class qw{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const i=t;this.connectionState={id:i.id,from:i.from.id,to:i.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),i=e.findNodeInterface(this.connectionState.to);!t||!i||e.addConnection(t,i)}removeConnection(e){const t=e.connections.find(i=>i.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class MLt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!r.value)if(a.value)l.value.push(b);else for(o.value!==s.value.length-1&&(s.value=s.value.slice(0,o.value+1)),s.value.push(b),o.value++;s.value.length>i.value;)s.value.shift()},d=()=>{a.value=!0},h=()=>{a.value=!1,l.value.length>0&&(u(new MLt(l.value)),l.value=[])},f=()=>s.value.length!==0&&o.value!==-1,_=()=>{f()&&(r.value=!0,s.value[o.value--].undo(n.value),r.value=!1)},m=()=>s.value.length!==0&&o.value{m()&&(r.value=!0,s.value[++o.value].redo(n.value),r.value=!1)};return qn(n,(b,g)=>{g&&(g.events.addNode.unsubscribe(t),g.events.removeNode.unsubscribe(t),g.events.addConnection.unsubscribe(t),g.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,y=>{u(new Hw("addNode",y.id))}),b.events.removeNode.subscribe(t,y=>{u(new Hw("removeNode",y.save()))}),b.events.addConnection.subscribe(t,y=>{u(new qw("addConnection",y.id))}),b.events.removeConnection.subscribe(t,y=>{u(new qw("removeConnection",y))}))},{immediate:!0}),e.registerCommand(yb,{canExecute:f,execute:_}),e.registerCommand(vb,{canExecute:m,execute:E}),e.registerCommand(eM,{canExecute:()=>!a.value,execute:d}),e.registerCommand(tM,{canExecute:()=>a.value,execute:h}),e.registerHotkey(["Control","z"],yb),e.registerHotkey(["Control","y"],vb),ei({maxSteps:i})}const Sb="COPY",Tb="PASTE",kLt="CLEAR_CLIPBOARD";function LLt(n,e,t){const i=Symbol("ClipboardToken"),s=ft(""),r=ft(""),o=st(()=>!s.value),a=()=>{s.value="",r.value=""},l=()=>{const h=n.value.selectedNodes.flatMap(_=>[...Object.values(_.inputs),...Object.values(_.outputs)]),f=n.value.connections.filter(_=>h.includes(_.from)||h.includes(_.to)).map(_=>({from:_.from.id,to:_.to.id}));r.value=JSON.stringify(f),s.value=JSON.stringify(n.value.selectedNodes.map(_=>_.save()))},u=(h,f,_)=>{for(const m of h){let E;if((!_||_==="input")&&(E=Object.values(m.inputs).find(b=>b.id===f)),!E&&(!_||_==="output")&&(E=Object.values(m.outputs).find(b=>b.id===f)),E)return E}},d=()=>{if(o.value)return;const h=new Map,f=JSON.parse(s.value),_=JSON.parse(r.value),m=[],E=[],b=n.value;t.executeCommand(eM);for(const g of f){const y=e.value.nodeTypes.get(g.type);if(!y){console.warn(`Node type ${g.type} not registered`);return}const v=new y.type,S=v.id;m.push(v),v.hooks.beforeLoad.subscribe(i,C=>{const T=C;return T.position&&(T.position.x+=100,T.position.y+=100),v.hooks.beforeLoad.unsubscribe(i),T}),b.addNode(v),v.load({...g,id:S}),v.id=S,h.set(g.id,S);for(const C of Object.values(v.inputs)){const T=vu();h.set(C.id,T),C.id=T}for(const C of Object.values(v.outputs)){const T=vu();h.set(C.id,T),C.id=T}}for(const g of _){const y=u(m,h.get(g.from),"output"),v=u(m,h.get(g.to),"input");if(!y||!v)continue;const S=b.addConnection(y,v);S&&E.push(S)}return n.value.selectedNodes=m,t.executeCommand(tM),{newNodes:m,newConnections:E}};return t.registerCommand(Sb,{canExecute:()=>n.value.selectedNodes.length>0,execute:l}),t.registerHotkey(["Control","c"],Sb),t.registerCommand(Tb,{canExecute:()=>!o.value,execute:d}),t.registerHotkey(["Control","v"],Tb),t.registerCommand(kLt,{canExecute:()=>!0,execute:a}),ei({isEmpty:o})}const PLt="OPEN_SIDEBAR";function ULt(n,e){e.registerCommand(PLt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function FLt(n,e){ULt(n,e)}const BLt={},GLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},VLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),zLt=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),HLt=[VLt,zLt];function qLt(n,e){return w(),A("svg",GLt,HLt)}const YLt=hn(BLt,[["render",qLt]]),$Lt={},WLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},KLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),jLt=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),QLt=[KLt,jLt];function XLt(n,e){return w(),A("svg",WLt,QLt)}const ZLt=hn($Lt,[["render",XLt]]),JLt={},ePt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},tPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),nPt=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),iPt=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),sPt=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),rPt=[tPt,nPt,iPt,sPt];function oPt(n,e){return w(),A("svg",ePt,rPt)}const aPt=hn(JLt,[["render",oPt]]),lPt={},cPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},dPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),uPt=c("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),pPt=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),_Pt=[dPt,uPt,pPt];function hPt(n,e){return w(),A("svg",cPt,_Pt)}const fPt=hn(lPt,[["render",hPt]]),mPt={},gPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},bPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),EPt=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),yPt=c("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),vPt=[bPt,EPt,yPt];function SPt(n,e){return w(),A("svg",gPt,vPt)}const TPt=hn(mPt,[["render",SPt]]),xPt={},CPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},wPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),RPt=c("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),APt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),NPt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),OPt=[wPt,RPt,APt,NPt];function IPt(n,e){return w(),A("svg",CPt,OPt)}const MPt=hn(xPt,[["render",IPt]]),DPt={},kPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},LPt=Vb('',6),PPt=[LPt];function UPt(n,e){return w(),A("svg",kPt,PPt)}const FPt=hn(DPt,[["render",UPt]]),BPt=_n({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=Oi();return{viewModel:n}}}),GPt=["disabled","title"];function VPt(n,e,t,i,s,r){return w(),A("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(w(),xt(Lu(n.icon),{key:0})):(w(),A(Ye,{key:1},[et(he(n.title),1)],64))],8,GPt)}const zPt=hn(BPt,[["render",VPt]]),HPt=_n({components:{ToolbarButton:zPt},setup(){const{viewModel:n}=Oi();return{isSubgraph:st(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Sb,title:"Copy",icon:TPt},{command:Tb,title:"Paste",icon:fPt},{command:yb,title:"Undo",icon:YLt},{command:vb,title:"Redo",icon:ZLt},{command:ZI,title:"Create Subgraph",icon:FPt}],subgraphCommands:[{command:cc,title:"Save Subgraph",icon:MPt},{command:JI,title:"Back to Main Graph",icon:aPt}]}}}),qPt={class:"baklava-toolbar"};function YPt(n,e,t,i,s,r){const o=mt("toolbar-button");return w(),A("div",qPt,[(w(!0),A(Ye,null,lt(n.commands,a=>(w(),xt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(w(!0),A(Ye,{key:0},lt(n.subgraphCommands,a=>(w(),xt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):V("",!0)])}const $Pt=hn(HPt,[["render",YPt]]),WPt={class:"connections-container"},KPt=_n({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),i=$d(e,"viewModel");zDt(i);const s=ft(null);sa("editorEl",s);const r=st(()=>e.viewModel.displayedGraph.nodes),o=st(()=>e.viewModel.displayedGraph.nodes.map(O=>GI($d(O,"position")))),a=st(()=>e.viewModel.displayedGraph.connections),l=st(()=>e.viewModel.displayedGraph.selectedNodes),u=HDt(),d=qDt(),h=YDt(i),f=st(()=>({...u.styles.value})),_=ft(0);e.viewModel.editor.hooks.load.subscribe(t,O=>(_.value++,O));const m=O=>{u.onPointerMove(O),d.onMouseMove(O)},E=O=>{O.button===0&&(O.target===s.value&&(S(),u.onPointerDown(O)),d.onMouseDown())},b=O=>{u.onPointerUp(O),d.onMouseUp()},g=O=>{O.key==="Tab"&&O.preventDefault(),e.viewModel.commandHandler.handleKeyDown(O)},y=O=>{e.viewModel.commandHandler.handleKeyUp(O)},v=O=>{["Control","Shift"].some(k=>e.viewModel.commandHandler.pressedKeys.includes(k))||S(),e.viewModel.displayedGraph.selectedNodes.push(O)},S=()=>{e.viewModel.displayedGraph.selectedNodes=[]},C=O=>{for(const k of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(k),I=o.value[x];I.onPointerDown(O),document.addEventListener("pointermove",I.onPointerMove)}document.addEventListener("pointerup",T)},T=()=>{for(const O of e.viewModel.displayedGraph.selectedNodes){const k=r.value.indexOf(O),x=o.value[k];x.onPointerUp(),document.removeEventListener("pointermove",x.onPointerMove)}document.removeEventListener("pointerup",T)};return(O,k)=>(w(),A("div",{ref_key:"el",ref:s,tabindex:"-1",class:He(["baklava-editor",{"baklava-ignore-mouse":!!yt(d).temporaryConnection.value||yt(u).dragging.value,"--temporary-connection":!!yt(d).temporaryConnection.value}]),onPointermove:be(m,["self"]),onPointerdown:E,onPointerup:b,onWheel:k[1]||(k[1]=be((...x)=>yt(u).onMouseWheel&&yt(u).onMouseWheel(...x),["self"])),onKeydown:g,onKeyup:y,onContextmenu:k[2]||(k[2]=be((...x)=>yt(h).open&&yt(h).open(...x),["self","prevent"]))},[kn(O.$slots,"background",{},()=>[Te(KDt)]),kn(O.$slots,"toolbar",{},()=>[Te($Pt)]),kn(O.$slots,"palette",{},()=>[Te(Qkt)]),(w(),A("svg",WPt,[(w(!0),A(Ye,null,lt(a.value,x=>(w(),A("g",{key:x.id+_.value.toString()},[kn(O.$slots,"connection",{connection:x},()=>[Te(Mkt,{connection:x},null,8,["connection"])])]))),128)),kn(O.$slots,"temporaryConnection",{temporaryConnection:yt(d).temporaryConnection.value},()=>[yt(d).temporaryConnection.value?(w(),xt(Lkt,{key:0,connection:yt(d).temporaryConnection.value},null,8,["connection"])):V("",!0)])])),c("div",{class:"node-container",style:en(f.value)},[Te(os,{name:"fade"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.value,(x,I)=>kn(O.$slots,"node",{key:x.id+_.value.toString(),node:x,selected:l.value.includes(x),dragging:o.value[I].dragging.value,onSelect:F=>v(x),onStartDrag:C},()=>[Te(Ckt,{node:x,selected:l.value.includes(x),dragging:o.value[I].dragging.value,onSelect:F=>v(x),onStartDrag:C},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),kn(O.$slots,"sidebar",{},()=>[Te(Gkt)]),kn(O.$slots,"minimap",{},()=>[O.viewModel.settings.enableMinimap?(w(),xt(Vkt,{key:0})):V("",!0)]),kn(O.$slots,"contextMenu",{contextMenu:yt(h)},()=>[O.viewModel.settings.contextMenu.enabled?(w(),xt(_y,{key:0,modelValue:yt(h).show.value,"onUpdate:modelValue":k[0]||(k[0]=x=>yt(h).show.value=x),items:yt(h).items.value,x:yt(h).x.value,y:yt(h).y.value,onClick:yt(h).onClick},null,8,["modelValue","items","x","y","onClick"])):V("",!0)])],34))}}),jPt=["INPUT","TEXTAREA","SELECT"];function QPt(n){const e=ft([]),t=ft([]);return{pressedKeys:e,handleKeyDown:o=>{var a;e.value.includes(o.key)||e.value.push(o.key),!jPt.includes(((a=document.activeElement)==null?void 0:a.tagName)??"")&&t.value.forEach(l=>{l.keys.every(u=>e.value.includes(u))&&n(l.commandName)})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a)=>{t.value.push({keys:o,commandName:a})}}}const XPt=()=>{const n=ft(new Map),e=(r,o)=>{if(n.value.has(r))throw new Error(`Command "${r}" already exists`);n.value.set(r,o)},t=(r,o=!1,...a)=>{if(!n.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return}return n.value.get(r).execute(...a)},i=(r,o=!1,...a)=>{if(!n.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return!1}return n.value.get(r).canExecute(a)},s=QPt(t);return ei({registerCommand:e,executeCommand:t,canExecuteCommand:i,...s})},ZPt=n=>!(n instanceof Sc);function JPt(n,e){return{switchGraph:i=>{let s;if(ZPt(i))s=new Sc(n.value),i.createGraph(s);else{if(i!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");s=i}e.value&&e.value!==n.value.graph&&e.value.destroy(),s.panning=s.panning??i.panning??{x:0,y:0},s.scaling=s.scaling??i.scaling??1,s.selectedNodes=s.selectedNodes??[],s.sidebar=s.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=s}}}function eUt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const tUt=()=>({useStraightConnections:!1,enableMinimap:!1,background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1},contextMenu:{enabled:!0,additionalItems:[]}});function nUt(n){const e=ft(n??new PDt),t=Symbol("ViewModelToken"),i=ft(null),s=s2(i),{switchGraph:r}=JPt(e,i),o=st(()=>s.value&&s.value!==e.value.graph),a=ei(tUt()),l=XPt(),u=DLt(s,l),d=LLt(s,e,l),h={renderNode:new li(null),renderInterface:new li(null)};return ILt(s,l,r),FLt(s,l),qn(e,(f,_)=>{_&&(_.events.registerGraph.unsubscribe(t),_.graphEvents.beforeAddNode.unsubscribe(t),f.nodeHooks.beforeLoad.unsubscribe(t),f.nodeHooks.afterSave.unsubscribe(t),f.graphTemplateHooks.beforeLoad.unsubscribe(t),f.graphTemplateHooks.afterSave.unsubscribe(t),f.graph.hooks.load.unsubscribe(t),f.graph.hooks.save.unsubscribe(t)),f&&(f.nodeHooks.beforeLoad.subscribe(t,(m,E)=>(E.position=m.position??{x:0,y:0},E.width=m.width??a.nodes.defaultWidth,E.twoColumn=m.twoColumn??!1,m)),f.nodeHooks.afterSave.subscribe(t,(m,E)=>(m.position=E.position,m.width=E.width,m.twoColumn=E.twoColumn,m)),f.graphTemplateHooks.beforeLoad.subscribe(t,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graphTemplateHooks.afterSave.subscribe(t,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graph.hooks.load.subscribe(t,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graph.hooks.save.subscribe(t,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graphEvents.beforeAddNode.subscribe(t,m=>eUt(m,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(QI,{category:"Subgraphs"}),e.value.registerNodeType(XI,{category:"Subgraphs"}),r(f.graph))},{immediate:!0}),ei({editor:e,displayedGraph:s,isSubgraph:o,settings:a,commandHandler:l,history:u,clipboard:d,hooks:h,switchGraph:r})}const iUt=Ja({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new nn("Request",""),agent_name:()=>new bLt("Personality","",Su.state.config.personalities).setPort(!1)},outputs:{response:()=>new nn("Response","")},async calculate({request:n}){console.log(Su.state.config.personalities);let e="";try{e=(await Se.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),sUt=Ja({type:"RAGNode",title:"RAG",inputs:{request:()=>new nn("Prompt",""),document_path:()=>new Tc("Document path","").setPort(!1)},outputs:{prompt:()=>new nn("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await Se.get("/rag",{params:{text:n,doc_path:e}})).data}catch(i){console.error(i)}return{response:t}}}),Yw=Ja({type:"Task",title:"Task",inputs:{description:()=>new Tc("Task description","").setPort(!1)},outputs:{prompt:()=>new nn("Prompt")},calculate({description:n}){return{prompt:n}}}),$w=Ja({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new nn("Input","")},outputs:{response:()=>new SLt("Text","")},async calculate({request:n}){}}),Ww=Ja({type:"LLMNode",title:"LLM",inputs:{request:()=>new nn("Request","")},outputs:{response:()=>new nn("Response","")},async calculate({request:n}){console.log(Su.state.config.personalities);let e="";try{e=(await Se.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),rUt=Ja({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new nn("Question",""),outputs:()=>new Tc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new nn("Response","")}}),oUt=_n({components:{"baklava-editor":KPt},setup(){const n=nUt(),e=new VDt(n.editor);n.editor.registerNodeType(iUt),n.editor.registerNodeType(Yw),n.editor.registerNodeType(sUt),n.editor.registerNodeType($w),n.editor.registerNodeType(Ww),n.editor.registerNodeType(rUt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),UDt(a,n.editor),e.resume()}),e.start();function i(a,l,u){const d=new a;return n.displayedGraph.addNode(d),d.position.x=l,d.position.y=u,d}const s=i(Yw,300,140),r=i(Ww,550,140),o=i($w,850,140);return n.displayedGraph.addConnection(s.outputs.prompt,r.inputs.request),n.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),aUt={style:{width:"100vw",height:"100vh"}};function lUt(n,e,t,i,s,r){const o=mt("baklava-editor");return w(),A("div",aUt,[Te(o,{"view-model":n.baklava},null,8,["view-model"]),c("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),c("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const cUt=bt(oUt,[["render",lUt]]),dUt={},uUt={style:{width:"100vw",height:"100vh"}},pUt=["src"];function _Ut(n,e,t,i,s,r){return w(),A("div",uUt,[c("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,pUt)])}const hUt=bt(dUt,[["render",_Ut]]),fUt={},mUt={style:{width:"100vw",height:"100vh"}},gUt=["src"];function bUt(n,e,t,i,s,r){return w(),A("div",mUt,[c("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,gUt)])}const EUt=bt(fUt,[["render",bUt]]),yUt=HP({history:aP("/"),routes:[{path:"/auto_sd_view/",name:"AutoSD",component:EUt},{path:"/autosd_view/",name:"ComfyUI",component:hUt},{path:"/playground/",name:"playground",component:Rtt},{path:"/extensions/",name:"extensions",component:Ftt},{path:"/help_view/",name:"help_view",component:qtt},{path:"/settings/",name:"settings",component:zbt},{path:"/training/",name:"training",component:cEt},{path:"/quantizing/",name:"quantizing",component:bEt},{path:"/",name:"discussions",component:hwt},{path:"/",name:"interactive",component:NDt},{path:"/",name:"nodes",component:cUt}]});const fp=jD(RZe);console.log("Loaded main.js");function vUt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Su=vk({state(){return{is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await Se.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data,console.log("version res:",n),console.log("version :",this.state.version))}catch{console.log("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{const e=await ki("get_config");e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await ki("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){console.log("is_rt_on",this.state.client_id);const e=await Se.get("/is_rt_on");console.log("response",e);const t=e.data.status;console.log("is_rt_on",t),n("setRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await Se.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await Se.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await Se.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await Se.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await Se.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await ki("get_all_personalities"),i=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s{let u=!1;for(const h of this.state.config.personalities)if(h.includes(r+"/"+l.folder))if(u=!0,h.includes(":")){const f=h.split(":");l.language=f[1]}else l.language=null;let d={};return d=l,d.category=r,d.full_path=r+"/"+l.folder,d.isMounted=u,d});e.length==0?e=a:e=e.concat(a)}e.sort((s,r)=>s.name.localeCompare(r.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let i=0;ia.full_path==s||a.full_path==r[0]);if(o>=0){let a=vUt(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else t.push(i),console.log("Couldn't load personality : ",s)}for(let i=t.length-1;i>=0;i--)console.log("Removing personality : ",this.state.config.personalities[t[i]]),this.state.config.personalities.splice(t[i],1),this.state.config.active_personality_id>t[i]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id]||i.full_path+":"+i.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:n}){let e=await ki("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(i=>i.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(i=>i.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){console.log("Fetching models");const t=(await Se.get("/get_available_models")).data.filter(i=>i.variants&&i.variants.length>0);console.log(`get_available_models: ${t}`),n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await ki("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await ki("list_models");console.log(`Found ${e}`);let t=await ki("get_active_model");console.log("Selected model ",t),t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const i=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);i!=-1&&n("setCurrentModel",this.state.modelsZoo[i])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await ki("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await ki("ram_usage")},async refreshVramUsage({commit:n}){const e=await ki("vram_usage"),t=[];if(e.nb_gpus>0){for(let s=0;s!!t.value),onPointerDown:l=>{t.value={x:l.pageX,y:l.pageY},i.value={x:n.value.x,y:n.value.y}},onPointerMove:l=>{if(t.value){const u=l.pageX-t.value.x,d=l.pageY-t.value.y;n.value.x=i.value.x+u/e.value.scaling,n.value.y=i.value.y+d/e.value.scaling}},onPointerUp:()=>{t.value=null,i.value=null}}}function VI(n,e,t){if(!e.template)return!1;if(La(e.template)===t)return!0;const i=n.graphTemplates.find(r=>La(r)===t);return i?i.nodes.filter(r=>r.type.startsWith(lc)).some(r=>VI(n,e,r.type)):!1}function zI(n){return st(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,s])=>s.category)),i=[];for(const s of t.values()){let r=e.filter(([,o])=>o.category===s);n.value.displayedGraph.template?r=r.filter(([o])=>!VI(n.value.editor,n.value.displayedGraph,o)):r=r.filter(([o])=>![Da,ka].includes(o)),r.length>0&&i.push({name:s,nodeTypes:Object.fromEntries(r)})}return i.sort((s,r)=>s.name==="default"?-1:r.name==="default"||s.name>r.name?1:-1),i})}function HI(){const{graph:n}=Ki();return{transform:(t,i)=>{const s=t/n.value.scaling-n.value.panning.x,r=i/n.value.scaling-n.value.panning.y;return[s,r]}}}function qDt(){const{graph:n}=Ki();let e=[],t=-1,i={x:0,y:0};const s=st(()=>n.value.panning),r=GI(s),o=st(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(_,m,E)=>{const b=[_/n.value.scaling-n.value.panning.x,m/n.value.scaling-n.value.panning.y],g=[_/E-n.value.panning.x,m/E-n.value.panning.y],y=[g[0]-b[0],g[1]-b[1]];n.value.panning.x+=y[0],n.value.panning.y+=y[1],n.value.scaling=E},l=_=>{_.preventDefault();let m=_.deltaY;_.deltaMode===1&&(m*=32);const E=n.value.scaling*(1-m/3e3);a(_.offsetX,_.offsetY,E)},u=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:_=>{if(e.push(_),r.onPointerDown(_),e.length===2){const{ax:m,ay:E,bx:b,by:g}=u();i={x:m+(b-m)/2,y:E+(g-E)/2}}},onPointerMove:_=>{for(let m=0;m0){const C=n.value.scaling*(1+(S-t)/500);a(i.x,i.y,C)}t=S}else r.onPointerMove(_)},onPointerUp:_=>{e=e.filter(m=>m.pointerId!==_.pointerId),t=-1,r.onPointerUp()},onMouseWheel:l}}var Ei=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(Ei||{});const qI=Symbol();function YDt(){const{graph:n}=Ki(),e=ft(null),t=ft(null),i=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},s=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(l=>l.to===t.value);t.value.isInput&&a?(e.value={status:Ei.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:Ei.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const l=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?Ei.ALLOWED:Ei.FORBIDDEN,l.connectionAllowed){const u=l.connectionsInDanger.map(d=>d.id);n.value.connections.forEach(d=>{u.includes(d.id)&&(d.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=Ei.NONE,n.value.connections.forEach(l=>{l.isInDanger=!1}))};return sa(qI,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:i,onMouseDown:s,onMouseUp:r,hoveredOver:o}}function $Dt(n){const e=ft(!1),t=ft(0),i=ft(0),s=zI(n),{transform:r}=HI(),o=st(()=>{let d=[];const h={};for(const _ of s.value){const m=Object.entries(_.nodeTypes).map(([E,b])=>({label:b.title,value:"addNode:"+E}));_.name==="default"?d=m:h[_.name]=m}const f=[...Object.entries(h).map(([_,m])=>({label:_,submenu:m}))];return f.length>0&&d.length>0&&f.push({isDivider:!0}),f.push(...d),f}),a=st(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(d=>"isDivider"in d||"submenu"in d?d:{label:d.label,value:"command:"+d.command,disabled:!n.value.commandHandler.canExecuteCommand(d.command)})]);function l(d){e.value=!0,t.value=d.offsetX,i.value=d.offsetY}function u(d){if(d.startsWith("addNode:")){const h=d.substring(8),f=n.value.editor.nodeTypes.get(h);if(!f)return;const _=ei(new f.type);n.value.displayedGraph.addNode(_);const[m,E]=r(t.value,i.value);_.position.x=m,_.position.y=E}else if(d.startsWith("command:")){const h=d.substring(8);n.value.commandHandler.canExecuteCommand(h)&&n.value.commandHandler.executeCommand(h)}}return{show:e,x:t,y:i,items:a,open:l,onClick:u}}const WDt=_n({setup(){const{viewModel:n}=Oi(),{graph:e}=Ki();return{styles:st(()=>{const i=n.value.settings.background,s=e.value.panning.x*e.value.scaling,r=e.value.panning.y*e.value.scaling,o=e.value.scaling*i.gridSize,a=o/i.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,u=e.value.scaling>i.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${s}px top ${r}px`,backgroundSize:`${l} ${u}`}})}}}),hn=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t};function KDt(n,e,t,i,s,r){return w(),A("div",{class:"background",style:en(n.styles)},null,4)}const jDt=hn(WDt,[["render",KDt]]);function QDt(n){return tR()?(NM(n),!0):!1}function uy(n){return typeof n=="function"?n():yt(n)}const YI=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const XDt=Object.prototype.toString,ZDt=n=>XDt.call(n)==="[object Object]",Vd=()=>{},JDt=ekt();function ekt(){var n,e;return YI&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function tkt(n,e,t=!1){return e.reduce((i,s)=>(s in n&&(!t||n[s]!==void 0)&&(i[s]=n[s]),i),{})}function nkt(n,e={}){if(!fn(n))return d2(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=c2(()=>({get(){return n.value[i]},set(s){var r;if((r=uy(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function Al(n){var e;const t=uy(n);return(e=t==null?void 0:t.$el)!=null?e:t}const py=YI?window:void 0;function Vl(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=py):[e,t,i,s]=n,!e)return Vd;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,f,_)=>(d.addEventListener(h,f,_),()=>d.removeEventListener(h,f,_)),l=qn(()=>[Al(e),uy(s)],([d,h])=>{if(o(),!d)return;const f=ZDt(h)?{...h}:h;r.push(...t.flatMap(_=>i.map(m=>a(d,_,m,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return QDt(u),u}let Uw=!1;function $I(n,e,t={}){const{window:i=py,ignore:s=[],capture:r=!0,detectIframe:o=!1}=t;if(!i)return Vd;JDt&&!Uw&&(Uw=!0,Array.from(i.document.body.children).forEach(f=>f.addEventListener("click",Vd)),i.document.documentElement.addEventListener("click",Vd));let a=!0;const l=f=>s.some(_=>{if(typeof _=="string")return Array.from(i.document.querySelectorAll(_)).some(m=>m===f.target||f.composedPath().includes(m));{const m=Al(_);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[Vl(i,"click",f=>{const _=Al(n);if(!(!_||_===f.target||f.composedPath().includes(_))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),Vl(i,"pointerdown",f=>{const _=Al(n);a=!l(f)&&!!(_&&!f.composedPath().includes(_))},{passive:!0}),o&&Vl(i,"blur",f=>{setTimeout(()=>{var _;const m=Al(n);((_=i.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!(m!=null&&m.contains(i.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>d.forEach(f=>f())}const WI={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},ikt=Object.keys(WI);function skt(n={}){const{target:e=py}=n,t=ft(!1),i=ft(n.initialValue||{});Object.assign(i.value,WI,i.value);const s=r=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(r.pointerType))&&(i.value=tkt(r,ikt,!1))};if(e){const r={passive:!0};Vl(e,["pointerdown","pointermove","pointerup"],s,r),Vl(e,"pointerleave",()=>t.value=!1,r)}return{...nkt(i),isInside:t}}const rkt=["onMouseenter","onMouseleave","onClick"],okt={class:"flex-fill"},akt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},lkt=c("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[c("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),ckt=[lkt],_y=_n({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,i=e;let s=null;const r=ft(null),o=ft(-1),a=ft(0),l=ft({x:!1,y:!1}),u=st(()=>t.flippable&&(l.value.x||t.isFlipped.x)),d=st(()=>t.flippable&&(l.value.y||t.isFlipped.y)),h=st(()=>{const y={};return t.isNested||(y.top=(d.value?t.y-a.value:t.y)+"px",y.left=t.x+"px"),y}),f=st(()=>({"--flipped-x":u.value,"--flipped-y":d.value,"--nested":t.isNested})),_=st(()=>t.items.map(y=>({...y,hover:!1})));qn([()=>t.y,()=>t.items],()=>{var y,v,S,C;a.value=t.items.length*30;const T=((v=(y=r.value)==null?void 0:y.parentElement)==null?void 0:v.offsetWidth)??0,O=((C=(S=r.value)==null?void 0:S.parentElement)==null?void 0:C.offsetHeight)??0;l.value.x=!t.isNested&&t.x>T*.75,l.value.y=!t.isNested&&t.y+a.value>O-20}),$I(r,()=>{t.modelValue&&i("update:modelValue",!1)});const m=y=>{!y.submenu&&y.value&&(i("click",y.value),i("update:modelValue",!1))},E=y=>{i("click",y),o.value=-1,t.isNested||i("update:modelValue",!1)},b=(y,v)=>{t.items[v].submenu&&(o.value=v,s!==null&&(clearTimeout(s),s=null))},g=(y,v)=>{t.items[v].submenu&&(s=window.setTimeout(()=>{o.value=-1,s=null},200))};return(y,v)=>{const S=mt("ContextMenu",!0);return w(),xt(cs,{name:"slide-fade"},{default:We(()=>[G(c("div",{ref_key:"el",ref:r,class:He(["baklava-context-menu",f.value]),style:en(h.value)},[(w(!0),A(Ye,null,lt(_.value,(C,T)=>(w(),A(Ye,null,[C.isDivider?(w(),A("div",{key:`d-${T}`,class:"divider"})):(w(),A("div",{key:`i-${T}`,class:He(["item",{submenu:!!C.submenu,"--disabled":!!C.disabled}]),onMouseenter:O=>b(O,T),onMouseleave:O=>g(O,T),onClick:be(O=>m(C),["stop","prevent"])},[c("div",okt,he(C.label),1),C.submenu?(w(),A("div",akt,ckt)):V("",!0),C.submenu?(w(),xt(S,{key:1,"model-value":o.value===T,items:C.submenu,"is-nested":!0,"is-flipped":{x:u.value,y:d.value},flippable:y.flippable,onClick:E},null,8,["model-value","items","is-flipped","flippable"])):V("",!0)],42,rkt))],64))),256))],6),[[Mt,y.modelValue]])]),_:1})}}}),dkt={},ukt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},pkt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),_kt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),hkt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),fkt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),mkt=[pkt,_kt,hkt,fkt];function gkt(n,e){return w(),A("svg",ukt,mkt)}const KI=hn(dkt,[["render",gkt]]),bkt=["id"],Ekt={key:0,class:"__tooltip"},ykt={key:2,class:"align-middle"},Fw=_n({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,g=100)=>{const y=b!=null&&b.toString?b.toString():"";return y.length>g?y.slice(0,g)+"...":y},t=n,{viewModel:i}=Oi(),{hoveredOver:s,temporaryConnection:r}=Vi(qI),o=ft(null),a=st(()=>t.intf.connectionCount>0),l=ft(!1),u=st(()=>i.value.settings.displayValueOnHover&&l.value),d=st(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),h=st(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),f=()=>{l.value=!0,s(t.intf)},_=()=>{l.value=!1,s(void 0)},m=()=>{o.value&&i.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},E=()=>{const b=i.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return Ws(m),uc(m),(b,g)=>{var y;return w(),A("div",{id:b.intf.id,ref_key:"el",ref:o,class:He(["baklava-node-interface",d.value])},[b.intf.port?(w(),A("div",{key:0,class:He(["__port",{"--selected":((y=yt(r))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:_},[kn(b.$slots,"portTooltip",{showTooltip:u.value},()=>[u.value===!0?(w(),A("span",Ekt,he(e(b.intf.value)),1)):V("",!0)])],34)):V("",!0),h.value?(w(),xt(Lu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":g[0]||(g[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:E},null,40,["modelValue","node","intf"])):(w(),A("span",ykt,he(b.intf.name),1))],10,bkt)}}}),vkt=["id","data-node-type"],Skt={class:"__title-label"},Tkt={class:"__menu"},xkt={class:"__outputs"},Ckt={class:"__inputs"},wkt=_n({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,i=e,{viewModel:s}=Oi(),{graph:r,switchGraph:o}=Ki(),a=ft(null),l=ft(!1),u=ft(""),d=ft(null),h=ft(!1),f=ft(!1),_=st(()=>{const F=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(lc)&&F.push({value:"editSubgraph",label:"Edit Subgraph"}),F}),m=st(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),E=st(()=>{var F,B;return{top:`${((F=t.node.position)==null?void 0:F.y)??0}px`,left:`${((B=t.node.position)==null?void 0:B.x)??0}px`,"--width":`${t.node.width??s.value.settings.nodes.defaultWidth}px`}}),b=st(()=>Object.values(t.node.inputs).filter(F=>!F.hidden)),g=st(()=>Object.values(t.node.outputs).filter(F=>!F.hidden)),y=()=>{i("select")},v=F=>{t.selected||y(),i("start-drag",F)},S=()=>{f.value=!0},C=async F=>{var B;switch(F){case"delete":r.value.removeNode(t.node);break;case"rename":u.value=t.node.title,l.value=!0,await Ge(),(B=d.value)==null||B.focus();break;case"editSubgraph":o(t.node.template);break}},T=()=>{t.node.title=u.value,l.value=!1},O=()=>{a.value&&s.value.hooks.renderNode.execute({node:t.node,el:a.value})},k=F=>{h.value=!0,F.preventDefault()},x=F=>{if(!h.value)return;const B=t.node.width+F.movementX/r.value.scaling,ne=s.value.settings.nodes.minWidth,L=s.value.settings.nodes.maxWidth;t.node.width=Math.max(ne,Math.min(L,B))},I=()=>{h.value=!1};return Ws(()=>{O(),window.addEventListener("mousemove",x),window.addEventListener("mouseup",I)}),uc(O),Va(()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",I)}),(F,B)=>(w(),A("div",{id:F.node.id,ref_key:"el",ref:a,class:He(["baklava-node",m.value]),style:en(E.value),"data-node-type":F.node.type,onPointerdown:y},[yt(s).settings.nodes.resizable?(w(),A("div",{key:0,class:"__resize-handle",onMousedown:k},null,32)):V("",!0),kn(F.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:be(v,["self","stop"])},[l.value?G((w(),A("input",{key:1,ref_key:"renameInputEl",ref:d,"onUpdate:modelValue":B[1]||(B[1]=ne=>u.value=ne),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:T,onKeydown:Hs(T,["enter"])},null,544)),[[we,u.value]]):(w(),A(Ye,{key:0},[c("div",Skt,he(F.node.title),1),c("div",Tkt,[Te(KI,{class:"--clickable",onClick:S}),Te(_y,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=ne=>f.value=ne),x:0,y:0,items:_.value,onClick:C},null,8,["modelValue","items"])])],64))],32)]),kn(F.$slots,"content",{},()=>[c("div",{class:"__content",onKeydown:B[2]||(B[2]=Hs(be(()=>{},["stop"]),["delete"]))},[c("div",xkt,[(w(!0),A(Ye,null,lt(g.value,ne=>kn(F.$slots,"nodeInterface",{key:ne.id,type:"output",node:F.node,intf:ne},()=>[Te(Fw,{node:F.node,intf:ne},null,8,["node","intf"])])),128))]),c("div",Ckt,[(w(!0),A(Ye,null,lt(b.value,ne=>kn(F.$slots,"nodeInterface",{key:ne.id,type:"input",node:F.node,intf:ne},()=>[Te(Fw,{node:F.node,intf:ne},null,8,["node","intf"])])),128))])],32)])],46,vkt))}}),Rkt=_n({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:Ei.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=Oi(),{graph:t}=Ki(),i=(o,a)=>{const l=(o+t.value.panning.x)*t.value.scaling,u=(a+t.value.panning.y)*t.value.scaling;return[l,u]},s=st(()=>{const[o,a]=i(n.x1,n.y1),[l,u]=i(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${u}`;{const d=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+d} ${a}, ${l-d} ${u}, ${l} ${u}`}}),r=st(()=>({"--temporary":n.isTemporary,"--allowed":n.state===Ei.ALLOWED,"--forbidden":n.state===Ei.FORBIDDEN}));return{d:s,classes:r}}}),Akt=["d"];function Nkt(n,e,t,i,s,r){return w(),A("path",{class:He(["baklava-connection",n.classes]),d:n.d},null,10,Akt)}const jI=hn(Rkt,[["render",Nkt]]);function Okt(n){return document.getElementById(n.id)}function Pa(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const Ikt=_n({components:{"connection-view":jI},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ki();let t;const i=ft({x1:0,y1:0,x2:0,y2:0}),s=st(()=>n.connection.isInDanger?Ei.FORBIDDEN:Ei.NONE),r=st(()=>{var u;return(u=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:u.position}),o=st(()=>{var u;return(u=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:u.position}),a=u=>u.node&&u.interface&&u.port?[u.node.offsetLeft+u.interface.offsetLeft+u.port.offsetLeft+u.port.clientWidth/2,u.node.offsetTop+u.interface.offsetTop+u.port.offsetTop+u.port.clientHeight/2]:[0,0],l=()=>{const u=Pa(n.connection.from),d=Pa(n.connection.to);u.node&&d.node&&(t||(t=new ResizeObserver(()=>{l()}),t.observe(u.node),t.observe(d.node)));const[h,f]=a(u),[_,m]=a(d);i.value={x1:h,y1:f,x2:_,y2:m}};return Ws(async()=>{await Ge(),l()}),Va(()=>{t&&t.disconnect()}),qn([r,o],()=>l(),{deep:!0}),{d:i,state:s}}});function Mkt(n,e,t,i,s,r){const o=mt("connection-view");return w(),xt(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const Dkt=hn(Ikt,[["render",Mkt]]);function yu(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const kkt=_n({components:{"connection-view":jI},props:{connection:{type:Object,required:!0}},setup(n){const e=st(()=>n.connection?n.connection.status:Ei.NONE);return{d:st(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const i=yu(Pa(n.connection.from)),s=n.connection.to?yu(Pa(n.connection.to)):[n.connection.mx||i[0],n.connection.my||i[1]];return n.connection.from.isInput?{input:s,output:i}:{input:i,output:s}}),status:e}}});function Lkt(n,e,t,i,s,r){const o=mt("connection-view");return w(),xt(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const Pkt=hn(kkt,[["render",Lkt]]),Ukt=_n({setup(){const{viewModel:n}=Oi(),{graph:e}=Ki(),t=ft(null),i=$d(n.value.settings.sidebar,"width"),s=st(()=>n.value.settings.sidebar.resizable),r=st(()=>{const h=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===h)}),o=st(()=>({width:`${i.value}px`})),a=st(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},u=()=>{window.addEventListener("mousemove",d),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",d)},{once:!0})},d=h=>{var f,_;const m=((_=(f=t.value)==null?void 0:f.parentElement)==null?void 0:_.getBoundingClientRect().width)??500;let E=i.value-h.movementX;E<300?E=300:E>.9*m&&(E=.9*m),i.value=E};return{el:t,graph:e,resizable:s,node:r,styles:o,displayedInterfaces:a,startResize:u,close:l}}}),Fkt={class:"__header"},Bkt={class:"__node-name"};function Gkt(n,e,t,i,s,r){return w(),A("div",{ref:"el",class:He(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:en(n.styles)},[n.resizable?(w(),A("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):V("",!0),c("div",Fkt,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),c("div",Bkt,[c("b",null,he(n.node?n.node.title:""),1)])]),(w(!0),A(Ye,null,lt(n.displayedInterfaces,o=>(w(),A("div",{key:o.id,class:"__interface"},[(w(),xt(Lu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const Vkt=hn(Ukt,[["render",Gkt]]),zkt=_n({__name:"Minimap",setup(n){const{viewModel:e}=Oi(),{graph:t}=Ki(),i=ft(null),s=ft(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const u=()=>{var T,O;if(!r)return;r.canvas.width=i.value.offsetWidth,r.canvas.height=i.value.offsetHeight;const k=new Map,x=new Map;for(const L of t.value.nodes){const $=Okt(L),H=($==null?void 0:$.offsetWidth)??0,U=($==null?void 0:$.offsetHeight)??0,Q=((T=L.position)==null?void 0:T.x)??0,J=((O=L.position)==null?void 0:O.y)??0;k.set(L,{x1:Q,y1:J,x2:Q+H,y2:J+U}),x.set(L,$)}const I={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const L of k.values())L.x1I.x2&&(I.x2=L.x2),L.y2>I.y2&&(I.y2=L.y2);const F=50;I.x1-=F,I.y1-=F,I.x2+=F,I.y2+=F,a=I;const B=r.canvas.width/r.canvas.height,ne=(a.x2-a.x1)/(a.y2-a.y1);if(B>ne){const L=(B-ne)*(a.y2-a.y1)*.5;a.x1-=L,a.x2+=L}else{const L=a.x2-a.x1,$=a.y2-a.y1,H=(L-B*$)/B*.5;a.y1-=H,a.y2+=H}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const L of t.value.connections){const[$,H]=yu(Pa(L.from)),[U,Q]=yu(Pa(L.to)),[J,j]=d($,H),[ae,ve]=d(U,Q);if(r.beginPath(),r.moveTo(J,j),e.value.settings.useStraightConnections)r.lineTo(ae,ve);else{const ee=.3*Math.abs(J-ae);r.bezierCurveTo(J+ee,j,ae-ee,ve,ae,ve)}r.stroke()}r.strokeStyle="lightgray";for(const[L,$]of k.entries()){const[H,U]=d($.x1,$.y1),[Q,J]=d($.x2,$.y2);r.fillStyle=f(x.get(L)),r.beginPath(),r.rect(H,U,Q-H,J-U),r.fill(),r.stroke()}if(s.value){const L=m(),[$,H]=d(L.x1,L.y1),[U,Q]=d(L.x2,L.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect($,H,U-$,Q-H)}},d=(T,O)=>[(T-a.x1)/(a.x2-a.x1)*r.canvas.width,(O-a.y1)/(a.y2-a.y1)*r.canvas.height],h=(T,O)=>[T*(a.x2-a.x1)/r.canvas.width+a.x1,O*(a.y2-a.y1)/r.canvas.height+a.y1],f=T=>{if(T){const O=T.querySelector(".__content");if(O){const x=_(O);if(x)return x}const k=_(T);if(k)return k}return"gray"},_=T=>{const O=getComputedStyle(T).backgroundColor;if(O&&O!=="rgba(0, 0, 0, 0)")return O},m=()=>{const T=i.value.parentElement.offsetWidth,O=i.value.parentElement.offsetHeight,k=T/t.value.scaling-t.value.panning.x,x=O/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:k,y2:x}},E=T=>{T.button===0&&(o=!0,b(T))},b=T=>{if(o){const[O,k]=h(T.offsetX,T.offsetY),x=m(),I=(x.x2-x.x1)/2,F=(x.y2-x.y1)/2;t.value.panning.x=-(O-I),t.value.panning.y=-(k-F)}},g=()=>{o=!1},y=()=>{s.value=!0},v=()=>{s.value=!1,g()};qn([s,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{u()});const S=st(()=>t.value.nodes.map(T=>T.position)),C=st(()=>t.value.nodes.map(T=>T.width));return qn([S,C],()=>{u()},{deep:!0}),Ws(()=>{r=i.value.getContext("2d"),r.imageSmoothingQuality="high",u(),l=setInterval(u,500)}),Va(()=>{clearInterval(l)}),(T,O)=>(w(),A("canvas",{ref_key:"canvas",ref:i,class:"baklava-minimap",onMouseenter:y,onMouseleave:v,onMousedown:be(E,["self"]),onMousemove:be(b,["self"]),onMouseup:g},null,544))}}),Hkt=_n({components:{ContextMenu:_y,VerticalDots:KI},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=Oi(),{switchGraph:t}=Ki(),i=ft(!1),s=st(()=>n.type.startsWith(lc));return{showContextMenu:i,hasContextMenu:s,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{i.value=!0},onContextMenuClick:l=>{const u=n.type.substring(lc.length),d=e.value.editor.graphTemplates.find(h=>h.id===u);if(d)switch(l){case"editSubgraph":t(d);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(d);break}}}}}),qkt=["data-node-type"],Ykt={class:"__title"},$kt={class:"__title-label"},Wkt={key:0,class:"__menu"};function Kkt(n,e,t,i,s,r){const o=mt("vertical-dots"),a=mt("context-menu");return w(),A("div",{class:"baklava-node --palette","data-node-type":n.type},[c("div",Ykt,[c("div",$kt,he(n.title),1),n.hasContextMenu?(w(),A("div",Wkt,[Te(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=be(()=>{},["stop","prevent"])),onClick:be(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),Te(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>n.showContextMenu=l),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=be(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):V("",!0)])],8,qkt)}const Bw=hn(Hkt,[["render",Kkt]]),jkt={class:"baklava-node-palette"},Qkt={key:0},Xkt=_n({__name:"NodePalette",setup(n){const{viewModel:e}=Oi(),{x:t,y:i}=skt(),{transform:s}=HI(),r=zI(e),o=Vi("editorEl"),a=ft(null),l=st(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:d,top:h}=o.value.getBoundingClientRect();return{top:`${i.value-h}px`,left:`${t.value-d}px`}}),u=(d,h)=>{a.value={type:d,nodeInformation:h};const f=()=>{const _=ei(new h.type);e.value.displayedGraph.addNode(_);const m=o.value.getBoundingClientRect(),[E,b]=s(t.value-m.left,i.value-m.top);_.position.x=E,_.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(d,h)=>(w(),A(Ye,null,[c("div",jkt,[(w(!0),A(Ye,null,lt(yt(r),f=>(w(),A("section",{key:f.name},[f.name!=="default"?(w(),A("h1",Qkt,he(f.name),1)):V("",!0),(w(!0),A(Ye,null,lt(f.nodeTypes,(_,m)=>(w(),xt(Bw,{key:m,type:m,title:_.title,onPointerdown:E=>u(m,_)},null,8,["type","title","onPointerdown"]))),128))]))),128))]),Te(cs,{name:"fade"},{default:We(()=>[a.value?(w(),A("div",{key:0,class:"baklava-dragged-node",style:en(l.value)},[Te(Bw,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):V("",!0)]),_:1})],64))}});let Cd;const Zkt=new Uint8Array(16);function Jkt(){if(!Cd&&(Cd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cd(Zkt)}const wn=[];for(let n=0;n<256;++n)wn.push((n+256).toString(16).slice(1));function eLt(n,e=0){return wn[n[e+0]]+wn[n[e+1]]+wn[n[e+2]]+wn[n[e+3]]+"-"+wn[n[e+4]]+wn[n[e+5]]+"-"+wn[n[e+6]]+wn[n[e+7]]+"-"+wn[n[e+8]]+wn[n[e+9]]+"-"+wn[n[e+10]]+wn[n[e+11]]+wn[n[e+12]]+wn[n[e+13]]+wn[n[e+14]]+wn[n[e+15]]}const tLt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gw={randomUUID:tLt};function vu(n,e,t){if(Gw.randomUUID&&!e&&!n)return Gw.randomUUID();n=n||{};const i=n.random||(n.rng||Jkt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=i[s];return e}return eLt(i)}const cc="SAVE_SUBGRAPH";function nLt(n,e){const t=()=>{const i=n.value;if(!i.template)throw new Error("Graph template property not set");i.template.update(i.save()),i.template.panning=i.panning,i.template.scaling=i.scaling};e.registerCommand(cc,{canExecute:()=>{var i;return n.value!==((i=n.value.editor)==null?void 0:i.graph)},execute:t})}const iLt={},sLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},rLt=c("polyline",{points:"6 9 12 15 18 9"},null,-1),oLt=[rLt];function aLt(n,e){return w(),A("svg",sLt,oLt)}const lLt=hn(iLt,[["render",aLt]]),cLt=_n({components:{"i-arrow":lLt},props:{intf:{type:Object,required:!0}},setup(n){const e=ft(null),t=ft(!1),i=st(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),s=st(()=>i.value?typeof i.value=="string"?i.value:i.value.text:""),r=o=>{n.intf.value=typeof o=="string"?o:o.value};return $I(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:i,selectedText:s,setSelected:r}}}),dLt=["title"],uLt={class:"__selected"},pLt={class:"__text"},_Lt={class:"__icon"},hLt={class:"__dropdown"},fLt={class:"item --header"},mLt=["onClick"];function gLt(n,e,t,i,s,r){const o=mt("i-arrow");return w(),A("div",{ref:"el",class:He(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[c("div",uLt,[c("div",pLt,he(n.selectedText),1),c("div",_Lt,[Te(o)])]),Te(cs,{name:"slide-fade"},{default:We(()=>[G(c("div",hLt,[c("div",fLt,he(n.intf.name),1),(w(!0),A(Ye,null,lt(n.intf.items,(a,l)=>(w(),A("div",{key:l,class:He(["item",{"--active":a===n.selectedItem}]),onClick:u=>n.setSelected(a)},he(typeof a=="string"?a:a.text),11,mLt))),128))],512),[[Mt,n.open]])]),_:1})],10,dLt)}const bLt=hn(cLt,[["render",gLt]]);class ELt extends nn{constructor(e,t,i){super(e,t),this.component=dc(bLt),this.items=i}}const yLt=_n({props:{intf:{type:Object,required:!0}}});function vLt(n,e,t,i,s,r){return w(),A("div",null,he(n.intf.value),1)}const SLt=hn(yLt,[["render",vLt]]);class TLt extends nn{constructor(e,t){super(e,t),this.component=dc(SLt),this.setPort(!1)}}const xLt=_n({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:st({get:()=>n.modelValue,set:i=>{e("update:modelValue",i)}})}}}),CLt=["placeholder","title"];function wLt(n,e,t,i,s,r){return w(),A("div",null,[G(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,CLt),[[we,n.v]])])}const RLt=hn(xLt,[["render",wLt]]);class Tc extends nn{constructor(){super(...arguments),this.component=dc(RLt)}}class QI extends PI{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new Tc("Name","Input").setPort(!1)},this.outputs={placeholder:new nn("Connection",void 0)}}}class XI extends UI{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new Tc("Name","Output").setPort(!1),placeholder:new nn("Connection",void 0)},this.outputs={output:new nn("Output",void 0).setHidden(!0)}}}const ZI="CREATE_SUBGRAPH",Vw=[Da,ka];function ALt(n,e,t){const i=()=>n.value.selectedNodes.filter(r=>!Vw.includes(r.type)).length>0,s=()=>{const{viewModel:r}=Oi(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(x=>!Vw.includes(x.type)),u=l.flatMap(x=>Object.values(x.inputs)),d=l.flatMap(x=>Object.values(x.outputs)),h=o.connections.filter(x=>!d.includes(x.from)&&u.includes(x.to)),f=o.connections.filter(x=>d.includes(x.from)&&!u.includes(x.to)),_=o.connections.filter(x=>d.includes(x.from)&&u.includes(x.to)),m=l.map(x=>x.save()),E=_.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:g,xRight:y,yTop:v}=NLt(l);console.log(g,y,v);for(const[x,I]of h.entries()){const F=new QI;F.inputs.name.value=I.to.name,m.push({...F.save(),position:{x:y-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),E.push({id:vu(),from:F.outputs.placeholder.id,to:I.to.id}),b.set(I.to.id,F.graphInterfaceId)}for(const[x,I]of f.entries()){const F=new XI;F.inputs.name.value=I.from.name,m.push({...F.save(),position:{x:g+100,y:v+x*200}}),E.push({id:vu(),from:I.from.id,to:F.inputs.placeholder.id}),b.set(I.from.id,F.graphInterfaceId)}const S=ei(new hp({connections:E,nodes:m,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const C=a.nodeTypes.get(La(S));if(!C)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");const T=ei(new C.type);o.addNode(T);const O=Math.round(l.map(x=>x.position.x).reduce((x,I)=>x+I,0)/l.length),k=Math.round(l.map(x=>x.position.y).reduce((x,I)=>x+I,0)/l.length);T.position.x=O,T.position.y=k,h.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,T.inputs[b.get(x.to.id)])}),f.forEach(x=>{o.removeConnection(x),o.addConnection(T.outputs[b.get(x.from.id)],x.to)}),l.forEach(x=>o.removeNode(x)),e.canExecuteCommand(cc)&&e.executeCommand(cc),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(ZI,{canExecute:i,execute:s})}function NLt(n){const e=n.reduce((s,r)=>{const o=r.position.x;return o{const o=r.position.y;return o{const o=r.position.x+r.width;return o>s?o:s},-1/0),xRight:e,yTop:t}}const zw="DELETE_NODES";function OLt(n,e){e.registerCommand(zw,{canExecute:()=>n.value.selectedNodes.length>0,execute(){n.value.selectedNodes.forEach(t=>n.value.removeNode(t))}}),e.registerHotkey(["Delete"],zw)}const JI="SWITCH_TO_MAIN_GRAPH";function ILt(n,e,t){e.registerCommand(JI,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(cc),t(n.value.editor.graph)}})}function MLt(n,e,t){OLt(n,e),ALt(n,e,t),nLt(n,e),ILt(n,e,t)}class Hw{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const i=new t.type;e.addNode(i),i.load(this.nodeState),this.nodeId=i.id}removeNode(e){const t=e.nodes.find(i=>i.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class qw{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const i=t;this.connectionState={id:i.id,from:i.from.id,to:i.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),i=e.findNodeInterface(this.connectionState.to);!t||!i||e.addConnection(t,i)}removeConnection(e){const t=e.connections.find(i=>i.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class DLt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!r.value)if(a.value)l.value.push(b);else for(o.value!==s.value.length-1&&(s.value=s.value.slice(0,o.value+1)),s.value.push(b),o.value++;s.value.length>i.value;)s.value.shift()},d=()=>{a.value=!0},h=()=>{a.value=!1,l.value.length>0&&(u(new DLt(l.value)),l.value=[])},f=()=>s.value.length!==0&&o.value!==-1,_=()=>{f()&&(r.value=!0,s.value[o.value--].undo(n.value),r.value=!1)},m=()=>s.value.length!==0&&o.value{m()&&(r.value=!0,s.value[++o.value].redo(n.value),r.value=!1)};return qn(n,(b,g)=>{g&&(g.events.addNode.unsubscribe(t),g.events.removeNode.unsubscribe(t),g.events.addConnection.unsubscribe(t),g.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,y=>{u(new Hw("addNode",y.id))}),b.events.removeNode.subscribe(t,y=>{u(new Hw("removeNode",y.save()))}),b.events.addConnection.subscribe(t,y=>{u(new qw("addConnection",y.id))}),b.events.removeConnection.subscribe(t,y=>{u(new qw("removeConnection",y))}))},{immediate:!0}),e.registerCommand(yb,{canExecute:f,execute:_}),e.registerCommand(vb,{canExecute:m,execute:E}),e.registerCommand(eM,{canExecute:()=>!a.value,execute:d}),e.registerCommand(tM,{canExecute:()=>a.value,execute:h}),e.registerHotkey(["Control","z"],yb),e.registerHotkey(["Control","y"],vb),ei({maxSteps:i})}const Sb="COPY",Tb="PASTE",LLt="CLEAR_CLIPBOARD";function PLt(n,e,t){const i=Symbol("ClipboardToken"),s=ft(""),r=ft(""),o=st(()=>!s.value),a=()=>{s.value="",r.value=""},l=()=>{const h=n.value.selectedNodes.flatMap(_=>[...Object.values(_.inputs),...Object.values(_.outputs)]),f=n.value.connections.filter(_=>h.includes(_.from)||h.includes(_.to)).map(_=>({from:_.from.id,to:_.to.id}));r.value=JSON.stringify(f),s.value=JSON.stringify(n.value.selectedNodes.map(_=>_.save()))},u=(h,f,_)=>{for(const m of h){let E;if((!_||_==="input")&&(E=Object.values(m.inputs).find(b=>b.id===f)),!E&&(!_||_==="output")&&(E=Object.values(m.outputs).find(b=>b.id===f)),E)return E}},d=()=>{if(o.value)return;const h=new Map,f=JSON.parse(s.value),_=JSON.parse(r.value),m=[],E=[],b=n.value;t.executeCommand(eM);for(const g of f){const y=e.value.nodeTypes.get(g.type);if(!y){console.warn(`Node type ${g.type} not registered`);return}const v=new y.type,S=v.id;m.push(v),v.hooks.beforeLoad.subscribe(i,C=>{const T=C;return T.position&&(T.position.x+=100,T.position.y+=100),v.hooks.beforeLoad.unsubscribe(i),T}),b.addNode(v),v.load({...g,id:S}),v.id=S,h.set(g.id,S);for(const C of Object.values(v.inputs)){const T=vu();h.set(C.id,T),C.id=T}for(const C of Object.values(v.outputs)){const T=vu();h.set(C.id,T),C.id=T}}for(const g of _){const y=u(m,h.get(g.from),"output"),v=u(m,h.get(g.to),"input");if(!y||!v)continue;const S=b.addConnection(y,v);S&&E.push(S)}return n.value.selectedNodes=m,t.executeCommand(tM),{newNodes:m,newConnections:E}};return t.registerCommand(Sb,{canExecute:()=>n.value.selectedNodes.length>0,execute:l}),t.registerHotkey(["Control","c"],Sb),t.registerCommand(Tb,{canExecute:()=>!o.value,execute:d}),t.registerHotkey(["Control","v"],Tb),t.registerCommand(LLt,{canExecute:()=>!0,execute:a}),ei({isEmpty:o})}const ULt="OPEN_SIDEBAR";function FLt(n,e){e.registerCommand(ULt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function BLt(n,e){FLt(n,e)}const GLt={},VLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},zLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),HLt=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),qLt=[zLt,HLt];function YLt(n,e){return w(),A("svg",VLt,qLt)}const $Lt=hn(GLt,[["render",YLt]]),WLt={},KLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},jLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),QLt=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),XLt=[jLt,QLt];function ZLt(n,e){return w(),A("svg",KLt,XLt)}const JLt=hn(WLt,[["render",ZLt]]),ePt={},tPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},nPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),iPt=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),sPt=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),rPt=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),oPt=[nPt,iPt,sPt,rPt];function aPt(n,e){return w(),A("svg",tPt,oPt)}const lPt=hn(ePt,[["render",aPt]]),cPt={},dPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),pPt=c("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),_Pt=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),hPt=[uPt,pPt,_Pt];function fPt(n,e){return w(),A("svg",dPt,hPt)}const mPt=hn(cPt,[["render",fPt]]),gPt={},bPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},EPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),yPt=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),vPt=c("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),SPt=[EPt,yPt,vPt];function TPt(n,e){return w(),A("svg",bPt,SPt)}const xPt=hn(gPt,[["render",TPt]]),CPt={},wPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},RPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),APt=c("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),NPt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),OPt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),IPt=[RPt,APt,NPt,OPt];function MPt(n,e){return w(),A("svg",wPt,IPt)}const DPt=hn(CPt,[["render",MPt]]),kPt={},LPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},PPt=Vb('',6),UPt=[PPt];function FPt(n,e){return w(),A("svg",LPt,UPt)}const BPt=hn(kPt,[["render",FPt]]),GPt=_n({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=Oi();return{viewModel:n}}}),VPt=["disabled","title"];function zPt(n,e,t,i,s,r){return w(),A("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(w(),xt(Lu(n.icon),{key:0})):(w(),A(Ye,{key:1},[et(he(n.title),1)],64))],8,VPt)}const HPt=hn(GPt,[["render",zPt]]),qPt=_n({components:{ToolbarButton:HPt},setup(){const{viewModel:n}=Oi();return{isSubgraph:st(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Sb,title:"Copy",icon:xPt},{command:Tb,title:"Paste",icon:mPt},{command:yb,title:"Undo",icon:$Lt},{command:vb,title:"Redo",icon:JLt},{command:ZI,title:"Create Subgraph",icon:BPt}],subgraphCommands:[{command:cc,title:"Save Subgraph",icon:DPt},{command:JI,title:"Back to Main Graph",icon:lPt}]}}}),YPt={class:"baklava-toolbar"};function $Pt(n,e,t,i,s,r){const o=mt("toolbar-button");return w(),A("div",YPt,[(w(!0),A(Ye,null,lt(n.commands,a=>(w(),xt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(w(!0),A(Ye,{key:0},lt(n.subgraphCommands,a=>(w(),xt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):V("",!0)])}const WPt=hn(qPt,[["render",$Pt]]),KPt={class:"connections-container"},jPt=_n({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),i=$d(e,"viewModel");HDt(i);const s=ft(null);sa("editorEl",s);const r=st(()=>e.viewModel.displayedGraph.nodes),o=st(()=>e.viewModel.displayedGraph.nodes.map(O=>GI($d(O,"position")))),a=st(()=>e.viewModel.displayedGraph.connections),l=st(()=>e.viewModel.displayedGraph.selectedNodes),u=qDt(),d=YDt(),h=$Dt(i),f=st(()=>({...u.styles.value})),_=ft(0);e.viewModel.editor.hooks.load.subscribe(t,O=>(_.value++,O));const m=O=>{u.onPointerMove(O),d.onMouseMove(O)},E=O=>{O.button===0&&(O.target===s.value&&(S(),u.onPointerDown(O)),d.onMouseDown())},b=O=>{u.onPointerUp(O),d.onMouseUp()},g=O=>{O.key==="Tab"&&O.preventDefault(),e.viewModel.commandHandler.handleKeyDown(O)},y=O=>{e.viewModel.commandHandler.handleKeyUp(O)},v=O=>{["Control","Shift"].some(k=>e.viewModel.commandHandler.pressedKeys.includes(k))||S(),e.viewModel.displayedGraph.selectedNodes.push(O)},S=()=>{e.viewModel.displayedGraph.selectedNodes=[]},C=O=>{for(const k of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(k),I=o.value[x];I.onPointerDown(O),document.addEventListener("pointermove",I.onPointerMove)}document.addEventListener("pointerup",T)},T=()=>{for(const O of e.viewModel.displayedGraph.selectedNodes){const k=r.value.indexOf(O),x=o.value[k];x.onPointerUp(),document.removeEventListener("pointermove",x.onPointerMove)}document.removeEventListener("pointerup",T)};return(O,k)=>(w(),A("div",{ref_key:"el",ref:s,tabindex:"-1",class:He(["baklava-editor",{"baklava-ignore-mouse":!!yt(d).temporaryConnection.value||yt(u).dragging.value,"--temporary-connection":!!yt(d).temporaryConnection.value}]),onPointermove:be(m,["self"]),onPointerdown:E,onPointerup:b,onWheel:k[1]||(k[1]=be((...x)=>yt(u).onMouseWheel&&yt(u).onMouseWheel(...x),["self"])),onKeydown:g,onKeyup:y,onContextmenu:k[2]||(k[2]=be((...x)=>yt(h).open&&yt(h).open(...x),["self","prevent"]))},[kn(O.$slots,"background",{},()=>[Te(jDt)]),kn(O.$slots,"toolbar",{},()=>[Te(WPt)]),kn(O.$slots,"palette",{},()=>[Te(Xkt)]),(w(),A("svg",KPt,[(w(!0),A(Ye,null,lt(a.value,x=>(w(),A("g",{key:x.id+_.value.toString()},[kn(O.$slots,"connection",{connection:x},()=>[Te(Dkt,{connection:x},null,8,["connection"])])]))),128)),kn(O.$slots,"temporaryConnection",{temporaryConnection:yt(d).temporaryConnection.value},()=>[yt(d).temporaryConnection.value?(w(),xt(Pkt,{key:0,connection:yt(d).temporaryConnection.value},null,8,["connection"])):V("",!0)])])),c("div",{class:"node-container",style:en(f.value)},[Te(os,{name:"fade"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.value,(x,I)=>kn(O.$slots,"node",{key:x.id+_.value.toString(),node:x,selected:l.value.includes(x),dragging:o.value[I].dragging.value,onSelect:F=>v(x),onStartDrag:C},()=>[Te(wkt,{node:x,selected:l.value.includes(x),dragging:o.value[I].dragging.value,onSelect:F=>v(x),onStartDrag:C},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),kn(O.$slots,"sidebar",{},()=>[Te(Vkt)]),kn(O.$slots,"minimap",{},()=>[O.viewModel.settings.enableMinimap?(w(),xt(zkt,{key:0})):V("",!0)]),kn(O.$slots,"contextMenu",{contextMenu:yt(h)},()=>[O.viewModel.settings.contextMenu.enabled?(w(),xt(_y,{key:0,modelValue:yt(h).show.value,"onUpdate:modelValue":k[0]||(k[0]=x=>yt(h).show.value=x),items:yt(h).items.value,x:yt(h).x.value,y:yt(h).y.value,onClick:yt(h).onClick},null,8,["modelValue","items","x","y","onClick"])):V("",!0)])],34))}}),QPt=["INPUT","TEXTAREA","SELECT"];function XPt(n){const e=ft([]),t=ft([]);return{pressedKeys:e,handleKeyDown:o=>{var a;e.value.includes(o.key)||e.value.push(o.key),!QPt.includes(((a=document.activeElement)==null?void 0:a.tagName)??"")&&t.value.forEach(l=>{l.keys.every(u=>e.value.includes(u))&&n(l.commandName)})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a)=>{t.value.push({keys:o,commandName:a})}}}const ZPt=()=>{const n=ft(new Map),e=(r,o)=>{if(n.value.has(r))throw new Error(`Command "${r}" already exists`);n.value.set(r,o)},t=(r,o=!1,...a)=>{if(!n.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return}return n.value.get(r).execute(...a)},i=(r,o=!1,...a)=>{if(!n.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return!1}return n.value.get(r).canExecute(a)},s=XPt(t);return ei({registerCommand:e,executeCommand:t,canExecuteCommand:i,...s})},JPt=n=>!(n instanceof Sc);function eUt(n,e){return{switchGraph:i=>{let s;if(JPt(i))s=new Sc(n.value),i.createGraph(s);else{if(i!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");s=i}e.value&&e.value!==n.value.graph&&e.value.destroy(),s.panning=s.panning??i.panning??{x:0,y:0},s.scaling=s.scaling??i.scaling??1,s.selectedNodes=s.selectedNodes??[],s.sidebar=s.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=s}}}function tUt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const nUt=()=>({useStraightConnections:!1,enableMinimap:!1,background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1},contextMenu:{enabled:!0,additionalItems:[]}});function iUt(n){const e=ft(n??new UDt),t=Symbol("ViewModelToken"),i=ft(null),s=s2(i),{switchGraph:r}=eUt(e,i),o=st(()=>s.value&&s.value!==e.value.graph),a=ei(nUt()),l=ZPt(),u=kLt(s,l),d=PLt(s,e,l),h={renderNode:new li(null),renderInterface:new li(null)};return MLt(s,l,r),BLt(s,l),qn(e,(f,_)=>{_&&(_.events.registerGraph.unsubscribe(t),_.graphEvents.beforeAddNode.unsubscribe(t),f.nodeHooks.beforeLoad.unsubscribe(t),f.nodeHooks.afterSave.unsubscribe(t),f.graphTemplateHooks.beforeLoad.unsubscribe(t),f.graphTemplateHooks.afterSave.unsubscribe(t),f.graph.hooks.load.unsubscribe(t),f.graph.hooks.save.unsubscribe(t)),f&&(f.nodeHooks.beforeLoad.subscribe(t,(m,E)=>(E.position=m.position??{x:0,y:0},E.width=m.width??a.nodes.defaultWidth,E.twoColumn=m.twoColumn??!1,m)),f.nodeHooks.afterSave.subscribe(t,(m,E)=>(m.position=E.position,m.width=E.width,m.twoColumn=E.twoColumn,m)),f.graphTemplateHooks.beforeLoad.subscribe(t,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graphTemplateHooks.afterSave.subscribe(t,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graph.hooks.load.subscribe(t,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graph.hooks.save.subscribe(t,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graphEvents.beforeAddNode.subscribe(t,m=>tUt(m,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(QI,{category:"Subgraphs"}),e.value.registerNodeType(XI,{category:"Subgraphs"}),r(f.graph))},{immediate:!0}),ei({editor:e,displayedGraph:s,isSubgraph:o,settings:a,commandHandler:l,history:u,clipboard:d,hooks:h,switchGraph:r})}const sUt=Ja({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new nn("Request",""),agent_name:()=>new ELt("Personality","",Su.state.config.personalities).setPort(!1)},outputs:{response:()=>new nn("Response","")},async calculate({request:n}){console.log(Su.state.config.personalities);let e="";try{e=(await Se.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),rUt=Ja({type:"RAGNode",title:"RAG",inputs:{request:()=>new nn("Prompt",""),document_path:()=>new Tc("Document path","").setPort(!1)},outputs:{prompt:()=>new nn("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await Se.get("/rag",{params:{text:n,doc_path:e}})).data}catch(i){console.error(i)}return{response:t}}}),Yw=Ja({type:"Task",title:"Task",inputs:{description:()=>new Tc("Task description","").setPort(!1)},outputs:{prompt:()=>new nn("Prompt")},calculate({description:n}){return{prompt:n}}}),$w=Ja({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new nn("Input","")},outputs:{response:()=>new TLt("Text","")},async calculate({request:n}){}}),Ww=Ja({type:"LLMNode",title:"LLM",inputs:{request:()=>new nn("Request","")},outputs:{response:()=>new nn("Response","")},async calculate({request:n}){console.log(Su.state.config.personalities);let e="";try{e=(await Se.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),oUt=Ja({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new nn("Question",""),outputs:()=>new Tc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new nn("Response","")}}),aUt=_n({components:{"baklava-editor":jPt},setup(){const n=iUt(),e=new zDt(n.editor);n.editor.registerNodeType(sUt),n.editor.registerNodeType(Yw),n.editor.registerNodeType(rUt),n.editor.registerNodeType($w),n.editor.registerNodeType(Ww),n.editor.registerNodeType(oUt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),FDt(a,n.editor),e.resume()}),e.start();function i(a,l,u){const d=new a;return n.displayedGraph.addNode(d),d.position.x=l,d.position.y=u,d}const s=i(Yw,300,140),r=i(Ww,550,140),o=i($w,850,140);return n.displayedGraph.addConnection(s.outputs.prompt,r.inputs.request),n.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),lUt={style:{width:"100vw",height:"100vh"}};function cUt(n,e,t,i,s,r){const o=mt("baklava-editor");return w(),A("div",lUt,[Te(o,{"view-model":n.baklava},null,8,["view-model"]),c("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),c("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const dUt=bt(aUt,[["render",cUt]]),uUt={},pUt={style:{width:"100vw",height:"100vh"}},_Ut=["src"];function hUt(n,e,t,i,s,r){return w(),A("div",pUt,[c("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,_Ut)])}const fUt=bt(uUt,[["render",hUt]]),mUt={},gUt={style:{width:"100vw",height:"100vh"}},bUt=["src"];function EUt(n,e,t,i,s,r){return w(),A("div",gUt,[c("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,bUt)])}const yUt=bt(mUt,[["render",EUt]]),vUt=HP({history:aP("/"),routes:[{path:"/auto_sd_view/",name:"AutoSD",component:yUt},{path:"/autosd_view/",name:"ComfyUI",component:fUt},{path:"/playground/",name:"playground",component:Rtt},{path:"/extensions/",name:"extensions",component:Ftt},{path:"/help_view/",name:"help_view",component:qtt},{path:"/settings/",name:"settings",component:Hbt},{path:"/training/",name:"training",component:dEt},{path:"/quantizing/",name:"quantizing",component:EEt},{path:"/",name:"discussions",component:fwt},{path:"/",name:"interactive",component:ODt},{path:"/",name:"nodes",component:dUt}]});const fp=jD(RZe);console.log("Loaded main.js");function SUt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Su=vk({state(){return{is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await Se.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data,console.log("version res:",n),console.log("version :",this.state.version))}catch{console.log("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{const e=await ki("get_config");e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await ki("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){console.log("is_rt_on",this.state.client_id);const e=await Se.get("/is_rt_on");console.log("response",e);const t=e.data.status;console.log("is_rt_on",t),n("setRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await Se.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await Se.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await Se.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await Se.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await Se.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await ki("get_all_personalities"),i=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s{let u=!1;for(const h of this.state.config.personalities)if(h.includes(r+"/"+l.folder))if(u=!0,h.includes(":")){const f=h.split(":");l.language=f[1]}else l.language=null;let d={};return d=l,d.category=r,d.full_path=r+"/"+l.folder,d.isMounted=u,d});e.length==0?e=a:e=e.concat(a)}e.sort((s,r)=>s.name.localeCompare(r.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let i=0;ia.full_path==s||a.full_path==r[0]);if(o>=0){let a=SUt(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else t.push(i),console.log("Couldn't load personality : ",s)}for(let i=t.length-1;i>=0;i--)console.log("Removing personality : ",this.state.config.personalities[t[i]]),this.state.config.personalities.splice(t[i],1),this.state.config.active_personality_id>t[i]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id]||i.full_path+":"+i.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:n}){let e=await ki("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(i=>i.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(i=>i.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){console.log("Fetching models");const t=(await Se.get("/get_available_models")).data.filter(i=>i.variants&&i.variants.length>0);console.log(`get_available_models: ${t}`),n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await ki("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await ki("list_models");console.log(`Found ${e}`);let t=await ki("get_active_model");console.log("Selected model ",t),t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const i=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);i!=-1&&n("setCurrentModel",this.state.modelsZoo[i])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await ki("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await ki("ram_usage")},async refreshVramUsage({commit:n}){const e=await ki("vram_usage"),t=[];if(e.nb_gpus>0){for(let s=0;s License: see project LICENSE Touched: 2022 -*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.popup-container[data-v-d504dfc9]{background-color:#fff;color:#333;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:24px;width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.close-button[data-v-d504dfc9]{position:absolute;top:16px;right:16px;background-color:#3490dc;color:#fff;font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease}.close-button[data-v-d504dfc9]:hover{background-color:#2779bd}.iframe-content[data-v-d504dfc9]{width:100%;height:80%;border:none;margin-bottom:16px}.checkbox-container[data-v-d504dfc9]{display:flex;align-items:center;justify-content:center}.styled-checkbox[data-v-d504dfc9]{width:24px;height:24px;accent-color:#3490dc;cursor:pointer}.checkbox-label[data-v-d504dfc9]{margin-left:8px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fade-enter-active[data-v-d504dfc9],.fade-leave-active[data-v-d504dfc9]{transition:opacity .5s}.fade-enter[data-v-d504dfc9],.fade-leave-to[data-v-d504dfc9]{opacity:0}.container{margin:0;padding:0}.link-item{height:25px;margin-top:5px;padding:0 20px;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;transition:duration-300 ease-in-out transform}.link-item-dark{padding:0 20px;color:#f0f8ff;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;transition:duration-300 ease-in-out transform}.nav-ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;height:100%}.nav-li{cursor:pointer;display:flex;align-items:center;padding:5px}.fade-in{animation:fadeInAnimation .5s}@keyframes fadeInAnimation{0%{opacity:0}to{opacity:1}}.bounce-in{animation:bounceInAnimation .5s}.bounce-out{animation:bounceOutAnimation .5s}@keyframes bounceInAnimation{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.shadow-no-bottom{box-shadow:0 -4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.hovered{transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transform:scale(1.1)}.active{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;pointer-events:all}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:250px;background-color:#fff;z-index:1000;display:none}.settings-button{cursor:pointer;padding:10px;border:1px solid #ddd;border-radius:5px;color:#333;font-size:14px}.settings-button:hover{background-color:#eee}.settings-button:active{background-color:#ddd}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.selected-choice{background-color:#bde4ff}.heartbeat-text[data-v-53eceb3e]{font-size:24px;animation:pulsate-53eceb3e 1.5s infinite}@keyframes pulsate-53eceb3e{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-53eceb3e],.list-enter-active[data-v-53eceb3e],.list-leave-active[data-v-53eceb3e]{transition:all .5s ease}.list-enter-from[data-v-53eceb3e]{transform:translatey(-30px)}.list-leave-to[data-v-53eceb3e]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-53eceb3e]{position:absolute}.bounce-enter-active[data-v-53eceb3e]{animation:bounce-in-53eceb3e .5s}.bounce-leave-active[data-v-53eceb3e]{animation:bounce-in-53eceb3e .5s reverse}@keyframes bounce-in-53eceb3e{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-53eceb3e]{background-color:#0ff}.hover[data-v-53eceb3e]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-53eceb3e]{font-weight:700}.collapsible-section{cursor:pointer;margin-bottom:10px;font-weight:700}.collapsible-section:hover{color:#1a202c}.collapsible-section .toggle-icon{margin-right:.25rem}.collapsible-section .toggle-icon i{color:#4a5568}.collapsible-section .toggle-icon i:hover{color:#1a202c}.json-viewer{max-height:300px;max-width:700px;flex:auto;overflow-y:auto;padding:10px;background-color:#f1f1f1;border:1px solid #ccc;border-radius:4px}.json-viewer .toggle-icon{cursor:pointer;margin-right:.25rem}.json-viewer .toggle-icon i{color:#4a5568}.json-viewer .toggle-icon i:hover{color:#1a202c}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}.bounce-enter-active[data-v-de7bc8fe]{animation:bounce-in-de7bc8fe .5s}.bounce-leave-active[data-v-de7bc8fe]{animation:bounce-in-de7bc8fe .5s reverse}@keyframes bounce-in-de7bc8fe{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.list-move[data-v-011f8851],.list-enter-active[data-v-011f8851],.list-leave-active[data-v-011f8851]{transition:all .5s ease}.list-enter-from[data-v-011f8851]{transform:translatey(-30px)}.list-leave-to[data-v-011f8851]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-011f8851]{position:absolute}.slide-right-enter-active[data-v-b8e854ae],.slide-right-leave-active[data-v-b8e854ae]{transition:transform .3s ease}.slide-right-enter[data-v-b8e854ae],.slide-right-leave-to[data-v-b8e854ae]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-b8e854ae]{animation:fade-and-fly-enter-b8e854ae .5s ease}.fade-and-fly-leave-active[data-v-b8e854ae]{animation:fade-and-fly-leave-b8e854ae .5s ease}@keyframes fade-and-fly-enter-b8e854ae{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-b8e854ae{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-b8e854ae],.list-enter-active[data-v-b8e854ae],.list-leave-active[data-v-b8e854ae]{transition:all .5s ease}.list-enter-from[data-v-b8e854ae]{transform:translatey(-30px)}.list-leave-to[data-v-b8e854ae]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-b8e854ae]{position:absolute}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:white;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1F2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4B5563}.dark input[type=file]::file-selector-button:hover{background:#6B7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6B7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-moz-range-thumb{background:#6B7280}input[type=range]::-moz-range-progress{background:#3F83F8}input[type=range]::-ms-fill-lower{background:#3F83F8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:white;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1C64F2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}html{scroll-behavior:smooth}@font-face{font-family:Roboto;src:url(/assets/Roboto-Regular-7277cfb8.ttf) format("truetype")}@font-face{font-family:PTSans;src:url(/assets/PTSans-Regular-23b91352.ttf) format("truetype")}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-left-6{left:-1.5rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-6{right:-1.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.-top-20{top:-5rem}.-top-6{top:-1.5rem}.-top-9{top:-2.25rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-20{left:5rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-6{max-height:1.5rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[500px\]{min-height:500px}.min-h-\[900px\]{min-height:900px}.min-h-full{min-height:100%}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-4\/6{width:66.666667%}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[1000px\]{width:1000px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-screen{width:100vw}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-\[900px\]{max-width:900px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[40px\,1fr\]{grid-template-columns:40px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-discussion{background-color:var(--color-bg-light-discussion)}.bg-bg-light-panel{background-color:var(--color-bg-light-panel)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.fill-blue-600{fill:#1c64f2}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[\.82rem\]{font-size:.82rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-dark-text-panel{color:var(--color-dark-text-panel)}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}:root{--color-primary: #0e8ef0;--color-primary-light: #3dabff;--color-secondary: #0fd974;--color-accent: #f0700e;--color-light-text-panel: #ffffff;--color-dark-text-panel: #ffffff;--color-bg-light-panel: #7cb5ec;--color-bg-light: #e2edff;--color-bg-light-tone: #b9d2f7;--color-bg-light-code-block: #cad7ed;--color-bg-light-tone-panel: #8fb5ef;--color-bg-light-discussion: #c5d8f8;--color-bg-light-discussion-odd: #d6e7ff;--color-bg-dark: #132e59;--color-bg-dark-tone: #25477d;--color-bg-dark-tone-panel: #4367a3;--color-bg-dark-code-block: #2254a7;--color-bg-dark-discussion: #435E8A;--color-bg-dark-discussion-odd: #284471}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.odd\:bg-bg-light-tone:nth-child(odd){background-color:var(--color-bg-light-tone)}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.even\:bg-bg-light-tone-panel:nth-child(2n){background-color:var(--color-bg-light-tone-panel)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-x-12{--tw-translate-x: -3rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-x-8{--tw-translate-x: -2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-y-12{--tw-translate-y: -3rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-y-8{--tw-translate-y: -2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-\[0px\]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-y-\[-50px\]{--tw-translate-y: -50px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:z-50:hover{z-index:50}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-8:hover{--tw-translate-y: -2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:translate-y-\[-5px\]:hover{--tw-translate-y: -5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-150:hover{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-95:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:var(--color-secondary)}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:fill-primary:hover{fill:var(--color-primary)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){border-color:var(--color-bg-light)}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){background-color:var(--color-bg-dark)}:is(.dark .dark\:bg-bg-dark-discussion){background-color:var(--color-bg-dark-discussion)}:is(.dark .dark\:bg-bg-dark-tone){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:bg-bg-dark-tone-panel){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-70){--tw-bg-opacity: .7}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:from-bg-dark){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:from-bg-dark-tone){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:via-bg-dark){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:fill-white){fill:#fff}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-dark-text-panel){color:var(--color-dark-text-panel)}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(222 247 236 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-light-text-panel){color:var(--color-light-text-panel)}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary){color:var(--color-primary)}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-offset-gray-700){--tw-ring-offset-color: #374151}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:scrollbar-track-bg-dark){--scrollbar-track: var(--color-bg-dark) !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){background-color:var(--color-bg-dark-discussion-odd)}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-primary:hover){border-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-bg-dark-tone:hover){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary:hover){background-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-secondary:hover){background-color:var(--color-secondary)}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone):hover{background-color:var(--color-bg-dark-tone)}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:hover\:fill-primary:hover){fill:var(--color-primary)}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:scrollbar-thumb-primary){--scrollbar-thumb-hover: var(--color-primary) !important}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-secondary:focus){border-color:var(--color-secondary)}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-secondary:focus){--tw-ring-color: var(--color-secondary)}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-gray-700:focus){--tw-ring-offset-color: #374151}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:my-2{margin-top:.5rem;margin-bottom:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} +*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.popup-container[data-v-d504dfc9]{background-color:#fff;color:#333;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:24px;width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.close-button[data-v-d504dfc9]{position:absolute;top:16px;right:16px;background-color:#3490dc;color:#fff;font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease}.close-button[data-v-d504dfc9]:hover{background-color:#2779bd}.iframe-content[data-v-d504dfc9]{width:100%;height:80%;border:none;margin-bottom:16px}.checkbox-container[data-v-d504dfc9]{display:flex;align-items:center;justify-content:center}.styled-checkbox[data-v-d504dfc9]{width:24px;height:24px;accent-color:#3490dc;cursor:pointer}.checkbox-label[data-v-d504dfc9]{margin-left:8px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fade-enter-active[data-v-d504dfc9],.fade-leave-active[data-v-d504dfc9]{transition:opacity .5s}.fade-enter[data-v-d504dfc9],.fade-leave-to[data-v-d504dfc9]{opacity:0}.container{margin:0;padding:0}.link-item{height:25px;margin-top:5px;padding:0 20px;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;transition:duration-300 ease-in-out transform}.link-item-dark{padding:0 20px;color:#f0f8ff;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;transition:duration-300 ease-in-out transform}.nav-ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;height:100%}.nav-li{cursor:pointer;display:flex;align-items:center;padding:5px}.fade-in{animation:fadeInAnimation .5s}@keyframes fadeInAnimation{0%{opacity:0}to{opacity:1}}.bounce-in{animation:bounceInAnimation .5s}.bounce-out{animation:bounceOutAnimation .5s}@keyframes bounceInAnimation{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.shadow-no-bottom{box-shadow:0 -4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.hovered{transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transform:scale(1.1)}.active{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;pointer-events:all}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:250px;background-color:#fff;z-index:1000;display:none}.settings-button{cursor:pointer;padding:10px;border:1px solid #ddd;border-radius:5px;color:#333;font-size:14px}.settings-button:hover{background-color:#eee}.settings-button:active{background-color:#ddd}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.selected-choice{background-color:#bde4ff}.heartbeat-text[data-v-e1d3bae0]{font-size:24px;animation:pulsate-e1d3bae0 1.5s infinite}@keyframes pulsate-e1d3bae0{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-e1d3bae0],.list-enter-active[data-v-e1d3bae0],.list-leave-active[data-v-e1d3bae0]{transition:all .5s ease}.list-enter-from[data-v-e1d3bae0]{transform:translatey(-30px)}.list-leave-to[data-v-e1d3bae0]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e1d3bae0]{position:absolute}.bounce-enter-active[data-v-e1d3bae0]{animation:bounce-in-e1d3bae0 .5s}.bounce-leave-active[data-v-e1d3bae0]{animation:bounce-in-e1d3bae0 .5s reverse}@keyframes bounce-in-e1d3bae0{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-e1d3bae0]{background-color:#0ff}.hover[data-v-e1d3bae0]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-e1d3bae0]{font-weight:700}.collapsible-section{cursor:pointer;margin-bottom:10px;font-weight:700}.collapsible-section:hover{color:#1a202c}.collapsible-section .toggle-icon{margin-right:.25rem}.collapsible-section .toggle-icon i{color:#4a5568}.collapsible-section .toggle-icon i:hover{color:#1a202c}.json-viewer{max-height:300px;max-width:700px;flex:auto;overflow-y:auto;padding:10px;background-color:#f1f1f1;border:1px solid #ccc;border-radius:4px}.json-viewer .toggle-icon{cursor:pointer;margin-right:.25rem}.json-viewer .toggle-icon i{color:#4a5568}.json-viewer .toggle-icon i:hover{color:#1a202c}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}.bounce-enter-active[data-v-de7bc8fe]{animation:bounce-in-de7bc8fe .5s}.bounce-leave-active[data-v-de7bc8fe]{animation:bounce-in-de7bc8fe .5s reverse}@keyframes bounce-in-de7bc8fe{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.list-move[data-v-011f8851],.list-enter-active[data-v-011f8851],.list-leave-active[data-v-011f8851]{transition:all .5s ease}.list-enter-from[data-v-011f8851]{transform:translatey(-30px)}.list-leave-to[data-v-011f8851]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-011f8851]{position:absolute}.slide-right-enter-active[data-v-b8e854ae],.slide-right-leave-active[data-v-b8e854ae]{transition:transform .3s ease}.slide-right-enter[data-v-b8e854ae],.slide-right-leave-to[data-v-b8e854ae]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-b8e854ae]{animation:fade-and-fly-enter-b8e854ae .5s ease}.fade-and-fly-leave-active[data-v-b8e854ae]{animation:fade-and-fly-leave-b8e854ae .5s ease}@keyframes fade-and-fly-enter-b8e854ae{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-b8e854ae{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-b8e854ae],.list-enter-active[data-v-b8e854ae],.list-leave-active[data-v-b8e854ae]{transition:all .5s ease}.list-enter-from[data-v-b8e854ae]{transform:translatey(-30px)}.list-leave-to[data-v-b8e854ae]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-b8e854ae]{position:absolute}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:white;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1F2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4B5563}.dark input[type=file]::file-selector-button:hover{background:#6B7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6B7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-moz-range-thumb{background:#6B7280}input[type=range]::-moz-range-progress{background:#3F83F8}input[type=range]::-ms-fill-lower{background:#3F83F8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:white;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1C64F2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}html{scroll-behavior:smooth}@font-face{font-family:Roboto;src:url(/assets/Roboto-Regular-7277cfb8.ttf) format("truetype")}@font-face{font-family:PTSans;src:url(/assets/PTSans-Regular-23b91352.ttf) format("truetype")}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-left-6{left:-1.5rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-6{right:-1.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.-top-20{top:-5rem}.-top-6{top:-1.5rem}.-top-9{top:-2.25rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-20{left:5rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-6{max-height:1.5rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[500px\]{min-height:500px}.min-h-\[900px\]{min-height:900px}.min-h-full{min-height:100%}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-4\/6{width:66.666667%}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[1000px\]{width:1000px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-screen{width:100vw}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-\[900px\]{max-width:900px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[40px\,1fr\]{grid-template-columns:40px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-discussion{background-color:var(--color-bg-light-discussion)}.bg-bg-light-panel{background-color:var(--color-bg-light-panel)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.fill-blue-600{fill:#1c64f2}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[\.82rem\]{font-size:.82rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-dark-text-panel{color:var(--color-dark-text-panel)}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}:root{--color-primary: #0e8ef0;--color-primary-light: #3dabff;--color-secondary: #0fd974;--color-accent: #f0700e;--color-light-text-panel: #ffffff;--color-dark-text-panel: #ffffff;--color-bg-light-panel: #7cb5ec;--color-bg-light: #e2edff;--color-bg-light-tone: #b9d2f7;--color-bg-light-code-block: #cad7ed;--color-bg-light-tone-panel: #8fb5ef;--color-bg-light-discussion: #c5d8f8;--color-bg-light-discussion-odd: #d6e7ff;--color-bg-dark: #132e59;--color-bg-dark-tone: #25477d;--color-bg-dark-tone-panel: #4367a3;--color-bg-dark-code-block: #2254a7;--color-bg-dark-discussion: #435E8A;--color-bg-dark-discussion-odd: #284471}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.odd\:bg-bg-light-tone:nth-child(odd){background-color:var(--color-bg-light-tone)}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.even\:bg-bg-light-tone-panel:nth-child(2n){background-color:var(--color-bg-light-tone-panel)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-x-12{--tw-translate-x: -3rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-x-8{--tw-translate-x: -2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-y-12{--tw-translate-y: -3rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-y-8{--tw-translate-y: -2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-\[0px\]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-y-\[-50px\]{--tw-translate-y: -50px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:z-50:hover{z-index:50}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-8:hover{--tw-translate-y: -2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:translate-y-\[-5px\]:hover{--tw-translate-y: -5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-150:hover{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-95:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-secondary:hover{background-color:var(--color-secondary)}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:fill-primary:hover{fill:var(--color-primary)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){border-color:var(--color-bg-light)}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){background-color:var(--color-bg-dark)}:is(.dark .dark\:bg-bg-dark-discussion){background-color:var(--color-bg-dark-discussion)}:is(.dark .dark\:bg-bg-dark-tone){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:bg-bg-dark-tone-panel){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-70){--tw-bg-opacity: .7}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:from-bg-dark){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:from-bg-dark-tone){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:via-bg-dark){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:fill-white){fill:#fff}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-dark-text-panel){color:var(--color-dark-text-panel)}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(222 247 236 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-light-text-panel){color:var(--color-light-text-panel)}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary){color:var(--color-primary)}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-offset-gray-700){--tw-ring-offset-color: #374151}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:scrollbar-track-bg-dark){--scrollbar-track: var(--color-bg-dark) !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){background-color:var(--color-bg-dark-discussion-odd)}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-primary:hover){border-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-bg-dark-tone:hover){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary:hover){background-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-secondary:hover){background-color:var(--color-secondary)}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone):hover{background-color:var(--color-bg-dark-tone)}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:hover\:fill-primary:hover){fill:var(--color-primary)}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:scrollbar-thumb-primary){--scrollbar-thumb-hover: var(--color-primary) !important}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-secondary:focus){border-color:var(--color-secondary)}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-secondary:focus){--tw-ring-color: var(--color-secondary)}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-gray-700:focus){--tw-ring-offset-color: #374151}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:my-2{margin-top:.5rem;margin-bottom:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/index.html b/web/dist/index.html index 1d379341..c2409176 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - Welcome - - + +
diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index bd6d08ad..dc26ecd0 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -1042,8 +1042,8 @@ - - + + @@ -1059,7 +1059,25 @@ class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600" > - + + + + + + + + + + + +